/* ════════════════════════════════════════════
   Formação IA · Claude Code — tema escuro de marca
   Paleta: navy #0D1438 · card #1A2564 · laranja #FF6225
   Blocos de teoria com aspecto de slides (PPT)
   ════════════════════════════════════════════ */

:root {
  --navy: #0D1438;
  --navy-deep: #080D26;
  --card: #1A2564;
  --card-soft: #16204F;
  --orange: #FF6225;
  --orange-soft: rgba(255, 98, 37, 0.14);
  --orange-light: #FFB59A;
  --ink: #EDEFFA;
  --muted: rgba(237, 239, 250, 0.62);
  --subtle: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.14);
  --green: #34d399;
  --white: #fff;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1000px; margin: 0 auto; }

/* ── NAV ── */
nav {
  background: var(--navy-deep);
  border-bottom: 1px solid var(--subtle);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .logo {
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

nav .logo span { color: var(--orange); }

nav .nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav .nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.15s;
}

nav .nav-links a:hover { color: var(--orange); }

/* ── HEADER DE PÁGINA ── */
.sessao-header {
  background: linear-gradient(155deg, var(--navy-deep) 0%, var(--card) 130%);
  border-bottom: 1px solid var(--subtle);
  padding: 3rem 2rem 2.5rem;
}

.sessao-header .breadcrumb {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 0.9rem;
}

.sessao-header .breadcrumb a { color: var(--orange); text-decoration: none; }

.sessao-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1rem;
  max-width: 21ch;
  line-height: 1.25;
}

.sessao-header .meta {
  display: flex;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.sessao-header .meta span {
  background: var(--subtle);
  border: 1px solid var(--subtle);
  padding: 0.25rem 0.85rem;
  border-radius: 2rem;
}

/* ── BARRA DE NAVEGAÇÃO ENTRE MÓDULOS ── */
.session-nav-bar {
  background: var(--navy-deep);
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow-x: auto;
  white-space: nowrap;
  border-bottom: 1px solid var(--subtle);
  position: sticky;
  top: 57px;
  z-index: 90;
}

.snav-home {
  color: var(--orange-light);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
  padding: 0.3rem 0.75rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 181, 154, 0.3);
  transition: background 0.15s;
}
.snav-home:hover { background: rgba(255, 181, 154, 0.1); }

.snav-sessions { display: flex; gap: 0.4rem; flex-shrink: 0; }

.snav-item {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 0.4rem;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.snav-item:hover { background: var(--subtle); color: var(--white); }
.snav-item.active {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.snav-label {
  color: var(--muted);
  font-size: 0.75rem;
  margin-left: auto;
  flex-shrink: 0;
  display: none;
}
@media (min-width: 600px) { .snav-label { display: block; } }

.sessao-body { max-width: 920px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }

/* ── SLIDE DE ABERTURA (statement, cor de marca) ── */
.pensar-box {
  background: linear-gradient(140deg, var(--orange), #E24E15);
  border-radius: 1.25rem;
  padding: 2.25rem 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.pensar-box .pensar-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(13, 20, 56, 0.75);
  margin-bottom: 0.75rem;
}

.pensar-box p {
  color: var(--white);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.55;
}

/* ── SLIDES DE TEORIA (ar de PPT) ── */
.slide-container {
  background: linear-gradient(150deg, var(--card) 0%, var(--card-soft) 100%);
  border-radius: 1.25rem;
  border: 1px solid var(--subtle);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.slide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 2.75rem 0;
}

.slide-header .slide-title {
  display: inline-flex;
  align-items: center;
  background: var(--orange-soft);
  border: 1px solid rgba(255, 98, 37, 0.35);
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0.35rem 0.95rem;
  border-radius: 2rem;
}

.slide-content { display: none; padding: 1.4rem 2.75rem 2.5rem; }
.slide-content.active { display: block; }

.slide-content h2 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.3;
}

.slide-content h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin: 0.7rem 0 1.25rem;
}

.slide-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--orange-light);
  margin: 1.4rem 0 0.6rem;
}

.slide-content p { margin-bottom: 0.9rem; color: var(--ink); }

.slide-content ul { list-style: none; margin-bottom: 0.75rem; }

.slide-content ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.7rem;
  color: var(--ink);
}

.slide-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  background: var(--orange);
  border-radius: 2px;
}

.slide-content strong { color: var(--white); }
.slide-content em { color: var(--orange-light); font-style: italic; }
.slide-content a { color: var(--orange-light); }

