/**
 * LOUD SETTINGS STYLE - Estilos para Central de Configurações
 */

/* ── BOTÃO DE CONFIGURAÇÕES ── */
.loud-settings-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: 2px solid rgba(245, 158, 11, 0.3);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2);
}

.loud-settings-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.4);
    border-color: rgba(245, 158, 11, 0.6);
}

/* ── MODAL DE CONFIGURAÇÕES ── */
.loud-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fade-in 0.3s ease;
    backdrop-filter: blur(5px);
}

.loud-settings-container {
    background: linear-gradient(135deg, #16161a, #1c1c21);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    animation: slide-up 0.3s ease;
    padding: 0;
}

/* ── HEADER ── */
.loud-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid rgba(245, 158, 11, 0.2);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), transparent);
    position: sticky;
    top: 0;
}

.loud-settings-header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: #f59e0b;
    margin: 0;
    letter-spacing: 2px;
}

.loud-settings-close {
    width: 40px;
    height: 40px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 50%;
    color: #f59e0b;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.loud-settings-close:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
}

/* ── SEÇÕES ── */
.loud-settings-section {
    padding: 24px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}

.loud-settings-section:last-of-type {
    border-bottom: none;
}

.loud-settings-section h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    color: #f0f0f4;
    margin: 0 0 16px 0;
    letter-spacing: 1px;
}

/* ── OPÇÕES ── */
.loud-settings-option {
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(245, 158, 11, 0.05);
    border-radius: 8px;
    border-left: 3px solid rgba(245, 158, 11, 0.2);
}

.loud-settings-option:last-child {
    margin-bottom: 0;
}

/* ── RADIO ── */
.loud-settings-radio,
.loud-settings-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    color: #f0f0f4;
}

.loud-settings-radio input,
.loud-settings-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #f59e0b;
}

/* ── DESCRIÇÃO ── */
.loud-settings-description {
    margin: 8px 0 0 30px;
    font-size: 0.85rem;
    color: #6b6b7a;
    line-height: 1.4;
}

/* ── SLIDERS ── */
.loud-settings-slider {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(245, 158, 11, 0.05);
    border-radius: 8px;
}

.loud-settings-slider label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #f0f0f4;
    font-size: 0.95rem;
}

.loud-settings-range {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(245, 158, 11, 0.2);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.loud-settings-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    transition: all 0.2s ease;
}

.loud-settings-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
}

.loud-settings-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    transition: all 0.2s ease;
}

.loud-settings-range::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
}

.loud-settings-slider span {
    display: inline-block;
    margin-left: 12px;
    font-weight: 700;
    color: #f59e0b;
    font-size: 0.9rem;
}

/* ── AÇÕES ── */
.loud-settings-actions {
    display: flex;
    gap: 12px;
    padding: 24px;
    border-top: 2px solid rgba(245, 158, 11, 0.1);
    background: rgba(245, 158, 11, 0.05);
    position: sticky;
    bottom: 0;
}

.loud-settings-btn-reset,
.loud-settings-btn-close {
    flex: 1;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
}

.loud-settings-btn-reset {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.loud-settings-btn-reset:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.5);
}

.loud-settings-btn-close {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
}

.loud-settings-btn-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

/* ── TEMA CLEAN ── */
[data-theme="clean"] {
    --bg: #f5f5f7;
    --bg2: #eeeff4;
    --text: #1a1a1a;
    --text-secondary: #666;
}

[data-theme="clean"] body {
    background: var(--bg);
    color: var(--text);
}

[data-theme="clean"] .loud-settings-container {
    background: linear-gradient(135deg, #f5f5f7, #eeeff4);
    border-color: rgba(245, 158, 11, 0.2);
}

[data-theme="clean"] .loud-settings-header,
[data-theme="clean"] .loud-settings-section,
[data-theme="clean"] .loud-settings-option,
[data-theme="clean"] .loud-settings-slider {
    background: rgba(245, 158, 11, 0.08);
}

[data-theme="clean"] .loud-settings-header h1,
[data-theme="clean"] .loud-settings-section h3,
[data-theme="clean"] .loud-settings-radio span,
[data-theme="clean"] .loud-settings-checkbox span,
[data-theme="clean"] .loud-settings-slider label {
    color: var(--text);
}

[data-theme="clean"] .loud-settings-description {
    color: var(--text-secondary);
}

/* ── REDUÇÃO DE MOVIMENTO ── */
.reduce-motion,
.reduce-motion * {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
}

/* ── FILTRO DE LUZ AZUL ── */
.blue-light-filter::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 180, 0, 0.15);
    pointer-events: none;
    z-index: -1;
}

/* ── RESPONSIVIDADE ── */
@media (max-width: 600px) {
    .loud-settings-container {
        width: 95%;
        max-height: 90vh;
    }

    .loud-settings-header h1 {
        font-size: 1.3rem;
    }

    .loud-settings-section {
        padding: 16px;
    }

    .loud-settings-actions {
        flex-direction: column;
    }
}
