/* ============================================================
   HEADER CSS — VayuHan Sports v2.0
   Premium sticky header: transparent → solid on scroll
   ============================================================ */

/* ── Announcement Bar ──────────────────────────────────────── */
.sz-announce-bar {
    background: var(--sz-primary);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    overflow: hidden;
    position: relative;
    z-index: 1000;
}
.sz-announce-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 9px 20px;
    min-height: 38px;
}
.sz-announce-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    padding: 3px 8px;
    flex-shrink: 0;
}
.sz-announce-track { flex: 1; overflow: hidden; text-align: center; }
.sz-announce-slide { display: none; }
.sz-announce-slide.active { display: block; }
.sz-announce-link { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.sz-announce-arrow { margin-left: 4px; }
.sz-announce-dots {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}
.sz-announce-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.sz-announce-dot.active { background: #fff; }
.sz-announce-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 0 0 8px;
    flex-shrink: 0;
}
.sz-announce-close:hover { color: #fff; }

/* ── Main Header ───────────────────────────────────────────── */
.sz-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    transition: background var(--sz-duration) var(--sz-ease),
                box-shadow var(--sz-duration) var(--sz-ease),
                top 0.3s ease;
}
.sz-header-dark {
    background: transparent;
}
.sz-header-dark.is-scrolled {
    background: var(--sz-dark-header-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 8px 32px rgba(0,0,0,0.4);
}

/* Shift header when announce bar is present */
body.has-announce-bar .sz-header {
    top: 38px;
}

.sz-header .sz-container { max-width: var(--sz-inner); }

.sz-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--sz-header-h);
}

/* ── Logo ──────────────────────────────────────────────────── */
.sz-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.sz-logo img {
    height: 40px;
    width: auto;
    display: block;
}
.sz-logo-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.sz-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--sz-primary);
    border-radius: 8px;
    flex-shrink: 0;
}
.sz-logo-icon svg {
    display: block;
}
.sz-logo-name {
    font-family: var(--sz-font-head);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1;
}

/* ── Primary Navigation ────────────────────────────────────── */
.sz-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}
.sz-nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.sz-nav-menu .menu-item > a {
    display: inline-block;
    font-family: var(--sz-font-body);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 14px;
    border-radius: 8px;
    transition: color 0.22s ease, background 0.22s ease;
    position: relative;
}
.sz-nav-menu .menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--sz-primary);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.25s var(--sz-ease);
    transform-origin: left;
}
.sz-nav-menu .menu-item > a:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.06);
}
.sz-nav-menu .menu-item > a:hover::after,
.sz-nav-menu .menu-item.current-menu-item > a::after {
    transform: scaleX(1);
}
.sz-nav-menu .menu-item.current-menu-item > a {
    color: #ffffff;
}

/* ── Header Actions ────────────────────────────────────────── */
.sz-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Icon buttons (search, cart, account) */
.sz-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--sz-dark-border);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.22s ease;
    position: relative;
}
.sz-icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}

/* Cart count bubble */
.sz-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    background: var(--sz-primary);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--sz-dark-bg);
    line-height: 1;
    display: none;
}
.sz-cart-count[data-count] { display: flex; }

/* Login button */
.sz-header-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--sz-font-body);
    font-size: 0.83rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid var(--sz-dark-border);
    background: rgba(255,255,255,0.04);
    transition: all 0.22s ease;
    white-space: nowrap;
}
.sz-header-login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}
.sz-header-login-btn--logged {
    color: var(--sz-gold);
}

/* Book Now CTA */
.sz-header-book-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--sz-font-head);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    background: var(--sz-primary);
    padding: 10px 22px;
    border-radius: 10px;
    white-space: nowrap;
    transition: all 0.25s var(--sz-ease);
}
.sz-header-book-btn:hover {
    background: var(--sz-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 77, 0, 0.4);
}

/* Location selector */
.sz-location-wrap { position: relative; }
.sz-location-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--sz-font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--sz-dark-border);
    border-radius: 10px;
    padding: 8px 14px;
    cursor: pointer;
    transition: all 0.22s ease;
    white-space: nowrap;
}
.sz-location-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.sz-location-caret {
    transition: transform 0.2s ease;
}
.sz-location-btn[aria-expanded="true"] .sz-location-caret {
    transform: rotate(180deg);
}
.sz-location-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 340px;
    background: var(--sz-dark-card);
    border: 1px solid var(--sz-dark-border);
    border-radius: var(--sz-radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    padding: 12px;
    z-index: 200;
}
.sz-location-panel[hidden] { display: none; }
.sz-loc-detect-box { margin-bottom: 10px; }
.sz-loc-detect-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: rgba(255, 77, 0, 0.1);
    border: 1px solid rgba(255, 77, 0, 0.2);
    color: var(--sz-primary);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.sz-loc-detect-btn:hover { background: rgba(255, 77, 0, 0.18); }
