/**
 * FENUA CHAT - Settings Page CSS
 * Styles pour la page Paramètres
 * @version 1.0.0
 */

/* Settings Container */
.settings-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

/* Settings Sections */
.settings-section {
    background: var(--bg-secondary, #fff);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

body.dark-mode .settings-section {
    background: #1a1a1a;
}

.settings-section h2,
.settings-section h3 {
    margin: 0 0 1rem 0;
    color: var(--text-primary, #333);
    font-size: 1.2rem;
}

body.dark-mode .settings-section h2,
body.dark-mode .settings-section h3 {
    color: #fff;
}

/* Settings Item */
.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.1));
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item-label {
    flex: 1;
}

.settings-item-label h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary, #333);
    font-size: 1rem;
}

body.dark-mode .settings-item-label h4 {
    color: #fff;
}

.settings-item-label p,
.field-hint {
    margin: 0;
    color: var(--text-secondary, #666);
    font-size: 0.875rem;
}

body.dark-mode .settings-item-label p,
body.dark-mode .field-hint {
    color: #999;
}

.form-input {
    background: var(--input-bg, #f5f5f5);
    color: var(--text-primary, #333);
    border: 1px solid #ddd;
}

body.dark-mode .form-input {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-color: rgba(255,255,255,0.1);
}

.form-input-disabled {
    opacity: 0.6;
}

label {
    color: var(--text-primary, #333);
}

body.dark-mode label {
    color: #fff;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #00bcd4;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Profile Section */
.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    background: var(--primary-color, #00bcd4);
}

.profile-info h2 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary, #fff);
}

.profile-info p {
    margin: 0;
    color: var(--text-secondary, #999);
}

/* Input Fields */
.settings-input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-tertiary, #2a2a2a);
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    border-radius: 8px;
    color: var(--text-primary, #fff);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.settings-input:focus {
    outline: none;
    border-color: var(--primary-color, #00bcd4);
}

/* Buttons */
.settings-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.settings-btn-primary {
    background: var(--primary-color, #00bcd4);
    color: white;
}

.settings-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.settings-btn-danger {
    background: #dc2626;
    color: white;
}

.settings-btn-danger:hover {
    background: #b91c1c;
}

/* Dark Mode */
body.dark-mode .settings-section {
    background: #1a1a1a;
}

body.dark-mode .settings-input {
    background: #2a2a2a;
}

/* Responsive */
@media (max-width: 768px) {
    .settings-container {
        padding: 0.5rem;
    }

    .settings-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }
}
