/* ============================================================
   TEMA: IA para a Loja Maçônica
   Direção visual validada (Seção 0.1 do brief)
   Escuro futurista, sóbrio e maçônico. Dourado + ciano.
   ============================================================ */

:root {
  /* Paleta */
  --bg:            #0A0E27; /* azul-noite profundo  */
  --panel:         #131A3A; /* painel (um tom acima) */
  --card:          #1B2347; /* card                  */
  --gold:          #D4AF37; /* dourado maçônico      */
  --gold-soft:     #E8C766; /* dourado claro         */
  --cyan:          #00E5D4; /* ciano futurista       */
  --text:          #F4F6FF; /* texto principal       */
  --text-2:        #B8C2E0; /* texto secundário      */
  --line:          #2E3A66; /* linhas/bordas sutis   */
  --green:         #3DD68C; /* positivo              */
  --red:           #FF6B6B; /* alerta/risco          */
  --red-deep:      #C0392B;

  /* Tipografia */
  --font-title: "Playfair Display", Georgia, serif;
  --font-body:  "Inter", "Source Sans 3", Calibri, system-ui, sans-serif;

  /* Glows */
  --glow-gold: 0 0 28px rgba(212, 175, 55, 0.35);
  --glow-cyan: 0 0 28px rgba(0, 229, 212, 0.30);
}

/* ---------- Base reveal ---------- */
.reveal {
  font-family: var(--font-body);
  font-size: 28px;
  color: var(--text);
  font-weight: 400;
}
.reveal-viewport {
  background: var(--bg);
  background-image:
    radial-gradient(1200px 700px at 80% -10%, rgba(0,229,212,0.06), transparent 60%),
    radial-gradient(1000px 600px at 0% 110%, rgba(212,175,55,0.05), transparent 60%);
}

.reveal h1, .reveal h2, .reveal h3 {
  font-family: var(--font-title);
  color: var(--text);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.2px;
  margin: 0 0 0.4em 0;
  text-transform: none;
  text-shadow: none;
}
.reveal p { line-height: 1.45; }
.reveal strong { color: var(--gold-soft); font-weight: 700; }
.reveal em { color: var(--text); }

/* Acentos de cor utilitários */
.gold  { color: var(--gold) !important; }
.cyan  { color: var(--cyan) !important; }
.green { color: var(--green) !important; }
.red   { color: var(--red) !important; }
.muted { color: var(--text-2) !important; }

/* ---------- Slide genérico ---------- */
.reveal .slides section {
  text-align: left;
  height: 100%;
  top: 0 !important;
}
.slide-pad {
  padding: 70px 90px 84px 90px;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.slide-title {
  font-family: var(--font-title);
  font-size: 46px;
  line-height: 1.1;
  margin: 0 0 22px 0;
}
.slide-title .kicker,
.section-kicker {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 16px;
  color: var(--cyan);
  margin-bottom: 10px;
}
.slide-title .bar {
  display: block;
  width: 84px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  margin-top: 18px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 26px;
}
.card.accent-gold { border-color: rgba(212,175,55,0.55); box-shadow: var(--glow-gold); }
.card.accent-cyan { border-color: rgba(0,229,212,0.55);  box-shadow: var(--glow-cyan); }

/* ---------- Listas de conteúdo ---------- */
.feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.feature-list li {
  position: relative;
  padding: 16px 22px 16px 56px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 26px;
  line-height: 1.4;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 22px; top: 50%;
  width: 12px; height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0,229,212,0.8);
}
.feature-list li.gold-dot::before { background: var(--gold); box-shadow: 0 0 12px rgba(212,175,55,0.8); }

/* Lista numerada (agenda / passos) */
.step-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: step; }
.step-list li {
  position: relative;
  padding: 16px 22px 16px 76px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 26px;
  display: flex; align-items: center;
  min-height: 30px;
}
.step-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--bg);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: var(--glow-gold);
}

/* Perguntas-exemplo (citações) */
.quote-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.quote-list li {
  font-style: italic;
  color: var(--text);
  background: rgba(27,35,71,0.6);
  border-left: 3px solid var(--cyan);
  border-radius: 0 10px 10px 0;
  padding: 12px 18px;
  font-size: 24px;
}

