/* Profile Dropdown Styles - Reusable Component */

.profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: rgba(44, 44, 46, 0.95);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 0;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.profile-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(44, 44, 46, 0.95);
}

.profile-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.profile-dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.profile-dropdown-info {
    flex: 1;
}

.profile-dropdown-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.profile-dropdown-email {
    font-size: 12px;
    color: var(--text-secondary);
}

.profile-dropdown-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 0 16px;
}

.profile-dropdown-section {
    padding: 16px;
}

.profile-dropdown-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.referral-code-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.referral-code-input {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    letter-spacing: 1px;
}

.copy-referral-btn {
    padding: 8px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.copy-referral-btn:hover {
    background: var(--secondary);
    transform: translateY(-1px);
}

.profile-dropdown-actions {
    padding: 8px 16px 16px;
}

.profile-dropdown-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-normal);
    font-size: 14px;
}

.profile-dropdown-logout:hover {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .profile-dropdown {
        right: -10px;
        min-width: 260px;
    }
    
    .profile-dropdown::before {
        right: 30px;
    }
}

@media (max-width: 480px) {
    .profile-dropdown {
        right: -20px;
        min-width: 240px;
    }
    
    .profile-dropdown::before {
        right: 40px;
    }
}
