/* public/css/components/header/user-menu.css */

#user-menu {
    margin-top: 11px;
    /* Відступ зверху для вирівнювання з іконкою */
}

.user-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    border-radius: 0.375rem;
    margin: 0.25rem;
    position: relative;
    transition: background-color 0.2s ease-in-out;
}

.user-menu-link:hover {
    background-color: rgba(37, 99, 235, 0.1);
    color: #2563EB;
}

.user-menu-link:hover i.ph {
    color: #2563EB;
}

.user-menu-link i.ph {
    font-size: 1.25rem;
}

/* Стиль для розділювача */
.user-menu-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    margin: 0.25rem 0.5rem;
}

/* Лічильник у пунктах меню — по середині висоти елемента (flex) */
/* (Стилі перенесено в global badges.css) */

/* === МОБІЛЬНА АДАПТАЦІЯ ДЛЯ СМАРТФОНІВ === */
@media (max-width: 767px) {
    #user-menu {
        /* Успадковуємо анімацію та позицію (top/left/transform) від .header-dropdown */
        width: 90vw !important;
        max-width: 500px !important;
        height: calc(100vh - 90px) !important;
        max-height: none !important;
        display: flex !important;
        flex-direction: column !important;
        padding-bottom: 1rem;
    }

    #user-menu>* {
        flex: 1;
        /* Автоматично розподіляємо висоту між пунктами */
        display: flex;
    }

    .profile-menu-row {
        gap: 0;
        margin: 0.25rem;
    }

    .profile-menu-row>* {
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 0.375rem;
    }

    .profile-menu-row>.user-menu-link {
        flex: 1;
    }

    .profile-menu-row>.dashboard-menu-btn {
        flex: 0 0 70px;
        /* Кнопка кабінету стала вужчою */
    }

    .user-menu-link {
        padding: 0 1.25rem;
        font-size: 1.1rem;
        align-items: center;
        justify-content: flex-start;
    }

    .user-menu-link i.ph {
        font-size: 1.5rem;
    }

    .user-menu-divider {
        flex: 0 0 auto !important;
        /* Розділювач не розтягується */
        margin: 0.5rem;
    }
}