/* =============================================
   AYW CUSTOM HEADER — CSS v2.0
   All classes use .ayw-site-header__ prefix
   Mobile sidebar uses .ayw-nav-sidebar prefix
   ============================================= */

:root {
    --ayw-hdr-bg:          #0a0a10;
    --ayw-hdr-bg-scroll:   rgba(8, 8, 14, 0.98);
    --ayw-hdr-accent:      #d42020;
    --ayw-hdr-accent-dark: #a81818;
    --ayw-hdr-text:        #f0f0f8;
    --ayw-hdr-text-muted:  #8888a0;
    --ayw-hdr-border:      rgba(255, 255, 255, 0.07);
    --ayw-hdr-height:      70px;
    --ayw-hdr-sidebar-w:   320px;
    --ayw-hdr-z:           99999;
    --ayw-hdr-z-sidebar:   100000;
}

/* ── Reset ───────────────────────────────────── */
.ayw-site-header__menu,
.ayw-nav-sidebar__menu,
.ayw-site-header__menu li,
.ayw-nav-sidebar__menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ═══════════════════════════════════════════════
   HEADER BAR
   ═══════════════════════════════════════════════ */
.ayw-site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--ayw-hdr-height);
    z-index: var(--ayw-hdr-z);
    background: var(--ayw-hdr-bg);
    border-bottom: 2px solid var(--ayw-hdr-accent);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.ayw-site-header.scrolled {
    background: var(--ayw-hdr-bg-scroll);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.ayw-site-header__inner {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 0;
}

/* ── Logo ──────────────────────────────────── */
.ayw-site-header__logo {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    flex-shrink: 0;
    margin-right: 28px;
    transition: opacity 0.2s;
}
.ayw-site-header__logo:hover { opacity: 0.82; }

.ayw-site-header__logo-img {
    height: 42px;
    width: auto;
    display: block;
}

/* Text logo — one element, guaranteed same size */
.ayw-site-header__logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ffffff;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
}
.ayw-logo-red {
    color: var(--ayw-hdr-accent);
}
/* Remove old per-word rules */
.ayw-logo-all,
.ayw-logo-wr { all: unset; }

/* ── Desktop nav ─────────────────────────── */
.ayw-site-header__nav {
    flex: 1;
    display: flex;
    align-items: center;
}

.ayw-site-header__menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.ayw-site-header__menu > li {
    position: relative;
}

.ayw-site-header__menu > li > a {
    display: flex;
    align-items: center;
    padding: 0 14px;
    height: var(--ayw-hdr-height);
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none !important;
    color: var(--ayw-hdr-text-muted) !important;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
    position: relative;
}

/* Crisp red hover — white text, solid red left border accent */
.ayw-site-header__menu > li:hover > a,
.ayw-site-header__menu > li.current-menu-item > a,
.ayw-site-header__menu > li.current-menu-ancestor > a {
    color: var(--ayw-hdr-text) !important;
    background: rgba(212, 32, 32, 0.12);
    box-shadow: inset 0 -2px 0 var(--ayw-hdr-accent);
}
/* ── Dropdown ────────────────────────────── */
.ayw-site-header__menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: #0e0e18;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 2px solid var(--ayw-hdr-accent);
    border-radius: 0 0 4px 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 10;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}

.ayw-site-header__menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ayw-site-header__menu .sub-menu li a {
    display: block;
    padding: 10px 18px;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none !important;
    color: var(--ayw-hdr-text-muted) !important;
    transition: color 0.18s ease, background 0.18s ease, padding-left 0.18s ease;
}

.ayw-site-header__menu .sub-menu li a:hover {
    color: var(--ayw-hdr-text) !important;
    background: rgba(212, 32, 32, 0.1);
    padding-left: 24px;
}

/* ── Right actions ───────────────────────── */
.ayw-site-header__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    flex-shrink: 0;
}

.ayw-site-header__search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ayw-hdr-text-muted);
    border-radius: 4px;
    transition: color 0.18s, background 0.18s;
    padding: 0;
}
.ayw-site-header__search-btn:hover {
    color: var(--ayw-hdr-text);
    background: rgba(255, 255, 255, 0.06);
}

