/* ========================================
   USER DROPDOWN FIX - HeaderMain.php
   ======================================== */

/* User Button in Header */
.btn-user {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2)) !important;
    border: 1px solid rgba(102, 126, 234, 0.4) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 25px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
}

.btn-user:hover,
.btn-user:focus {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3)) !important;
    border-color: #667eea !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2) !important;
}

.btn-user .user-avatar-small {
    width: 28px !important;
    height: 28px !important;
    border: 2px solid rgba(102, 126, 234, 0.5) !important;
    object-fit: cover !important;
}

.btn-user .user-avatar-letter {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    font-size: 14px !important;
    color: white !important;
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
}

/* Dropdown Menu */
.user-modal-menu {
    background: linear-gradient(145deg, #1a1f3a, #252a45) !important;
    border: 1px solid rgba(102, 126, 234, 0.3) !important;
    border-radius: 12px !important;
    padding: 8px !important;
    margin-top: 10px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    min-width: 280px !important;
}

/* Dropdown Arrow Fix */
.user-modal-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: #1a1f3a;
    border-top: 1px solid rgba(102, 126, 234, 0.3);
    border-left: 1px solid rgba(102, 126, 234, 0.3);
    transform: rotate(45deg);
}

/* User Header in Dropdown */
.user-modal-header {
    background: rgba(102, 126, 234, 0.1) !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin-bottom: 8px !important;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2) !important;
}

.user-modal-header .user-avatar {
    width: 50px !important;
    height: 50px !important;
    border: 2px solid rgba(102, 126, 234, 0.5) !important;
}

.user-modal-header .user-name {
    color: white !important;
    font-weight: 600 !important;
    font-size: 16px !important;
}

.user-modal-header .text-muted {
    color: #94a3b8 !important;
    font-size: 13px !important;
}

/* Menu Items */
.modal-menu-item {
    background: transparent !important;
    color: #e0e0e0 !important;
    padding: 10px 16px !important;
    margin: 4px 0 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    border: none !important;
}

.modal-menu-item:hover {
    background: rgba(102, 126, 234, 0.15) !important;
    color: white !important;
    transform: translateX(5px) !important;
}

.modal-menu-item i {
    width: 20px !important;
    text-align: center !important;
    margin-right: 12px !important;
    font-size: 16px !important;
}

/* Specific Icon Colors */
.modal-menu-item .fa-user-edit {
    color: #3b82f6 !important;
}

.modal-menu-item .fa-eye {
    color: #10b981 !important;
}

.modal-menu-item .fa-server {
    color: #8b5cf6 !important;
}

.modal-menu-item .fa-heart {
    color: #ef4444 !important;
}

.modal-menu-item .fa-cog {
    color: #fbbf24 !important;
}

.modal-menu-item .fa-sign-out-alt {
    color: #ef4444 !important;
}

/* Divider */
.user-modal-menu .dropdown-divider {
    border-color: rgba(102, 126, 234, 0.2) !important;
    margin: 8px 16px !important;
}

/* Admin Badge */
.modal-menu-item .admin-badge {
    margin-left: auto;
    padding: 2px 8px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a1f3a;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

/* Provider Badge */
.provider-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid #1a1f3a;
}

.provider-badge.steam {
    background: #171a21;
    color: white;
}

.provider-badge.discord {
    background: #5865f2;
    color: white;
}

/* Fix Bootstrap Override */
.dropdown-menu.show {
    display: block !important;
}

.dropdown-toggle::after {
    margin-left: 8px !important;
    vertical-align: middle !important;
    border-top: 0.3em solid !important;
    border-right: 0.3em solid transparent !important;
    border-left: 0.3em solid transparent !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .btn-user {
        padding: 6px 12px !important;
    }
    
    .btn-user span {
        display: none !important;
    }
    
    .user-modal-menu {
        position: fixed !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
    }
}
