header {
    /*flex: 1;*/
    padding: .5rem 2rem;
    display: flex;
    /*justify-content: space-between;*/
    align-items: center;
    background-color: var(--bg-card);
    /*box-shadow: 0 2px 6px var(--shadow);*/
    border-bottom: 1px solid var(--bg-main-menu);
    border-right: 1px solid var(--bg-main-menu);
    position: relative;
    transition: background-color 0.3s ease;
}

.header-menu {
    flex: 1;
    margin-left: 4rem;
    display: flex;
    align-items: baseline;
    gap: 2rem;
    font-size: .9rem;
    font-weight: 500;
    overflow: hidden;

    & a:hover {
        color: var(--text-secondary);
    }
}

.profile_button {
    margin-left: auto;
    display: flex;
}

.profile_icon {
    width: 36px;
    height: 36px;
    margin: auto 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease-out;

    .icon_stripes {
        width: 60%;
        height: 10px;
        border-top: 2px solid var(--border-primary);
        border-bottom: 2px solid var(--border-primary);
        transition: all 0.2s ease-out;
    }

    svg {
        fill: var(--text-secondary);
    }

    &:hover {
        /*rotate: 180deg;*/
        /*border: 2px solid var(--text);*/
        opacity: .5;

        .icon_stripes {
            border-top: 2px solid var(--text);
            border-bottom: 2px solid var(--text);
            /*opacity: 1;*/
        }
    }
}


.main_menu__popup {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    width: min(250px, 80%);
    background-color: var(--bg-card);
    border: 1px solid var(--bg-left-sidebar);
    border-radius: 10px;
    box-shadow: 0 0 16px var(--shadow);
    transform: translate(50%, -50%) scale(0);
    transition: all .2s ease-out;

    &.visible {
        display: flex;
        flex-direction: column;
    }

    &.show {
        right: 1rem;
        transform: translate(0, 0) scale(1);
        z-index: 1;
    }

    & .divider {
        width: 100%;
        height: 1px;
        background-color: var(--bg-main-menu);
    }

    .main_menu_header {
        width: 100%;
        padding: 1.5rem;
        display: flex;
    }

    .main_menu_content {
        padding: 1rem 1.5rem;

        & li {
            padding: .5rem 0;
        }
    }

    .theme-toggle-btn {
        font-weight: 600;
        padding: 0.5rem 0;
        cursor: pointer;
        user-select: none;
        transition: background-color 0.3s ease;
    }
}


/*.filter-button {*/
/*    cursor: pointer;*/

/*    &:hover {*/
/*        font-weight: 600;*/
/*    }*/
/*}*/

/*.filter-button.active {*/
/*    font-weight: 600;*/
/*    color: var(--primary);*/
/*}*/