/* ── Search bar (slides down) ────────────── */
.ayw-site-header__search-bar {
    height: 0;
    overflow: hidden;
    background: #0c0c16;
    border-bottom: 1px solid rgba(212, 32, 32, 0.3);
    transition: height 0.28s ease;
}
.ayw-site-header__search-bar.open {
    height: 56px;
}
.ayw-search-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
}
.ayw-search-bar-inner form {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}
.ayw-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    letter-spacing: 0.06em;
    color: var(--ayw-hdr-text);
    caret-color: var(--ayw-hdr-accent);
}
.ayw-search-input::placeholder { color: var(--ayw-hdr-text-muted); }
.ayw-search-submit,
.ayw-search-dismiss {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--ayw-hdr-text-muted);
    display: flex;
    align-items: center;
    transition: color 0.18s;
    flex-shrink: 0;
}
.ayw-search-submit:hover,
.ayw-search-dismiss:hover { color: var(--ayw-hdr-text); }

/* ── Hamburger ───────────────────────────── */
.ayw-site-header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s, background 0.2s;
}
.ayw-site-header__hamburger:hover {
    border-color: var(--ayw-hdr-accent);
    background: rgba(212, 32, 32, 0.08);
}
.ayw-site-header__hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ayw-hdr-text);
    border-radius: 2px;
    transition: transform 0.28s ease, opacity 0.28s ease;
}
.ayw-site-header__hamburger.open .ayw-site-header__hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.ayw-site-header__hamburger.open .ayw-site-header__hamburger-line:nth-child(2) {
    opacity: 0;
}
.ayw-site-header__hamburger.open .ayw-site-header__hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════
   MOBILE SIDEBAR OVERLAY
   ═══════════════════════════════════════════════ */
.ayw-nav-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: calc(var(--ayw-hdr-z-sidebar) - 1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.ayw-nav-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ═══════════════════════════════════════════════
   MOBILE SIDEBAR PANEL
   ═══════════════════════════════════════════════ */
.ayw-nav-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--ayw-hdr-sidebar-w);
    max-width: 88vw;
    height: 100vh;
    height: 100dvh;
    background: #0a0a12;
    z-index: var(--ayw-hdr-z-sidebar);
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-left: 1px solid rgba(212, 32, 32, 0.2);
    display: flex;
    flex-direction: column;
    /* Subtle red glow at top right */
    background-image:
        radial-gradient(ellipse at 100% 0%, rgba(212, 32, 32, 0.1) 0%, transparent 50%);
}
/* Red top accent bar */
.ayw-nav-sidebar::before {
    content: '';
    display: block;
    height: 3px;
    background: var(--ayw-hdr-accent);
    flex-shrink: 0;
}

.ayw-nav-sidebar.open {
    transform: translateX(0);
}

/* ── Sidebar top row ─────────────────────── */
.ayw-nav-sidebar__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.ayw-nav-sidebar__logo-link {
    text-decoration: none !important;
    display: flex;
    align-items: center;
}
.ayw-nav-sidebar__logo-img {
    height: 34px;
    width: auto;
}
.ayw-nav-sidebar__logo-text {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    line-height: 1;
}
/* reuse logo classes from header — Oswald throughout */

.ayw-nav-sidebar__close {
    background: none;
    border: none;
    color: var(--ayw-hdr-text-muted);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.18s, background 0.18s;
    padding: 0;
    flex-shrink: 0;
}
.ayw-nav-sidebar__close:hover {
    color: var(--ayw-hdr-text);
    background: rgba(255, 255, 255, 0.07);
}

/* ── Sidebar nav menu ────────────────────── */
.ayw-nav-sidebar__nav {
    flex: 1;
}

.ayw-nav-sidebar__menu {
    padding: 8px 0;
}

.ayw-nav-sidebar__menu > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.ayw-nav-sidebar__menu > li:last-child {
    border-bottom: none;
}

.ayw-nav-sidebar__menu > li > a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none !important;
    color: var(--ayw-hdr-text) !important;
    transition: color 0.18s ease, padding-left 0.18s ease, background 0.18s ease;
    line-height: 1;
}

.ayw-nav-sidebar__menu > li > a:hover,
.ayw-nav-sidebar__menu > li.current-menu-item > a {
    color: var(--ayw-hdr-accent) !important;
    padding-left: 26px;
    background: rgba(212, 32, 32, 0.04);
}

