/* =====================================
   RESET E VARIÁVEIS
===================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', Arial, sans-serif;
}

:root {
  --bg-main: #050914;
  --bg-card: #0b1224;
  --bg-input: #0e1730;

  --text-main: #ffffff;
  --text-muted: #94a3b8;

  --neon: #19f0ff;
  --neon-strong: #00d9ff;

  --border-soft: rgba(255, 255, 255, 0.06);
  --header-safe-top: 150px; /* ajuste fino: 140~170 */
}

:root{
  --header-offset: 120px; /* fallback caso o JS não rode */
}

/* empurra todo o builder pra começar abaixo do header */
main.container{
  padding-top: var(--header-offset);
  min-height: calc(100vh - var(--header-offset));
}

/* bônus: quando clicar em #ancoras, não corta por baixo do header */
html{
  scroll-padding-top: var(--header-offset);
}

/* =====================================
   BODY
===================================== */
body {
  background: radial-gradient(
    circle at top,
    #0b1b38 0%,
    var(--bg-main) 65%
  );
  color: var(--text-main);
  min-height: 100vh;
}

/* ======================= HEADER ILHA DINÂMICA ======================= */
.dynamic-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 1200px);
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  padding: 20px 50px;
  background-color: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);

  animation: slideDown 0.7s ease-in-out;
  transition: padding 0.35s ease, border-radius 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease;
}

.dynamic-header.shrink {
  padding: 10px 35px;
  border-radius: 40px;
  background-color: rgba(10, 15, 30, 0.9);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.25);
}

@keyframes slideDown {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------------- LOGO ---------------- */
.dynamic-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  white-space: nowrap;
}

.dynamic-header .logo img {
  width: 40px;
  border-radius: 100%;
  transition: transform 0.5s ease;
}

.dynamic-header .logo img:hover {
  transform: rotate(10deg) scale(1.1);
}

/* ---------------- NAVEGAÇÃO (DESKTOP) ---------------- */
.dynamic-header .nav-menu ul {
  list-style: none;
  display: flex;
  gap: 50px;
  margin: 0;
  padding: 0;
}

.dynamic-header .nav-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  position: relative;
  transition: transform 0.3s ease, color 0.3s ease;
  padding: 5px 0;
}

.dynamic-header .nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #00d4ff, #1bffff);
  transition: width 0.3s ease;
  box-shadow: 0 0 5px #00d4ff, 0 0 10px #00d4ff;
}

.dynamic-header .nav-menu a:hover {
  color: #00d4ff;
  transform: scale(1.05);
}

.dynamic-header .nav-menu a:hover::after {
  width: 100%;
}



/* =====================================
   CONTAINER CENTRALIZADO
===================================== */
.container {
  display: flex;
  padding-top: var(--header-safe-top);
  min-height: calc(100vh - var(--header-safe-top));
  max-width: 1280px;          /* largura controlada */
  margin: 0 auto;             /* centraliza horizontalmente */
  padding: 0 40px;            /* respiro lateral */
}

/* =====================================
   EDITOR (LADO ESQUERDO)
===================================== */
.editor {
  width: 50%;
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* evita quebrar quando conteúdo cresce */
  overflow-y: auto;            /* scroll fica aqui (no editor), não na página */
    scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE/Edge antigo */
}


/* =====================================
   STEPPER BASE
===================================== */
.stepper {
  position: relative;
}

/* =====================================
   STEPPER VERTICAL (AO LADO DO CELULAR)
===================================== */
.stepper-vertical {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 18px 0;
}

/* Etapas */
.stepper-vertical .step {
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
  transition: all 0.35s ease;
  white-space: nowrap;
  padding: 0 8px; /* Espaço interno para o título quando ativo */
  overflow: hidden;
  text-align: center;
}

/* Etapa ativa: se estica para mostrar número + título */
.stepper-vertical .step.active {
  border-radius: 20px; /* já em pílula */
  padding: 0 14px;     /* <--- aumentar se o título for longo, por ex: 0 16px */
  min-width: auto;
  height: 36px;
  background: linear-gradient(
    180deg,
    var(--neon),
    var(--neon-strong)
  );
  color: #000;
  box-shadow:
    0 0 12px var(--neon),
    0 0 30px rgba(0, 217, 255, 0.6);
  font-weight: 600;
}


