/* assets/frontend.css */

.golf-fees-container {
    max-width: 100%;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.golf-fees-main-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #1a472a;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 15px;
}

.golf-fees-main-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #2e7d32;
}

/* Tabs - with important overrides */
.golf-fees-tabs {
    display: flex !important;
    justify-content: center;
    margin-bottom: 0;
    background: #f5f5f5;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 20px;
    flex-wrap: wrap;
}

.golf-tab-button {
    flex: 1;
    min-width: 200px;
    padding: 18px 24px;
    background: #2e7d32;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.golf-tab-button:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.2);
}

.golf-tab-button:hover {
    background: #1b5e20;
}

.golf-tab-button.active {
    background: #ffb74d !important;
    color: #1a472a !important;
}

.golf-tab-content {
    display: none !important;
    animation: fadeIn 0.5s ease;
    margin-bottom: 40px;
}

.golf-tab-content.active {
    display: block !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tables */
.golf-fees-table-wrapper {
    background: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow-x: auto;
    margin-top: -1px;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.golf-fees-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 800px; /* Minimum width for desktop */
}

/* Weekday table needs more width */
#weekday .golf-fees-table {
    min-width: 1100px;
}

/* Weekend table needs more width */
#weekend .golf-fees-table {
    min-width: 1000px;
}

.golf-fees-table thead {
    background: #1a472a;
    color: white;
}

.golf-fees-table th {
    padding: 6px 4px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.3px;
    border-bottom: 2px solid #ffb74d;
    white-space: nowrap;
}

.golf-fees-table th:first-child {
    text-align: left;
    padding-left: 10px;
    min-width: 140px;
}

.golf-fees-table tbody tr {
    transition: all 0.3s ease;
}

.golf-fees-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.golf-fees-table tbody tr:hover {
    background: #e8f5e9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.golf-fees-table td {
    padding: 6px 4px;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
    text-align: center;
    font-size: 11px;
}

.golf-fees-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: #1a472a;
    padding-left: 10px;
    font-size: 11px;
}

.membership-type {
    font-weight: 600;
    color: #1a472a;
}

/* Special styles for specific tables */
.specials-table .special-name {
    color: #ff6f00;
    font-weight: 600;
}

.specials-table .special-price {
    color: #2e7d32;
    font-weight: 700;
    font-size: 13px;
}

/* Membership table */
.membership-section {
    margin-top: 40px;
}

.membership-table th .year {
    display: block;
    font-size: 9px !important;
    font-weight: 400;
    margin-top: 2px;
    opacity: 0.8;
}

.membership-table .total-fees {
    color: #2e7d32 !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    white-space: nowrap !important;
}

/* Specific styling for membership table columns */
.membership-table th:nth-child(4),
.membership-table td:nth-child(4) {
    min-width: 90px !important;
    font-size: 12px !important;
}

/* Ensure all prices display inline */
.golf-fees-table td {
    white-space: nowrap !important;
}

/* Mobile scroll indicator */
@media (max-width: 1200px) {
    .golf-fees-table-wrapper {
        position: relative;
    }
    
    .golf-fees-table-wrapper:after {
        content: '→ Scroll for more';
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        background: rgba(26, 71, 42, 0.9);
        color: white;
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 12px;
        pointer-events: none;
        opacity: 1;
        transition: opacity 0.3s;
    }
    
    .golf-fees-table-wrapper:hover:after {
        opacity: 0;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .golf-fees-container {
        padding: 0 10px;
    }
    
    .golf-fees-main-title {
        font-size: 24px;
        letter-spacing: 1px;
    }
    
    .golf-fees-tabs {
        border-radius: 5px 5px 0 0;
    }
    
    .golf-tab-button {
        min-width: auto;
        flex: 1 1 100%;
        padding: 12px 15px;
        font-size: 11px;
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    
    .golf-tab-button:last-child {
        border-bottom: none;
    }
    
    .golf-fees-table {
        font-size: 10px;
        min-width: 700px; /* Smaller minimum for mobile */
    }
    
    .golf-fees-table th {
        padding: 5px 3px;
        font-size: 9px;
        letter-spacing: 0;
    }
    
    .golf-fees-table td {
        padding: 5px 3px;
        font-size: 10px;
    }
    
    .golf-fees-table td:first-child,
    .golf-fees-table th:first-child {
        font-size: 10px;
        min-width: 110px;
        padding-left: 8px;
    }
    
    /* Special mobile-only styles */
    .specials-table {
        min-width: 500px;
    }
    
    .membership-table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    .golf-fees-main-title {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .golf-tab-button {
        padding: 10px 12px;
        font-size: 10px;
    }
    
    .golf-fees-table th {
        padding: 4px 2px;
        font-size: 8px;
    }
    
    .golf-fees-table td {
        padding: 4px 2px;
        font-size: 9px;
    }
    
    .golf-fees-table td:first-child {
        font-size: 9px;
        min-width: 90px;
    }
}

/* Print styles */
@media print {
    .golf-fees-tabs {
        display: none !important;
    }
    
    .golf-tab-content {
        display: block !important;
        page-break-after: always;
    }
    
    .golf-fees-table {
        min-width: 100% !important;
        font-size: 10px;
    }
    
    .golf-fees-table-wrapper {
        overflow: visible !important;
    }
    
    .golf-fees-table-wrapper:after {
        display: none !important;
    }
}

/* Desktop optimization for full width */
@media (min-width: 1400px) {
    .golf-fees-container {
        max-width: 1400px;
    }
    
    .golf-fees-table {
        font-size: 13px;
    }
    
    .golf-fees-table th {
        padding: 8px 6px;
        font-size: 11px;
    }
    
    .golf-fees-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    .golf-fees-table td:first-child {
        font-size: 12px;
    }
}

/* Extra wide screens */
@media (min-width: 1600px) {
    .golf-fees-container {
        max-width: 1600px;
    }
    
    .golf-fees-table {
        font-size: 14px;
    }
    
    .golf-fees-table th {
        padding: 10px 8px;
        font-size: 12px;
        letter-spacing: 0.5px;
    }
    
    .golf-fees-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .golf-fees-table td:first-child {
        font-size: 13px;
    }
}