/* =============================================================================
   base.css — Reset, design tokens, navigation, lang switcher
   Shared between all BlyxoParty front-end pages.
   ========================================================================== */


/* -----------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* -----------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */

:root {
    --bg:       #000;
    --surface:  #111;
    --surface2: #1c1c1e;
    --border:   rgba(255, 255, 255, .08);
    --text:     #f5f5f7;
    --text-sec: #6e6e73;
    --accent:   #2997ff;
    --purple:   #bf5af2;
    --green:    #30d158;
}


/* -----------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

html.mobile-menu-open,
html.mobile-menu-open body {
    overflow: hidden;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}


/* -----------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: 48px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 28px;
    background: rgba(0, 0, 0, .72);
    border-bottom: 1px solid var(--border);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav-brand {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.3px;
    color: var(--text);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 5px 12px;
    color: var(--text-sec);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: color .15s, background .15s;
}

.nav-link:hover  { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-link.active { color: var(--text); }

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .055));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
    color: var(--text);
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 16px;
    height: 1.6px;
    border-radius: 999px;
    background: currentColor;
}


/* -----------------------------------------------------------------------------
   Language switcher
   -------------------------------------------------------------------------- */

.lang-wrap { position: relative; }

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 10px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 100px;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, .11);
    border-color: rgba(255, 255, 255, .18);
}

.lang-code { letter-spacing: .4px; }

.lang-chevron {
    flex-shrink: 0;
    color: var(--text-sec);
    transition: transform .18s;
}

.lang-wrap.open .lang-chevron { transform: rotate(180deg); }

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 300;
    min-width: 148px;
    overflow: hidden;
    background: var(--surface2);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .18s, transform .18s;
}

.lang-dropdown.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    color: var(--text);
    font-size: 14px;
    text-decoration: none;
    transition: background .12s;
}

.lang-option:hover  { background: rgba(255, 255, 255, .07); }
.lang-option.active { color: var(--accent); }

.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 450;
    background: rgba(0, 0, 0, .62);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

.mobile-menu-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 500;
    width: min(88vw, 360px);
    height: 100dvh;
    padding: 20px;
    background:
        radial-gradient(circle at 20% 0%, rgba(41, 151, 255, .16), transparent 34%),
        linear-gradient(180deg, rgba(24, 24, 26, .98), rgba(8, 8, 9, .98));
    border-left: 1px solid rgba(255, 255, 255, .1);
    box-shadow: -28px 0 80px rgba(0, 0, 0, .48);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    transform: translateX(104%);
    transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}

.mobile-menu-panel.open {
    transform: translateX(0);
}

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 34px;
}

.mobile-menu-title {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.3px;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: var(--text);
    font: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.mobile-menu-section {
    display: grid;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.mobile-menu-label {
    margin-bottom: 2px;
    color: var(--text-sec);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 18px;
    color: var(--text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    transition: background .15s, border-color .15s, transform .15s;
}

.mobile-menu-link:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .14);
}

.mobile-menu-link.active {
    color: var(--accent);
    border-color: rgba(41, 151, 255, .28);
    background: rgba(41, 151, 255, .1);
}

.mobile-lang-select {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 44px 0 16px;
    border-radius: 18px;
    color: var(--text);
    background: rgba(255, 255, 255, .075);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}

.mobile-lang-select select {
    width: 100%;
    min-width: 0;
    appearance: none;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.mobile-lang-select select option {
    color: #111;
}

.mobile-lang-chevron {
    position: absolute;
    right: 17px;
    color: var(--text-sec);
    pointer-events: none;
}


/* -----------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

footer {
    border-top: 1px solid var(--border);
    padding: 28px 24px;
    text-align: center;
    color: var(--text-sec);
    font-size: 13px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-sec);
    text-decoration: none;
    font-size: 12px;
    transition: color .15s;
}

.footer-links a:hover { color: var(--text); }


/* -----------------------------------------------------------------------------
   Responsive — shared
   -------------------------------------------------------------------------- */

@media (max-width: 820px) {
    nav {
        grid-template-columns: 1fr auto !important;
        height: 54px !important;
        padding: 0 16px !important;
    }

    .nav-links,
    nav .nav-links,
    nav .nav-right .lang-wrap,
    nav .lang-wrap,
    nav .lang-dropdown {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .nav-brand {
        font-size: 17px !important;
    }
}
