/* HEADER */
.header {    
    padding: 16px 0;
    border-bottom: 1px solid var(--primary-700);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
}

.menu__icon {
    cursor: pointer;
}

.header__menu-btn {
    background: none;
    border: 1px solid var(--primary-700);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background .15s ease, border-color .15s ease;
}

.header__menu-btn:hover {
    border-color: var(--primary-500);
    background: var(--primary-900);
}

/* NAV */
.nav {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    background: var(--primary-900);
    border-left: 1px solid var(--primary-700);
    padding: 24px 16px;
    display: flex;
    justify-content: flex-start;
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 50;
}

.nav.is-open {
    transform: translateX(100%);
}

.header__nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
}

.header__nav-list h3 {
    font-style: italic;
    font-weight: 500;
    font-size: 20px;
    color: #fff;
    margin-bottom: 20px;
    padding: 0 12px;
}

.header__nav-list h3::after {
    content: '.';
    color: var(--accent-gold);
}

.header__nav-item {
    display: flex;
}

.header__nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--primary-200);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

.header__nav-link::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-gold);
    opacity: 0;
    transition: opacity .15s;
}

.header__nav-link:hover,
.header__nav-link.is-active {
    background: var(--primary-700);
    color: #fff;
}

.header__nav-link:hover::before,
.header__nav-link.is-active::before {
    opacity: 1;
}

.header__nav-item--user {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--primary-700);
}

.avatar img{
    width: 28px;
    height: 28px;
    border-radius: 50%;
    /* background: linear-gradient(135deg, #E8AA3D, #8B6BD9); */
}

/* DESKTOP */
@media (min-width: 769px) {
    .header__menu-btn {
        display: none;
    }

    .nav {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        border-left: none;
        padding: 0;
        flex: 1;
        justify-content: space-evenly;
        transform: none;
        transition: none;
        left: auto;
    }

    .header__nav-list {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        width: auto;
    }

    .header__nav-list h3 {
        display: none;
    }

    .header__nav-link {
        padding: 10px 16px;
    }        

    .header__nav-item--user {
        display: none;
    }
}