/* ---------- Caixa lateral (por que é útil / atenção) ---------- */
.aside-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 26px;
}
.aside-box .aside-head {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
}
.aside-box.warn .aside-head { color: var(--red); }
.aside-box p { font-size: 22px; color: var(--text-2); margin: 0 0 10px 0; }
.aside-box p:last-child { margin-bottom: 0; }

/* ---------- Frase de impacto ---------- */
.impact {
  margin-top: auto;
  font-family: var(--font-title);
  font-style: italic;
  font-size: 26px;
  color: var(--gold-soft);
  line-height: 1.3;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

/* ---------- Faixa de demonstração ao vivo ---------- */
.demo-strip {
  margin-top: 22px;
  background: linear-gradient(90deg, rgba(212,175,55,0.18), rgba(212,175,55,0.04));
  border: 1px solid rgba(212,175,55,0.55);
  border-radius: 12px;
  padding: 14px 22px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold-soft);
  display: flex; align-items: center; gap: 12px;
  font-size: 22px;
}
.demo-strip .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: var(--glow-gold); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ============================================================
   CAPA
   ============================================================ */
.cover-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: center;
  height: 100%;
}
.cover-title {
  font-family: var(--font-title);
  font-size: 60px;
  line-height: 1.08;
  margin: 0;
}
.cover-title .hl { color: var(--gold); }
.cover-sub {
  margin-top: 26px;
  font-size: 26px;
  color: var(--text-2);
  max-width: 18em;
}
.cover-foot {
  margin-top: 40px;
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.7;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.cover-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 40px;
}
.icon-circle {
  width: 200px; height: 200px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--cyan);
  box-shadow: var(--glow-cyan), inset 0 0 30px rgba(0,229,212,0.08);
  background: radial-gradient(circle at 50% 35%, rgba(0,229,212,0.10), transparent 70%);
}
.icon-circle.gold { border-color: var(--gold); box-shadow: var(--glow-gold), inset 0 0 30px rgba(212,175,55,0.08); }
.icon-circle svg { width: 96px; height: 96px; stroke: var(--cyan); }
.icon-circle.gold svg { stroke: var(--gold); }
.tag {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 4px;
  font-size: 18px;
  color: var(--cyan);
  border: 1px solid rgba(0,229,212,0.5);
  border-radius: 999px;
  padding: 10px 24px;
}

/* ============================================================
   DIVISÓRIA DE SEÇÃO
   ============================================================ */
.divider {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.divider .roman {
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 460px;
  line-height: 1;
  color: var(--panel);
  z-index: 0;
  user-select: none;
}
.divider-content { position: relative; z-index: 1; display: flex; align-items: center; gap: 40px; padding: 0 90px; }
.divider .icon-circle { width: 150px; height: 150px; flex: none; }
.divider .icon-circle svg { width: 70px; height: 70px; }
.divider-text .section-kicker { font-size: 18px; }
.divider-title { font-family: var(--font-title); font-size: 56px; margin: 6px 0 12px 0; line-height: 1.1; }
.divider-sub { font-size: 26px; color: var(--text-2); }

/* ============================================================
   SLIDE DE NÚMEROS
   ============================================================ */
.numbers-grid { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.number-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) 1.5fr;
  align-items: center;
  gap: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 28px;
}
.number-card .big {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 52px;
  line-height: 1;
  color: var(--gold);
  text-shadow: var(--glow-gold);
  white-space: nowrap;
}
.number-card .big.cyan { color: var(--cyan); text-shadow: var(--glow-cyan); }
.number-card .label { font-size: 18px; color: var(--text-2); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 6px; }
.number-card .compare { font-size: 22px; color: var(--text); line-height: 1.38; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { position: relative; margin: 8px 0 0 0; padding-left: 40px; flex: 1; }
.timeline::before {
  content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(180deg, var(--gold), var(--cyan));
}
.tl-item { position: relative; padding: 0 0 26px 36px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -34px; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--cyan);
  box-shadow: 0 0 12px rgba(0,229,212,0.7);
}
.tl-item .year { font-family: var(--font-title); font-weight: 700; font-size: 30px; color: var(--cyan); }
.tl-item .desc { font-size: 24px; color: var(--text); line-height: 1.4; margin-top: 2px; }

