/* ===============================
   HEADER CORE (v4.6 aesthetic)
================================ */
:root{
    --neon: #00ff9d;
    --cyber-blue: #00f3ff;
    --border: #333;
    --glass: rgba(5, 5, 10, 0.95);
    --glass2: rgba(0,0,0,0.90);
    --ink: #fff;
    --muted: #888;
    --dark: #000;
}

/* Use a single header height hint for mobile drawer sizing */
:root{ --hdrH: 74px; }

.tactical-nav {
    width: 100%;
    padding: 15px 5%;
    background: var(--glass);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

/* Matrix-ish grid shimmer */
.tactical-nav::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background-image:
        linear-gradient(to right, rgba(0,255,157,.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,0,255,.04) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: .25;
    mix-blend-mode: screen;
    transform: translateZ(0);
}

/* Scanline */
.tactical-nav::after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(0,255,157,0.02),
            rgba(0,255,157,0.02) 1px,
            rgba(0,0,0,0.00) 2px,
            rgba(0,0,0,0.00) 4px
        );
    opacity:.15;
    mix-blend-mode: overlay;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.logo {
    font-family: 'Syncopate', sans-serif;
    letter-spacing: 8px;
    font-size: 0.90rem;
    text-decoration: none;
    color: var(--neon);
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(0,255,157,0.3);
    animation: syncopatePulse 3s steps(14, end) infinite;
    font-weight: 900;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon), transparent);
}

@keyframes syncopatePulse{
    0%{ letter-spacing: 8px; filter: brightness(1) }
    38%{ letter-spacing: 12px; filter: brightness(1.15) }
    55%{ letter-spacing: 6px; filter: brightness(.95) }
    100%{ letter-spacing: 8px; filter: brightness(1) }
}

.system-status {
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--muted);
    font-family: 'Space Mono', monospace;
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
}

.system-status .dot{
    width:8px;height:8px;border-radius:50%;
    background: var(--neon);
    box-shadow: 0 0 10px rgba(0,255,157,0.5);
    display:inline-block;
    animation: dotPulse 2s infinite;
}
@keyframes dotPulse { 0%,100%{opacity:1} 50%{opacity:.7} }

.system-status .time{
    color: var(--neon);
    text-shadow: 0 0 8px rgba(0,255,157,0.3);
}

/* ===============================
   NAV
================================ */
.sub-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
    gap: 18px;
}

.nav-group,
.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.nav-tab {
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: var(--ink);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    padding: 10px 14px; /* slightly bigger tap target */
    border-radius: 3px;
    border: 1px solid var(--border);
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
}

.nav-tab:hover,
.nav-tab.active {
    color: var(--neon);
    border-color: var(--neon);
    background: rgba(0,255,157,0.05);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,255,157,0.1);
}

.nav-tab::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--neon);
    transition: width 0.3s ease;
}
.nav-tab:hover::after,
.nav-tab.active::after { width: 100%; }

.nav-tab:focus-visible{
    outline: 2px solid var(--neon);
    outline-offset: 2px;
}

.nav-tab.bag {
    color: var(--neon);
    border-color: var(--neon);
    background: rgba(0,255,157,0.1);
    font-weight: bold;
}
.nav-tab.bag:hover { background: var(--neon); color: #000; }

/* Cart badge */
.bag-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--neon);
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    padding: 0 4px;
    margin-left: 6px;
    box-shadow: 0 0 10px var(--neon);
}

