/* screen-states.css — Transições de tela em bloco (Scopsy Lab)
   Compartilhado por: desafios.html, diagnostic.html, conceituacao.html, jornada.html
   Princípio: body[data-state] controla qual tela está visível — sem scroll de página
*/

/* O container principal não deve rolar a página inteira, deve atuar como uma Canvas Fixa */
.main-container {
    overflow-x: hidden;
    min-height: 100vh;
}

.screen {
    min-height: calc(100vh - 64px);
    display: none;
    flex-direction: column;
    justify-content: center;
    padding: 40px 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* Ativar tela correspondente ao estado do body */
[data-state="hero"]     .screen-hero,
[data-state="case"]     .screen-case,
[data-state="feedback"] .screen-feedback,
[data-state="form"]     .screen-form,
[data-state="result"]   .screen-result,
[data-state="session"]  .screen-session,
[data-state="summary"]  .screen-summary {
    display: flex;
    opacity: 1;
}

/* ========================================================
   WIZARD ENGINE (Blocos Estáticos Sem Scroll)
   ======================================================== */
.wizard-step {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    width: 100%;
}

.wizard-step.step-active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateX(0);
}

.wizard-step.step-hidden {
    display: none !important;
}

/* Animação reversa (botão voltar) */
.wizard-step.step-reverse {
    transform: translateX(-20px);
}

/* Indicador de progresso minimalista */
.wizard-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    margin-bottom: 24px;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
    width: 100%;
}

.wizard-back-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.wizard-back-btn:hover {
    background: var(--bg-modifier-hover);
    color: var(--text-primary);
}

.wizard-dots {
    display: flex;
    gap: 6px;
}

.wizard-dot {
    width: 24px;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-modifier-hover);
    transition: background 0.3s ease, width 0.3s ease;
}

.wizard-dot.active {
    background: var(--brand-primary);
    width: 32px;
}

.wizard-dot.completed {
    background: var(--brand-secondary);
}
