/* ============================================================
   ESTILOS DO BLOG — Marianna Agendes Nutricionista
   Compartilhado entre todos os artigos e a página índice.
   ============================================================ */

/* Base — replica do index.html pra autonomia */
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  background-color: #F1F5F2;
  color: #262626;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

a { color: inherit; text-decoration: none; }

/* Tipografia da marca */
.font-script { font-family: 'Pinyon Script', cursive; font-weight: 400; line-height: 1.1; }

.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4A7E59;
}

/* Botões */
.btn-primary {
  display: inline-block;
  background-color: #D6929E;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 2px;
  transition: background-color 0.25s ease;
}
.btn-primary:hover { background-color: #c47e8b; }
.btn-primary:focus-visible { outline: 2px solid #4A7E59; outline-offset: 3px; }

.btn-ghost {
  display: inline-block;
  color: #4A7E59;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 4px;
  border-bottom: 1px solid #4A7E59;
  transition: opacity 0.25s ease;
}
.btn-ghost:hover { opacity: 0.65; }

/* Header */
.header-blur {
  background-color: rgba(241, 245, 242, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(249, 212, 219, 0.5);
}
.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4A7E59;
  transition: opacity 0.2s ease;
}
.nav-link:hover { opacity: 0.6; }

/* Divisórias */
.divider-rose { height: 1px; background-color: #F9D4DB; border: 0; margin: 0; }
.divider-rose-50 { height: 1px; background-color: rgba(249, 212, 219, 0.5); border: 0; margin: 0; }

/* ============================================================
   HERO DO ARTIGO
   ============================================================ */
.article-hero {
  padding: 56px 24px 32px 24px;
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}
@media (min-width: 768px) {
  .article-hero { padding: 88px 32px 48px 32px; }
}

.article-breadcrumb {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(74, 126, 89, 0.6);
  margin-bottom: 28px;
}
.article-breadcrumb a:hover { color: #D6929E; }
.article-breadcrumb .sep { margin: 0 8px; color: #D6929E; }

.article-category {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #D6929E;
  font-weight: 500;
  margin-bottom: 20px;
  display: inline-block;
}

.article-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.18;
  color: #4A7E59;
  letter-spacing: -0.01em;
  margin: 0 0 24px 0;
  max-width: 820px;
}

.article-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: #3F3F3F;
  margin: 0 0 36px 0;
  max-width: 720px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3F3F3F;
  padding-top: 24px;
  border-top: 1px solid rgba(249, 212, 219, 0.6);
}
.article-meta .author-name { color: #4A7E59; font-weight: 500; }
.article-meta .sep { color: #D6929E; }

/* ============================================================
   CAPA EDITORIAL (placeholder ou imagem)
   ============================================================ */
.article-cover {
  max-width: 1080px;
  margin: 0 auto 48px auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .article-cover { margin-bottom: 72px; padding: 0 32px; }
}

.article-cover-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #4A7E59 0%, #3d6749 100%);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

/* Variantes temáticas da capa editorial */
.article-cover-placeholder.cover-rose {
  background: linear-gradient(135deg, #D6929E 0%, #c47e8b 100%);
}
.article-cover-placeholder.cover-green-dark {
  background: linear-gradient(135deg, #3d6749 0%, #2d4d36 100%);
}
.article-cover-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(249, 212, 219, 0.18), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(214, 146, 158, 0.22), transparent 55%);
  pointer-events: none;
}
.article-cover-placeholder .cover-script {
  font-family: 'Pinyon Script', cursive;
  font-weight: 400;
  font-size: clamp(48px, 8vw, 110px);
  color: rgba(241, 245, 242, 0.94);
  line-height: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 90%;
}
.article-cover-placeholder .cover-leaf {
  position: absolute;
  width: clamp(60px, 8vw, 110px);
  opacity: 0.4;
}
.article-cover-placeholder .cover-leaf.top-right { top: 24px; right: 24px; transform: rotate(35deg); }
.article-cover-placeholder .cover-leaf.bottom-left { bottom: 24px; left: 24px; transform: rotate(-145deg); }

.article-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

/* ============================================================
   CONTEÚDO DO ARTIGO
   ============================================================ */
.article-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px 24px;
}
@media (min-width: 768px) {
  .article-content { padding: 0 32px 120px 32px; }
}

.article-content p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.8;
  color: #262626;
  margin: 0 0 24px 0;
}

.article-content p.lead {
  font-size: 19px;
  font-weight: 400;
  color: #262626;
  line-height: 1.7;
}

.article-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.3;
  color: #4A7E59;
  letter-spacing: -0.005em;
  margin: 56px 0 18px 0;
  padding-top: 32px;
  border-top: 1px solid rgba(249, 212, 219, 0.7);
}

.article-content h2:first-child {
  padding-top: 0;
  border-top: 0;
  margin-top: 0;
}

.article-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.4;
  color: #4A7E59;
  margin: 40px 0 14px 0;
}

.article-content h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #4A7E59;
  margin: 32px 0 12px 0;
}

