/* ============================================
   OdontoQuiz Blog — Identidade Visual
   Roxo #482f64 · Lima #D3D800 · Verde #66b32e
   ============================================ */
:root {
  --roxo: #482f64;
  --roxo-medio: #6c4796;
  --roxo-claro: #beadd1;
  --lima: #d3d800;
  --verde: #66b32e;
  --escuro: #1d1d1b;
  --cinza: #5b5670;
  --fundo: #f8f6f1;
  --branco: #ffffff;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(72, 47, 100, .12);
  --font-titulo: 'Poppins', sans-serif;
  --font-corpo: 'DM Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-corpo);
  color: var(--escuro);
  background: var(--fundo);
  line-height: 1.7;
  font-size: 17px;
}
img { max-width: 100%; height: auto; }
a { color: var(--roxo-medio); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--roxo);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 18px rgba(29, 29, 27, .25);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header .logo img { height: 52px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--branco);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color .2s;
}
.main-nav a:hover { color: var(--lima); }
.btn-cta {
  background: var(--lima);
  color: var(--roxo) !important;
  font-family: var(--font-titulo);
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  transition: transform .15s, box-shadow .15s;
  display: inline-block;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(211, 216, 0, .4); }

/* ---------- Hero do blog ---------- */
.blog-hero {
  background: linear-gradient(135deg, var(--roxo) 0%, var(--roxo-medio) 100%);
  color: var(--branco);
  padding: 72px 0 88px;
  position: relative;
  overflow: hidden;
}
.blog-hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211,216,0,.25), transparent 70%);
}
.blog-hero .tag {
  display: inline-block;
  background: rgba(211, 216, 0, .18);
  border: 1px solid var(--lima);
  color: var(--lima);
  font-family: var(--font-titulo);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.blog-hero h1 {
  font-family: var(--font-titulo);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  font-weight: 700;
  max-width: 720px;
}
.blog-hero h1 em { color: var(--lima); font-style: normal; }
.blog-hero p { margin-top: 18px; max-width: 600px; font-size: 1.1rem; color: var(--roxo-claro); }

/* ---------- Grid de posts ---------- */
.section-title {
  font-family: var(--font-titulo);
  font-size: 1.6rem;
  color: var(--roxo);
  margin: 56px 0 8px;
}
.section-sub { color: var(--cinza); margin-bottom: 28px; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 72px;
}
.post-card {
  background: var(--branco);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 14px 38px rgba(72, 47, 100, .2); }
.post-card .thumb {
  height: 150px;
  background: linear-gradient(135deg, var(--roxo) 0%, var(--roxo-medio) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  position: relative;
}
.post-card .thumb.verde { background: linear-gradient(135deg, #3f7a1c 0%, var(--verde) 100%); }
.post-card .thumb.lima { background: linear-gradient(135deg, #8a8e00 0%, var(--lima) 100%); }
.post-card .corpo { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card .cat {
  font-family: var(--font-titulo);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--verde);
  margin-bottom: 10px;
}
.post-card h2, .post-card h3 {
  font-family: var(--font-titulo);
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: 12px;
}
.post-card h2 a, .post-card h3 a { color: var(--roxo); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--roxo-medio); }
.post-card p { font-size: .95rem; color: var(--cinza); flex: 1; }
.post-card .meta { margin-top: 18px; font-size: .82rem; color: var(--roxo-claro); font-weight: 500; }
.post-card .ler {
  margin-top: 6px;
  font-family: var(--font-titulo);
  font-weight: 600;
  font-size: .9rem;
  color: var(--roxo-medio);
  text-decoration: none;
}
.post-card .ler:hover { color: var(--verde); }

/* Destaque */
.post-destaque {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.post-destaque .thumb { height: 100%; min-height: 260px; }
@media (max-width: 760px) {
  .post-destaque { grid-template-columns: 1fr; }
  .post-destaque .thumb { min-height: 180px; }
}

/* ---------- Artigo ---------- */
.artigo-hero {
  background: linear-gradient(135deg, var(--roxo) 0%, var(--roxo-medio) 100%);
  color: var(--branco);
  padding: 56px 0 64px;
}
.breadcrumb { font-size: .85rem; margin-bottom: 22px; color: var(--roxo-claro); }
.breadcrumb a { color: var(--lima); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.artigo-hero .cat {
  display: inline-block;
  background: rgba(211, 216, 0, .18);
  border: 1px solid var(--lima);
  color: var(--lima);
  font-family: var(--font-titulo);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.artigo-hero h1 {
  font-family: var(--font-titulo);
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  line-height: 1.2;
  font-weight: 700;
}
.artigo-hero .meta { margin-top: 18px; color: var(--roxo-claro); font-size: .92rem; }
.artigo-hero .meta strong { color: var(--branco); }

.artigo-corpo { padding: 56px 0 40px; }
.artigo-corpo h2 {
  font-family: var(--font-titulo);
  color: var(--roxo);
  font-size: 1.55rem;
  line-height: 1.3;
  margin: 44px 0 16px;
  scroll-margin-top: 96px;
}
.artigo-corpo h3 {
  font-family: var(--font-titulo);
  color: var(--roxo-medio);
  font-size: 1.18rem;
  margin: 32px 0 12px;
  scroll-margin-top: 96px;
}
.artigo-corpo p { margin-bottom: 18px; }
.artigo-corpo ul, .artigo-corpo ol { margin: 0 0 20px 26px; }
.artigo-corpo li { margin-bottom: 10px; }
.artigo-corpo strong { color: var(--roxo); }
.artigo-corpo table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--branco);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: .95rem;
}
.artigo-corpo th {
  background: var(--roxo);
  color: var(--branco);
  font-family: var(--font-titulo);
  font-weight: 600;
  text-align: left;
  padding: 13px 16px;
}
.artigo-corpo td { padding: 12px 16px; border-bottom: 1px solid #eee9f4; }
.artigo-corpo tr:last-child td { border-bottom: none; }

/* Sumário (TOC) */
.toc {
  background: var(--branco);
  border-left: 5px solid var(--lima);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 24px 28px;
  margin: 0 0 36px;
}
.toc strong { font-family: var(--font-titulo); color: var(--roxo); display: block; margin-bottom: 10px; }
.toc ol { margin: 0 0 0 20px; }
.toc li { margin-bottom: 6px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Caixas */
.box-dica {
  background: #f3f6e3;
  border-left: 5px solid var(--verde);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 26px 0;
}
.box-dica strong { color: var(--verde); }

/* CTA dentro do artigo */
.cta-banner {
  background: linear-gradient(135deg, var(--roxo) 0%, var(--roxo-medio) 100%);
  border-radius: var(--radius);
  color: var(--branco);
  padding: 36px 38px;
  margin: 44px 0;
  text-align: center;
}
.cta-banner h3, .cta-banner strong.titulo {
  font-family: var(--font-titulo);
  color: var(--branco);
  font-size: 1.4rem;
  margin: 0 0 10px;
  display: block;
}
.cta-banner p { color: var(--roxo-claro); margin-bottom: 22px; }
.cta-banner em { color: var(--lima); font-style: normal; font-weight: 700; }

/* FAQ */
.faq details {
  background: var(--branco);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  padding: 0;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-titulo);
  font-weight: 600;
  color: var(--roxo);
  padding: 18px 24px;
  list-style: none;
  position: relative;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  color: var(--verde);
  font-size: 1.3rem;
  font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 24px 20px; color: var(--cinza); }

/* Leia também */
.leia-tambem { margin: 48px 0 24px; }
.leia-tambem h2 { margin-top: 0; }

/* Autor */
.autor-box {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--branco);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 26px;
  margin: 40px 0;
}
.autor-box .avatar {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--roxo), var(--roxo-medio));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.autor-box strong { font-family: var(--font-titulo); color: var(--roxo); }
.autor-box p { font-size: .9rem; color: var(--cinza); margin: 2px 0 0; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--roxo);
  color: var(--branco);
  padding: 56px 0;
  text-align: center;
}
.newsletter h2 { font-family: var(--font-titulo); font-size: 1.7rem; margin-bottom: 10px; }
.newsletter h2 em { color: var(--lima); font-style: normal; }
.newsletter p { color: var(--roxo-claro); margin-bottom: 26px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--escuro);
  color: #b9b6c4;
  padding: 48px 0 28px;
  font-size: .92rem;
}
.site-footer .topo {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}
.site-footer img { height: 46px; width: auto; }
.site-footer h4 {
  font-family: var(--font-titulo);
  color: var(--branco);
  font-size: .95rem;
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #b9b6c4; text-decoration: none; }
.site-footer a:hover { color: var(--lima); }
.site-footer .base {
  border-top: 1px solid #33323a;
  padding-top: 22px;
  text-align: center;
  font-size: .82rem;
}

@media (max-width: 700px) {
  .main-nav { gap: 16px; }
  .main-nav a:not(.btn-cta) { display: none; }
  .site-header .logo img { height: 42px; }
}
