/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #2d3748;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* ===== TOP NAVIGATION ===== */
.top-nav {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.nav-item {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 16px 24px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

/* ===== MOBILE RESPONSIVE NAVIGATION ===== */
@media (max-width: 768px) {
    /* Move navigation to bottom */
    .top-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        border-bottom: none;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .nav-container {
        padding: 6px 10px;
        max-width: none;
    }
    
    .nav-item {
        padding: 10px 8px;
        font-size: 0.85rem;
        flex: 1;
        text-align: center;
        justify-content: center;
        flex-direction: column;
        min-width: 0;
        color: #4a5568;
        border-bottom: none;
        border-radius: 8px;
    }
    
    .nav-item:hover {
        color: #2d3748;
        background: rgba(66, 153, 225, 0.1);
    }
    
    .nav-item.active {
        color: #4299e1;
        background: rgba(66, 153, 225, 0.15);
        border-bottom: none;
    }
    
    .nav-item span.emoji {
        display: block;
        font-size: 1.8rem;
        margin-bottom: 0;
    }
    
    .nav-item span.text {
        display: none;
    }
    
    /* Add bottom padding to body for navigation space */
    body {
        padding-bottom: 55px;
    }
    
    /* Container adjustments */
    .container {
        padding: 15px;
    }
    
    /* Day filter mobile optimization */
    .day-filter {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .day-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: auto;
        flex: 1;
    }
    
    /* Session cards mobile optimization */
    .session-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .sessions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ===== HEADER SECTION ===== */
.header {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    text-align: center;
    padding: 30px 20px 25px;
}

.header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 15px;
    line-height: 1.3;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: white;
}

/* ===== COMPETITION BANNER ===== */
.competition-banner {
    margin: 20px auto;
    max-width: 800px;
    padding: 0 20px;
}

.banner-content {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 25px rgba(237, 137, 54, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.banner-icon {
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 50%;
    flex-shrink: 0;
}

.banner-text {
    flex: 1;
    color: white;
}

.banner-text h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.banner-text p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.banner-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.banner-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px;
}

/* ===== LOADING STATE ===== */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-left: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== DAY FILTER ===== */
.day-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 25px;
    padding: 0 10px;
}

.day-btn {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 20px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    white-space: nowrap;
    min-width: fit-content;
}

.day-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.day-btn.active {
    background: #4299e1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
}

/* ===== SESSIONS CONTAINER ===== */
.sessions-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

/* ===== SESSION CARD ===== */
.session-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.session-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.session-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.session-day {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

.session-time {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 15px;
}

.session-details {
    space-y: 12px;
}

.detail-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.detail-icon {
    width: 20px;
    margin-right: 12px;
    text-align: center;
    font-size: 1.1rem;
}

.detail-label {
    font-weight: 600;
    color: #4a5568;
    margin-right: 8px;
    min-width: 60px;
}

.detail-value {
    color: #2d3748;
    flex: 1;
}

.club-name {
    color: #4299e1;
    font-weight: 600;
}

.venue-name {
    color: #2b6cb0;
    font-weight: 600;
}

.address {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ===== SESSION FOOTER ===== */
.session-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-btn {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
}

.contact-note {
    font-size: 0.85rem;
    color: #718096;
    margin: 0;
    font-style: italic;
    text-align: center;
}

/* ===== ERROR STATE ===== */
.error-state {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.error-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.error-state p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.retry-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .header {
        padding: 20px 15px 20px;
    }
    
    .header h1 {
        font-size: 1.8rem;
        margin-bottom: 6px;
    }
    
    .header p {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .container {
        padding: 20px 15px;
    }
    
    .sessions-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .day-filter {
        gap: 6px;
        margin-bottom: 20px;
        padding: 0 5px;
    }
    
    .day-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        border-radius: 16px;
    }
    
    .session-card {
        padding: 20px;
    }
    
    .session-footer {
        justify-content: center;
    }

    .contact-note {
        text-align: center;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.session-card {
    animation: fadeInUp 0.6s ease-out;
}

.session-card:nth-child(1) { animation-delay: 0.1s; }
.session-card:nth-child(2) { animation-delay: 0.2s; }
.session-card:nth-child(3) { animation-delay: 0.3s; }
.session-card:nth-child(4) { animation-delay: 0.4s; }
.session-card:nth-child(5) { animation-delay: 0.5s; }
.session-card:nth-child(6) { animation-delay: 0.6s; }