/* ==========================================================================
   1. GLOBAL RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #F4F7F6 0%, #E8EDEB 100%);
    color: #334155;
    min-height: 100vh;
}

/* ==========================================================================
   2. MAIN LAYOUT CONTAINERS
   ========================================================================== */
.main-content {
    min-height: calc(100vh - 80px);
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px;
    display: block;
}

.fixed-games-shell {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* ==========================================================================
   3. SHELL HEADER COMPONENT
   ========================================================================== */
.shell-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 32px 24px;
    background: linear-gradient(135deg, rgba(27, 77, 62, 0.04), rgba(245, 166, 35, 0.04));
    border-radius: 24px;
    border: 1px solid rgba(245, 166, 35, 0.1);
}

.shell-header h1 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1B4D3E, #F5A623);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
}

.shell-header h1 i {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: #F5A623;
}

.shell-header p {
    color: #64748B;
    font-size: 0.95rem;
}

/* ==========================================================================
   4. INFO CARDS SYSTEM (DESKTOP)
   ========================================================================== */
.info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.info-card {
    background: white;
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
    border-color: rgba(245, 166, 35, 0.3);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.15), rgba(232, 135, 30, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.card-icon i {
    font-size: 2rem;
    color: #F5A623;
}

.info-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1B4D3E;
    margin-bottom: 12px;
}

