/* ============================================
   RESPONSIVE — Complements style.css
   Loads AFTER style.css so these override.
   ============================================ */

/* ============================================
   HEADER BASE STYLES (all screens)
   ============================================ */
.site-header {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}
.site-logo {
    font-size: 24px;
    font-weight: bold;
}
.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}
.header-social {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-right: 8px;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1010;
    flex-shrink: 0;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s;
}
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}
.site-nav {
    flex: 1;
    margin-left: 40px;
}

/* ---------- Tablet landscape (≤1200px) ---------- */
@media (max-width: 1200px) {
    .cards-grid        { grid-template-columns: repeat(2, 1fr); }
    .teams-grid        { grid-template-columns: repeat(3, 1fr); }
    .videos-grid       { grid-template-columns: repeat(3, 1fr); }
    .tournaments-grid  { grid-template-columns: 1fr; }
    .sponsors-grid     { grid-template-columns: repeat(5, 1fr); }
    .footer-content    { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Tablet portrait (≤768px) ---------- */
@media (max-width: 768px) {
    /* Header */
    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 20px;
        gap: 10px;
    }

    /* Show hamburger */
    .menu-toggle {
        display: block;
    }

    /* Nav goes full width below logo */
    .site-nav {
        order: 3;
        width: 100%;
        margin-left: 0;
        flex: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }
    .site-nav.active {
        max-height: 600px;
    }

    /* Menu items stack vertically */
    .primary-menu {
        flex-direction: column;
        gap: 0;
    }
    .primary-menu li {
        display: block !important;
        width: 100%;
    }
    .primary-menu a {
        display: block;
        padding: 12px 15px !important;
        font-size: 15px !important;
        border-bottom: 1px solid #eee;
        border-radius: 0;
    }

    /* Social icons + live button */
    .header-actions {
        order: 4;
        width: 100%;
        display: none;
        justify-content: center;
        padding-top: 10px;
        border-top: 1px solid #eee;
    }
    .header-actions.active {
        display: flex;
    }
    .header-social {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* What's On cards */
    .cards-grid { grid-template-columns: 1fr; }

    /* Stats */
    .stats-container { grid-template-columns: repeat(2, 1fr); }

    /* News */
    .news-featured {
        grid-template-columns: 1fr;
        height: auto;
    }
    .news-featured-img { height: 240px; }
    .news-featured-content { padding: 24px; }
    .news-featured-content h3 { font-size: 20px; }
    .news-side { grid-template-columns: 1fr; }
    .news-side-card { flex-direction: row; }
    .news-side-img { width: 100px; height: 90px; }
    .news-side-content h4 { font-size: 14px; }

    /* Fixtures */
    .match-card {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    .match-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Teams: 2 columns */
    .teams-grid { grid-template-columns: repeat(2, 1fr); }

    /* Videos: 2 columns */
    .videos-grid { grid-template-columns: repeat(2, 1fr); }
    .videos-grid .video-card:nth-child(1) {
        grid-column: span 1;
        grid-row: span 1;
    }

    /* Sponsors */
    .sponsors-grid { grid-template-columns: repeat(3, 1fr); }
    .sponsor-card { min-height: 150px; padding: 16px 10px; }
    .sponsor-card img { max-width: 140px !important; max-height: 70px !important; }

    /* Footer */
    .footer-content { grid-template-columns: 1fr; }
}

/* ---------- Small mobile (≤480px) ---------- */
@media (max-width: 480px) {
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
    h3 { font-size: 18px; }

    /* Header */
    .site-logo { margin-left: 0; }
    .site-logo img { max-height: 50px !important; }

    /* Ticker hidden */
    .live-ticker { display: none; }

    /* Hero slider */
    .bcf-hero-slider { height: 260px; }
    .bcf-hero-content { bottom: 50px; max-width: 300px; }
    .bcf-hero-content h1 { font-size: 22px; }
    .bcf-hero-content p { font-size: 12px; }
    .bcf-hero-badge { font-size: 9px; padding: 6px 10px; }
    .bcf-hero-btn { padding: 10px 20px; font-size: 12px; }
    .bcf-hero-arrow { width: 34px; height: 34px; font-size: 14px; }
    .bcf-hero-dots { bottom: 16px; }
    .bcf-hero-dot { width: 8px; height: 8px; }

    /* Stats: single column */
    .stats-container { grid-template-columns: 1fr; }

    /* News */
    .news-featured-img { height: 200px; }
    .news-featured-content { padding: 16px; }
    .news-featured-content h3 { font-size: 18px; }
    .news-side-img { width: 80px; height: 70px; }

    /* Teams: single column */
    .teams-grid { grid-template-columns: 1fr; }

    /* Videos: single column */
    .videos-grid { grid-template-columns: 1fr; }

    /* Tournaments: single column */
    .tournaments-grid { grid-template-columns: 1fr; }

    /* Sponsors: 2 columns */
    .sponsors-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .sponsor-card { min-height: 120px; padding: 12px 8px; }
    .sponsor-card img { max-width: 110px !important; max-height: 55px !important; }

    /* Footer */
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