/* ============================================================
   FECHAMENTO
   ============================================================ */
.closing { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 26px; }
.closing-frame {
  border: 2px solid var(--gold);
  border-radius: 24px;
  box-shadow: var(--glow-gold), inset 0 0 50px rgba(212,175,55,0.06);
  padding: 56px 80px;
  max-width: 70%;
}
.closing-frame .thanks { font-family: var(--font-title); font-size: 80px; color: var(--gold); margin: 0 0 18px 0; }
.closing-frame .phrase { font-family: var(--font-title); font-style: italic; font-size: 30px; color: var(--text); line-height: 1.4; }
.closing-id { font-size: 18px; color: var(--text-2); line-height: 1.7; }

/* ============================================================
   RODAPÉ (injetado via JS em slides de conteúdo)
   ============================================================ */
.slide-footer {
  position: absolute;
  left: 90px; right: 90px; bottom: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--text-2);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  letter-spacing: 0.3px;
}

/* ============================================================
   CONSTELAÇÃO (canto superior direito) - injetada via JS
   ============================================================ */
.constellation { position: absolute; top: 26px; right: 30px; width: 200px; height: 110px; z-index: 0; opacity: 0.6; pointer-events: none; }
.constellation line { stroke: var(--line); stroke-width: 1; }
.constellation circle { fill: var(--cyan); }
.constellation circle.g { fill: var(--gold); }

/* Garante que conteúdo fique acima da constelação */
.slide-pad, .divider-content, .cover-grid, .closing { position: relative; z-index: 1; }

