/* ==========================================================================
   RADCLIFFE TOWN SC - PHASE 1: SUPER DELUXE TOP STRIP
   ========================================================================== */

/* 1. MASTER HEADER CONTAINER */
.site-header {
    width: 100%;
    background: #0b1522; /* Midnight Navy */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow-x: clip; /* Ensures no bleed on mobile */
}

/* 2. TOP BAR & GLASS EFFECT */
.header-top {
    background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(11, 21, 34, 0.7) 100%);
    height: 44px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
}

.top-flex {
    display: flex;
    align-items: center;
    height: 100%;
}

/* 3. DELUXE SOCIALS - BRANDED GLOWS */
.header-socials {
    display: flex;
    gap: 12px;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.header-socials a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none !important;
    font-size: 0.9rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Brand Specific Hover States */
.header-socials a:hover { color: #fff; transform: translateY(-4px) scale(1.15); }

/* Email/Mail Red */
.header-socials a i.fa-envelope:hover { color: #d44638; filter: drop-shadow(0 0 8px #d44638); }
/* Facebook Blue */
.header-socials a i.fa-facebook-f:hover { color: #1877F2; filter: drop-shadow(0 0 8px #1877F2); }
/* Instagram Gradient */
.header-socials a i.fa-instagram:hover { color: #fd5949; filter: drop-shadow(0 0 8px #fd5949); }
/* X-Twitter White/Black */
.header-socials a i.fa-x-twitter:hover { color: #fff; filter: drop-shadow(0 0 8px #fff); }
/* TikTok Neon */
.header-socials a i.fa-tiktok:hover { color: #00f2ea; filter: drop-shadow(0 0 8px #ff0050); }

/* 4. "LIVE STADIUM" TICKER */
.ticker-wrap {
    flex: 1;
    overflow: hidden;
    padding-left: 25px;
    position: relative;
    white-space: nowrap;
}

/* Edge Fade Vignette */
.ticker-wrap::before, 
.ticker-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}
.ticker-wrap::before { left: 0; background: linear-gradient(to right, #0b1522, transparent); }
.ticker-wrap::after { right: 0; background: linear-gradient(to left, #0b1522, transparent); }

.ticker-scroll {
    display: inline-block;
    animation: tickerLoop 50s linear infinite; /* Smoother, slower speed */
}

.ticker-item {
    display: inline-block;
    padding-right: 70px; /* Large gap between items */
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* Neon VS Badge */
.vs-red {
    color: #e63946;
    font-weight: 900;
    padding: 0 10px;
    text-shadow: 0 0 12px rgba(230, 57, 70, 0.9), 0 0 20px rgba(230, 57, 70, 0.4);
    animation: neonPulse 2s infinite ease-in-out;
}

@keyframes neonPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Match Date Pill */
.ticker-item small {
    background: rgba(230, 57, 70, 0.12);
    color: #e63946;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    margin-left: 12px;
    border: 1px solid rgba(230, 57, 70, 0.3);
    vertical-align: middle;
}

@keyframes tickerLoop {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Pause on hover */
.ticker-wrap:hover .ticker-scroll {
    animation-play-state: paused;
}

/* Specific Ticker Speed for Mobile */
@media (max-width: 1100px) {
    .ticker-scroll {
        /* Increase from 55s to 80s for a very slow, readable mobile crawl */
        animation-duration: 80s; 
    }
}

/* ==========================================================================
   PHASE 2: MAIN NAVIGATION & LOGO
   ========================================================================== */

.header-main {
    background: #0b1522;
    height: 85px;
    display: flex;
    align-items: center;
}

.main-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* 1. Logo Styling */
.logo img {
    height: 65px; /* Professional size */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo a:hover img {
    transform: scale(1.05);
}

/* 2. Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 15px;
    position: relative;
    transition: color 0.3s ease;
}

/* Deluxe Underline Animation */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 15px;
    right: 15px;
    height: 2px;
    background: #e63946;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    box-shadow: 0 0 8px #e63946;
}

.nav-menu a:hover::after, 
.nav-menu a.active::after {
    transform: scaleX(1);
}

.nav-menu a:hover {
    color: #e63946;
}

/* 3. Dropdown Logic */
.dropdown {
    position: relative;
    display: inline-block;
}

.drop-btn {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    margin-left: 10px;
    transition: 0.3s;
}

.drop-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #e63946;
}

.drop-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #0b1522;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    padding: 10px 0;
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown:hover .drop-content {
    display: block;
}

.drop-content a {
    display: block;
    width: 100%;
    border: none;
    padding: 12px 20px;
}

.drop-content a::after { display: none; } /* No underline in dropdown */

/* 4. Login Pill */
.login-pill {
    background: linear-gradient(45deg, #e63946 0%, #ff5f6d 100%) !important;
    color: white !important;
    padding: 8px 22px !important;
    border-radius: 50px !important;
    margin-left: 20px;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

/* 5. Mobile Toggle */
.menu-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* ==========================================================================
   PHASE 3: MOBILE HAMBURGER & ACCORDION SYSTEM
   ========================================================================== */

@media (max-width: 1100px) {
    /* 1. Burger Toggle Visibility */
    .menu-toggle {
        display: block !important;
        z-index: 1100;
        position: relative;
    }

    /* 2. Slide-out Sidebar Logic */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen */
        width: 280px;
        height: 100vh;
        background: #0b1522; /* Midnight Navy */
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 80px 25px;
        transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        z-index: 1000;
        overflow-y: auto !important; /* Fix: Allows scrolling through all 16+ links */
        display: flex !important;
    }

    .nav-menu.open {
        right: 0 !important; /* Slide in */
    }

    .nav-menu a {
        width: 100%;
        margin: 0;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 1.1rem;
        display: block;
    }

    /* 3. Mobile Accordion Fix */
    .dropdown {
        width: 100%;
    }

    .drop-btn {
        width: 100%;
        margin: 10px 0;
        padding: 15px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: transparent;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: white;
        font-size: 1.1rem;
        cursor: pointer;
    }

    /* Hide secondary links by default on mobile */
    .drop-content {
        display: none !important; 
        position: static !important; /* Stack vertically */
        width: 100%;
        background: rgba(255, 255, 255, 0.03);
        padding: 0 15px;
        box-shadow: none;
        border: none;
    }

    /* Show when "More" is tapped */
    .dropdown.active .drop-content {
        display: block !important;
        animation: slideDownFade 0.3s ease-out;
    }

    /* 4. Login Pill Mobile Adjustment */
    .login-pill {
        width: 100%;
        margin: 20px 0 0 0 !important;
        text-align: center;
        display: block;
    }

    @keyframes slideDownFade {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}