.sz-loc-detect-status {
    font-size: 0.72rem;
    color: var(--sz-dark-muted);
    margin-top: 5px;
    display: block;
    padding-left: 4px;
}
.sz-loc-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--sz-dark-muted);
    text-transform: uppercase;
}
.sz-loc-divider::before,
.sz-loc-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--sz-dark-border);
}
.sz-loc-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.sz-loc-city-tab {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--sz-dark-border);
    color: var(--sz-dark-text2);
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.sz-loc-city-tab.active,
.sz-loc-city-tab:hover {
    background: var(--sz-primary-light);
    border-color: rgba(255, 77, 0, 0.35);
    color: var(--sz-primary);
}
.sz-loc-city-panel { display: none; }
.sz-loc-city-panel.active { display: block; }
.sz-loc-academy-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--sz-dark-border);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 6px;
    transition: all 0.2s;
}
.sz-loc-academy-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.15);
}
.sz-loc-ac-header { display: flex; align-items: flex-start; gap: 8px; }
.sz-loc-ac-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.sz-loc-ac-name { font-size: 0.85rem; font-weight: 700; color: var(--sz-dark-text); display: block; }
.sz-loc-ac-addr { font-size: 0.75rem; color: var(--sz-dark-muted); display: block; }
.sz-loc-ac-sports { display: flex; flex-wrap: wrap; gap: 4px; }
.sz-loc-ac-tag {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    background: var(--sz-primary-light);
    color: var(--sz-primary);
    border-radius: 4px;
}
.sz-loc-ac-cta { font-size: 0.75rem; font-weight: 700; color: var(--sz-primary); }

/* Search bar toggle */
.sz-search-bar {
    padding: 12px 0;
    border-top: 1px solid var(--sz-dark-border);
}
.sz-search-bar[hidden] { display: none; }
.sz-search-bar .search-field {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--sz-dark-border);
    border-radius: 10px;
    color: #fff;
    padding: 10px 16px;
    font-size: 0.9rem;
    outline: none;
}
.sz-search-bar .search-field:focus {
    border-color: var(--sz-primary);
}
.sz-search-bar .search-field::placeholder { color: var(--sz-dark-muted); }
.sz-search-bar .search-submit {
    display: none;
}

/* Header spacer */
.sz-header-spacer {
    height: calc(var(--sz-header-h) + 38px);
}
body:not(.has-announce-bar) .sz-header-spacer {
    height: var(--sz-header-h);
}

/* ── Hamburger ─────────────────────────────────────────────── */
.sz-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--sz-dark-border);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}
.sz-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(255,255,255,0.85);
    border-radius: 2px;
    transition: all 0.3s var(--sz-ease);
    transform-origin: center;
}
.sz-hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.sz-hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.sz-hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.sz-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 990;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sz-nav-overlay.active {
    opacity: 1;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .sz-nav-menu { gap: 2px; }
    .sz-nav-menu .menu-item > a { padding: 8px 10px; font-size: 0.8rem; }
    .sz-location-wrap { display: none; }
}

@media (max-width: 900px) {
    .sz-hamburger { display: flex; }
    .sz-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: min(320px, 85vw);
        height: 100dvh;
        background: var(--sz-dark-surface);
        border-right: 1px solid var(--sz-dark-border);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 100px 24px 40px;
        z-index: 995;
        transition: left 0.35s var(--sz-ease);
        overflow-y: auto;
    }
    .sz-nav.is-open { left: 0; }
    .sz-nav-overlay { display: block; pointer-events: none; }
    .sz-nav-overlay.active { pointer-events: auto; }
    .sz-nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .sz-nav-menu .menu-item > a {
        display: block;
        font-size: 1rem;
        font-weight: 700;
        padding: 13px 16px;
        border-radius: 10px;
        color: rgba(255,255,255,0.85);
        border-bottom: none;
    }
    .sz-nav-menu .menu-item > a::after { display: none; }
    .sz-nav-menu .menu-item > a:hover {
        background: rgba(255,255,255,0.07);
        color: #fff;
    }
    .sz-header-login-btn { display: none; }
    .sz-location-wrap { display: none; }
}

@media (max-width: 600px) {
    .sz-header-inner { gap: 12px; }
    .sz-logo-name { font-size: 1rem; }
    .sz-header-book-btn {
        padding: 9px 14px;
        font-size: 0.78rem;
    }
    .sz-icon-btn { width: 34px; height: 34px; }
}
