/* ==========================================================================
   MasterContt — blog.css
   Páginas de blog (listagem) e artigo (post.html).
   Complementa style.css (tokens, header, footer, cards e WA float vêm de lá).
   ========================================================================== */

/* ------------------------------- blog hero ------------------------------- */

.blog-hero {
  position: relative;
  padding: calc(var(--header-h, 84px) + clamp(3rem, 7vw, 5.5rem)) 0 clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(217, 179, 74, 0.12), transparent 60%),
    linear-gradient(180deg, var(--teal-900) 0%, var(--teal-950) 100%);
  overflow: hidden;
}

.blog-hero h1 {
  max-width: 760px;
}

.blog-hero-sub {
  margin-top: 1.2rem;
  max-width: 620px;
  color: var(--cream-dim);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.7;
}

/* ----------------------------- filtros (chips) ---------------------------- */

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.2rem;
}

.filter-chip {
  appearance: none;
  border: 1px solid rgba(233, 201, 110, 0.28);
  background: rgba(23, 70, 90, 0.35);
  color: var(--cream);
  font: 600 0.82rem/1 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.62rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.3s var(--ease-lux),
    border-color 0.3s var(--ease-lux),
    color 0.3s var(--ease-lux),
    transform 0.3s var(--ease-lux);
}

.filter-chip:hover {
  border-color: var(--gold-400);
  color: var(--gold-300);
  transform: translateY(-2px);
}

.filter-chip.active {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  border-color: transparent;
  color: var(--teal-950);
}

.filter-chip .chip-count {
  opacity: 0.65;
  margin-left: 0.35rem;
  font-weight: 700;
}

/* --------------------------- listagem de artigos -------------------------- */

.blog-list-section {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.blog-empty {
  text-align: center;
  color: var(--cream-dim);
  font-size: 1.05rem;
  padding: 3.5rem 1rem;
  border: 1px dashed rgba(233, 201, 110, 0.25);
  border-radius: var(--radius-lg, 18px);
}

/* -------------------------------- artigo --------------------------------- */

.post-full {
  padding: calc(var(--header-h, 84px) + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(3rem, 6vw, 5rem);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cream-dim);
  font: 600 0.9rem/1 var(--font-body);
  text-decoration: none;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
  transition: color 0.3s var(--ease-lux), transform 0.3s var(--ease-lux);
}

.back-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-lux);
}

.back-link:hover {
  color: var(--gold-300);
}

.back-link:hover svg {
  transform: translateX(-4px);
}

.post-loading {
  color: var(--cream-dim);
  font-size: 1.05rem;
  padding: 3rem 0;
  text-align: center;
}

.post-missing {
  text-align: center;
  padding: 3rem 1rem;
  border: 1px dashed rgba(233, 201, 110, 0.25);
  border-radius: var(--radius-lg, 18px);
}

.post-missing h2 {
  margin-bottom: 0.6rem;
}

.post-missing p {
  color: var(--cream-dim);
  margin-bottom: 1.6rem;
}

.post-article-header {
  margin-bottom: clamp(1.8rem, 4vw, 2.6rem);
}

.post-article-header .post-tag {
  position: static;
  display: inline-block;
  margin-bottom: 1.1rem;
}

.post-article-title {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  font-weight: 700;
}

.post-article-meta {
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream-dim);
  font-size: 0.92rem;
}

.post-article-meta .meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-500);
}

.post-hero-image {
  width: 100%;
  border-radius: var(--radius-lg, 18px);
  border: 1px solid rgba(233, 201, 110, 0.18);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  display: block;
  object-fit: cover;
  max-height: 480px;
}

.post-body-text {
  font-size: clamp(1.02rem, 1.5vw, 1.13rem);
  line-height: 1.85;
  color: rgba(246, 241, 228, 0.9);
}

.post-body-text p {
  margin-bottom: 1.4rem;
}

.post-body-text p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.2em;
  line-height: 0.85;
  float: left;
  padding-right: 0.12em;
  padding-top: 0.06em;
  color: var(--gold-400);
}

/* ------------------------------- CTA final ------------------------------- */

.post-cta {
  text-align: center;
}

.post-cta h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  margin-bottom: 0.9rem;
}

.post-cta .section-sub {
  margin: 0 auto 2.2rem;
  max-width: 540px;
  color: var(--cream-dim);
  font-size: 1.05rem;
  line-height: 1.7;
}

.center {
  text-align: center;
}

/* ------------------------------ responsivo ------------------------------- */

@media (max-width: 640px) {
  .post-article-title {
    font-size: 1.9rem;
  }

  .blog-filters {
    gap: 0.45rem;
  }

  .filter-chip {
    padding: 0.55rem 0.9rem;
    font-size: 0.76rem;
  }
}
