/* Estilos complementares e Animações customizadas */

/* Comportamento de scroll suave */
html {
    scroll-behavior: smooth;
}

/* Esconder scrollbar, mas permitir scroll nas respostas */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Animações On-Scroll e Base */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* Animações de Quiz */
.fade-in {
    animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-out {
    animation: fadeOut 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Feedback visual nas opções (Mais suculento) */
.option-btn {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: scale(1);
}

.option-btn:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(114, 47, 55, 0.2);
    border-color: #D29C9C;
    background-color: rgba(210, 156, 156, 0.05);
}

.option-btn:active {
    transform: scale(0.98);
}

/* Hover em Botões principais */
.btn-primary {
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(114, 47, 55, 0.39);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(114, 47, 55, 0.23);
}

/* Imagem da Especialista (Flutuando) */
.float-anim {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Barra de progresso animada */
#progress-fill {
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loader elegante pulsante */
.loader-spinner {
    border: 3px solid rgba(210, 156, 156, 0.2);
    border-top: 3px solid #722F37;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Background dinâmico contínuo na Home */
.bg-gradient-flow {
    background: linear-gradient(-45deg, #FDFBF7, #F5F5DC, #E6D5C3, #FDFBF7);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Destaque da Oferta - Borda Pulsante Sutil */
.offer-card-highlight {
    position: relative;
    z-index: 10;
}

.offer-card-highlight::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #722F37, #D29C9C, #E6D5C3, #722F37);
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 26px;
    /* 24px do card + inset */
    animation: borderBeam 6s linear infinite, glowPulse 3s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes borderBeam {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes glowPulse {

    0%,
    100% {
        filter: blur(4px);
        opacity: 0.4;
    }

    50% {
        filter: blur(8px);
        opacity: 0.7;
    }
}

/* Destaque Premium do Resultado */
.result-text-shine {
    background: linear-gradient(to right, #722F37 20%, #D29C9C 40%, #D29C9C 60%, #722F37 80%);
    background-size: 200% auto;
    color: #722F37;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 4s linear infinite;
    display: inline-block;
}

@keyframes textShine {
    to {
        background-position: 200% center;
    }
}

.result-celebration {
    box-shadow: 0 0 50px -10px rgba(210, 156, 156, 0.3);
    border-color: rgba(114, 47, 55, 0.1) !important;
}