/* ==========================================================================
   STYLES POUR LES FORMULAIRES DE PROFIL CITOYEN GALACTIQUE
   ========================================================================== */

/* Styles communs pour les formulaires */
.profile-form {
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
}

.wide-group {
    grid-column: span 2;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(70, 70, 70, 0.8);
    border: 1px solid rgba(100, 100, 100, 0.5);
    border-radius: 4px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
    outline: none;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-help {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 6px;
}

.form-section-divider {
    width: 100%;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(100, 100, 100, 0.3);
}

.subsection-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 15px;
}

/* Styles pour les boutons de formulaire */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: linear-gradient(180deg, #475569 0%, #334155 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

/* Upload d'avatar */
.avatar-upload-group {
    grid-column: span 2;
    margin-bottom: 25px;
}

.avatar-upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.avatar-upload-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.upload-btn, .remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 15px;
    background: linear-gradient(180deg, #475569 0%, #334155 100%);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.upload-btn:hover {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.remove-btn {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

.remove-btn:hover {
    background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.upload-icon, .remove-icon {
    width: 16px;
    height: 16px;
}

.avatar-help {
    color: #94a3b8;
    font-size: 0.8rem;
}

.hidden-file-input {
    display: none;
}

/* Styles spécifiques pour la page de réputation des factions */
.reputation-helper-text {
    text-align: center;
    margin-bottom: 25px;
    color: #94a3b8;
    font-size: 0.95rem;
}

.reputation-sliders {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.reputation-slider-container {
    width: 100%;
}

.reputation-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.faction-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e5e7eb;
}

.reputation-value {
    padding: 3px 8px;
    background-color: rgba(70, 70, 70, 0.8);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #f59e0b;
}

.reputation-slider-wrapper {
    padding: 0 5px;
}

.reputation-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(55, 65, 81, 0.5);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    
}

.reputation-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f59e0b;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.reputation-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f59e0b;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

/* Style pour la description d'en-tête */
.profile-header-desc {
    color: #94a3b8;
    font-size: 1rem;
    margin-top: 5px;
}

/* ==========================================================================
   RESPONSIVE DESIGN POUR LES FORMULAIRES
   ========================================================================== */
@media (max-width: 768px) {
    .form-grid, 
    .reputation-sliders {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .wide-group {
        grid-column: span 1;
    }

    .avatar-upload-group {
        grid-column: span 1;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .form-input,
    .form-textarea {
        padding: 10px;
        font-size: 0.9rem;
    }

    .subsection-title {
        font-size: 1rem;
    }

    .reputation-slider-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .reputation-value {
        align-self: flex-end;
    }
}