/* BPD GAMING NETWORK - FLOATING SIDEBAR */
:root {
    --sidebar-width:
        clamp(
            250px,
            22vw,
            360px
        );

    --sidebar-collapsed-width:
        clamp(
            68px,
            5vw,
            82px
        );

    --sidebar-content-gap:
        clamp(
            10px,
            1.2vw,
            20px
        );

    --sidebar-icon-width:
        var(--sidebar-collapsed-width);
}
.sidebar-navigation-top{
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    height: fit-content;
    min-width: 0;
    gap: 2px;
}
.sidebar-navigation-bottom {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    gap: 2px;
}

.sidebar-navigation-bottom {
    margin-top: auto;
    padding-top: 8px;
    border-top:
        1px solid
        rgba(255, 255, 255, 0.08);
}
html,
body {
    margin: 0;
    background: #0d0f13;
}

.site-shell,
.site-page,
.site-content {
    background-color: transparent;
}

/*
=========================================================
SIDEBAR POSITIONING CONTAINER
=========================================================
*/

:root {
    --sidebar-width: 300px;
    --sidebar-collapsed-width: 76px;
    --sidebar-content-gap: 14px;
    --sidebar-icon-width: var(--sidebar-collapsed-width);
}

.site-sidebar {
    position: fixed;
    top: 41.5%;
    bottom: auto;
    left: 6px;
    z-index: 100;

    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);

    height: 620px;
    min-height: fit-content;
    max-height: auto;

    overflow: auto;

    border: 0;
    background: transparent;
    box-shadow: none;

    transform: translateY(-50%);

    transition:
        width 0.33s ease;
}



body.sidebar-collapsed .site-sidebar {
    width: var(--sidebar-collapsed-width);
    min-width: var(--sidebar-collapsed-width);
    max-width: var(--sidebar-collapsed-width);
}

.site-sidebar::before,
.site-sidebar::after {
    display: none;
    content: none;
}

/*
=========================================================
SEPARATE TOGGLE BOX
=========================================================
*/

.sidebar-toggle-box {
    position: absolute;
    inset-inline-start: 0px;
    inset-block-start: 0px;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    width:
        var(--sidebar-collapsed-width);
    height:
        var(--sidebar-collapsed-width);
    border: 2px solid #303541;
    border-radius: 14px;
    background:
        linear-gradient(
            180deg,
            #000c24,
            #00028f
        );
    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, 0.5),
        0 0 14px
        rgba(139, 92, 246, 0.1);
}

.sidebar-toggle {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 32px;
    height: 32px;
    padding: 0;
    cursor: pointer;
    border: 2px solid #353b48;
    border-radius: 8px;
    background: #1b1e25;
    box-shadow:
        0 6px 18px
        rgba(0, 0, 0, 0.45),
        0 0 8px
        rgba(139, 92, 246, 0.18);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.sidebar-toggle span {
    display: block;
    width: 15px;
    height: 2px;
    border-radius: 2px;
    background: #ffffff;
}

.sidebar-toggle:hover {
    transform:
        translateY(-2px)
        scale(1.04);
    border-color: #8b5cf6;
    background: #211936;
    box-shadow:
        0 8px 22px
        rgba(0, 0, 0, 0.5),
        0 0 14px
        rgba(139, 92, 246, 0.65);
}

.sidebar-toggle:active {
    transform: scale(0.98);
}

/*
=========================================================
SEPARATE NAVIGATION BODY
=========================================================
*/

.sidebar-navigation {
    justify-content: flex-start;
    gap: 2px;
    position: absolute;
    top:
        calc(
            var(--sidebar-collapsed-width)
            + 8px
        );
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    padding: 6px 3px 8px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 2px solid #303541;
    border-radius: 18px;
    background:
        linear-gradient(
            180deg,
            #000000 10%,
            #01004e 100%
        );

    scrollbar-width: thin;
    scrollbar-color:
        rgba(139, 92, 246, 0.45)
        transparent;
}

.sidebar-navigation::-webkit-scrollbar {
    width: 5px;
}

.sidebar-navigation::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-navigation::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background:
        rgba(139, 92, 246, 0.45);
}

/*
=========================================================
NAVIGATION ITEMS
=========================================================
*/

.site-sidebar
.nav-item {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 10px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #aeb5c3;
    font: inherit;
    text-align: left;
    text-decoration: none;
    appearance: none;
    cursor: pointer;
    white-space: nowrap;
}

.site-sidebar
.nav-item:hover,
.site-sidebar
.nav-item:focus-visible,
.site-sidebar
.nav-item.active,
.site-sidebar
.nav-item[aria-current="page"] {
    color: #ffffff;
    background: #24202f;
}

.site-sidebar
.nav-item:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: -2px;
}

.site-sidebar
.nav-icon {
    display: grid;
    flex-basis:
        0 0
        var(--sidebar-icon-width);
    align-items: center;
    justify-content: center;
    width:
        var(--sidebar-icon-width);
    min-width:
        auto;
}

.site-sidebar
.nav-label {
    min-width:
        auto;
    display: inline flow-root;
    max-width: auto;
    overflow: hidden;
    white-space: nowrap;
    opacity: 1;
    transition:
        max-width 0.2s ease,
        opacity 0.2s ease;
}

body.sidebar-collapsed
.site-sidebar
.nav-label {
    max-width: 0;
    opacity: 0;
}

/*
=========================================================
EXPANSION DENIED
=========================================================
*/

.sidebar-toggle.expand-denied {
    animation:
        sidebarExpandDenied
        0.45s ease;
}

@keyframes sidebarExpandDenied {
    0%,
    100% {
        transform: translateX(0);
        border-color: #353b48;
        background: #1b1e25;
    }

    20%,
    60% {
        transform: translateX(-5px);
        border-color: #ff4d5e;
        background: #4a151c;
    }

    40%,
    80% {
        transform: translateX(5px);
    }
}

/*
=========================================================
MOBILE
=========================================================
*/

@media (max-width: 700px) {
    .site-sidebar {
        width:
            var(--sidebar-collapsed-width);
    }

    .site-sidebar
    .nav-label {
        max-width: 0;
        opacity: 0;
    }
}