/* ============================================================
   CARDS DE FERRAMENTAS (slide 13)
   ============================================================ */
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; flex: 1; }
.tool-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 26px; display: flex; flex-direction: column; gap: 8px;
}
.tool-card .tool-name { font-family: var(--font-title); font-size: 30px; font-weight: 700; color: var(--text); line-height: 1.1; }
.tool-card .vendor { font-family: var(--font-body); font-size: 14px; color: var(--cyan); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.tool-card .tool-desc { font-size: 21px; color: var(--text-2); line-height: 1.35; }

/* ============================================================
   CALLOUT (dica / destaque / regra de ouro)
   ============================================================ */
.callout {
  margin-top: 20px;
  background: linear-gradient(90deg, rgba(212,175,55,0.16), rgba(212,175,55,0.03));
  border: 1px solid rgba(212,175,55,0.5); border-radius: 12px;
  padding: 16px 24px; font-size: 24px; line-height: 1.4;
}
.callout .clabel { font-weight: 700; color: var(--gold-soft); }
.callout.warn { background: linear-gradient(90deg, rgba(255,107,107,0.16), rgba(255,107,107,0.03)); border-color: rgba(255,107,107,0.55); }
.callout.warn .clabel { color: var(--red); }
.callout.cyan-c { background: linear-gradient(90deg, rgba(0,229,212,0.14), rgba(0,229,212,0.03)); border-color: rgba(0,229,212,0.5); }
.callout.cyan-c .clabel { color: var(--cyan); }

/* ============================================================
   LISTA PRÓ / CONTRA (slide "É uma bolha?")
   ============================================================ */
.pc-list { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pc-item {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--line);
  border-radius: 14px; padding: 10px 22px; font-size: 22px; line-height: 1.32;
}
.pc-item .pc-label { display: block; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 2px; }
.pc-item.con   { border-left-color: var(--red); }   .pc-item.con   .pc-label { color: var(--red); }
.pc-item.pro   { border-left-color: var(--green); } .pc-item.pro   .pc-label { color: var(--green); }
.pc-item.lesson{ border-left-color: var(--cyan); }  .pc-item.lesson .pc-label { color: var(--cyan); }
.pc-item.diff  { border-left-color: var(--gold); }  .pc-item.diff  .pc-label { color: var(--gold); }

/* ---------- Variações de lista ---------- */
.feature-list li.warn-dot::before { background: var(--red); box-shadow: 0 0 12px rgba(255,107,107,0.8); }
.feature-list.tight li { padding-top: 13px; padding-bottom: 13px; font-size: 24px; }

/* ---------- Números compactos (4 cards num slide) ---------- */
.numbers-grid.compact { gap: 11px; }
.numbers-grid.compact .number-card { padding: 11px 26px; }
.numbers-grid.compact .number-card .big { font-size: 42px; }
.numbers-grid.compact .number-card .compare { font-size: 20px; line-height: 1.3; }
.numbers-grid.compact .number-card .label { font-size: 16px; }

/* Analogia em destaque (slide 5) */
.analogy {
  margin-top: 18px; text-align: center;
  font-family: var(--font-title); font-style: italic; font-size: 30px; color: var(--cyan);
  background: rgba(0,229,212,0.06); border: 1px solid rgba(0,229,212,0.35);
  border-radius: 14px; padding: 18px 24px;
}

/* ============================================================
   ANIMAÇÃO DE ENTRADA AUTOMÁTICA
   Tudo aparece de uma vez quando o slide entra, com fade + leve
   subida. Sem ação do apresentador (sem fragments).
   ============================================================ */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* Elementos de conteúdo animam juntos ao slide virar ativo */
.reveal .slides section.present .feature-list li,
.reveal .slides section.present .step-list li,
.reveal .slides section.present .quote-list li,
.reveal .slides section.present .tl-item,
.reveal .slides section.present .number-card,
.reveal .slides section.present .pc-item,
.reveal .slides section.present .tool-card,
.reveal .slides section.present .impact,
.reveal .slides section.present .analogy,
.reveal .slides section.present .callout,
.reveal .slides section.present .demo-strip,
.reveal .slides section.present .aside-box {
  animation: riseIn 1.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  .reveal .slides section.present * { animation: none !important; }
}

/* ============================================================
   FERRAMENTAS DE REVISÃO (temporárias) + carimbo de versão
   Remover antes da apresentação (este bloco + o bloco no deck.js).
   ============================================================ */
.rev-tools {
  position: fixed; left: 12px; bottom: 12px; z-index: 60;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
}
/* Botão único (recolhido por padrão), bem discreto */
.rev-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(19,26,58,0.65);
  color: var(--text-2); font-size: 20px; line-height: 1; cursor: pointer;
  backdrop-filter: blur(4px); opacity: 0.5; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.rev-tools.open .rev-toggle { opacity: 1; color: var(--cyan); border-color: rgba(0,229,212,0.5); }
/* Painel com as ferramentas (escondido até abrir) */
.rev-panel { display: none; flex-direction: column; gap: 8px; align-items: flex-start; }
.rev-tools.open .rev-panel { display: flex; }
.rev-btn {
  font-family: var(--font-body); font-size: 14px; font-weight: 700; letter-spacing: 1px;
  background: rgba(19,26,58,0.92); border-radius: 999px; padding: 8px 16px;
  backdrop-filter: blur(4px); cursor: pointer; text-decoration: none;
  color: var(--cyan); border: 1px solid rgba(0,229,212,0.5);
}
.rev-btn.reload  { color: var(--gold-soft); border-color: rgba(212,175,55,0.5); }
.rev-btn.reload::before  { content: "\21BB  "; }
.rev-btn.roteiro { color: var(--cyan); border-color: rgba(0,229,212,0.5); }
.rev-btn.roteiro::before { content: "\1F4D6  "; }
.rev-btn.fs { color: var(--text); border-color: var(--line); }
.rev-btn.fs::before { content: "\26F6  "; }
.rev-ver { font-family: var(--font-body); font-size: 11px; color: var(--text-2); opacity: 0.75; padding-left: 4px; }

/* O carimbo solto no canto sai de cena; a versão agora vive dentro do painel */
.ver-stamp { display: none; }
@media print { .rev-tools { display: none !important; } }
