/**
 * User Session Styles
 * Styles for user avatar, profile dropdown, and session UI elements
 */

/* User Avatar Circle */
.user-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.user-avatar-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.user-initials {
    user-select: none;
}

/* Desktop Auth Button with Avatar */
.ahive-desktop-auth-button-y5t9u .user-avatar-circle {
    margin: 0;
}

/* User Dropdown Header */
.user-dropdown-header {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px 8px 0 0;
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.user-initials-large {
    user-select: none;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 15px;
    color: #2d3748;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 13px;
    color: #718096;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dropdown Divider */
.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 8px 0;
}

/* Enhanced Dropdown Links */
.ahive-auth-dropdown-link-b4v7z {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 4px 8px;
}

.ahive-auth-dropdown-link-b4v7z i {
    width: 18px;
    text-align: center;
    color: #667eea;
    font-size: 14px;
}

.ahive-auth-dropdown-link-b4v7z:hover {
    background: linear-gradient(135deg, #667eea15, #764ba215);
    color: #667eea;
    transform: translateX(4px);
}

.ahive-auth-dropdown-link-b4v7z:active {
    transform: translateX(2px);
}

/* Mobile Profile Button */
.ahive-mobile-profile-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ahive-mobile-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.ahive-mobile-profile-btn .user-avatar-circle {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.ahive-mobile-profile-btn span {
    font-weight: 600;
    font-size: 15px;
}

/* Mobile Logout Button */
.ahive-mobile-logout-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white !important;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.ahive-mobile-logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.ahive-mobile-logout-btn i {
    font-size: 16px;
}

.ahive-mobile-logout-btn span {
    font-weight: 600;
    font-size: 15px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .user-dropdown-header {
        padding: 12px;
    }

    .user-avatar-large {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .user-name {
        font-size: 14px;
    }

    .user-email {
        font-size: 12px;
    }
}

/* Animation for avatar appearance */
@keyframes avatarFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.user-avatar-circle,
.user-avatar-large {
    animation: avatarFadeIn 0.3s ease-out;
}

/* Loading state */
.user-avatar-loading {
    background: linear-gradient(90deg, #e2e8f0 25%, #cbd5e0 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}