/**
 * User Menu Component Styles
 *
 * BEM naming convention: .user-menu__element--modifier
 * Based on Taiga-Helper design system.
 *
 * Required CSS Custom Properties (define in your app.css if not already present):
 *
 * :root {
 *     --space-1: 4px;
 *     --space-2: 8px;
 *     --space-3: 12px;
 *     --space-4: 16px;
 *     --font-size-lg: 14px;
 *     --font-size-md: 13px;
 *     --font-weight-medium: 500;
 *     --font-weight-semibold: 600;
 *     --color-text-primary: #333;
 *     --color-text-secondary: #555;
 *     --color-text-muted: #888;
 *     --color-bg-hover: #f5f5f5;
 *     --color-border-default: #e0e0e0;
 *     --color-border-light: #f0f0f0;
 *     --color-error: #ef4444;
 *     --color-error-light: #fee;
 *     --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
 *     --radius-xl: 8px;
 *     --radius-full: 9999px;
 *     --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.08);
 *     --transition-fast: 0.2s;
 *     --z-dropdown: 100;
 * }
 */

/* ============================================
   USER MENU - Container
   ============================================ */

.user-menu {
    position: relative;
}

/* ============================================
   USER MENU - Trigger Button
   ============================================ */

.user-menu__trigger {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: none;
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-4);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.user-menu__trigger:hover {
    background: var(--color-bg-hover);
}

/* ============================================
   USER MENU - Avatar
   ============================================ */

.user-menu__avatar {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-lg);
}

/* ============================================
   USER MENU - Name & Arrow
   ============================================ */

.user-menu__name {
    font-size: var(--font-size-lg);
    color: var(--color-text-primary);
    font-weight: var(--font-weight-medium);
}

.user-menu__arrow {
    font-size: 10px;
    color: var(--color-text-muted);
}

/* ============================================
   USER MENU - Dropdown Panel
   ============================================ */

.user-menu__dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--space-2);
    min-width: 220px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: var(--z-dropdown);
}

.user-menu.open .user-menu__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ============================================
   USER MENU - Header Section
   ============================================ */

.user-menu__header {
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-border-light);
}

.user-menu__fullname {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    font-size: var(--font-size-lg);
}

.user-menu__email {
    font-size: var(--font-size-md);
    color: var(--color-text-muted);
    margin-top: var(--space-1);
}

/* ============================================
   USER MENU - Menu List
   ============================================ */

.user-menu__list {
    list-style: none;
    padding: var(--space-2) 0;
    margin: 0;
}

.user-menu__link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--font-size-lg);
    transition: background var(--transition-fast);
}

.user-menu__link:hover {
    background: var(--color-bg-hover);
    text-decoration: none;
}

/* Danger variant (for logout) */
.user-menu__link--danger {
    color: var(--color-error);
}

.user-menu__link--danger:hover {
    background: var(--color-error-light);
}

/* ============================================
   USER MENU - Icon
   ============================================ */

.user-menu__icon {
    width: 20px;
    text-align: center;
}
