/* dashboard.css - Styles modulaires pour Dashboard.js */

#userDashboard {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    padding: 32px 24px 24px 24px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 18px;
}

.user-profile-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid #48bb78;
    object-fit: cover;
    background: #f0f0f0;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.user-profile-img:hover {
    box-shadow: 0 0 0 4px #c6f6d5;
}

.user-basic-info h3 {
    margin: 0 0 4px 0;
    font-size: 1.3em;
}

.user-basic-info p {
    margin: 2px 0;
    color: #555;
    font-size: 1em;
}

.user-stats {
    display: flex;
    gap: 18px;
    margin: 18px 0 10px 0;
    flex-wrap: wrap;
}

.stat-card {
    background: #f7fafc;
    border-radius: 7px;
    padding: 10px 18px;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(72, 187, 120, 0.07);
}

.stat-card h5 {
    margin: 0 0 4px 0;
    color: #48bb78;
    font-size: 1em;
}

.stat-card p {
    margin: 0;
    font-size: 1.1em;
    color: #222;
}

.providers-section {
    margin: 18px 0 10px 0;
}

.provider-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0f4f8;
    border-radius: 6px;
    padding: 8px 14px;
    margin-bottom: 8px;
}

.provider-item button {
    font-size: 0.95em;
}

.oauth-connect-section {
    margin: 18px 0 10px 0;
}

.oauth-providers {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 10px 0 20px 0;
}

.oauth-btn {
    min-width: 120px;
    font-weight: 500;
}

.oauth-discord {
    background: #5865F2;
    color: #fff;
}

.oauth-twitch {
    background: #9147ff;
    color: #fff;
}

.oauth-google {
    background: #fff;
    color: #222;
    border: 1px solid #ddd;
}

.oauth-github {
    background: #222;
    color: #fff;
}

.oauth-btn.btn-danger {
    background: #ef4444;
    color: #fff;
}

.avatar-test-section {
    margin: 18px 0 10px 0;
}

.avatar-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.avatar-option {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #ddd;
    object-fit: cover;
    cursor: pointer;
    transition: border 0.2s;
}

.avatar-option:hover {
    border: 2px solid #48bb78;
}

.error {
    color: #e53e3e;
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 6px;
    padding: 16px;
    margin: 12px 0;
    text-align: center;
    font-weight: bold;
}

.loading {
    color: #4299e1;
    background: #ebf8ff;
    border: 1px solid #90cdf4;
    border-radius: 6px;
    padding: 16px;
    margin: 12px 0;
    text-align: center;
    font-weight: bold;
}

/**
 * Styles du dashboard SuperOAuth - Optimisé Phase 2
 * @version 1.0.0
 */

@import 'variables.css';

/* Profil utilisateur */
.user-profile {
    display: flex;
    align-items: center;
    background: rgba(255, 107, 53, 0.1);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-right: 15px;
    border: 3px solid #ff6b35;
}

.user-details {
    flex: 1;
}

.user-details h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.user-details p {
    margin: 2px 0;
    color: #666;
    font-size: 0.9rem;
}

/* Avatar de profil */
.user-profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #007bff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto 15px auto;
    display: block;
}

.user-profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

/* Informations de base */
.user-basic-info {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05), rgba(0, 123, 255, 0.1));
    border-radius: 8px;
    margin-bottom: 15px;
}

.user-basic-info h3 {
    margin: 0 0 10px 0;
    color: #007bff;
    font-size: 24px;
}

.user-basic-info p {
    margin: 5px 0;
    color: #666;
}

/* Statistiques utilisateur */
/* Stats section */
.user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    background: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    box-shadow: var(--box-shadow);
}

.stat-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.stat-card h5 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 0.9rem;
}

.stat-card p {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
}

/* Section de test d'avatars */
.avatar-test-section {
    background: rgba(0, 123, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.avatar-test-section h4 {
    margin-top: 0;
    color: #007bff;
    font-size: 16px;
}

.avatar-options {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.avatar-option {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
}

.avatar-option:hover {
    border-color: #007bff;
    transform: scale(1.1);
}

/* Section des providers */
.providers-section {
    background: rgba(40, 167, 69, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid rgba(40, 167, 69, 0.1);
}

.providers-section h4 {
    margin-top: 0;
    color: #28a745;
    font-size: 16px;
}

.providers-list {
    margin: 15px 0;
}

.provider-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    margin: 5px 0;
}

.provider-info {
    display: flex;
    align-items: center;
}

.provider-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}