/* ================================================
   LANDING PAGE — Revisões de Literatura em Saúde
   Estilo inspirado no site "Dos Dados aos Gráficos"
   Paleta: azul-acadêmico
   ================================================ */

/* ---------- NAVBAR LOGO ---------- */
.navbar-brand .navbar-logo {
  height: 36px;
  width: 36px;
  max-height: 36px;
}

/* ---------- RESET PARA PAGE-LAYOUT: FULL ---------- */
.page-layout-full .content {
  padding: 0 !important;
  max-width: 100% !important;
}
.page-layout-full #quarto-content {
  padding: 0 !important;
}

/* ---------- ESCONDER BREADCRUMB E AUTOR NA LANDING ---------- */
.page-layout-full #title-block-header {
  display: none !important;
}
.page-layout-full .quarto-title-breadcrumbs {
  display: none !important;
}
.page-layout-full nav[aria-label="Breadcrumb"] {
  display: none !important;
}

/* ---------- CAPA (COVER) ---------- */
.cover {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 50%, #eef2ff 100%);
  position: relative;
}

.cover-content {
  max-width: 680px;
}

.cover-visual svg {
  width: 130px;
  height: 130px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 12px rgba(30, 58, 95, 0.15));
}

.cover h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: #1E3A5F;
  margin: 0 0 1.2rem;
  letter-spacing: -0.02em;
}

.cover h1 .highlight {
  background: linear-gradient(135deg, #2563EB, #6366F1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cover-subtitle {
  font-size: 1.15rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.cover-author {
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.cover-author a {
  color: #1E3A5F;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.cover-author a:hover {
  border-bottom-color: #2563EB;
}

.cover-author .affiliation {
  color: #64748b;
  font-size: 0.88rem;
}

/* CTA */
.cover-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border: 2px solid #1E3A5F;
  border-radius: 999px;
  color: #1E3A5F;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.cover-cta:hover {
  background: #1E3A5F;
  color: #fff;
}

.cover-cta .arrow {
  transition: transform 0.25s ease;
}

.cover-cta:hover .arrow {
  transform: translateX(4px);
}

/* Scroll hint */
.cover-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  font-size: 0.78rem;
  color: #94a3b8;
  letter-spacing: 0.08em;
  animation: fadeUpDown 2.5s ease-in-out infinite;
}

@keyframes fadeUpDown {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-6px); }
}

/* ---------- SEÇÕES DE CONTEÚDO ---------- */
#conteudo {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.content-section {
  margin-bottom: 2rem;
}

/* Cabeçalho de seção */
.section-header {
  margin-bottom: 1.8rem;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

/* Cores das labels por seção */
.section-label.inicio     { background: #1E3A5F10; color: #1E3A5F; }
.section-label.tipos      { background: #2563EB10; color: #2563EB; }
.section-label.ferramentas { background: #05966910; color: #059669; }
.section-label.pratica    { background: #D9770610; color: #D97706; }

.section-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

/* Divider */
.section-divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 2.5rem 0;
}

/* ---------- GRID DE CARDS ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}

/* Card */
.card-new {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-new:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
  text-decoration: none;
  color: inherit;
}

/* Accent bar no topo do card */
.card-accent {
  height: 4px;
}

.card-accent.inicio      { background: linear-gradient(90deg, #1E3A5F, #334155); }
.card-accent.tipos       { background: linear-gradient(90deg, #2563EB, #3B82F6); }
.card-accent.ferramentas { background: linear-gradient(90deg, #059669, #10B981); }
.card-accent.pratica     { background: linear-gradient(90deg, #D97706, #F59E0B); }

/* Card body */
.card-body-new {
  padding: 1.4rem 1.4rem 0.8rem;
  flex: 1;
}

.card-icon-container {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.card-icon-container svg {
  width: 22px;
  height: 22px;
}

/* Cores dos ícones */
.card-icon-container.inicio      { background: #1E3A5F0D; }
.card-icon-container.tipos       { background: #2563EB0D; }
.card-icon-container.ferramentas { background: #0596690D; }
.card-icon-container.pratica     { background: #D977060D; }

.card-body-new h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.card-body-new p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

/* Card footer */
.card-footer-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.4rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.78rem;
}

.card-chapter {
  color: #94a3b8;
  font-weight: 500;
}

.card-arrow {
  color: #94a3b8;
  transition: transform 0.2s ease, color 0.2s ease;
}

.card-new:hover .card-arrow {
  transform: translateX(3px);
  color: #2563EB;
}

/* ---------- RESPONSIVIDADE ---------- */
@media (max-width: 768px) {
  .cover {
    padding: 1.5rem;
    min-height: 90vh;
  }

  .cover-visual svg {
    width: 100px;
    height: 100px;
  }

  .cover-subtitle br {
    display: none;
  }

  #conteudo {
    padding: 2rem 1rem 3rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.35rem;
  }
}

@media (max-width: 480px) {
  .cover h1 {
    font-size: 1.8rem;
  }

  .cover-subtitle {
    font-size: 1rem;
  }
}
