/* ========== USER PROFILE DROPDOWN ========== */
.user-profile-dropdown {
    position: relative;
    display: inline-block;
}

.user-avatar-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    background: rgba(45, 55, 72, 0.5);
    border: 1px solid rgba(72, 187, 120, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-avatar-container:hover {
    background: rgba(45, 55, 72, 0.8);
    border-color: rgba(72, 187, 120, 0.6);
    transform: translateY(-1px);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #48bb78;
}

.user-avatar[src*="default-avatar"], .user-avatar[src=""] {
    background: linear-gradient(135deg, #48bb78, #38a169);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.user-avatar[src*="default-avatar"]:before, .user-avatar[src=""]:before {
    content: "?";
}

.username {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.875rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    color: #a0aec0;
    transition: transform 0.2s ease;
}

.user-avatar-container.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Profile Dropdown Menu */
.profile-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    min-width: 280px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.profile-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #48bb78;
}

.profile-avatar[src*="default-avatar"], .profile-avatar[src=""] {
    background: linear-gradient(135deg, #48bb78, #38a169);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.profile-avatar[src*="default-avatar"]:before, .profile-avatar[src=""]:before {
    content: "?";
}

.profile-details {
    flex: 1;
}

.profile-name {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.profile-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #68d391;
    animation: pulse 2s infinite;
}

.status-text {
    color: #a0aec0;
    font-size: 0.875rem;
    font-weight: 500;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.dropdown-divider {
    border: none;
    height: 1px;
    background: rgba(74, 85, 104, 0.6);
    margin: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 0;
}

.dropdown-item:hover {
    background: rgba(72, 187, 120, 0.1);
    color: #48bb78;
}

.dropdown-item:first-of-type {
    border-radius: 0.5rem 0.5rem 0 0;
}

.dropdown-item:last-of-type {
    border-radius: 0 0 0.5rem 0.5rem;
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    color: #a0aec0;
    transition: color 0.2s ease;
}

.dropdown-item:hover .dropdown-icon {
    color: #48bb78;
}

/* Premium Status Styles */
.profile-status.premium .status-dot {
    background: #ffd700;
}

.profile-status.premium .status-text {
    color: #ffd700;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .user-avatar-container {
        padding: 0.375rem 0.75rem;
    }
    
    .username {
        display: none;
    }
    
    .profile-dropdown-menu {
        min-width: 260px;
        right: -20px;
    }
    
    .profile-info {
        padding: 0.75rem;
    }
    
    .dropdown-item {
        padding: 0.625rem 0.75rem;
    }
}

/* Animation for dropdown appearance */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.profile-dropdown-menu.active {
    animation: dropdownFadeIn 0.2s ease-out;
}

/* Close dropdown when clicking outside */
.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: transparent;
} 