/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Roboto', sans-serif; -webkit-tap-highlight-color: transparent; }
body { background-color: #f4f6f8; color: #222; display: flex; flex-direction: column; min-height: 100vh; }

:root {
    --primary-red: #D32029;
    --dark-text: #1a1a1a;
    --light-gray: #e5e7eb;
}

/* HEADER */
.quiz-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: #fff; height: 60px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); z-index: 10; }
.logo { font-family: 'Oswald', sans-serif; font-size: 1.4rem; font-weight: 700; color: #000; letter-spacing: -0.5px; text-transform: uppercase; }

/* PROGRESS BAR */
.progress-container { width: 100%; background: #e0e0e0; height: 6px; }
.progress-line { width: 0%; height: 100%; background-color: var(--primary-red); transition: width 0.4s ease; }
.step-indicator { font-family: 'Oswald', sans-serif; font-weight: 600; color: #666; font-size: 0.9rem; }
.current-step { color: var(--primary-red); font-size: 1.2rem; }

/* CONTAINER */
#quiz-container { padding: 30px 20px; max-width: 550px; margin: 20px auto; width: 95%; flex-grow: 1; background: #fff; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }

/* TIPOGRAFIA */
h2 { font-family: 'Oswald', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--dark-text); margin-bottom: 15px; text-align: center; line-height: 1.3; text-transform: uppercase; }
.subtitle { font-size: 1.05rem; color: #555; margin-bottom: 30px; line-height: 1.5; text-align: center; }

/* BOTÕES */
.option-btn { width: 100%; padding: 18px 20px; margin-bottom: 12px; background-color: #fff; border: 2px solid var(--light-gray); border-radius: 8px; font-size: 1.1rem; color: #333; text-align: left; cursor: pointer; font-weight: 500; transition: all 0.2s; display: flex; align-items: center; justify-content: space-between; }
.option-btn:hover { border-color: var(--primary-red); background-color: #fff5f5; }

.btn-next { background-color: var(--primary-red); color: #fff; width: 100%; padding: 18px; border: none; border-radius: 8px; font-family: 'Oswald', sans-serif; font-size: 1.3rem; font-weight: 700; cursor: pointer; margin-top: 15px; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 15px rgba(211, 32, 41, 0.4); animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }

/* MÍDIA - Com fundo cinza para debug */
.quiz-media { 
    width: 100%; 
    max-width: 100%; 
    display: block; 
    margin: 0 auto 20px auto; 
    border-radius: 8px; 
    border: 2px dashed #ccc; 
    object-fit: cover; 
    max-height: 300px; 
    min-height: 200px;
    background-color: #f0f0f0; 
}

.quiz-video { 
    width: 100%; 
    max-width: 100%; 
    display: block; 
    margin: 0 auto 20px auto; 
    border-radius: 8px; 
    border: 2px solid #000; 
    min-height: 200px; 
    background-color: #000;
}

/* GRÁFICOS CSS GERAL */
.graph-box { 
    width: 100%; 
    height: 240px; 
    background: #f9f9f9; 
    border-bottom: 3px solid #333; 
    border-left: 3px solid #333; 
    position: relative; 
    margin: 20px 0 60px 0; /* Margem generosa embaixo */
    display: flex; 
    align-items: flex-end; 
    padding: 0 10px; 
    box-sizing: border-box;
}

/* BARRAS DO RESULTADO FINAL */
.bar { 
    width: 24%; 
    background: #ccc; 
    margin: 0 4.5%; 
    position: relative; 
    transition: height 1s ease; 
    height: 10%; 
    border-radius: 5px 5px 0 0; 
}
.bar.active { 
    background: linear-gradient(to top, var(--primary-red), #ff4d4d);
}
.bar-label { 
    position: absolute; 
    top: 100%; 
    left: 50%;
    transform: translateX(-50%);
    width: 130px; 
    text-align: center; 
    font-size: 0.85rem; 
    font-weight: 700; 
    color: #333;
    line-height: 1.2;
    margin-top: 8px;
}

/* GRÁFICO DE ANSIEDADE (Etapa 13) */
.anxiety-line { width: 100%; height: 100%; position: relative; overflow: hidden; }
.line-path { 
    position: absolute; 
    top: 30px; left: 0; 
    width: 100%; height: 4px; 
    background: #ccc; 
    transform: rotate(15deg); 
    transform-origin: 0 0;
}
.line-fill {
    width: 0%; height: 100%;
    background: #007F38; 
    transition: width 2s ease;
}
/* Correção do texto sobreposto */
.anxiety-labels {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    font-weight: 800;
    font-size: 0.9rem;
    z-index: 5;
}

/* RESULTADO FINAL */
.result-box { text-align: center; padding: 10px; }
.result-title { font-size: 1.6rem; color: #007F38; font-weight: 800; margin-bottom: 20px; text-transform: uppercase; line-height: 1.2; }
.result-text { font-size: 1.1rem; line-height: 1.6; color: #333; margin-top: 30px; margin-bottom: 20px; text-align: left; background: #f0fdf4; padding: 15px; border-radius: 8px; border-left: 5px solid #007F38; }

/* LOADING */
.loading-card { text-align: center; padding: 20px 0; }
.spinner { width: 60px; height: 60px; border: 6px solid #f3f3f3; border-top: 6px solid var(--primary-red); border-radius: 50%; margin: 0 auto 30px auto; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* FOOTER */
.quiz-footer { text-align: center; padding: 20px; font-size: 0.8rem; color: #888; }