.slide-highlight {
  background: var(--orange-soft);
  border-left: 4px solid var(--orange);
  padding: 1.1rem 1.4rem;
  border-radius: 0 0.7rem 0.7rem 0;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.slide-highlight strong { color: var(--orange-light); }

/* ── CÓDIGO INLINE E BLOCOS DE COMANDO ── */
code {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--subtle);
  color: var(--orange-light);
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.85em;
  padding: 0.1em 0.45em;
  border-radius: 0.35em;
}

.cmd {
  display: block;
  background: var(--navy-deep);
  border: 1px solid var(--line);
  color: var(--white);
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  padding: 0.9rem 1.1rem;
  border-radius: 0.6rem;
  overflow-x: auto;
  margin: 0.75rem 0;
  white-space: pre;
}

.cmd .c-comment { color: var(--muted); }

/* ── DIVISOR ── */
.bloco-divisor {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.25rem 0 1.5rem;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.bloco-divisor::before, .bloco-divisor::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ── HOW-TO BOX ── */
.howto-box {
  background: var(--card);
  border-radius: 1.25rem;
  border: 2px solid var(--orange);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  padding: 2rem 2.5rem;
  margin-bottom: 2.5rem;
}

.howto-box .ex-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.howto-box .ex-num {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--orange);
  padding: 0.28rem 0.85rem;
  border-radius: 2rem;
}

.howto-box .ex-tempo {
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--subtle);
  padding: 0.28rem 0.85rem;
  border-radius: 2rem;
}

.howto-box h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.howto-box .ex-instrucao {
  background: rgba(0, 0, 0, 0.28);
  border-left: 3px solid var(--orange);
  padding: 0.9rem 1.2rem;
  border-radius: 0 0.6rem 0.6rem 0;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.howto-box .ex-instrucao strong,
.howto-box strong { color: var(--white); }
.howto-box em { color: var(--orange-light); }

.howto-box .ex-passos {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.howto-box .ex-passos li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--ink);
}

.howto-box .ex-passos li > div { min-width: 0; flex: 1; }

.howto-box .ex-passos li .step-n {
  background: var(--orange);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── CARTÃO DE RECURSOS (cheat-sheets) ── */
.kit-card {
  background: linear-gradient(135deg, var(--card), var(--navy-deep));
  border: 1px solid var(--subtle);
  color: var(--white);
  border-radius: 1.25rem;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.kit-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.3rem; }
.kit-card p { color: var(--muted); font-size: 0.88rem; max-width: 52ch; }

.kit-card .btn-kit {
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
  padding: 0.65rem 1.35rem;
  border-radius: 0.6rem;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  transition: filter 0.15s, transform 0.15s;
}

.kit-card .btn-kit:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ── BOTÕES ── */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.7rem 1.5rem;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  transition: filter 0.15s, transform 0.15s;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-outline {
  border: 1px solid var(--line);
  color: var(--muted);
}
.btn-outline:hover { border-color: var(--orange-light); color: var(--white); }

/* ── PROGRESSO (index) ── */
.progresso-bar {
  background: var(--subtle);
  border-radius: 2rem;
  height: 9px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.progresso-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  border-radius: 2rem;
  transition: width 0.4s ease;
}

.progresso-text {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

/* ── LISTA DE MÓDULOS (index) ── */
.accao-card {
  background: linear-gradient(150deg, var(--card) 0%, var(--card-soft) 100%);
  border: 1px solid var(--subtle);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.accao-header {
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.75rem;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.accao-body { padding: 0.75rem 1.75rem 1rem; }

.sessao-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--subtle);
  cursor: pointer;
  transition: background 0.15s;
}

.sessao-item:last-child { border-bottom: none; }

.sessao-item .check {
  width: 26px;
  height: 26px;
  border: 2px solid var(--line);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--white);
  transition: all 0.15s;
}

.sessao-item.done .check {
  background: var(--green);
  border-color: var(--green);
  color: var(--navy);
}

.sessao-item .sessao-data {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 82px;
  flex-shrink: 0;
}

.sessao-item a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  flex: 1;
  min-width: 0;
}

.sessao-item a:hover { color: var(--orange-light); }

.sessao-item.done a { opacity: 0.55; }

.sessao-item .sessao-horas {
  color: var(--muted);
  font-size: 0.78rem;
  flex-shrink: 0;
}

/* ── FOOTER ── */
footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--subtle);
  color: var(--muted);
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
}

footer a { color: var(--ink); text-decoration: none; }
footer a:hover { color: var(--orange-light); }

/* ── MODO APRESENTAÇÃO (ar de PPT a sério) ── */
.apresentar-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 2rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s, filter 0.15s;
}
.apresentar-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }

