/* ============================================================
   720 RECEITAS — Blog CSS
   Yeseva One (display) + Poppins (UI)
   Fundo claro · Acentos roxo · CTA honey
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Yeseva+One&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --bg:            #FAFAF7;
  --surface:       #FFFFFF;
  --ink:           #1C1028;
  --ink-soft:      #5C4F6A;
  --ink-muted:     #9B8FA6;
  --purple:        #6B3771;
  --purple-mid:    #4F2553;
  --purple-light:  #F3EAF5;
  --honey:         #F4B941;
  --honey-dark:    #C69325;
  --coral:         #E26B4B;
  --divider:       #EDE8E3;
  --card-shadow:   0 2px 12px rgba(28,16,40,0.07);
  --card-shadow-h: 0 8px 28px rgba(28,16,40,0.13);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
h1,h2,h3,h4,p,ul,ol,figure { margin: 0; padding: 0; }
ul,ol { list-style: none; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

/* ── Typography helpers ── */
.serif  { font-family: 'Yeseva One', Georgia, serif; font-weight: 400; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.blog-header {
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
  position: sticky;
  top: 0;
  z-index: 100;
}
.blog-header__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.blog-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.blog-logo__text {
  font-family: 'Yeseva One', serif;
  font-size: 20px;
  color: var(--purple-mid);
  line-height: 1;
}
.blog-logo__sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: block;
  margin-top: 2px;
}
.blog-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.blog-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.blog-nav a:hover { background: var(--purple-light); color: var(--purple); }
.blog-nav .nav-cta {
  background: var(--honey);
  color: var(--ink);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: 0 3px 0 var(--honey-dark);
  transition: transform 0.1s, box-shadow 0.1s;
}
.blog-nav .nav-cta:hover {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--honey-dark);
  background: var(--honey);
  color: var(--ink);
}

/* ── Mobile nav ── */
@media (max-width: 600px) {
  .blog-nav .nav-link { display: none; }
}

/* ============================================================
   HERO BANNER (listagem)
   ============================================================ */
.blog-hero {
  background: linear-gradient(135deg, var(--purple-mid) 0%, #6B3771 100%);
  padding: 56px 20px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 32px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.blog-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.blog-hero__title {
  font-family: 'Yeseva One', serif;
  font-size: clamp(28px, 5vw, 44px);
  color: #fff;
  line-height: 1.2;
  max-width: 600px;
  margin: 0 auto 14px;
}
.blog-hero__sub {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================================
   CATEGORY PILLS
   ============================================================ */
.blog-cats {
  max-width: 1160px;
  margin: 36px auto 0;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--surface);
  color: var(--ink-soft);
  border: 1.5px solid var(--divider);
  cursor: pointer;
  transition: all 0.15s;
}
.cat-pill:hover,
.cat-pill.active {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}
.cat-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

/* ============================================================
   POST GRID
   ============================================================ */
.blog-grid-wrap {
  max-width: 1160px;
  margin: 32px auto 0;
  padding: 0 20px;
}
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 600px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Card ── */
.post-card {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-h);
}
.post-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--purple-light);
  position: relative;
}
.post-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, var(--purple-light), #e8d5f0);
}
.post-card__body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.post-card__cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--purple-light);
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.post-card__time {
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 500;
}
.post-card__title {
  font-family: 'Yeseva One', serif;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 8px;
}
.post-card__excerpt {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin-bottom: 16px;
}
.post-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--honey-dark);
  transition: gap 0.15s;
  margin-top: auto;
}
.post-card__link:hover { gap: 10px; }
.post-card__link svg { flex-shrink: 0; }

/* ── Featured card (first post, full width) ── */
.post-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
}
.post-card--featured .post-card__img {
  width: 45%;
  flex-shrink: 0;
  aspect-ratio: auto;
  min-height: 260px;
}
.post-card--featured .post-card__body {
  padding: 28px 28px 32px;
  justify-content: center;
}
.post-card--featured .post-card__title {
  font-size: 24px;
}
.post-card--featured .post-card__excerpt {
  -webkit-line-clamp: 4;
}
@media (max-width: 700px) {
  .post-card--featured {
    flex-direction: column;
  }
  .post-card--featured .post-card__img {
    width: 100%;
    aspect-ratio: 16/9;
    min-height: unset;
  }
}

/* ============================================================
   INLINE CTA BANNER
   ============================================================ */
