/* wsp.ai - User Profile Styles - Material Design 3 */

/* ============================================
   USER PROFILE DROPDOWN
   ============================================ */

.user-profile-container {
    position: relative;
    display: flex;
    align-items: center;
}

.user-profile-button {
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid rgba(144, 202, 249, 0.3);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    overflow: hidden;
    height: 36px;
    padding: 0;
    min-width: 120px;
}

.user-profile-button:hover {
    background-color: rgba(144, 202, 249, 0.05);
    border-color: rgba(144, 202, 249, 0.5);
}

.user-profile-container.open .user-profile-button {
    background-color: rgba(144, 202, 249, 0.08);
    border-color: rgba(144, 202, 249, 0.5);
}

.user-profile-main {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 6px 12px;
    color: #90caf9;
    font-size: 13px;
    font-weight: 500;
    border-right: 1px solid rgba(144, 202, 249, 0.2);
    transition: background-color var(--transition-fast);
    min-width: 80px;
    justify-content: center;
}

.user-profile-main:hover {
    background-color: rgba(144, 202, 249, 0.08);
}

.user-name {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.user-profile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    color: #90caf9;
    transition: all var(--transition-fast);
}

.user-profile-dropdown-toggle:hover {
    background-color: rgba(144, 202, 249, 0.08);
}

.user-profile-dropdown-toggle .material-symbols-outlined {
    font-size: 18px;
    transition: transform var(--transition-fast);
}

.user-profile-container.open .user-profile-dropdown-toggle .material-symbols-outlined {
    transform: rotate(180deg);
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2196f3, #00bcd4);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    border: 1.5px solid rgba(144, 202, 249, 0.3);
}

/* Dropdown Menu */
.user-profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background-color: #252525;
    border: 1px solid rgba(144, 202, 249, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.user-profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Header */
.user-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(0, 188, 212, 0.1));
    border-bottom: 1px solid rgba(144, 202, 249, 0.1);
}

.user-avatar-large {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2196f3, #00bcd4);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 500;
    border: 3px solid rgba(144, 202, 249, 0.3);
    flex-shrink: 0;
}

.user-profile-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.user-profile-name {
    font-size: 16px;
    font-weight: 500;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-profile-role {
    font-size: 13px;
    color: #90caf9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-profile-email {
    font-size: 12px;
    color: #b0b0b0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Divider */
.user-profile-divider {
    height: 1px;
    background-color: rgba(144, 202, 249, 0.1);
    margin: 4px 0;
}

/* Menu Items */
.user-profile-menu {
    padding: 4px 0;
}

.user-profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #e0e0e0;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-profile-menu-item:hover {
    background-color: rgba(144, 202, 249, 0.08);
    color: #90caf9;
}

.user-profile-menu-item .material-symbols-outlined {
    font-size: 20px;
    color: #b0b0b0;
    transition: color 0.2s ease;
}

.user-profile-menu-item:hover .material-symbols-outlined {
    color: #90caf9;
}

.user-profile-menu-item.logout {
    color: #ef5350;
}

.user-profile-menu-item.logout:hover {
    background-color: rgba(239, 83, 80, 0.08);
    color: #ef5350;
}

.user-profile-menu-item.logout .material-symbols-outlined {
    color: #ef5350;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .user-name {
        display: none;
    }
    
    .user-profile-button {
        border-radius: 50%;
        width: 48px;
        height: 48px;
    }
    
    .user-profile-main {
        padding: 4px;
    }
    
    .user-profile-dropdown-toggle {
        display: none;
    }
    
    .user-profile-dropdown {
        right: -8px;
    }
}