/* ===============================
   MOBILE MENU BUTTON
================================ */
.menu-toggle {
    display: none;
    font-size: 0.65rem;
    letter-spacing: 2px;
    cursor: pointer;
    color: var(--neon);
    font-family: 'Space Mono', monospace;
    border: 1px solid var(--neon);
    background: rgba(0,255,157,0.1);
    padding: 10px 14px;
    border-radius: 3px;
    user-select: none;
    transition: all 0.3s ease;
}
.menu-toggle:hover { background: var(--neon); color: #000; }
.menu-toggle:focus-visible{ outline: 2px solid var(--neon); outline-offset: 2px; }

/* ===============================
   MOBILE MODE
================================ */
@media (max-width: 992px) {
    .tactical-nav { padding: 12px 5%; }
    .logo{ letter-spacing: 6px; font-size: 0.86rem; }
    .system-status { font-size: 0.56rem; gap: 6px; }
}
@media (max-width: 768px) {
    :root{ --hdrH: 68px; }

    .tactical-nav { padding: 10px 4%; }
    .top-bar { flex-direction: row; align-items: center; gap: 10px; }
    .logo{ letter-spacing: 5px; font-size: 0.82rem; }
    .system-status { display: none; }

    .menu-toggle { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }

    /* Drawer: scrollable so the bottom items (ARCADE/EVENTS) always show */
    .sub-nav {
        display: none;
        flex-direction: column;
        gap: 12px;
        margin-top: 14px;
        background: var(--glass2);
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 14px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);

        max-height: calc(100vh - var(--hdrH));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    .sub-nav.active { display: flex; }

    /* Make the nav items fit without horizontal overflow */
    .nav-group{
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .nav-links{
        width: 100%;
        display: flex;
        justify-content: stretch;
        border-top: 1px solid var(--border);
        padding-top: 12px;
        margin-top: 6px;
    }

    .nav-tab{
        width: 100%;
        text-align: center;
        padding: 12px 10px;
        border: 1px solid var(--border);
        background: rgba(0,0,0,0.30);
    }
    .nav-tab:hover, .nav-tab.active { transform: translateY(-1px); }
}
@media (max-width: 420px) {
    .nav-group{ grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce){
    .logo{ animation: none; }
    .nav-tab{ transition: none; }
    .system-status .dot{ animation: none; }
    .nav-tab:hover, .nav-tab.active { transform: none; }
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 10px;
    background: var(--neon);
    color: #000;
    padding: 12px 20px;
    z-index: 10000;
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid var(--dark);
    transition: top 0.3s ease;
}
.skip-link:focus { top: 10px; outline: 2px solid var(--neon); outline-offset: 2px; }

/* Prevent page scroll when nav open (JS toggles this) */
body.nav-open { overflow: hidden; }

/* About page styles */
.about-page {
    margin: 0;
    background: #000;
    color: #fff;
}
.about-page .about-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 160px 10% 120px;
}
.about-page .about-wrapper h1 {
    font-family: 'Syncopate', sans-serif;
    letter-spacing: 4px;
    font-size: 1.6rem;
}
.about-page .about-wrapper .sub {
    margin-top: 14px;
    color: var(--neon);
    font-size: 0.7rem;
    letter-spacing: 3px;
}
.about-page .story-block {
    margin-top: 50px;
    line-height: 1.8;
    color: #bbb;
    font-size: 0.9rem;
}
.about-page .story-block strong {
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
}
.about-page .quote {
    margin: 60px 0;
    padding: 30px;
    border-left: 3px solid var(--neon);
    font-size: 0.95rem;
    color: #ddd;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.02);
}
.about-page .milestones {
    margin-top: 60px;
    display: grid;
    gap: 30px;
}
.about-page .milestone {
    border: 1px solid var(--border);
    padding: 25px;
    background: #050505;
}
.about-page .milestone span {
    font-size: 0.6rem;
    color: var(--neon);
    letter-spacing: 3px;
}
.about-page .milestone h3 {
    margin: 10px 0;
    font-size: 1rem;
    letter-spacing: 2px;
}
.about-page .about-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.about-page .about-nav .bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    gap: 14px;
}
.about-page .about-nav .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.about-page .about-nav .brand a {
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-heading);
    letter-spacing: 2px;
    font-size: 0.8rem;
    text-transform: uppercase;
    white-space: nowrap;
}
.about-page .about-nav .links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.about-page .about-nav .about-nav-toggle {
    display: none;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-family: var(--font-tech);
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
}
.about-page .about-nav .about-nav-toggle:focus-visible,
.about-page .about-nav .about-nav-toggle:hover {
    border-color: var(--border-bright);
    color: var(--neon);
    outline: none;
}
.about-page .about-nav .links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-tech);
    font-size: 0.7rem;
    letter-spacing: 2px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    transition: 0.25s var(--curve-smooth);
}
.about-page .about-nav .links a:hover {
    border-color: var(--border-bright);
    color: var(--neon);
    transform: translateY(-1px);
}
.about-page .about-nav .links a.active {
    background: var(--neon);
    color: #000;
    border-color: rgba(255, 255, 255, 0.12);
    font-weight: 900;
}
.about-page .about-nav .links a:focus-visible,
.about-page .brand a:focus-visible {
    outline: 2px solid var(--neon);
    outline-offset: 2px;
}
.about-page .about-cta {
    margin-top: 70px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.about-page .about-cta a {
    text-decoration: none;
    border: 1px solid var(--border);
    color: #fff;
    padding: 12px 18px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: 0.2s ease;
}
.about-page .about-cta a.primary {
    background: var(--neon);
    color: #000;
    border-color: var(--neon);
    font-weight: 700;
}
.about-page .about-cta a:hover {
    transform: translateY(-1px);
    border-color: var(--neon);
    color: var(--neon);
}
.about-page .about-cta a.primary:hover {
    color: #000;
    box-shadow: 0 0 0 1px #000 inset;
}
@media (max-width: 768px) {
    .about-page .about-wrapper {
        padding: 130px 7% 90px;
    }
    .about-page .about-wrapper h1 {
        font-size: 1.4rem;
    }
    .about-page .about-nav .bar {
        padding: 12px 14px;
        flex-wrap: wrap;
    }
    .about-page .about-nav .about-nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }
    .about-page .about-nav .links {
        display: none;
        width: 100%;
        margin-top: 8px;
        gap: 8px;
        justify-content: stretch;
    }
    .about-page .about-nav .links.open {
        display: grid;
    }
    .about-page .about-nav .links a {
        min-height: 44px;
        width: 100%;
        border-radius: 10px;
        justify-content: center;
        text-align: center;
    }
}