.odds-range {
    display: inline-block;
    background: linear-gradient(135deg, #F5A623, #E8871E);
    color: #1B4D3E;
    padding: 5px 18px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.schedule, .games-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #64748B;
    margin-bottom: 12px;
}

.schedule i, .games-count i {
    color: #F5A623;
    width: 18px;
}

.btn-view {
    background: linear-gradient(135deg, #1B4D3E, #0F2B1F);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 77, 62, 0.3);
    background: linear-gradient(135deg, #236B54, #1B4D3E);
}

.btn-view i {
    transition: transform 0.2s;
}

.btn-view:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   5. NEXT UPCOMING GAMES SECTION
   ========================================================================== */
.next-games {
    background: white;
    border-radius: 24px;
    border: 1px solid #E2E8F0;
    padding: 28px 24px;
    margin-bottom: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.next-games h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1B4D3E;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.next-games h2 i {
    color: #F5A623;
    font-size: 1.3rem;
}

.next-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.next-game-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: #F8FAFC;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
    transition: all 0.2s;
}

.next-game-card:hover {
    border-color: rgba(245, 166, 35, 0.3);
    background: white;
}

.next-game-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.15), rgba(232, 135, 30, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.next-game-icon i {
    font-size: 1.5rem;
    color: #F5A623;
}

.next-game-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1B4D3E;
    margin-bottom: 6px;
}

.next-date {
    font-size: 0.8rem;
    color: #64748B;
    margin-bottom: 6px;
}

.countdown {
    font-size: 0.75rem;
    font-weight: 600;
    color: #F5A623;
    font-family: monospace;
    background: rgba(245, 166, 35, 0.1);
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
}

/* ==========================================================================
   6. FAQ ACCORDION COMPONENT
   ========================================================================== */
.faq-section {
    background: white;
    border-radius: 24px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
    margin-bottom: 20px;
}

.faq-header {
    text-align: center;
    padding: 28px 24px;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}

.faq-header i {
    font-size: 2rem;
    color: #F5A623;
    margin-bottom: 12px;
}

.faq-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1B4D3E;
    margin-bottom: 6px;
}

.faq-header p {
    color: #64748B;
    font-size: 0.85rem;
}

.faq-container {
    padding: 0;
}

.faq-item {
    border-bottom: 1px solid #E2E8F0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #F8FAFC;
}

.faq-question i:first-child {
    color: #F5A623;
    font-size: 0.85rem;
    transition: transform 0.2s;
    width: 20px;
}

.faq-item.active .faq-question i:first-child {
    transform: rotate(90deg);
}

.faq-question span {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1B4D3E;
    flex: 1;
}

.faq-answer {
    display: none;
    padding: 0 24px 24px 58px;
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ==========================================================================
   7. FEEDBACK & UTILITY ELEMENTS
   ========================================================================== */
.loader-centered-small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px;
    color: #64748B;
}

.loader-small {
    width: 24px;
    height: 24px;
    border: 2px solid #E2E8F0;
    border-top-color: #F5A623;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#customToast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 0.85rem;
    z-index: 10000;
    display: none;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   8. MOBILE NAVIGATION FOOTER
   ========================================================================== */
.mobile-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1A2A2A, #0F2B1F);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(245, 166, 35, 0.2);
    padding: 8px 16px;
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
}

.footer-nav-item, a.footer-nav-item {
    text-decoration: none;
    color: #94A3B8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 8px 0;
    border-radius: 12px;
    transition: all 0.2s;
    cursor: pointer;
    flex: 1;
}

.footer-nav-item.active, a.footer-nav-item.active {
    color: #F5A623;
}

/* ==========================================================================
   9. MEDIA QUERIES & RESPONSIVELAYOUT ADJUSTMENTS
   ========================================================================== */
@media (min-width: 769px) {
    .mobile-footer {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }
    
    .fixed-games-shell {
        padding: 0 16px;
    }
    
    .shell-header {
        padding: 24px 16px;
        margin-bottom: 24px;
        border-radius: 20px;
    }
    
    .shell-header h1 {
        font-size: 1.5rem;
    }
    
    .shell-header p {
        font-size: 0.85rem;
    }
    
    /* ----------------------------------------------------------------------
       INFO CARDS - UPDATED MOBILE LAYOUT: FORCED VERTICAL COLUMN ARRANGE
       ---------------------------------------------------------------------- */
    .info-cards {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 32px;
    }
    
    .info-card {
        display: flex !important;
        flex-direction: column !important; /* Stack items vertically from top to bottom */
        align-items: center !important;     /* Center align all inner elements */
        gap: 12px !important;
        text-align: center !important;       /* Recenter text presentation */
        padding: 24px 16px !important;
        border-radius: 20px !important;
    }
    
    /* Icon explicitly positioned on top centered */
    .info-card .card-icon {
        width: 56px !important;
        height: 56px !important;
        margin: 0 auto 4px !important;     /* Keep icon centered up top */
        flex-shrink: 0 !important;
        background: linear-gradient(135deg, rgba(245, 166, 35, 0.15), rgba(232, 135, 30, 0.1));
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .info-card .card-icon i {
        font-size: 1.5rem !important;
        color: #F5A623;
    }
    
    /* Content block wrapper now columns items down */
    .info-card-content {
        flex: unset;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;                /* Center items inside inner wrapper */
        gap: 8px;
    }
    
    .info-card h3 {
        font-size: 1.1rem !important;
        margin: 0 0 4px 0 !important;
        text-align: center !important;
        color: #1B4D3E;
    }
    
    .info-card .odds-range {
        font-size: 0.7rem !important;
        padding: 4px 14px !important;
        margin-bottom: 4px !important;
        display: inline-block;
        align-self: center;                 /* Lock pill to visual center axis */
    }
    
    .info-card .schedule,
    .info-card .games-count {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important; /* Center metrics lines text horizontally */
        gap: 8px !important;
        font-size: 0.75rem !important;
        margin: 0 !important;
        color: #64748B;
    }
    
    .info-card .schedule i,
    .info-card .games-count i {
        width: 16px !important;
        font-size: 0.75rem !important;
        color: #F5A623;
        margin: 0;
    }
    
    .info-card .schedule span,
    .info-card .games-count span {
        color: #64748B;
    }
    
    .info-card .btn-view {
        margin-top: 10px !important;
        padding: 8px 24px !important;       /* Give button a reliable premium tactile surface area */
        font-size: 0.75rem !important;
        gap: 8px !important;
        align-self: center;                 /* Re-center buttons at footer base of elements */
    }
    
    .info-card .btn-view i {
        font-size: 0.7rem !important;
    }
    
    /* ----------------------------------------------------------------------
       NEXT UPCOMING GAMES SECTION - MOBILE
       ---------------------------------------------------------------------- */
    .next-games {
        padding: 20px 16px;
        margin-bottom: 32px;
        border-radius: 20px;
    }
    
    .next-games h2 {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .next-games-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .next-game-card {
        padding: 14px;
        border-radius: 16px;
    }
    
    .next-game-icon {
        width: 45px;
        height: 45px;
    }
    
    .next-game-icon i {
        font-size: 1.2rem;
    }
    
    .next-game-info h4 {
        font-size: 0.9rem;
    }
    
    .next-date {
        font-size: 0.75rem;
    }
    
    .countdown {
        font-size: 0.7rem;
    }
    
    /* ----------------------------------------------------------------------
       FAQ SECTION - MOBILE
       ---------------------------------------------------------------------- */
    .faq-section {
        border-radius: 20px;
    }
    
    .faq-header {
        padding: 20px 16px;
    }
    
    .faq-header h2 {
        font-size: 1.1rem;
    }
    
    .faq-question {
        padding: 14px 16px;
        gap: 12px;
    }
    
    .faq-question span {
        font-size: 0.85rem;
    }
    
    .faq-answer {
        padding: 0 16px 16px 48px;
        font-size: 0.8rem;
    }
    
    .loader-centered-small {
        padding: 32px;
    }
    
    .mobile-footer {
        display: flex;
    }
}

/* ==========================================================================
   10. ULTRA-SMALL SCREEN VIEWPING OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 480px) {
    .shell-header h1 {
        font-size: 1.3rem;
    }
    
    .info-card {
        padding: 20px 12px !important;
    }

    .info-card .card-icon {
        width: 46px !important;
        height: 46px !important;
    }
    
    .info-card .card-icon i {
        font-size: 1.2rem !important;
    }
    
    .info-card h3 {
        font-size: 0.95rem !important;
    }
    
    .info-card .odds-range {
        font-size: 0.65rem !important;
        padding: 3px 10px !important;
    }
    
    .info-card .schedule,
    .info-card .games-count {
        font-size: 0.7rem !important;
    }
    
    .info-card .schedule i,
    .info-card .games-count i {
        font-size: 0.7rem !important;
        width: 14px !important;
    }
    
    .info-card .btn-view {
        padding: 6px 18px !important;
        font-size: 0.7rem !important;
    }
    
    .next-game-icon {
        width: 38px;
        height: 38px;
    }
    
    .next-game-icon i {
        font-size: 1rem;
    }
    
    .next-game-info h4 {
        font-size: 0.85rem;
    }
    
    .next-date {
        font-size: 0.7rem;
    }
    
    .countdown {
        font-size: 0.65rem;
    }
}