/* BPD GAMING NETWORK - GLOBAL HEADER */

.site-header {
    position: relative;
    z-index: 2;
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding:
        12px
        12px
        0
        calc(
            6px
            + var(--sidebar-width)
            + var(--sidebar-content-gap)
        );
    background: transparent;
    transition:
        padding-left 0.25s ease;
}

body.sidebar-collapsed
.site-header {
    padding-left:
        calc(
            6px
            + var(--sidebar-collapsed-width)
            + var(--sidebar-content-gap)
        );
}

.site-header[hidden],
.site-header:empty {
    display: none;
    padding: 0;
}

.header-content {
    box-sizing: border-box;
    width: 98%;
    max-width: 1500px;
    min-width: 0;
    margin-inline: auto;
}

.header-box {
    width: 100%;
    overflow: hidden;
    border: 1px solid #303541;
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            rgba(25, 28, 34, 0.98),
            rgba(13, 15, 21, 0.98)
        );
    box-shadow:
        0 12px 32px
        rgba(0, 0, 0, 0.38),
        0 0 18px
        rgba(139, 92, 246, 0.08);
}

.header-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    padding: 10px 22px;
    text-align: center;
}

.header-title-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 0;
}

.header-eyebrow {
    color: #9f8cff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.header-title {
    margin: 0;
    color: #ffffff;
    font-size:
        clamp(
            1.1rem,
            2vw,
            1.45rem
        );
    line-height: 1.2;
}

/*
=========================================================
OPTIONAL TABS
=========================================================
*/

.header-navigation {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    overflow-x: auto;
    border-top:
        1px solid
        rgba(255, 255, 255, 0.07);
    background:
        rgba(5, 7, 12, 0.38);
    scrollbar-width: none;
}

.header-navigation:empty {
    display: none;
}

.header-navigation::-webkit-scrollbar {
    display: none;
}

.header-tab {
    position: relative;
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 38px;
    padding: 8px 14px;
    border:
        1px solid
        rgba(139, 92, 246, 0.35);
    border-radius: 8px;
    background:
        linear-gradient(
            145deg,
            rgba(139, 92, 246, 0.08),
            rgba(59, 130, 246, 0.04)
        );
    color: #b9c0cf;
    font-size: 0.84rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.03);
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.header-tab::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            #8b5cf6,
            #3b82f6
        );
    opacity: 0;
    transform:
        scaleX(
            0.6
        );
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.header-tab:hover,
.header-tab:focus-visible {
    border-color:
        rgba(
            139,
            92,
            246,
            0.7
        );
    background:
        linear-gradient(
            145deg,
            rgba(139, 92, 246, 0.20),
            rgba(59, 130, 246, 0.12)
        );
    color: #ffffff;
    box-shadow:
        0 0 14px
        rgba(139, 92, 246, 0.20),
        inset 0 1px 0
        rgba(255, 255, 255, 0.06);
    transform:
        translateY(
            -1px
        );
}

.header-tab:hover::after,
.header-tab:focus-visible::after,
.header-tab.active::after,
.header-tab[aria-current="page"]::after {
    opacity: 1;
    transform:
        scaleX(
            1
        );
}

.header-tab.active,
.header-tab[aria-current="page"] {
    border-color: #8b5cf6;
    background:
        linear-gradient(
            145deg,
            rgba(139, 92, 246, 0.32),
            rgba(59, 130, 246, 0.18)
        );
    color: #ffffff;
    box-shadow:
        0 0 16px
        rgba(139, 92, 246, 0.32),
        inset 0 1px 0
        rgba(255, 255, 255, 0.08);
}

.header-tab:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

@media (max-width: 700px) {
    .site-header,
    body.sidebar-collapsed
    .site-header {
        padding:
            8px
            8px
            0
            calc(
                6px
                + var(--sidebar-collapsed-width)
                + var(--sidebar-content-gap)
            );
    }

    .header-content {
        width: 100%;
    }

    .header-box {
        border-radius: 12px;
    }

    .header-title-row {
        min-height: 54px;
        padding: 9px 15px;
    }

    .header-navigation {
        justify-content: flex-start;
        padding: 6px 8px;
    }

    .header-tab {
        flex: 1 0 140px;
        min-height: 34px;
        padding: 7px 12px;
        font-size: 0.8rem;
    }
}