/* ============================================================
   Minha Fono Online — Blog styles (standalone, static pages).
   These pages live OUTSIDE the React/Sass build, so the brand
   tokens from src/global-variables/sass-variables.scss are
   mirrored here as CSS custom properties. Keep them in sync.
   ============================================================ */

:root {
  --navy: #102d4d;
  --navy-dark: #0a2138;
  --navy-soft: #1c3e63;
  --gold: #c2924c;
  --gold-light: #d8b078;
  --gold-soft: #f0e2cb;
  --cream: #fdf8ef;
  --cream-alt: #f6ecdb;
  --white: #ffffff;
  --text: #20303f;
  --text-muted: #5d6b78;
  --border: rgba(16, 45, 77, 0.12);
  --shadow-1: 0 1px 2px rgba(16, 45, 77, 0.06), 0 1px 3px rgba(16, 45, 77, 0.10);
  --shadow-2: 0 4px 16px rgba(16, 45, 77, 0.10);
  --radius: 12px;
  --heading-font: "Merriweather", Georgia, serif;
  --body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-soft); }

img { max-width: 100%; height: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-1);
}
.site-header .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--white);
}
.brand .mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  font-family: var(--heading-font);
}
.brand .brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand .brand-text strong { font-size: 1.02rem; letter-spacing: 0.04em; }
.brand .brand-text small { font-size: 0.7rem; letter-spacing: 0.32em; color: var(--gold-light); }
.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.header-actions .back-link {
  color: var(--cream-alt);
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
}
.header-actions .back-link:hover { color: var(--white); }
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.18s ease;
}
.cta-button:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ---------- Layout ---------- */
.wrap { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.25rem 3.5rem; }
.wrap-wide { max-width: 1080px; margin: 0 auto; padding: 2.5rem 1.25rem 3.5rem; }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumb span { color: var(--gold); }

/* ---------- Article ---------- */
.article-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  padding: 2.5rem;
}
.article-card h1 {
  font-family: var(--heading-font);
  color: var(--navy);
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 1rem;
}
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.post-meta .author { color: var(--navy); font-weight: 600; }
.post-meta .dot { color: var(--gold); }
.article-body { font-size: 1.075rem; line-height: 1.85; color: var(--text); }
.article-body p { margin: 0 0 1.25rem; }
.article-body h2 {
  font-family: var(--heading-font);
  color: var(--navy);
  font-size: 1.4rem;
  margin: 2rem 0 0.85rem;
}
.article-body strong { color: var(--navy); }
.article-body figure { margin: 2rem 0; text-align: center; }
.article-body figure img { border-radius: var(--radius); box-shadow: var(--shadow-1); }
.article-body figcaption {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.65rem;
  font-style: italic;
}

/* Vertical/self-hosted video — constrained so it doesn't dominate */
.article-body video {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  background: #000;
}

/* Skills / bullet list (emoji acts as the marker) */
.article-body ul.skills { list-style: none; padding-left: 0; margin: 1.5rem 0; }
.article-body ul.skills li {
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--border);
  line-height: 1.6;
}
.article-body ul.skills li:last-child { border-bottom: 0; }

/* Highlighted "segredo" callout */
.article-body .highlight {
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
  font-size: 1.08rem;
}
.article-body .highlight p { margin: 0; }
.article-body .highlight .label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.article-body .highlight ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.article-body .highlight li { margin-bottom: 0.35rem; }

/* "Leia também" related-post link */
.related {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.related .related-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.related a {
  font-family: var(--heading-font);
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}
.related a:hover { color: var(--navy-soft); text-decoration: underline; }

/* Informational disclaimer (health content) */
.disclaimer {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-style: italic;
}

/* ---------- End-of-post CTA ---------- */
.post-cta {
  margin-top: 2.5rem;
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
}
.post-cta h3 {
  font-family: var(--heading-font);
  color: var(--white);
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
.post-cta p { margin: 0 0 1.25rem; color: var(--gold-soft); font-size: 0.98rem; }

/* ---------- Author box ---------- */
.author-box {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-muted);
}
.author-box .author-name { color: var(--navy); font-weight: 700; }

/* ---------- Blog index ---------- */
.blog-hero { text-align: center; margin-bottom: 2.5rem; }
.blog-hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 700;
}
.blog-hero h1 {
  font-family: var(--heading-font);
  color: var(--navy);
  font-size: 2.25rem;
  margin: 0.5rem 0 0.75rem;
}
.blog-hero p { color: var(--text-muted); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.post-card:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.post-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-alt); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .card-body { padding: 1.35rem; display: flex; flex-direction: column; gap: 0.5rem; }
.post-card .card-date { font-size: 0.8rem; color: var(--gold); font-weight: 600; }
.post-card h2 {
  font-family: var(--heading-font);
  color: var(--navy);
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.3;
}
.post-card p { margin: 0; color: var(--text-muted); font-size: 0.94rem; }
.post-card .read-more { margin-top: auto; color: var(--navy-soft); font-weight: 600; font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--cream);
  margin-top: 1rem;
}
.site-footer .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.75rem 1.25rem 1rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}
.site-footer h4 { color: var(--gold-light); font-size: 0.95rem; margin: 0 0 0.85rem; letter-spacing: 0.02em; }
.site-footer p { color: var(--gold-soft); font-size: 0.92rem; line-height: 1.7; margin: 0.75rem 0 1rem; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.92rem; }
.site-footer .social { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.site-footer .social a {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy-soft);
}
.site-footer .social a:hover { background: var(--gold); color: var(--navy); }
.site-footer .bottom {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: var(--gold-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .article-card { padding: 1.5rem; }
  .article-card h1 { font-size: 1.55rem; }
  .blog-hero h1 { font-size: 1.8rem; }
  .header-actions .back-link { display: none; }
  .site-footer .inner { grid-template-columns: 1fr; }
}