.article-content ul,
.article-content ol {
  margin: 0 0 28px 0;
  padding-left: 22px;
}
.article-content li {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  color: #262626;
  margin-bottom: 10px;
  padding-left: 6px;
}
.article-content ul li::marker { color: #D6929E; }
.article-content ol li::marker { color: #D6929E; font-weight: 500; }

.article-content strong { font-weight: 600; color: #262626; }
.article-content em { font-style: italic; }

.article-content a {
  color: #4A7E59;
  text-decoration: underline;
  text-decoration-color: #D6929E;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.article-content a:hover { color: #D6929E; }

.article-content blockquote {
  margin: 36px 0;
  padding: 0 0 0 28px;
  border-left: 2px solid #D6929E;
  font-style: italic;
  color: #3F3F3F;
  font-size: 18px;
  line-height: 1.65;
}

/* ============================================================
   FIGURA ILUSTRATIVA NO MEIO DO ARTIGO
   ============================================================ */
.article-figure {
  margin: 48px -40px;
  position: relative;
}
@media (max-width: 768px) {
  .article-figure { margin: 36px -24px; }
}

.article-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.article-figure .figure-placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
  background-color: #E8EAE6;
  border: 1px solid rgba(249, 212, 219, 0.5);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.article-figure .figure-placeholder::after {
  content: "imagem em breve";
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(74, 126, 89, 0.45);
}

.article-figure figcaption {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: 13px;
  line-height: 1.5;
  color: #3F3F3F;
  margin-top: 14px;
  padding: 0 4px;
  text-align: center;
}

/* ============================================================
   CTA INTERNO NO MEIO DO ARTIGO
   ============================================================ */
.article-cta-inline {
  margin: 56px 0;
  padding: 36px 32px;
  background-color: rgba(249, 212, 219, 0.18);
  border-left: 2px solid #D6929E;
  border-radius: 2px;
}
.article-cta-inline .eyebrow {
  margin-bottom: 12px;
  color: #D6929E;
}
.article-cta-inline p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: #262626;
  margin: 0 0 20px 0;
}
.article-cta-inline .btn-primary { font-size: 11px; padding: 14px 24px; }

/* ============================================================
   ASSINATURA DO AUTOR (rodapé do artigo)
   ============================================================ */
.article-author {
  max-width: 720px;
  margin: 64px auto 0 auto;
  padding: 40px 24px;
  border-top: 1px solid rgba(249, 212, 219, 0.7);
  border-bottom: 1px solid rgba(249, 212, 219, 0.7);
}
.article-author .eyebrow {
  margin-bottom: 14px;
  color: rgba(74, 126, 89, 0.6);
}
.article-author p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: #262626;
  margin: 0 0 20px 0;
}
.article-author .author-cta {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4A7E59;
  border-bottom: 1px solid #4A7E59;
  padding-bottom: 4px;
  transition: opacity 0.2s ease;
}
.article-author .author-cta:hover { opacity: 0.65; }

/* ============================================================
   CTA FINAL (verde-musgo, fim do artigo)
   ============================================================ */
.article-cta-final {
  background-color: #4A7E59;
  padding: 80px 24px;
  margin-top: 80px;
  text-align: center;
}
.article-cta-final .eyebrow {
  color: #F9D4DB;
  margin-bottom: 24px;
  display: block;
}
.article-cta-final h2 {
  font-family: 'Pinyon Script', cursive;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 60px);
  color: #F1F5F2;
  line-height: 1.1;
  margin: 0 0 24px 0;
  text-transform: lowercase;
}
.article-cta-final p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(241, 245, 242, 0.85);
  max-width: 560px;
  margin: 0 auto 36px auto;
}
.article-cta-final .btn-primary {
  font-size: 12px;
  padding: 18px 32px;
}

