/* ========================================
   MODAL PROFIL UTILISATEUR - KIKOOTCHAT
   ======================================== */

.profile-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.profile-modal {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
    border: 2px solid rgba(236, 72, 153, 0.5);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(236, 72, 153, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.profile-modal-header {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(157, 23, 77, 0.3));
    padding: 20px;
    border-bottom: 2px solid rgba(236, 72, 153, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-modal-header h2 {
    color: #f472b6;
    font-size: 24px;
    text-shadow: 0 0 20px rgba(244, 114, 182, 0.8);
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-close-btn {
    background: rgba(239, 68, 68, 0.3);
    border: 2px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.profile-close-btn:hover {
    background: rgba(239, 68, 68, 0.5);
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.profile-modal-body {
    padding: 30px;
}

.profile-avatar-section {
    text-align: center;
    margin-bottom: 30px;
}

.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #ec4899;
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.6);
    object-fit: cover;
    background: linear-gradient(135deg, #ec4899, #be185d);
}

.profile-avatar-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #ec4899;
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.6);
    background: linear-gradient(135deg, #ec4899, #be185d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.profile-status-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid rgba(15, 23, 42, 0.98);
}

.profile-status-online {
    background: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.8);
}

.profile-status-offline {
    background: #6b7280;
}

.profile-username {
    font-size: 28px;
    font-weight: 700;
    color: #f472b6;
    text-shadow: 0 0 20px rgba(244, 114, 182, 0.8);
    margin-bottom: 10px;
}

.profile-role-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-role-admin {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

.profile-role-modo {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}

.profile-role-vip {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}

.profile-role-user {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

.profile-info-section {
    margin-top: 30px;
}

.profile-info-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.profile-info-item:hover {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.4);
    transform: translateX(5px);
}

.profile-info-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(236, 72, 153, 0.2);
    border-radius: 10px;
    flex-shrink: 0;
}

.profile-info-content {
    flex: 1;
}

.profile-info-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.profile-info-value {
    font-size: 16px;
    color: #f472b6;
    font-weight: 600;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.profile-stat-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
}

.profile-stat-card:hover {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.4);
    transform: translateY(-5px);
}

.profile-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #f472b6;
    text-shadow: 0 0 10px rgba(244, 114, 182, 0.6);
    margin-bottom: 5px;
}

.profile-stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.profile-action-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid rgba(236, 72, 153, 0.5);
    border-radius: 10px;
    background: rgba(236, 72, 153, 0.2);
    color: #f472b6;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.profile-action-btn:hover {
    background: rgba(236, 72, 153, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(236, 72, 153, 0.4);
}

.profile-action-btn:active {
    transform: translateY(0);
}

/* Scrollbar personnalisée */
.profile-modal::-webkit-scrollbar {
    width: 8px;
}

.profile-modal::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.profile-modal::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ec4899, #9d174d);
    border-radius: 10px;
}

.profile-modal::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f472b6, #ec4899);
}

/* Responsive */
@media (max-width: 768px) {
    .profile-modal {
        width: 95%;
        max-width: none;
    }

    .profile-modal-body {
        padding: 20px;
    }

    .profile-avatar,
    .profile-avatar-placeholder {
        width: 120px;
        height: 120px;
    }

    .profile-username {
        font-size: 22px;
    }

    .profile-stats-grid {
        grid-template-columns: 1fr;
    }

    .profile-actions {
        flex-direction: column;
    }
}
