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

.lab-profile-menu {
    position: fixed;

    top: 22px;
    right: 24px;

    z-index: 1000;
}


/* Avatar */

.lab-profile-menu__trigger {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    background: #ffffff;

    border: 1px solid var(--color-border);
    border-radius: 50%;

    overflow: hidden;
    cursor: pointer;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.05);

    transition:
        border-color 140ms ease,
        box-shadow 140ms ease,
        transform 140ms ease;
}

.lab-profile-menu__trigger:hover {
    border-color: var(--color-border-strong);

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.08);
}

.lab-profile-menu__trigger:active {
    transform: scale(0.96);
}

.lab-profile-menu__trigger:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}


/* Imagen */

.lab-profile-menu__avatar {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;
}


/* Fallback */

.lab-profile-menu__fallback {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #0a0b0d;
    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
}


/* Dropdown */

.lab-profile-menu__dropdown {
    position: absolute;

    top: calc(100% + 9px);
    right: 0;

    width: 170px;

    padding: 6px;

    background: #ffffff;

    border: 1px solid var(--color-border);
    border-radius: 12px;

    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.10),
        0 3px 10px rgba(0, 0, 0, 0.04);

    opacity: 0;

    transform:
        translateY(-4px)
        scale(0.985);

    transform-origin: top right;

    pointer-events: none;

    transition:
        opacity 140ms ease,
        transform 140ms ease;
}

.lab-profile-menu__dropdown--open {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);

    pointer-events: auto;
}

/* Menu items */

.lab-profile-menu__item {
    min-height: 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 12px;

    border-radius: 8px;

    color: var(--color-text);

    font-size: 13px;
    font-weight: 550;

    text-decoration: none;

    transition:
        background 140ms ease,
        color 140ms ease;
}

.lab-profile-menu__item:hover {
    background: var(--color-soft);
}

.lab-profile-menu__arrow {
    color: var(--color-text-muted);

    font-size: 15px;

    transition: transform 140ms ease;
}

.lab-profile-menu__item:hover
.lab-profile-menu__arrow {
    transform: translateX(2px);
}

/* Mobile */

@media (max-width: 767px) {

    .lab-profile-menu {
        top: 14px;
        right: 14px;
    }

    .lab-profile-menu__trigger {
        width: 38px;
        height: 38px;
    }

}