/* ============================================================
   POSTS RELACIONADOS
   ============================================================ */
.related-posts {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 24px;
}
@media (min-width: 768px) {
  .related-posts { padding: 96px 32px; }
}
.related-posts .eyebrow { margin-bottom: 16px; }
.related-posts h2 {
  font-family: 'Pinyon Script', cursive;
  font-weight: 400;
  font-size: clamp(34px, 4.5vw, 56px);
  color: #4A7E59;
  line-height: 1.1;
  margin: 0 0 48px 0;
  text-transform: lowercase;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 768px) {
  .related-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.related-card {
  display: block;
  background-color: #FFFFFF;
  border: 1px solid rgba(249, 212, 219, 0.7);
  border-radius: 2px;
  padding: 32px 28px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.related-card:hover { border-color: #D6929E; transform: translateY(-2px); }
.related-card .post-category {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #D6929E;
  font-weight: 500;
  margin-bottom: 14px;
  display: block;
}
.related-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  color: #262626;
  margin: 0 0 14px 0;
}
.related-card p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: #3F3F3F;
  margin: 0 0 20px 0;
}
.related-card .post-meta {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3F3F3F;
}

/* Estado "em breve" pra posts ainda não publicados */
.related-card.coming-soon {
  opacity: 0.55;
  pointer-events: none;
  background-color: rgba(249, 212, 219, 0.15);
}
.related-card.coming-soon::after {
  content: "Em breve";
  display: inline-block;
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #D6929E;
  font-weight: 500;
}

/* ============================================================
   PÁGINA ÍNDICE DO BLOG
   ============================================================ */
.blog-index-hero {
  padding: 80px 24px 40px 24px;
  max-width: 1180px;
  margin: 0 auto;
  text-align: left;
}
@media (min-width: 768px) {
  .blog-index-hero { padding: 120px 32px 56px 32px; }
}
.blog-index-hero .eyebrow { margin-bottom: 20px; }
.blog-index-hero h1 {
  font-family: 'Pinyon Script', cursive;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  color: #4A7E59;
  line-height: 1;
  margin: 0 0 24px 0;
  text-transform: lowercase;
  letter-spacing: -0.01em;
}
.blog-index-hero p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 19px;
  line-height: 1.6;
  color: #262626;
  max-width: 640px;
  margin: 0;
}

.blog-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px 96px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 768px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); padding: 32px 32px 120px 32px; gap: 40px; }
}
@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   FOOTER MINIMALISTA (PRA PÁGINAS DE ARTIGO)
   ============================================================ */
.article-footer {
  background-color: #F1F5F2;
  padding: 56px 24px;
  border-top: 1px solid rgba(249, 212, 219, 0.7);
  text-align: center;
}
.article-footer .footer-logo img { height: 80px; width: auto; }
.article-footer p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.7;
  color: #3F3F3F;
  margin: 16px 0 0 0;
}
.article-footer .footer-nav {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.article-footer .footer-nav a {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #262626;
  font-weight: 500;
}
.article-footer .footer-nav a:hover { color: #D6929E; }
