/* ================ Navigation ================ */
/* ---- HEADER ---- */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 3;
    background-color: var(--nav-color);
}

.container_header {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0px 15px;
}

.header_body {
    position: relative;
    display: flex;
    height: var(--height-nav-PC);
    justify-content: left;
    align-items: center;
}

/* ---- LOGO ---- */
.header_logo a img { aspect-ratio: 1/1; }
.header_logo, .header_logo a img { height: 100%; }

/* ---- BURGER (Mobile) ---- */
.header_burger { display: none; }

/* ---- MENU ---- */
.header_menu {
    height: 100%;
    margin-left: 20px;
}

.header_list {
    display: flex;
    height: 100%;
    align-items: center;
}

.header_list li {
    display: flex;
    list-style: none;
    align-items: center;
    height: 100%;
}

.header_link {
    color: var(--nav-text-color);
    /*text-transform: uppercase;*/
    text-decoration: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    padding: 0px 10px 0px 10px;
    transition: not(all) 1s ease 0s;
    position: relative;
    height: 100%;
}
.header_link::after { 
    content: "";
    position: absolute;
    height: 2px;
    background-color: var(--nav-link-line-color);
    width: 0;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    transition: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) all;
}
.header_link:hover { color: var(--nav-hover-text-color); }
.header_link:hover::after { width: 100%; }

/* ---- LOGIN BUTTON ---- */
.header_account {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    border-radius: 30px;
    background: #668cae;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease 0s;
}
.header_account:hover { background: #526b81; }

.header_account img,
.header_account span {
    pointer-events: none;
    user-select: none;
}

.account_avatar {
    width: 32px;
    height: 32px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    object-fit: cover;
    background: white;
}





/* ================ ACCOUNT MENU ================ */
.account_menu {
    position: absolute;
    top: 100%;
    right: 0px;  
    background: white;
    border: 1px solid #dcdde1;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    display: none;
    flex-direction: column;
    width: 250px;
    z-index: 1001;
    margin-top: 8px;
}
.account_menu.show { display: flex; }
.account_menu a {
    padding: 12px 16px;
    text-decoration: none;
    color: #1f2124;
    font-size: 14px;
    transition: 0.2s;
    user-select: none;
}
.account_menu a:hover {
    background-color: #d4d5d9;
    border-radius: 10px;
}
.account_menu .logout {
    color: #e84118;
    font-weight: 500;
}





/* =========== MOBILE VERSION =========== */
@media (max-width: 767px) {
    /* ================ Navigation ================ */
    /* ---- HEADER ---- */
    .container_header {
        max-width: none;
        padding: 0px 5px;
        width: 100%;
    }

    .header_body { height: var(--height-nav-MOB); }   
    
    /* ---- MENU ---- */
    .header_menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background-color: var(--nav-color);
        transition: left 0.3s ease 0s;
        z-index: 2;
        margin-left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow-y: auto;
    }
    
    .header_menu.active { left: 0; }

    .header_list {
        flex-direction: column;
        width: 100%;
        height: auto;
        padding-top: 60px;
    }
    
    .header_list li {
        width: 100%;
        height: auto;
        justify-content: center;
        background-color: var(--nav-color);
    }

    .header_link {
        padding: 25px 0px;
        width: 100%;
        flex-direction: column;
        justify-content: center;
        font-size: 20px;
    }

    .header_link::after { display: none; }

    /* ---- BURGER (Mobile) ---- */
    .header_burger {
        display: block;
        position: absolute;
        align-items: center;
        right: 5px;
        width: 40px;
        height: 30px;
        z-index: 4;
    }
    
    /* HORIZONTAL BORDERS */
    .r1, .r2, .r3 {
        content: '';
        background-color: var(--close-burger-menu);
        position: absolute;
        width: 100%;
        height: 5px;
        left: 0;
        transition: all 0.3s ease 0s;
    }
    .r1 { top: 0px; }
    .r2 { top: calc(50% - 3px); }
    .r3 { bottom: 0px; }
    
    .header_burger.active .r1{
        transform: rotate(45deg);
        top: 50%;
        transition: all 0.3s ease 0s;
    }
    .header_burger.active .r2{
        display: none;
        transition: all 0s ease 0s;
    }
    .header_burger.active .r3{
        transform: rotate(-45deg);
        top: 50%;
        transition: all 0.3s ease 0s;
    }
}