/* ═══════════════════════════════════════
   Shared nav + footer — loaded on all pages
   Edit here; do not add nav rules to page CSS files.
═══════════════════════════════════════ */

/* ── Nav bar ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
}

.nav-brand {
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: #00d4ff;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s;
    text-transform: uppercase;
}
.nav-brand:hover { opacity: 1; }

.nav-link {
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s;
    text-transform: uppercase;
    cursor: pointer;
}
.nav-link:hover { color: #00d4ff; }

/* ── Dropdown ── */
.nav-dropdown {
    display: flex;
    align-items: center;
}
.nav-dropdown-toggle {
    cursor: pointer;
    user-select: none;
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: row;
    z-index: 200;
}
.nav-dropdown-menu-inner {
    display: flex;
    flex-direction: row;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    display: flex;
}
.nav-dropdown-item {
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.7rem 1rem;
    color: rgba(255,255,255,0.45);
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
    display: block;
}
a.nav-dropdown-item:hover {
    color: #00d4ff;
    background: rgba(0,212,255,0.06);
}
.nav-dropdown-disabled {
    color: rgba(255,255,255,0.2);
    cursor: default;
}

/* ── Footer ── */
.footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 2.5rem 0;
    text-align: center;
}
.footer-copy {
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.1em;
}

/* ── Mobile hamburger ── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    z-index: 110;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,0.6);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav panel ── */
.nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(55vw, 220px);
    background: #08061a;
    border-left: 1px solid #00d4ff;
    z-index: 105;
    flex-direction: column;
    padding-top: 5rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile-item {
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s;
    min-height: 52px;
}
.nav-mobile-item:hover,
.nav-mobile-item:active { color: #00d4ff; }
.nav-mobile-brand { color: #00d4ff; opacity: 0.85; font-weight: 700; }
.nav-mobile-sep {
    height: 1px;
    background: rgba(0,212,255,0.25);
    margin: 0 1.5rem;
}
.nav-mobile-arrow {
    font-size: 0.5rem;
    transition: transform 0.2s;
    opacity: 0.5;
}
.nav-mobile-games-toggle.open .nav-mobile-arrow { transform: rotate(180deg); }
.nav-mobile-submenu {
    display: none;
    flex-direction: column;
    background: rgba(0,212,255,0.04);
    border-top: 1px solid rgba(0,212,255,0.15);
    border-bottom: 1px solid rgba(0,212,255,0.15);
}
.nav-mobile-submenu.open { display: flex; }
.nav-mobile-subitem {
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    padding: 0.85rem 2rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
a.nav-mobile-subitem:hover { color: #00d4ff; }
.nav-mobile-disabled { cursor: default; color: rgba(255,255,255,0.2); }

@media (max-width: 768px) {
    .nav {
        gap: 1rem;
        padding: 0.75rem 1rem;
    }
    .nav-brand,
    .nav-dropdown,
    .nav-link { display: none !important; }
    .nav-link,
    .nav-brand,
    .nav-dropdown-toggle {
        padding: 0.65rem 0.4rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .nav-hamburger { display: flex; }
    .nav-mobile { display: flex; }
    .nav { justify-content: flex-end; }
}
