/* Floating sticky header — EB24-inspired, Bluebuff brand */

/* Default: reserve space on light pages so content isn't under the nav */
body.bb-has-fixed-header {
    padding-top: 88px;
}

/* Homepage / marketplace: float over the dark top band — no white strip above the menu */
body.bb-has-fixed-header:has(.bb-hero),
body.bb-has-fixed-header:has(.mp-games) {
    padding-top: 0;
}

.bb-site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 2000;
    height: auto;
    background: transparent !important;
    box-shadow: none !important;
    padding: 14px 12px 0;
    pointer-events: none;
}

.bb-site-header__shell {
    pointer-events: auto;
    max-width: 1180px;
    margin: 0 auto;
}

.bb-site-header__bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 64px;
    padding: 0.45rem 0.75rem 0.45rem 0.55rem;
    border-radius: 999px;
    background: rgba(10, 16, 32, 0.82);
    border: 1px solid rgba(142, 176, 255, 0.18);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition:
        background 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.bb-site-header.is-scrolled .bb-site-header__bar {
    background: rgba(8, 12, 24, 0.94);
    border-color: rgba(68, 108, 229, 0.35);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.bb-site-header .logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin: 0 !important;
    justify-content: flex-start !important;
    order: 0 !important;
}

.bb-site-header .logo a {
    display: flex;
    align-items: center;
    padding: 0 0.35rem;
}

.bb-site-header .logo img {
    width: auto !important;
    height: 36px;
    max-width: 150px;
    object-fit: contain;
}

.bb-site-header .menu {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.bb-site-header .menu > ul {
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.15rem;
}

.bb-site-header .menu > ul > li > a,
.bb-site-header .menu > ul > li .has-dropdown {
    line-height: 1 !important;
    gap: 0.4rem !important;
    padding: 0.7rem 0.9rem !important;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.bb-site-header .menu > ul > li > a span,
.bb-site-header .menu > ul > li > a i {
    color: rgba(255, 255, 255, 0.82) !important;
    background: none !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    border-radius: 0 !important;
}

.bb-site-header .menu > ul > li > a span {
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    white-space: nowrap;
}

.bb-site-header .menu > ul > li > a i {
    display: none;
}

.bb-site-header .menu > ul > li > a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

.bb-site-header .menu > ul > li > a:hover span {
    color: #fff !important;
}

.bb-site-header .menu .responsive-menu-icon {
    display: none;
}

.bb-site-header .menu .responsive-menu-icon i {
    font-size: 18px;
    width: 42px;
    height: 42px;
    text-align: center;
    line-height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.bb-site-header .menu .responsive-menu-icon i:hover {
    background: rgba(68, 108, 229, 0.35);
    transform: scale(1.04);
}

.bb-site-header .account {
    margin: 0 !important;
    margin-right: 0 !important;
    justify-self: auto;
    height: auto;
    flex: 0 0 auto;
}

.bb-site-header .account a {
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem !important;
    padding: 0.75rem 1.15rem !important;
    border-radius: 999px !important;
    background: linear-gradient(270.71deg, #0b366a 0.53%, #0d4383 50.99%, #395dc8 99.38%) !important;
    box-shadow: 0 8px 20px rgba(24, 101, 247, 0.3);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bb-site-header .account a span,
.bb-site-header .account a i {
    color: #fff !important;
}

.bb-site-header .account a span {
    font-weight: 600 !important;
    font-size: 0.9rem;
}

.bb-site-header .account a:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 4px rgba(24, 101, 247, 0.35) !important;
}

/* Mobile drawer polish to match dark nav */
.responsive-menu .content {
    background: #0a1020 !important;
    border-left: 1px solid rgba(142, 176, 255, 0.12);
}

.responsive-menu .content .header .close i {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

@media (max-width: 1100px) {
    .bb-site-header .menu > ul > li > a {
        padding: 0.65rem 0.65rem !important;
    }

    .bb-site-header .menu > ul > li > a span {
        font-size: 0.82rem !important;
    }
}

@media (max-width: 991px) {
    body.bb-has-fixed-header {
        padding-top: 78px;
    }

    body.bb-has-fixed-header:has(.bb-hero),
    body.bb-has-fixed-header:has(.mp-games) {
        padding-top: 0;
    }

    .bb-site-header {
        padding: 10px 10px 0;
    }

    .bb-site-header__bar {
        border-radius: 20px;
        padding: 0.4rem 0.55rem;
        gap: 0.5rem;
    }

    .bb-site-header .menu {
        flex: 0 0 auto;
        order: 3;
        justify-content: flex-end;
    }

    .bb-site-header .menu > ul {
        display: none !important;
    }

    .bb-site-header .menu .responsive-menu-icon {
        display: block !important;
    }

    .bb-site-header .logo {
        flex: 1 1 auto;
    }

    .bb-site-header .logo img {
        height: 32px;
        max-width: 130px;
    }

    .bb-site-header .account a span {
        display: none;
    }

    .bb-site-header .account a {
        padding: 0.75rem !important;
        width: 42px;
        height: 42px;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bb-site-header__bar,
    .bb-site-header .account a,
    .bb-site-header .menu > ul > li > a {
        transition: none !important;
    }
}
