/* ============================================================
   Blog — Estilos públicos
   Herda tokens de /css/base.css (carregado primeiro)
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.blog-hero {
  background: var(--color-black);
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}

.blog-hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 40%, transparent 100%);
}

.blog-hero__content {
  position: relative;
  z-index: 1;
}

.blog-hero__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}

.blog-hero__title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 16px;
}

@media (min-width: 768px)  { .blog-hero__title { font-size: 72px; } }

.blog-hero--listing { padding: 96px 0 72px; }

.blog-hero__title-light {
  font-weight: 300;
  color: rgba(255,255,255,0.55);
}

.blog-hero__sub {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 36px;
}

/* ── Category pills ───────────────────────────────────────── */
.blog-hero__cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.cat-pill:hover,
.cat-pill.is-active {
  background: #fff;
  border-color: #fff;
  color: #111;
}

/* ── Post hero ────────────────────────────────────────────── */
.post-hero {
  background: var(--color-black);
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}

.post-hero__grid-bg { /* same as blog-hero__grid-bg */
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 40%, transparent 100%);
}

.post-hero__content { position: relative; z-index: 1; }

.breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-hidden] { margin: 0 6px; }

.post-hero__cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  margin-bottom: 20px;
}

.post-hero__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 24px;
  max-width: 800px;
}

@media (min-width: 768px) { .post-hero__title { font-size: 52px; } }

.post-hero__meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255,255,255,0.45);
}

/* ── Post featured image ──────────────────────────────────── */
.post-featured-img { padding: 32px 0 0; }
.post-cover { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--radius-md); }

/* ── Post two-column layout ───────────────────────────────── */
.post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 56px 0 72px;
  align-items: start;
}

@media (min-width: 1024px) {
  .post-layout {
    grid-template-columns: 1fr 300px;
  }
}

/* ── Post body / prose ────────────────────────────────────── */
.post-body {
  min-width: 0;
}

.prose { font-size: 18px; line-height: 1.75; color: var(--color-text); }
.prose h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin: 2.5rem 0 1rem; }
.prose h3 { font-size: 1.25rem; font-weight: 600; margin: 2rem 0 0.75rem; }
.prose p  { margin-bottom: 1.25rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.prose strong { font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--color-black);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--color-text-muted);
}
.prose img { max-width: 100%; border-radius: var(--radius-md); margin: 1.5rem 0; }
.prose a { color: var(--color-black); text-decoration: underline; }
.prose hr { border: none; border-top: 1px solid var(--color-border); margin: 2rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; }
.prose th, .prose td { border: 1px solid var(--color-border); padding: 8px 12px; text-align: left; }

/* ── Blog explore strip (listing page) ───────────────────── */
.blog-explore {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 40px 0;
}

.blog-explore__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.blog-explore__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px)  { .blog-explore__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-explore__grid { grid-template-columns: repeat(4, 1fr); } }

.explore-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.explore-card:hover {
  border-color: #aaa;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.explore-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.explore-card > div { flex: 1; min-width: 0; }

.explore-card__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.explore-card__desc {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

.explore-card__arrow {
  font-size: 16px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

/* ── Post explore section ─────────────────────────────────── */
.post-explore {
  background: var(--color-black);
  padding: 72px 0;
}

.post-explore__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

.post-explore__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
}

.post-explore__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.25;
}

@media (min-width: 768px) { .post-explore__title { font-size: 36px; } }

.post-explore__sub {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

.post-explore__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px)  { .post-explore__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-explore__grid { grid-template-columns: repeat(4, 1fr); } }

.post-explore-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: #fff;
  transition: background 0.2s, border-color 0.2s;
}

.post-explore-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
}

.post-explore-card--dark {
  background: rgba(255,255,255,0.09);
}

.post-explore-card__icon {
  width: 48px;
  height: 48px;
  padding: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  display: block;
  filter: brightness(0) invert(1);
}

