/*
 * Shared navbar + footer styles — copied verbatim from views/home.php, but with
 * the CSS variables SCOPED to .nav / .footer (instead of :root) so they render
 * identically on any page and never clash with that page's own theme variables.
 *
 * Load this on pages that use includes/navbar.php + includes/footer.php.
 * (The home keeps its own inline copy and does not need this file.)
 */

.nav, .footer {
    --bg:            #0a0e1a;
    --bg-soft:       #0f1419;
    --accent:        #0099ff;
    --accent-bright: #00d4ff;
    --text:          #e5e2e1;
    --muted:         #8b92a8;
    --shell:         1400px;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, sans-serif;
}
.nav *, .footer * { box-sizing: border-box; }
/* Only reset the underline. Do NOT set `color: inherit` here: `.nav a` would
   outrank `.nav-logo { color:#fff }` on specificity and turn "ZEPHYR" dark while
   the "CHEATS" <span> stayed accent. Every link below sets its own colour. */
.nav a, .footer a { text-decoration: none; }

/* ------------------------------------------------------------------ */
/* Navigation                                                          */
/* ------------------------------------------------------------------ */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 76px;
    padding: 0 clamp(1rem, 4vw, 3rem);
    transition: background 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}
.nav.is-stuck {
    background: rgba(10, 14, 26, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom-color: rgba(0, 153, 255, 0.2);
}
.nav-logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: #fff;
    white-space: nowrap;
    min-width: 0;
}
.nav-logo span { color: var(--accent-bright); }
.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.4vw, 2.4rem);
}
.nav-links a {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.25s ease;
    white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--accent-bright); }
.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: 0.6rem;
}
.nav-links a.nav-btn {
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.68rem;
    transition: all 0.25s ease;
}
.nav-links a.nav-btn.ghost {
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.16);
}
.nav-links a.nav-btn.ghost:hover {
    color: var(--accent-bright);
    border-color: rgba(0, 212, 255, 0.5);
}
.nav-links a.nav-btn.solid {
    color: #001f28;
    background: linear-gradient(120deg, var(--accent-bright), var(--accent));
}
.nav-links a.nav-btn.solid:hover {
    color: #001f28;
    box-shadow: 0 8px 22px rgba(0, 153, 255, 0.4);
}
.nav-social {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.nav-social a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
}
.nav-social a:hover {
    color: var(--accent-bright);
    border-color: rgba(0, 212, 255, 0.45);
    background: rgba(0, 153, 255, 0.1);
}
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    width: 22px;
    border-radius: 2px;
    background: var(--accent-bright);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
/* Scoped .shell so the footer container centres without clashing with a
   page's own .shell class. */
.footer .shell {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
}
.footer {
    position: relative;
    background: var(--bg-soft);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: clamp(2.5rem, 5vw, 3.5rem) 0 0;
}
.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 0.95fr)) minmax(0, 1.6fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
}
.footer-brand-mark {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}
.footer-brand-mark .mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    color: var(--accent-bright);
    background: rgba(0, 153, 255, 0.12);
    border: 1px solid rgba(0, 153, 255, 0.3);
    flex: 0 0 auto;
}
.footer-brand-mark .name {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    color: #fff;
}
.footer-brand-mark .name span { color: var(--accent); }
.footer-tagline {
    margin: 0 0 1.2rem;
    max-width: 26ch;
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--muted);
}
.footer-social {
    display: flex;
    gap: 0.5rem;
}
.footer-social a {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.25s ease;
}
.footer-social a:hover {
    color: var(--accent-bright);
    border-color: rgba(0, 212, 255, 0.4);
}
.footer-col h4 {
    margin: 0 0 0.9rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
}
.footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}
.footer-col a {
    font-size: 0.78rem;
    color: var(--muted);
    transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--accent-bright); }
.footer-pay {
    padding: 1.1rem 1.2rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.footer-pay-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
}
.footer-pay-head svg { color: var(--accent-bright); flex: 0 0 auto; }
.footer-pay p {
    margin: 0 0 0.9rem;
    font-size: 0.72rem;
    line-height: 1.5;
    color: var(--muted);
}
.pay-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.pay-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 30px;
    border-radius: 6px;
    background: #f5f7fb;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}
.pay-badge svg { display: block; width: 100%; height: 100%; }
.footer-bottom {
    position: relative;
    padding: 1.2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-bottom::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}
.footer-bottom small {
    font-size: 0.74rem;
    color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* Responsive (navbar + footer only)                                   */
/* ------------------------------------------------------------------ */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .nav-links.is-open {
        display: flex;
        position: fixed;
        inset: 76px 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem clamp(1rem, 4vw, 3rem) 2rem;
        background: rgba(10, 14, 26, 0.97);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-bottom: 1px solid rgba(0, 153, 255, 0.2);
    }
    .nav-links.is-open a {
        padding: 1rem 0;
        font-size: 0.85rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .nav-links.is-open .nav-auth {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin: 1.25rem 0 0;
    }
    .nav-links.is-open a.nav-btn {
        padding: 0.95rem 1rem;
        font-size: 0.78rem;
        text-align: center;
        border-bottom: 0;
    }
    .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .nav-social { display: none; }
    .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-top > div:first-child,
    .footer-pay { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
    .nav { padding: 0 0.9rem; }
    .nav-logo {
        font-size: 0.72rem;
        letter-spacing: 0.2em;
    }
    .footer-top { grid-template-columns: minmax(0, 1fr); }
}
