/* ==========================================================
   TOPBAR
   Professional Fluid Layout
========================================================== */

#topbar {
    position: absolute;
    inset: 0 auto auto 0;

    width: 100%;
    height: 64px;

    background: #cc0066;
    --gradient-east: #000000;
    background: linear-gradient(90deg,
            #cc0066 0%,
            var(--gradient-east) 100%);

    overflow: visible;
    z-index: 1000;
}

/* ==========================================================
   CONTENT CONTAINER
========================================================== */

#topbar .topbar-content {

    width: 100%;
    height: 64px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 24px;

    padding: 0 8px;

    box-sizing: border-box;

}

/* ==========================================================
   LAYOUT ZONES
========================================================== */

#topbar .topbar-zone {

    display: flex;

    align-items: center;

    min-width: 0;

}

#topbar .topbar-zone-left {

    flex: 0 0 auto;

    justify-content: flex-start;

}

#topbar .topbar-zone-center {

    flex: 1 1 auto;

    justify-content: flex-start;

    min-width: 0;

}

#topbar .topbar-zone-right {

    flex: 0 0 auto;

    justify-content: flex-end;

    gap: 24px;

}

/* ==========================================================
   DOCK
========================================================== */

#topbar .topbar-dock {

    width: 38px;

    height: 38px;

    flex: 0 0 38px;

}

/* ==========================================================
   MENU
========================================================== */

#topbar .topbar-menu {

    display: flex;

    align-items: center;

    justify-content: center;

}

/* ==========================================================
   SEARCH
========================================================== */

#topbar .topbar-search {

    width: 100%;

    min-width: 120px;

    max-width: 520px;

    display: flex;

    align-items: center;

    gap: 10px;

}

/* ==========================================================
   RIGHT ICONS
========================================================== */

#topbar .topbar-profile,
#topbar .topbar-notification {

    display: flex;

    align-items: center;

    justify-content: center;

}

/* ==========================================================
   DIAMOND BUTTONS
========================================================== */

#topbar .diamond-btn,
#topbar .diamond-search {

    width: 38px;

    height: 38px;

    background: #190033;

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    transform: rotate(45deg);

    box-sizing: border-box;

    cursor: pointer;

    transition:
        background .20s ease,
        transform .20s ease;

    overflow: hidden;

    backface-visibility: hidden;

    -webkit-font-smoothing: antialiased;

}

#topbar .diamond-btn:hover,
#topbar .diamond-search:hover {

    background: #013a06;

}

#topbar .diamond-btn:active,
#topbar .diamond-search:active {

    transform:
        rotate(45deg) scale(.95);

}

/* ==========================================================
   SEARCH DIAMOND
========================================================== */

#topbar .diamond-search {

    width: 35px;

    height: 35px;

    flex: 0 0 35px;

}

/* ==========================================================
   SVG
========================================================== */

#topbar .diamond-btn>svg,
#topbar .diamond-search>svg {

    width: 20px;

    height: 20px;

    display: block;

    transform: rotate(-45deg);

    color: currentColor;

}

#topbar .diamond-search>svg {

    width: 16px;

    height: 16px;

}

/* ==========================================================
   SEARCH INPUT
========================================================== */

#topbar .search-bar {

    flex: 1;

    width: auto;

    min-width: 0;

    height: 24px;

    border: none;

    outline: none;

    background: transparent;

    color: #ffffff;

    font-size: 14px;

    padding: 0;

    margin: 0;

}

#topbar .search-bar::placeholder {

    color: #ffffff;

    opacity: .90;

}

/* ==========================================================
   CURSOR
========================================================== */

#topbar .topbar-menu,
#topbar .topbar-profile,
#topbar .topbar-notification {

    cursor: pointer;

}

/* ==========================================================
   DRAWER
========================================================== */

#topbar .drawer {

    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: 2000;

}

#topbar .drawer.open {

    pointer-events: auto;

}

/* ==========================================================
   DRAWER BACKDROP
========================================================== */

#topbar .drawer-backdrop {

    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0);

    opacity: 0;

    transition: opacity .30s ease;

}

#topbar .drawer.open .drawer-backdrop {

    opacity: 1;

}

/* ==========================================================
   DRAWER PANEL
========================================================== */

#topbar .drawer-panel {

    position: absolute;

    top: 0;
    left: 0;

    width: min(280px, 85vw);
    max-width: 320px;
    height: 100dvh;

    background: #cc00663a;

    padding: 20px 16px;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    overflow-x: hidden;
    overflow-y: auto;

    box-shadow: 4px 0 20px rgba(0, 0, 0, .40);

    transform: translate3d(-100%, 0, 0);

    transition:
        transform .30s cubic-bezier(.40, 0, .20, 1);

    will-change: transform;

    -webkit-overflow-scrolling: touch;

}

#topbar .drawer.open .drawer-panel {

    transform: translate3d(0, 0, 0);

}


/* ==========================================================
   DRAWER HEADER
========================================================== */

#topbar .drawer-head {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    margin-bottom: 18px;

    padding-bottom: 12px;

    border-bottom: 1px solid rgba(255, 255, 255, .10);

}

#topbar .drawer-head h2 {

    margin: 0;

    font-size: 18px;

    font-weight: 600;

    color: #cc0066;

    letter-spacing: .20px;

}


/* ==========================================================
   CLOSE BUTTON
========================================================== */

#topbar .close-btn {

    width: 38px;
    height: 38px;

    min-width: 38px;
    min-height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    border: none;

    border-radius: 50%;

    background: rgba(247, 26, 162, 0.1);

    color: #190033;

    font-size: 24px;

    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    transition:
        background .20s ease,
        transform .20s ease;

}

#topbar .close-btn:hover {

    background: rgba(255, 32, 188, 0.2);

}

#topbar .close-btn:active {

    transform: scale(.90);

}


/* ==========================================================
   DRAWER LINKS
========================================================== */

#topbar .drawer-link {

    display: flex;

    align-items: center;

    gap: 12px;

    min-height: 48px;

    padding: 13px 12px;

    margin-bottom: 6px;

    border-radius: 12px;

    text-decoration: none;

    color: #ffffff;

    transition:
        background .20s ease,
        transform .15s ease;

    cursor: pointer;

}

#topbar .drawer-link:hover {

    background: rgba(248, 8, 208, 0.192);

}

#topbar .drawer-link:active {

    background: rgba(255, 255, 255, .60);

    transform: scale(.98);

}

#topbar .drawer-link:focus-visible {

    outline: 2px solid rgba(255, 255, 255, .60);

    outline-offset: 2px;

}


/* ==========================================================
   DRAWER ICON
========================================================== */

#topbar .drawer-icon {

    width: 20px;

    height: 20px;

    flex: 0 0 20px;

    color: #ff3399;

}

#topbar .drawer-link span {

    flex: 1;

    font-size: 15px;

    font-weight: 500;

    color: #ffffff;

}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width:480px) {

    #topbar .drawer-panel {

        width: 85vw;

    }

}

@media (min-width:481px) {

    #topbar .drawer-panel {

        width: 280px;

    }

}


/* ==========================================================
   LANDSCAPE
========================================================== */

@media (orientation:landscape) and (max-height:600px) {

    #topbar .drawer-panel {

        padding: 12px 14px;

    }

    #topbar .drawer-link {

        padding: 10px 12px;

    }

}