.deck-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(120% 140% at 20% 0%, #16204F 0%, var(--navy) 55%, var(--navy-deep) 100%);
  z-index: 500;
  overflow: hidden;
  cursor: pointer;
}

.deck-slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vh 6vw 9vh;
}

.deck-slide.active { display: flex; }

.deck-inner {
  width: 100%;
  max-width: 1120px;
  max-height: 84vh;
  overflow-y: auto;
  animation: deckIn 0.4s ease;
}

@keyframes deckIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* capa */
.deck-cover .deck-inner { text-align: left; }
.deck-cover .deck-tag {
  display: inline-block;
  background: var(--orange-soft);
  border: 1px solid rgba(255, 98, 37, 0.4);
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.45rem 1.1rem;
  border-radius: 2rem;
  margin-bottom: 1.75rem;
}
.deck-cover h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--white);
  max-width: 20ch;
}
.deck-cover h1::after {
  content: '';
  display: block;
  width: 96px;
  height: 6px;
  background: var(--orange);
  border-radius: 3px;
  margin-top: 1.5rem;
}
.deck-cover-hint { margin-top: 2.5rem; color: var(--muted); font-size: 0.95rem; }

/* blocos dentro do deck: tipografia de projecção */
.deck-overlay .pensar-box,
.deck-overlay .slide-container,
.deck-overlay .howto-box { margin-bottom: 0; }

.deck-overlay .slide-header { padding: 2.25rem 3.25rem 0; }
.deck-overlay .slide-content { padding: 1.6rem 3.25rem 3rem; }
.deck-overlay .slide-content h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.deck-overlay .slide-content h3 { font-size: clamp(1.05rem, 1.8vw, 1.35rem); }
.deck-overlay .slide-content p,
.deck-overlay .slide-content ul li { font-size: clamp(1rem, 1.7vw, 1.3rem); margin-bottom: 0.85rem; }
.deck-overlay .slide-content ul li { padding-left: 1.9rem; }
.deck-overlay .slide-content ul li::before { width: 11px; height: 11px; top: 0.6em; }
.deck-overlay .slide-highlight { font-size: clamp(0.95rem, 1.5vw, 1.2rem); }

.deck-overlay .pensar-box { padding: 3rem 3.25rem; }
.deck-overlay .pensar-box .pensar-label { font-size: 0.85rem; }
.deck-overlay .pensar-box p { font-size: clamp(1.3rem, 2.6vw, 2rem); line-height: 1.5; }

.deck-overlay .howto-box { padding: 2.5rem 3.25rem; }
.deck-overlay .howto-box h3 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.deck-overlay .howto-box .ex-instrucao,
.deck-overlay .howto-box .ex-passos li { font-size: clamp(0.95rem, 1.5vw, 1.15rem); }
.deck-overlay .cmd { font-size: clamp(0.85rem, 1.4vw, 1.05rem); }

/* controlos */
.deck-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--subtle);
  z-index: 510;
}
.deck-progress-fill {
  height: 100%;
  width: 0;
  background: var(--orange);
  transition: width 0.3s ease;
}

.deck-close {
  position: absolute;
  top: 1.1rem;
  right: 1.25rem;
  z-index: 510;
  background: var(--subtle);
  border: 1px solid var(--line);
  color: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s;
}
.deck-close:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }

.deck-counter {
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
  z-index: 510;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.deck-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 1.5rem;
  z-index: 510;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 640px) {
  .deck-hint { display: none; }
  .deck-overlay .slide-header { padding: 1.5rem 1.5rem 0; }
  .deck-overlay .slide-content { padding: 1.1rem 1.5rem 2rem; }
  .deck-overlay .pensar-box,
  .deck-overlay .howto-box { padding: 1.75rem 1.5rem; }
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  nav { padding: 0.85rem 1.25rem; }
  nav .nav-links { display: none; }
  .sessao-header { padding: 2.25rem 1.25rem 2rem; }
  .sessao-header h1 { font-size: 1.5rem; }
  .sessao-body { padding: 2rem 1rem 3rem; }
  .pensar-box { padding: 1.6rem 1.5rem; }
  .pensar-box p { font-size: 1rem; }
  .slide-header { padding: 1.4rem 1.5rem 0; }
  .slide-content { padding: 1.1rem 1.5rem 1.9rem; }
  .slide-content h2 { font-size: 1.3rem; }
  .howto-box { padding: 1.5rem 1.25rem; }
  .kit-card { flex-direction: column; align-items: flex-start; padding: 1.6rem 1.5rem; }
  .sessao-item { flex-wrap: wrap; }
  .sessao-item .sessao-horas { display: none; }
}
