/* ===================================
   RESET E CONFIGURAÇÕES GLOBAIS
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores Místicas de Amor - Paleta "Paixão Profunda" */
    --color-primary: #C2185B;    /* Vermelho Rubi */
    --color-secondary: #7B1FA2;  /* Roxo Profundo e Quente */
    --color-tertiary: #F48FB1;   /* Rosa Suave Romântico */
    --color-gold: #FFC107;       /* Dourado Âmbar */
    --color-rose: #E91E63;       /* Rosa Paixão */
    --color-purple: #8E24AA;     /* Violeta Quente */
    --color-dark: #2C001E;       /* Fundo Vinho Escuro */
    --color-darker: #1A0010;     /* Fundo Quase Preto Quente */
    --color-light: #FFF5F8;      /* Texto Creme Rosado */

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-tertiary) 0%, var(--color-purple) 100%);
    --gradient-gold: linear-gradient(135deg, var(--color-gold) 0%, #FF9800 100%);
    --gradient-mystical: linear-gradient(135deg, var(--color-dark) 0%, #4a0e35 50%, var(--color-dark) 100%);

    /* Fontes */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Poppins', sans-serif;

    /* Sombras */
    --shadow-glow: 0 0 30px rgba(194, 24, 91, 0.6);
    --shadow-glow-purple: 0 0 30px rgba(123, 31, 162, 0.6);
    --shadow-glow-gold: 0 0 40px rgba(255, 193, 7, 0.8);
}

body {
    font-family: var(--font-body);
    background: var(--gradient-mystical);
    color: var(--color-light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===================================
   PARTÍCULAS DE FUNDO
   =================================== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* ===================================
   CONTAINER PRINCIPAL
   =================================== */
.quiz-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;

    /* 🔥 CORREÇÃO DEFINITIVA */
    display: flex;
    flex-direction: column;
}
/* Centraliza APENAS a intro */
.intro-section {
    margin: auto 0;
}


/* ===================================
   SEÇÃO DE INTRODUÇÃO
   =================================== */
.intro-section {
    text-align: center;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    position: relative;
}

.intro-section.active {
    display: block;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Brilho Místico de Fundo */
.mystical-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(194, 24, 91, 0.3) 0%, transparent 70%); /* Ajustado para nova cor */
    filter: blur(80px);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* ===================================
   HEADLINE PRINCIPAL
   =================================== */
.main-headline {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.headline-line {
    display: block;
    animation: slideIn 0.8s ease forwards;
    opacity: 0;
}

.headline-line:nth-child(1) {
    animation-delay: 0.2s;
}

.headline-line:nth-child(2) {
    animation-delay: 0.4s;
}

.headline-line:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }

    from {
        transform: translateX(-20px);
    }
}

.headline-line.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    animation: slideIn 0.8s ease forwards, glow 2s ease-in-out infinite;
    animation-delay: 0.4s, 0.4s;
}

@keyframes glow {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.3);
    }
}

/* ===================================
   CAIXA DE AVISO
   =================================== */
.warning-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 30px;
    margin: 40px auto;
    max-width: 600px;
    position: relative;
    overflow: hidden;
    animation: borderGlow 3s linear infinite;
}

.warning-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.5;
    animation: rotateBorder 4s linear infinite;
}

@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.warning-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    line-height: 1.6;
    color: var(--color-light);
    font-weight: 300;
}

.subtitle strong {
    color: var(--color-gold);
    font-weight: 600;
    text-shadow: var(--shadow-glow-gold);
}

/* ===================================
   IMAGEM MÍSTICA
   =================================== */
.mystical-image-container {
    position: relative;
    max-width: 500px;
    margin: 50px auto;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(194, 24, 91, 0.4) 0%, transparent 70%); /* Ajustado */
    filter: blur(40px);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.mystical-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 30px rgba(194, 24, 91, 0.8)); /* Ajustado */
}

.sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* ===================================
   BOTÃO INICIAR
   =================================== */
.start-btn {
    position: relative;
    background: var(--gradient-primary);
    color: white;
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 600;
    padding: 20px 60px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 40px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.start-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.start-btn:hover::before {
    width: 300px;
    height: 300px;
}

.start-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(194, 24, 91, 0.9); /* Ajustado */
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* ===================================
   SEÇÃO DO QUIZ
   =================================== */
.quiz-section {
    display: none;
    width: 100%;
    text-align: center;
}


/* Header do Quiz */
.quiz-header {
    margin-bottom: 40px;
}

/* Logo do Quiz */
.quiz-logo {
    text-align: center;
    margin-bottom: 30px;
    animation: logoFadeIn 1s ease forwards;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-image {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(194, 24, 91, 0.5)); /* Ajustado */
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Barra de Progresso */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 20px rgba(194, 24, 91, 0.8); /* Ajustado */
    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: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.question-counter {
    font-size: 1.1rem;
    color: var(--color-gold);
    font-weight: 500;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Container de Perguntas */
.question-container {
    transition: all 0.5s ease;
}

/* Card da Pergunta */
.question-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    animation: cardFadeIn 0.8s ease forwards;
}

.question-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg,
            var(--color-tertiary),
            var(--color-secondary),
            var(--color-primary),
            var(--color-rose),
            var(--color-tertiary));
    background-size: 300% 300%;
    border-radius: 30px;
    z-index: -1;
    animation: borderFlow 4s linear infinite;
    opacity: 0.4;
}