.post-explore-card__title {
  font-size: 16px;
  font-weight: 700;
}

.post-explore-card__desc {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
  flex: 1;
}

.post-explore-card__cta {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-top: auto;
}

.post-explore-card:hover .post-explore-card__cta { color: #fff; }

/* ── Post internal CTA block ──────────────────────────────── */
.post-cta-block {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 32px 0;
}

.post-cta-block__title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.post-cta-block__links { display: flex; gap: 12px; flex-wrap: wrap; }

.post-cta-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  transition: background 0.2s, border-color 0.2s;
}

.post-cta-link:hover { background: var(--color-black); color: #fff; border-color: var(--color-black); }

/* ── Related posts ────────────────────────────────────────── */
.related-posts { padding: 64px 0; background: var(--color-bg); }
.related-posts__title { font-size: 24px; font-weight: 700; margin-bottom: 32px; }
.blog-grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ── Blog listing / grid ──────────────────────────────────── */
.blog-listing { padding: 64px 0; background: var(--color-bg); }

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  list-style: none;
  padding: 0;
  align-items: stretch;
}

.blog-grid li { display: flex; }

@media (min-width: 640px)  { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: box-shadow 0.2s;
}

.blog-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }

.blog-card__img-wrap { display: block; aspect-ratio: 16/9; overflow: hidden; }
.blog-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.blog-card:hover .blog-card__img { transform: scale(1.03); }

.blog-card__img-wrap--empty {
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.blog-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.blog-card__meta { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }

.blog-card__cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #3B82F6;
  text-decoration: none;
}

.blog-card__type {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-bg);
  padding: 2px 8px;
  border-radius: 10px;
}

.blog-card__title { font-size: 17px; font-weight: 600; line-height: 1.4; margin-bottom: 10px; }
.blog-card__title a { color: var(--color-text); text-decoration: none; }
.blog-card__title a:hover { text-decoration: underline; }

.blog-card__excerpt { font-size: 14px; color: var(--color-text-muted); line-height: 1.6; flex: 1; margin-bottom: 16px; }

.blog-card__footer { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.blog-card__date { color: var(--color-text-muted); }
.blog-card__read { font-weight: 600; color: var(--color-text); text-decoration: none; }
.blog-card__read:hover { text-decoration: underline; }

/* ── Pagination ───────────────────────────────────────────── */
.blog-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.15s;
}

.page-btn:hover,
.page-btn.is-active {
  background: var(--color-black);
  color: #fff;
  border-color: var(--color-black);
}

/* ── Search form ──────────────────────────────────────────── */
.blog-search-form { display: flex; gap: 12px; margin-top: 24px; max-width: 480px; }
.blog-search-input {
  flex: 1; padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 16px;
  font-family: inherit;
}

.blog-search-input::placeholder { color: rgba(255,255,255,0.4); }
.blog-results-count { color: var(--color-text-muted); margin-bottom: 24px; font-size: 14px; }
.blog-empty { color: var(--color-text-muted); font-size: 16px; padding: 48px 0; text-align: center; }

/* ── Post sidebar ─────────────────────────────────────────── */
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 1024px) {
  .post-sidebar {
    position: sticky;
    top: 88px;
  }
}

.sidebar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-logo { display: block; }

.sidebar-card__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.sidebar-card__text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.sidebar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.15s;
}

.sidebar-btn--wa {
  background: #111;
  color: #fff;
}

.sidebar-btn--ghost {
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.sidebar-btn:hover { opacity: 0.8; }

/* Steps */
.sidebar-steps { display: flex; flex-direction: column; gap: 12px; }

.sidebar-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.15s;
}

.sidebar-step:hover { background: var(--color-bg); }

.sidebar-step img { flex-shrink: 0; }

.sidebar-step__label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.sidebar-step__sub {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* Categories */
.sidebar-cats { display: flex; flex-wrap: wrap; gap: 6px; }

.sidebar-cat {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.sidebar-cat:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}
