/* ============================================================
   blog-styles.css — Blog do Dr. Alexandre Klava
   Carregar DEPOIS de home-styles.css. Reutiliza tokens, nav,
   footer, botões, eyebrow, section-title, wa-float e os 3 temas.
   ============================================================ */

/* ---------- Nav do blog: dropdown "Áreas" ---------- */
.navdrop { position: relative; }
.navdrop-btn { display: inline-flex; align-items: center; gap: 5px; font-family: inherit; font-size: 14px; font-weight: 500; color: var(--ink); background: none; border: none; cursor: pointer; padding: 0; }
.navdrop-btn .chev { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.navdrop:hover .navdrop-btn .chev, .navdrop.open .navdrop-btn .chev { transform: rotate(180deg); }
.navdrop-menu { position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%); min-width: 256px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; box-shadow: 0 24px 54px -22px var(--shadow); padding: 8px; flex-direction: column; gap: 2px; display: none; z-index: 80; animation: navdropIn 0.22s var(--ease); }
@keyframes navdropIn { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.navdrop-menu::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.navdrop:hover .navdrop-menu, .navdrop.open .navdrop-menu { display: flex; }
.navdrop-menu a { padding: 11px 14px; border-radius: 9px; font-size: 14px; color: var(--ink); text-decoration: none; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.navdrop-menu a:hover { background: var(--chip-bg); color: var(--brand); }

/* dropdown dentro do menu mobile (overlay do hambúrguer) */
@media (max-width: 720px) {
  .navdrop { width: 100%; }
  .navdrop-btn { color: var(--on-panel); font-size: 20px; font-family: var(--display); }
  .navdrop-menu { position: static; transform: none; display: flex; min-width: 0; background: transparent; border: none; box-shadow: none; padding: 10px 0 0 16px; animation: none; }
  .navdrop-menu::before { display: none; }
  .navdrop-menu a { color: var(--on-panel-dim); font-size: 16px; padding: 8px 0; }
}

/* ---------- Cabeçalho do blog (índice) ---------- */
.blog-hero { padding: clamp(120px, 14vh, 180px) 0 clamp(40px, 6vw, 72px); background: var(--bg-alt); border-bottom: 1px solid var(--line-soft); }
.blog-hero .wrap { max-width: 820px; }
.blog-hero h1 { font-family: var(--display); font-weight: var(--display-wt); font-size: clamp(38px, 6vw, 68px); line-height: 1.03; letter-spacing: -0.03em; color: var(--ink); margin: 18px 0 0; }
.blog-hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--brand); }
.blog-hero .lede { margin-top: 22px; max-width: 60ch; }

/* ---------- Grade de artigos ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 20px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px var(--shadow); border-color: var(--line); }
.post-card .cover { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-alt); }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.post-card:hover .cover img { transform: scale(1.05); }
.post-card .body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-cat { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); background: var(--chip-bg); padding: 5px 11px; border-radius: 100px; margin-bottom: 14px; }
.post-card h2 { font-family: var(--display); font-weight: var(--display-wt); font-size: 21px; line-height: 1.18; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 10px; }
.post-card p { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin: 0 0 18px; }
.post-card .meta { margin-top: auto; display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--muted-light); }
.post-card .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-light); }

/* ---------- Artigo ---------- */
.article { padding-top: clamp(110px, 13vh, 150px); }
.article-head { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.article-head .post-cat { align-self: center; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb svg { width: 14px; height: 14px; opacity: .5; }
.article-head h1 { font-family: var(--display); font-weight: var(--display-wt); font-size: clamp(30px, 4.6vw, 50px); line-height: 1.08; letter-spacing: -0.025em; color: var(--ink); margin: 14px 0 0; text-wrap: balance; }
.article-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 24px; font-size: 13.5px; color: var(--muted); }
.article-meta .who { display: flex; align-items: center; gap: 9px; }
.article-meta .who img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.article-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-light); }

.article-cover { max-width: 980px; margin: clamp(34px, 5vw, 54px) auto 0; padding: 0 var(--gutter); }
.article-cover img { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: 22px; border: 1px solid var(--line-soft); display: block; }

.article-body { max-width: 720px; margin: 0 auto; padding: clamp(40px, 6vw, 64px) var(--gutter) 0; }