@keyframes borderFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.question-number {
    font-size: 0.9rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 600;
}

.question-text {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--color-light);
    line-height: 1.4;
    margin-bottom: 40px;
    font-weight: 600;
}

/* Container de Opções */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
}

/* Botões de Opção */
.option-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px 30px;
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--color-light);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-20px);
    animation: optionSlideIn 0.5s ease forwards;
}

@keyframes optionSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 0 30px rgba(194, 24, 91, 0.4); /* Ajustado */
}

.option-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    transition: width 0.4s ease;
    z-index: -1;
    opacity: 0.3;
}

.option-btn:hover::before {
    width: 100%;
}

.option-text {
    position: relative;
    z-index: 1;
    display: block;
    text-align: left;
}

.option-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(194, 24, 91, 0.2) 0%, transparent 70%); /* Ajustado */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.option-btn:hover .option-glow {
    opacity: 1;
}

/* Estado Selecionado */
.option-btn.selected {
    background: var(--gradient-primary);
    border-color: var(--color-gold);
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(194, 24, 91, 0.8); /* Ajustado */
    animation: selectedPulse 0.5s ease;
}

@keyframes selectedPulse {

    0%,
    100% {
        transform: scale(1.05);
    }

    50% {
        transform: scale(1.1);
    }
}

.option-btn.not-selected {
    opacity: 0.3;
    transform: scale(0.95);
}

/* ===================================
   SEÇÃO DE RESULTADO
   =================================== */
.result-section {
    display: none;
    width: 100%;
    text-align: center;
}

.result-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    animation: resultFadeIn 1s ease forwards;
}

.result-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg,
            var(--color-tertiary),
            var(--color-secondary),
            var(--color-primary),
            var(--color-rose),
            var(--color-tertiary));
    background-size: 400% 400%;
    border-radius: 30px;
    z-index: -1;
    animation: resultBorderGlow 6s linear infinite;
    opacity: 0.5;
}

@keyframes resultBorderGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes resultFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 30px;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.result-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    font-weight: 700;
}

.result-text {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    line-height: 1.8;
    color: var(--color-light);
    margin-bottom: 30px;
}

.result-text strong {
    color: var(--color-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.result-divider {
    width: 100px;
    height: 3px;
    background: var(--gradient-gold);
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.result-cta-text {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--color-tertiary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-btn {
    position: relative;
    background: var(--gradient-primary);
    color: white;
    font-family: var(--font-body);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    padding: 25px 70px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 40px rgba(194, 24, 91, 0.8); /* Ajustado */
    animation: ctaPulse 2s ease-in-out infinite;
}

@keyframes ctaPulse {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(194, 24, 91, 0.8);
    }

    50% {
        box-shadow: 0 0 60px rgba(194, 24, 91, 1);
    }
}

.cta-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 80px rgba(194, 24, 91, 1);
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-btn:hover::before {
    width: 400px;
    height: 400px;
}

/* ===================================
   RESPONSIVIDADE DO QUIZ
   =================================== */
@media (max-width: 768px) {
    .question-card {
        padding: 40px 25px;
    }

    .options-container {
        gap: 12px;
    }

    .option-btn {
        padding: 18px 25px;
    }

    .result-card {
        padding: 50px 30px;
    }

    .cta-btn {
        padding: 20px 50px;
    }
}

@media (max-width: 480px) {
    .question-card {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .option-btn {
        padding: 15px 20px;
    }

    .result-card {
        padding: 40px 20px;
        border-radius: 20px;
    }

    .cta-btn {
        padding: 18px 40px;
        font-size: 1.2rem;
    }
}

/* ===================================
   SEÇÕES OCULTAS
   =================================== */
.quiz-section,
.result-section {
    display: none;
    width: 100%;
}

/* ===================================
   RESPONSIVIDADE
   =================================== */
@media (max-width: 768px) {
    .quiz-container {
        padding: 20px 15px;
    }

    .warning-box {
        padding: 20px;
        margin: 30px auto;
    }

    .mystical-image-container {
        max-width: 350px;
        margin: 30px auto;
    }

    .start-btn {
        padding: 18px 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .main-headline {
        font-size: 1.8rem;
    }

    .headline-line.highlight {
        font-size: 2rem;
    }

    .mystical-image-container {
        max-width: 280px;
    }
}

/* 🔥 FORÇA O ESTILO CORRETO DO TÍTULO DAS PERGUNTAS */
.question-container h1,
.question-container h2 {
    font-family: 'Cinzel', serif;
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
}

/* Ajuste mobile */
@media (max-width: 768px) {
    .question-container h1,
    .question-container h2 {
        font-size: 22px;
        letter-spacing: 1px;
    }
}