/* Sub-menu in sidebar */
.ayw-nav-sidebar__menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 2px 0 8px 0;
    background: rgba(0, 0, 0, 0.25);
}
.ayw-nav-sidebar__menu .sub-menu li a {
    display: block;
    padding: 10px 20px 10px 32px;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none !important;
    color: var(--ayw-hdr-text-muted) !important;
    transition: color 0.18s ease, padding-left 0.18s ease;
    position: relative;
}
.ayw-nav-sidebar__menu .sub-menu li a::before {
    content: '—';
    position: absolute;
    left: 20px;
    color: var(--ayw-hdr-accent);
    font-size: 9px;
    top: 50%;
    transform: translateY(-50%);
}
.ayw-nav-sidebar__menu .sub-menu li a:hover {
    color: var(--ayw-hdr-text) !important;
    padding-left: 38px;
}

/* ── Sidebar search ──────────────────────── */
.ayw-nav-sidebar__search {
    padding: 14px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}
.ayw-nav-sidebar__search form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.ayw-nav-sidebar__search form:focus-within {
    border-color: rgba(212, 32, 32, 0.5);
}
.ayw-sidebar-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    padding: 11px 13px;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--ayw-hdr-text);
    caret-color: var(--ayw-hdr-accent);
    min-width: 0;
}
.ayw-sidebar-search-input::placeholder { color: var(--ayw-hdr-text-muted); }
.ayw-sidebar-search-btn {
    background: none;
    border: none;
    padding: 0 13px;
    color: var(--ayw-hdr-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 42px;
    transition: color 0.18s;
    flex-shrink: 0;
}
.ayw-sidebar-search-btn:hover { color: var(--ayw-hdr-accent); }

/* ── Promotion pills ─────────────────────── */
.ayw-nav-sidebar__promos {
    padding: 14px 18px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}
.ayw-sidebar-promos-label {
    font-family: 'Oswald', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ayw-hdr-text-muted);
    display: block;
    margin-bottom: 10px;
}
.ayw-sidebar-promo-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.ayw-promo-pill {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none !important;
    padding: 5px 12px;
    border-radius: 3px;
    border: 1px solid transparent;
    transition: opacity 0.18s, transform 0.18s;
}
.ayw-promo-pill:hover { opacity: 0.8; transform: translateY(-1px); }
.ayw-promo-wwe  { background: rgba(212,32,32,0.15);  color: #e06060 !important; border-color: rgba(212,32,32,0.25); }
.ayw-promo-aew  { background: rgba(26,111,212,0.15); color: #6096e0 !important; border-color: rgba(26,111,212,0.25); }
.ayw-promo-tna  { background: rgba(0,163,224,0.15);  color: #50c0e8 !important; border-color: rgba(0,163,224,0.25); }
.ayw-promo-njpw { background: rgba(232,212,58,0.12); color: #c8b840 !important; border-color: rgba(232,212,58,0.22); }
.ayw-promo-roh  { background: rgba(46,204,113,0.12); color: #50c870 !important; border-color: rgba(46,204,113,0.22); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 960px) {
    .ayw-site-header__nav {
        display: none;
    }
    .ayw-site-header__search-btn {
        display: none; /* search lives inside sidebar on mobile */
    }
    .ayw-site-header__hamburger {
        display: flex;
    }
    .ayw-site-header__inner {
        justify-content: space-between;
    }
    .ayw-site-header__logo {
        margin-right: 0;
    }
}

@media (min-width: 961px) {
    .ayw-nav-sidebar,
    .ayw-nav-sidebar-overlay {
        display: none !important;
    }
}

/* Mid-range: tighter nav spacing */
@media (max-width: 1150px) and (min-width: 961px) {
    .ayw-site-header__menu > li > a {
        padding: 0 10px;
        font-size: 12px;
        letter-spacing: 0.08em;
    }
    .ayw-site-header__logo {
        margin-right: 16px;
    }
}

/* Accessibility focus */
.ayw-site-header__hamburger:focus-visible,
.ayw-site-header__search-btn:focus-visible,
.ayw-nav-sidebar__close:focus-visible,
.ayw-site-header__menu a:focus-visible,
.ayw-nav-sidebar__menu a:focus-visible {
    outline: 2px solid var(--ayw-hdr-accent);
    outline-offset: 2px;
}

/* Body scroll lock */
body.ayw-sidebar-open {
    overflow: hidden;
}