/* Linha do tempo vertical */
.stepper-vertical .step-line {
  position: absolute;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--neon),
    rgba(0, 217, 255, 0.15)
  );
  z-index: 1;
}


/* =====================================
   BOTÕES — AÇÕES DAS ETAPAS
===================================== */
.actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  flex-wrap: wrap;

  max-width: 420px;     /* controla a largura dos botões */
}

/* texto sempre abaixo */
.actions .helper-text {
  width: 100%;
  text-align: center;
}

/* =====================================
   BASE COMUM PARA BOTÕES
===================================== */
.btn {
  padding: 14px 34px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition:
    transform 0.45s ease,
    opacity 0.35s ease,
    box-shadow 0.25s ease;
}

/* =====================================
   BOTÃO CONTINUAR (PRINCIPAL)
===================================== */
.btn-primary {
  color: #000;
  background: linear-gradient(
    90deg,
    var(--neon),
    var(--neon-strong)
  );
  box-shadow:
    0 0 18px rgba(0, 217, 255, 0.6),
    0 0 45px rgba(0, 217, 255, 0.35);
}

/* hover só aplica quando ativo */
.btn-primary:hover:not(.disabled):not(.is-disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 0 25px rgba(0, 217, 255, 0.9),
    0 0 60px rgba(0, 217, 255, 0.6);
}

/* =====================================
   BOTÃO VOLTAR (SECUNDÁRIO)
===================================== */
.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
}

/* hover só aplica quando ativo */
.btn-secondary:hover:not(.disabled):not(.is-disabled) {
  border-color: var(--neon);
  color: #fff;
}

/* =====================================
   ESTADO DESATIVADO (ETAPA NÃO CONCLUÍDA)
===================================== */
.btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
  box-shadow: none;
  filter: grayscale(0.4);
}

/* =====================================
   ESTADO ATIVO (ETAPA CONCLUÍDA)
===================================== */
.btn.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Remove destaque do botão principal quando desativado */
.btn-primary.disabled {
  background: var(--bg-card);
  color: var(--text-muted);
}

/* =====================================
   ESTADO HOVER DESATIVADO
   (Evita que qualquer botão desativado tenha efeito)
===================================== */
.btn.disabled:hover,
.btn.is-disabled:hover {
  transform: none !important;
  box-shadow: none !important;
  color: var(--text-muted) !important;
  border-color: var(--border-soft) !important;
  cursor: default !important;
}

/* =====================================
   ANIMAÇÕES DE TRANSIÇÃO ENTRE ETAPAS
===================================== */

/* Botão Continuar - estado inicial */
.btn-continue {
  transform: translateX(0);
  opacity: 0.35;          /* desativado */
  pointer-events: none;    /* não clicável */
  transition: transform 0.45s ease, opacity 0.35s ease, box-shadow 0.3s ease;
}

/* Botão Continuar ativo (após preencher campos) */
.btn-continue.is-active {
  opacity: 1;              /* visível e clicável */
  pointer-events: auto;
  box-shadow:
    0 0 18px rgba(0, 217, 255, 0.6),
    0 0 45px rgba(0, 217, 255, 0.35);
}

/* Botão Continuar ao clicar (saída para direita) */
.btn-continue.exit-right {
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.45s ease, opacity 0.35s ease;
}

/* =====================================
   DESATIVA HOVER PARA BOTÕES DESABILITADOS
===================================== */
.btn.disabled:hover,
.btn.is-disabled:hover {
  border-color: var(--border-soft); /* mantém a borda normal */
  color: var(--text-muted);         /* mantém o texto menos chamativo */
  box-shadow: none;                 /* remove qualquer sombra */
  transform: none;                  /* remove qualquer efeito de movimento */
}


/* DESKTOP/DEFAULT: botão de preview NÃO aparece */
.btn-preview{
  display: none !important;
}




/* Removendo a caixa de seleção do menu hamburger do desktop */

.menu-toggle{
  display: none;
}

