/* Estilos para os slides da palestra "Gênio Digital ou Apertador de Botões?" */

:root {
  --accent-color: #2563eb;
  --accent-warm: #f59e0b;
  --accent-alert: #ef4444;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --bg-card: #f8fafc;
  --border-card: #e2e8f0;
}

.reveal {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  font-size: 30px; /* Base ajustada para caber confortavelmente em 1280x720 */
}

/* Forçar os slides a respeitarem a área útil e centralizarem sem overflow */
.reveal .slides {
  text-align: left;
}

.reveal .slides section {
  padding: 10px 24px !important;
  box-sizing: border-box;
  max-height: 700px;
}

/* Tipografia compacta e balanceada */
.reveal h1, .reveal h2, .reveal h3, .reveal h4 {
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.reveal h1 {
  font-size: 2.1em;
  line-height: 1.1;
  margin: 0.2em 0;
}

.reveal h2 {
  font-size: 1.45em;
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: 0.4em;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 0.15em;
}

.reveal h3 {
  font-size: 1.1em;
  line-height: 1.25;
  margin: 0.3em 0;
}

.reveal h4 {
  font-size: 0.95em;
  margin: 0.2em 0;
}

.reveal p {
  font-size: 0.85em;
  line-height: 1.35;
  margin: 0.3em 0;
}

.reveal ul, .reveal ol {
  font-size: 0.82em;
  line-height: 1.35;
  margin: 0.3em 0 0.5em 1em;
}

.reveal li {
  margin-bottom: 0.25em;
}

/* Slide de Capa */
.reveal .slide-capa h1 {
  font-size: 2.2em;
  line-height: 1.1;
  margin: 0.1em 0;
}

.reveal .slide-capa .subtitulo-palestra {
  font-size: 1.05em;
  color: var(--text-muted);
  font-weight: 400;
  margin: 0.4em 0 1em 0;
}

/* Slide de Seção */
.reveal .slide-secao h2 {
  border-bottom: none;
}

.reveal .slide-secao .numero-parte {
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 0.3em;
}

/* Layout de 2 Colunas */
.reveal .columns {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 1.8rem;
  width: 100%;
  margin-top: 0.4rem;
}

.reveal .column {
  box-sizing: border-box;
}

/* Tabelas otimizadas para não estourar altura */
.reveal table {
  width: 100%;
  font-size: 0.72em;
  border-collapse: collapse;
  margin: 0.5rem 0;
}

.reveal table th {
  background-color: #f1f5f9;
  color: #334155;
  font-weight: 700;
  padding: 0.45em 0.8em;
  border-bottom: 2px solid #cbd5e1;
}

.reveal table td {
  padding: 0.4em 0.8em;
  border-bottom: 1px solid #e2e8f0;
}

.reveal table tr:hover {
  background-color: #f8fafc;
}

/* Callouts compactos */
.reveal div.callout {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  font-size: 0.82em;
  margin: 0.6rem 0;
  padding: 0.4rem 0.8rem;
}

.reveal div.callout-tip {
  border-left: 5px solid #10b981;
  background-color: #f0fdf4;
}

.reveal div.callout-warning {
  border-left: 5px solid #f59e0b;
  background-color: #fffbeb;
}

/* Áreas e Placeholders de Imagem Proporcionais */
.image-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.image-placeholder {
  border: 2px dashed #94a3b8;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  max-height: 420px;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
}

.image-placeholder:hover {
  border-color: var(--accent-color);
  background: #f8fafc;
}

.image-placeholder .ph-icon {
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.image-placeholder .ph-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0.15rem 0;
}

.image-placeholder .ph-desc {
  font-size: 0.76rem;
  color: #475569;
  line-height: 1.3;
  margin: 0.2rem 0;
  max-width: 95%;
}

.image-placeholder .ph-file {
  font-family: monospace;
  font-size: 0.68rem;
  background-color: #e2e8f0;
  color: #334155;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin-top: 0.5rem;
  display: inline-block;
}

/* Imagens reais quando inseridas */
.image-area img, .image-placeholder img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.image-caption {
  font-size: 0.7em;
  color: #64748b;
  font-style: italic;
  margin-top: 0.35rem;
  text-align: center;
  line-height: 1.2;
}

/* Destaques e badges */
.badge-tempo {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.7em;
  font-weight: 600;
  padding: 0.15em 0.6em;
  border-radius: 9999px;
  margin-bottom: 0.3em;
}

.destaque-frase {
  font-size: 0.85em;
  line-height: 1.35;
  color: #1e293b;
  border-left: 4px solid var(--accent-color);
  padding: 0.4rem 0.8rem;
  margin: 0.5rem 0;
  font-style: italic;
  background: #f8fafc;
  border-radius: 0 8px 8px 0;
}

/* ==========================================================================
   Configuração para Modo Impressão / Exportação PDF (Modo Paisagem)
   ========================================================================== */

@page {
  size: landscape;
  margin: 0;
}

@media print {
  *, *:before, *:after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  html, body {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    overflow: visible !important;
  }

  .reveal-viewport, .reveal {
    width: 100vw !important;
    height: auto !important;
    overflow: visible !important;
    background: #ffffff !important;
    font-size: 24px !important;
  }

  .reveal .slides {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    inset: auto !important;
  }

  /* Cada slide ocupa exatamente uma página de impressão */
  .reveal .slides > section {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    position: relative !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    box-sizing: border-box !important;
    padding: 24px 48px !important;
    margin: 0 !important;
    top: auto !important;
    left: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    page-break-after: always !important;
    break-after: page !important;
    overflow: hidden !important;
  }

  /* Manter 2 colunas lado a lado na impressão */
  .reveal .columns {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1.8rem !important;
    width: 100% !important;
  }

  .reveal .column {
    flex: 1 1 auto !important;
    box-sizing: border-box !important;
  }

  /* Ajustar imagens para caberem perfeitamente na folha sem quebrar altura */
  .image-area img, .image-placeholder img {
    max-height: 300px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  }

  /* Ocultar elementos de controle de tela */
  .reveal .controls,
  .reveal .progress,
  .reveal .slide-number,
  .reveal .playback,
  .reveal .pause-overlay {
    display: none !important;
  }

  /* Ajustes finos de tipografia na folha */
  .reveal h1 { font-size: 2.0em !important; }
  .reveal h2 { font-size: 1.35em !important; }
  .reveal h3 { font-size: 1.05em !important; }
  .reveal p, .reveal li { font-size: 0.8em !important; line-height: 1.3 !important; }
  .reveal table { font-size: 0.68em !important; }
  .reveal div.callout { font-size: 0.78em !important; padding: 0.35rem 0.7rem !important; }
  .destaque-frase { font-size: 0.8em !important; padding: 0.35rem 0.7rem !important; }
}
