/* Teste das Deusas - Estilos Públicos */

/* Importa fontes do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* Variáveis CSS (serão sobrescritas dinamicamente) */
:root {
    --primary-color: #D4A574;
    --secondary-color: #E8C5A0;
    --accent-color: #B8860B;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --background-light: #fefefe;
    --background-soft: #f9f7f4;
    --border-soft: #e8e0d6;
    --shadow-soft: rgba(212, 165, 116, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-soft: linear-gradient(135deg, rgba(212, 165, 116, 0.1), rgba(232, 197, 160, 0.1));
}

/* Reset e base */
.teste-deusas-quiz *,
.teste-deusas-lead-form *,
.teste-deusas-result * {
    box-sizing: border-box;
}

/* Container principal */
#teste-deusas-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--background-light);
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow-soft);
    position: relative;
    overflow: visible;
    isolation: isolate;
}

#teste-deusas-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 1;
}

/* Header do Quiz */
.quiz-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: var(--gradient-soft);
    border-radius: 15px;
    position: relative;
    z-index: 2;
    clear: both;
}

.quiz-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quiz-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0 0 25px 0;
    font-weight: 300;
}

/* Barra de Progresso */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-soft);
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0 10px 0;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    font-weight: 500;
}

/* Container da Pergunta */
.question-container {
    padding: 0 10px;
    position: relative;
    z-index: 3;
    clear: both;
}

.question-image {
    text-align: center;
    margin-bottom: 30px;
}

.question-image img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.question-image img:hover {
    transform: scale(1.02);
}

.question-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin: 0 0 35px 0;
    line-height: 1.4;
}

/* Formulário de Respostas */
.answers-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.answer-option {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: var(--background-soft);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 4;
    margin-bottom: 15px;
}

.answer-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-soft);
    transition: left 0.3s ease;
    z-index: 0;
}

.answer-option:hover::before {
    left: 0;
}

.answer-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-soft);
}

.answer-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 2px 15px 0 0;
    accent-color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.answer-option.selected {
    border-color: var(--primary-color);
    background: var(--gradient-soft);
    box-shadow: 0 5px 20px var(--shadow-soft);
}

.answer-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

/* Botão Próximo */
.next-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    margin: 30px auto 0;
    display: block;
    min-width: 200px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-soft);
}

.next-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.next-button:hover::before {
    left: 100%;
}

.next-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-soft);
}

.next-button:active {
    transform: translateY(0);
}

/* Formulário de Lead */
.teste-deusas-lead-form {
    text-align: center;
}

.lead-header {
    margin-bottom: 40px;
}

.lead-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin: 0 0 15px 0;
}

.lead-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0;
}

.lead-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-soft);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--background-light);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.submit-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px var(--shadow-soft);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-soft);
}

/* Resultado */
.teste-deusas-result {
    text-align: center;
}

.result-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0 0 10px 0;
}

.result-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 0 0 30px 0;
    font-weight: 600;
}

.goddess-result {
    background: var(--gradient-soft);
    padding: 40px;
    border-radius: 20px;
    margin: 30px 0;
    text-align: left;
}

.goddess-image {
    text-align: center;
    margin-bottom: 30px;
}

.goddess-image img {
    max-width: 250px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.goddess-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 0 20px 0;
    text-align: center;
    font-weight: 600;
}

.goddess-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 25px;
    white-space: pre-line;
}

.action-button-container {
    text-align: center;
    margin-top: 30px;
}

.action-button {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-soft);
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-soft);
    color: white;
    text-decoration: none;
}

.secondary-goddess {
    background: var(--background-soft);
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
    border-left: 4px solid var(--primary-color);
}

.secondary-goddess h4 {
    color: var(--primary-color);
    margin: 0 0 15px 0;
    font-size: 1.2rem;
}

.result-actions {
    margin-top: 40px;
}

.restart-button {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.restart-button:hover {
    background: var(--primary-color);
    color: white;
}

/* Responsividade */
@media (max-width: 768px) {
    #teste-deusas-container {
        margin: 10px;
        padding: 15px;
        border-radius: 15px;
    }
    
    .quiz-title {
        font-size: 2rem;
    }
    
    .question-text {
        font-size: 1.3rem;
    }
    
    .answer-option {
        padding: 15px;
    }
    
    .goddess-result {
        padding: 25px;
    }
    
    .goddess-image img {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .quiz-header {
        padding: 20px 15px;
    }
    
    .quiz-title {
        font-size: 1.8rem;
    }
    
    .question-text {
        font-size: 1.2rem;
    }
    
    .answer-option {
        padding: 12px;
    }
    
    .answer-text {
        font-size: 0.95rem;
    }
    
    .next-button,
    .submit-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-container,
.lead-form,
.goddess-result {
    animation: fadeIn 0.6s ease-out;
}

/* Estados de carregamento */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading .next-button,
.loading .submit-button {
    background: #ccc;
    cursor: not-allowed;
}

.loading .next-button::after,
.loading .submit-button::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