/* Box de resumo rápido */
.tldr { background: var(--bg-alt); border: 1px solid var(--line-soft); border-left: 3px solid var(--brand); border-radius: 14px; padding: 22px 24px; margin-bottom: 40px; }
.tldr .tldr-h { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: var(--display-wt); font-size: 14px; letter-spacing: 0.02em; color: var(--brand); margin-bottom: 12px; text-transform: uppercase; }
.tldr .tldr-h svg { width: 17px; height: 17px; }
.tldr ul { margin: 0; padding-left: 2px; list-style: none; display: grid; gap: 9px; }
.tldr li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.tldr li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-top: 7px; }

/* Tipografia do corpo do artigo */
.article-body p { font-size: 17.5px; line-height: 1.75; color: var(--ink); margin: 0 0 22px; }
.article-body h2 { font-family: var(--display); font-weight: var(--display-wt); font-size: clamp(24px, 3.2vw, 31px); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); margin: 46px 0 16px; }
.article-body h3 { font-family: var(--display); font-weight: var(--display-wt); font-size: 21px; line-height: 1.2; color: var(--ink); margin: 34px 0 12px; }
.article-body strong { font-weight: 700; color: var(--ink); }
.article-body em { font-style: italic; }
.article-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 24px; }
.article-body li { font-size: 17.5px; line-height: 1.7; color: var(--ink); margin-bottom: 9px; }
.article-body blockquote { margin: 30px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--brand); font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.5; color: var(--ink); }
.article-body .lead { font-size: 20px; line-height: 1.65; color: var(--muted); margin-bottom: 30px; }

/* Disclaimer dentro do artigo */
.med-disclaimer { margin: 40px 0 0; padding: 18px 20px; background: var(--bg-alt); border-radius: 12px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* Assinatura médica (autor) */
.author-box { max-width: 720px; margin: 48px auto 0; padding: 28px var(--gutter); }
.author-box .inner { display: flex; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 18px; padding: 22px 24px; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--line); }
.author-box .who-name { font-family: var(--display); font-weight: var(--display-wt); font-size: 17px; color: var(--ink); }
.author-box .who-crm { font-size: 13px; color: var(--brand); font-weight: 600; margin-top: 2px; }
.author-box .who-bio { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-top: 7px; }

/* CTA de agendamento ao fim */
.article-cta { max-width: 720px; margin: 44px auto 0; padding: 0 var(--gutter); }
.article-cta .inner { background: var(--panel); color: var(--on-panel); border-radius: 22px; padding: clamp(30px, 4vw, 44px); text-align: center; }
.article-cta h3 { font-family: var(--display); font-weight: var(--display-wt); font-size: clamp(22px, 3vw, 30px); color: var(--on-panel); margin: 0 0 12px; line-height: 1.15; }
.article-cta h3 em { font-family: var(--serif); font-style: italic; color: var(--accent-soft); }
.article-cta p { color: var(--on-panel-dim); font-size: 15.5px; line-height: 1.6; margin: 0 auto 24px; max-width: 46ch; }
.article-cta .btn.wa { background:#1FA66B; border-color:#1FA66B; color:#fff; }
.article-cta .btn.wa:hover { background:#178a59; border-color:#178a59; }

/* Navegação para outros artigos */
.more-posts { padding: clamp(56px, 8vw, 96px) 0 0; }
.more-posts .wrap { }
.more-posts .mh { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.more-posts .mh h2 { font-family: var(--display); font-weight: var(--display-wt); font-size: clamp(22px, 3vw, 30px); color: var(--ink); margin: 0; letter-spacing: -0.02em; }
.more-posts .mh a { font-size: 14px; color: var(--brand); text-decoration: none; font-weight: 600; white-space: nowrap; }
.more-posts .mh a:hover { text-decoration: underline; }
.more-posts .post-grid { grid-template-columns: repeat(2, 1fr); }

/* ---------- Responsivo ---------- */
@media (max-width: 920px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .post-grid, .more-posts .post-grid { grid-template-columns: 1fr; }
  .article-body p, .article-body li { font-size: 16.5px; }
  .author-box .inner { flex-direction: column; text-align: center; align-items: center; }
}
