/* ============================================
   SHARED HEADER — Girl Champion Awards
   Premium, Modern, and Responsive Design
   ============================================ */

:root {
    --gca-primary:   #dca747;
    --gca-primary-rgb: 220, 167, 71;
    --gca-primary-dark: #b4833f;
    --gca-secondary: #110a05;
    --gca-secondary-rgb: 17, 10, 5;
    --gca-white:     #fdfbf1;
    --gca-accent:    #dfc783;
    --header-height: 90px;
    --header-height-scrolled: 75px;
    --gca-transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    --gca-glass: rgba(17, 10, 5, 0.8);
    --gca-glass-scrolled: rgba(17, 10, 5, 0.95);
}

/* ── Prevent horizontal shift / page shake globally ── */
html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    padding-top: var(--header-height);
}

/* ── Header wrapper with Glassmorphism ── */
header {
    background: var(--gca-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(var(--gca-primary-rgb), 0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    width: 100%;
    height: var(--header-height);
    transition: var(--gca-transition);
    display: flex;
    align-items: center;
}

header.scrolled {
    height: var(--header-height-scrolled);
    background: var(--gca-glass-scrolled);
    border-bottom: 1px solid rgba(var(--gca-primary-rgb), 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* ── Navbar layout ── */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ── Logo container ── */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--gca-transition);
}

.logo img {
    height: 60px;
    width: auto;
    transition: var(--gca-transition);
    filter: drop-shadow(0 0 10px rgba(var(--gca-primary-rgb), 0.1));
}

header.scrolled .logo img {
    height: 52px;
}

/* ── Nav links ── */
.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--gca-transition);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gca-primary);
    transition: var(--gca-transition);
    box-shadow: 0 0 10px rgba(var(--gca-primary-rgb), 0.5);
}

.nav-links a:hover {
    color: var(--gca-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--gca-primary);
    font-weight: 600;
}

.nav-links a.active::after {
    width: 100%;
}

/* ── CTA Button ── */
.cta-button-header {
    background: linear-gradient(135deg, var(--gca-primary), var(--gca-primary-dark));
    color: var(--gca-secondary) !important;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--gca-transition);
    box-shadow: 0 8px 20px rgba(var(--gca-primary-rgb), 0.2);
    text-decoration: none;
    white-space: nowrap;
}

.cta-button-header:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(var(--gca-primary-rgb), 0.4);
    filter: brightness(1.1);
}

/* ── Mobile hamburger ── */
.mobile-menu-btn {
    display: none;
    background: rgba(var(--gca-primary-rgb), 0.1);
    border: 1px solid rgba(var(--gca-primary-rgb), 0.3);
    width: 45px;
    height: 45px;
    border-radius: 10px;
    font-size: 20px;
    color: var(--gca-primary);
    cursor: pointer;
    z-index: 10001;
    transition: var(--gca-transition);
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    background: rgba(var(--gca-primary-rgb), 0.2);
    border-color: var(--gca-primary);
    transform: scale(1.05);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
    .navbar {
        padding: 0 30px;
    }
    .nav-links {
        gap: 20px;
    }
    .nav-links a {
        letter-spacing: 1px;
        font-size: 0.85rem;
    }
}

@media (max-width: 991px) {
    body {
        padding-top: 80px;
    }

    header {
        height: 80px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background: rgba(17, 10, 5, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        transition: 0.6s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 10000;
        box-shadow: -15px 0 50px rgba(0, 0, 0, 0.6);
        border-left: 1px solid rgba(var(--gca-primary-rgb), 0.2);
        padding: 60px 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.4rem;
        letter-spacing: 3px;
        width: 100%;
        text-align: center;
        padding: 20px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        opacity: 0;
        transform: translateX(50px);
        transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateX(0);
    }

    /* Staggered delay for links */
    .nav-links.active a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active a:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active a:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active a:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active a:nth-child(5) { transition-delay: 0.3s; }
    .nav-links.active a:nth-child(6) { transition-delay: 0.35s; }
    .nav-links.active a:nth-child(7) { transition-delay: 0.4s; }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(4px);
        z-index: 9998;
        opacity: 0;
        pointer-events: none;
        transition: 0.4s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .cta-button-header {
        display: none; /* Hidden on desktop-style nav for mobile */
    }
    
    .nav-links .mobile-cta {
        display: block;
        margin-top: 20px;
    }
}

@media (min-width: 992px) {
    .nav-links .mobile-cta {
        display: none;
    }
}

