/* Definições de Temas - Paletas de Cores (Refatorado para Mudança Total de Fundo) */

/* 1. Jardim de Sálvia (Verde Calmo) */
body.theme-sage {
    --primary-color: #6f8f7a;
    --primary-soft: #edf4ef;
    --primary-dark: #4f6f5c;
    --accent-color: #c9a27e;
    --bg-main: #ffffff;
    --white: #ffffff;
    --bg-soft: #faf7f2;
    --bg-cream: #f4eee6;
    --bg-warm: #f4eee6;
    --text-dark: #2f3a34;
    --hero-bg: linear-gradient(135deg, #ffffff 0%, #faf7f2 50%, #edf4ef 100%);
    --whatsapp-color: #3faa66;
    --whatsapp-hover: #349658;
}

/* 2. Terra Terracota (Earthy & Warm) */
body.theme-terracotta {
    --primary-color: #a08470;
    --primary-soft: #f8f1ed;
    --primary-dark: #8c7360;
    --accent-color: #b5838d;
    --bg-main: #fcf9f7; /* Fundo levemente tingido */
    --white: #ffffff;
    --bg-soft: #f5edeb;
    --bg-cream: #efe4e1;
    --bg-warm: #efe4e1;
    --text-dark: #4a3f35;
    --hero-bg: linear-gradient(135deg, #ffffff 0%, #fcf9f7 50%, #f8f1ed 100%);
    --whatsapp-color: #a08470;
    --whatsapp-hover: #8c7360;
}

/* 3. Calma Lavanda (Roxo Sereno) */
body.theme-lavender {
    --primary-color: #8e7caf;
    --primary-soft: #f4f1f8;
    --primary-dark: #6d5b8c;
    --accent-color: #d8b4a0;
    --bg-main: #f9f7f9; /* Fundo levemente lavanda */
    --white: #ffffff;
    --bg-soft: #f2edf2;
    --bg-cream: #ebe4eb;
    --bg-warm: #ebe4eb;
    --text-dark: #3a2f3a;
    --hero-bg: linear-gradient(135deg, #ffffff 0%, #f9f7f9 50%, #f4f1f8 100%);
    --whatsapp-color: #8e7caf;
    --whatsapp-hover: #6d5b8c;
}

/* 4. Serenidade Oceânica (Azul/Teal) */
body.theme-ocean {
    --primary-color: #4a7c8c;
    --primary-soft: #eaf1f3;
    --primary-dark: #365b68;
    --accent-color: #d8c4a0;
    --bg-main: #f4f7f8; /* Fundo levemente azulado */
    --white: #ffffff;
    --bg-soft: #eef2f4;
    --bg-cream: #e1e7eb;
    --bg-warm: #e1e7eb;
    --text-dark: #2f373a;
    --hero-bg: linear-gradient(135deg, #ffffff 0%, #f4f7f8 50%, #eaf1f3 100%);
    --whatsapp-color: #4a7c8c;
    --whatsapp-hover: #365b68;
}

/* 5. Quartzo Rosa (Rosa Elegante) */
body.theme-rose {
    --primary-color: #b5838d;
    --primary-soft: #f9f0f1;
    --primary-dark: #8c5e68;
    --accent-color: #a08470;
    --bg-main: #fdfafb; /* Fundo levemente rosado */
    --white: #ffffff;
    --bg-soft: #f9f2f3;
    --bg-cream: #f2e4e6;
    --bg-warm: #f2e4e6;
    --text-dark: #3a2f31;
    --hero-bg: linear-gradient(135deg, #ffffff 0%, #fdfafb 50%, #f9f0f1 100%);
    --whatsapp-color: #b5838d;
    --whatsapp-hover: #8c5e68;
}

/* Estilos do Seletor Flutuante */
.theme-configurator {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    padding: 15px;
    border-radius: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.theme-option {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.theme-option:hover {
    transform: scale(1.25);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.theme-option.active {
    transform: scale(1.15);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.theme-option::after {
    content: attr(data-theme-name);
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.theme-option:hover::after {
    opacity: 1;
    visibility: visible;
    right: 42px;
}

/* Cores das opções */
.opt-sage { background-color: #6f8f7a; }
.opt-terracotta { background-color: #a08470; }
.opt-lavender { background-color: #8e7caf; }
.opt-ocean { background-color: #4a7c8c; }
.opt-rose { background-color: #b5838d; }

@media (max-width: 768px) {
    .theme-configurator {
        top: auto;
        bottom: 100px;
        right: 50%;
        transform: translateX(50%);
        flex-direction: row;
        padding: 10px 20px;
        border-radius: 30px;
    }
    .theme-option::after {
        display: none;
    }
}