.blog-cta-banner {
  max-width: 1160px;
  margin: 56px auto;
  padding: 0 20px;
}
.blog-cta-banner__inner {
  background: linear-gradient(135deg, var(--purple-mid) 0%, #8B4A91 100%);
  border-radius: 20px;
  padding: 40px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.blog-cta-banner__inner::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.blog-cta-banner__text {
  flex: 1;
}
.blog-cta-banner__title {
  font-family: 'Yeseva One', serif;
  font-size: 22px;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}
.blog-cta-banner__sub {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
}
.blog-cta-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--honey);
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  padding: 16px 28px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 4px 0 var(--honey-dark);
  transition: transform 0.12s, box-shadow 0.12s;
  flex-shrink: 0;
}
.blog-cta-banner__btn:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--honey-dark);
}
@media (max-width: 640px) {
  .blog-cta-banner__inner {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
  .blog-cta-banner__btn { width: 100%; justify-content: center; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.blog-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 32px 20px;
  font-size: 13px;
}
.blog-footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
}
.blog-footer a:hover { color: #fff; }
.blog-footer__logo {
  font-family: 'Yeseva One', serif;
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  display: block;
  margin-bottom: 12px;
}

/* ============================================================
   POST INDIVIDUAL — article layout
   ============================================================ */
.article-layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--purple); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { color: var(--divider); }

/* Article header */
.article-header { margin-bottom: 28px; }
.article-header .post-card__cat { margin-bottom: 14px; }
.article-title {
  font-family: 'Yeseva One', serif;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 500;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--divider);
}
.article-meta svg { flex-shrink: 0; }
.article-meta span { display: flex; align-items: center; gap: 4px; }

/* Hero image */
.article-hero-img {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
  background: var(--purple-light);
  aspect-ratio: 16/8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* Article body */
.article-body {
  font-size: 16px;
  line-height: 1.82;
  color: var(--ink);
}
.article-body p { margin-bottom: 20px; }
.article-body h2 {
  font-family: 'Yeseva One', serif;
  font-size: clamp(20px, 3vw, 26px);
  color: var(--ink);
  margin: 40px 0 14px;
  padding-left: 16px;
  border-left: 4px solid var(--purple);
  line-height: 1.3;
}
.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--purple-mid);
  margin: 28px 0 10px;
}
.article-body ul,
.article-body ol {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.article-body ul li,
.article-body ol li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--ink-soft);
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--purple);
}
.article-body ol { counter-reset: ol-cnt; }
.article-body ol li { counter-increment: ol-cnt; }
.article-body ol li::before {
  content: counter(ol-cnt);
  position: absolute;
  left: 0; top: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--purple);
  line-height: 26px;
}
.article-body strong { font-weight: 700; color: var(--ink); }
.article-body em { font-style: italic; color: var(--ink-soft); }

/* Highlight box */
.highlight-box {
  background: var(--purple-light);
  border-left: 4px solid var(--purple);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 28px 0;
  font-size: 15px;
  color: var(--purple-mid);
  font-weight: 500;
  line-height: 1.6;
}

/* Recipe card */
.recipe-card {
  background: var(--surface);
  border: 1.5px solid var(--divider);
  border-radius: 16px;
  padding: 24px;
  margin: 28px 0;
  box-shadow: var(--card-shadow);
}
.recipe-card__title {
  font-family: 'Yeseva One', serif;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.recipe-card__section {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 8px;
  margin-top: 16px;
}
.recipe-card ul { margin: 0; }
.recipe-card ul li { font-size: 14px; color: var(--ink-soft); }
.recipe-card ol li { font-size: 14px; color: var(--ink-soft); }

/* Inline article CTA */
.article-cta {
  background: linear-gradient(135deg, var(--purple-mid), #8B4A91);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  margin: 36px 0;
}
.article-cta__title {
  font-family: 'Yeseva One', serif;
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
}
.article-cta__sub {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 18px;
}
.article-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--honey);
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 10px;
  box-shadow: 0 4px 0 var(--honey-dark);
  transition: transform 0.12s, box-shadow 0.12s;
}
.article-cta__btn:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--honey-dark);
}

/* ── Sidebar ── */
.article-sidebar { position: sticky; top: 84px; }
.sidebar-widget {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
}
.sidebar-widget__title {
  font-family: 'Yeseva One', serif;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--divider);
}
.sidebar-cta {
  background: linear-gradient(160deg, var(--purple-mid), #8B4A91);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  color: #fff;
}
.sidebar-cta__title {
  font-family: 'Yeseva One', serif;
  font-size: 18px;
  margin-bottom: 8px;
  line-height: 1.3;
}
.sidebar-cta__sub {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 18px;
}
.sidebar-cta__btn {
  display: block;
  background: var(--honey);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  padding: 13px 20px;
  border-radius: 10px;
  box-shadow: 0 3px 0 var(--honey-dark);
  transition: transform 0.12s, box-shadow 0.12s;
  text-align: center;
}
.sidebar-cta__btn:hover { transform: translateY(1px); box-shadow: 0 1px 0 var(--honey-dark); }

.sidebar-posts { display: flex; flex-direction: column; gap: 14px; }
.sidebar-post {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
}
.sidebar-post__img {
  width: 60px; height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.sidebar-post__img img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
.sidebar-post__title:hover { color: var(--purple); }

/* ── Tags ── */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
}
.article-tags__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  align-self: center;
}
.tag-pill {
  background: var(--purple-light);
  color: var(--purple);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}

/* Category filter JS */
.post-card[data-cat].hidden { display: none; }

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}
