/* Finnish Ammunition Prices - Clean Google-style CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.submit-deal-btn {
    background: #34a853;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 24px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.submit-deal-btn:hover {
    background: #2d8e47;
    box-shadow: 0 2px 8px rgba(52, 168, 83, 0.3);
    transform: translateY(-1px);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 400;
    color: #1a73e8;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 1rem;
    color: #5f6368;
    font-weight: 400;
}

/* Tab Navigation */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #dadce0;
}

.tab-button {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    color: #5f6368;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
}

.tab-button:hover {
    color: #1a73e8;
}

.tab-button.active {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
    font-weight: 500;
}

/* Table Container */
.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 40px;
    -webkit-overflow-scrolling: touch;
}

/* Price Table */
.price-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 14px;
}

.price-table thead {
    background-color: #f8f9fa;
}

.price-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 500;
    color: #3c4043;
    border-bottom: 1px solid #dadce0;
}

.price-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.price-table th.sortable:hover {
    background-color: #f1f3f4;
}

.price-table th.sortable.active {
    color: #1a73e8;
    font-weight: 600;
}

.price-table th.sortable::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-bottom-color: #dadce0;
}

.price-table th.sortable.active::after {
    border-bottom-color: #1a73e8;
}

.price-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.price-table tr:hover {
    background-color: #f8f9fa;
}

/* Clickable rows */
.clickable-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.clickable-row:hover {
    background-color: #e8f0fe !important;
}

/* Product column styling */
.product-name {
    font-weight: 500;
    color: #1a73e8;
    margin-bottom: 2px;
}

.product-details {
    font-size: 12px;
    color: #5f6368;
}

/* Price highlighting */
.price {
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* Sale badge */
.sale-badge {
    background-color: #ea4335;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
}

/* Status indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
}

.status-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-indicator.available::before {
    background-color: #34a853;
}

.status-indicator.unavailable::before {
    background-color: #ea4335;
}

.status-indicator.available {
    color: #137333;
}

.status-indicator.unavailable {
    color: #d33b01;
}

/* No data message */
.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #5f6368;
    font-style: italic;
}

/* Footer */
.footer {
    text-align: center;
    font-size: 12px;
    color: #5f6368;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .tabs {
        flex-wrap: wrap;
        gap: 5px;
        justify-content: flex-start;
        padding: 0 5px;
    }
    
    .tab-button {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* Table adjustments for mobile */
    .table-container {
        margin: 20px -10px;
        border-radius: 0;
    }
    
    .price-table {
        font-size: 12px;
        min-width: 650px;
    }
    
    .price-table th,
    .price-table td {
        padding: 8px 6px;
        white-space: nowrap;
    }
    
    /* Compact product display */
    .product-name {
        font-size: 12px;
        margin-bottom: 1px;
    }
    
    .product-details {
        font-size: 10px;
    }
    
    /* Compact price display */
    .price {
        font-size: 12px;
    }
    
    /* Status indicators smaller */
    .status-indicator {
        font-size: 10px;
    }
    
    .status-indicator::before {
        width: 6px;
        height: 6px;
        margin-right: 4px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .price-table th:nth-child(3), /* Brand */
    .price-table td:nth-child(3) {
        display: none;
    }
}