/* Blog do JetaChat. Base visual: styles.css, copiado da landing. */

.blog-hero {
  padding: 56px 0 24px;
  background: linear-gradient(180deg, var(--brand-50) 0%, #fff 100%);
}

.blog-hero h1 {
  max-width: 820px;
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.blog-hero .lead {
  max-width: 720px;
  margin-top: 14px;
  font-size: 18px;
  color: var(--muted);
}

.blog-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}

.blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-cats a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}

.blog-cats a:hover,
.blog-cats a[aria-current='page'] {
  border-color: var(--brand-200);
  background: var(--brand-50);
  color: var(--brand-text);
}

.blog-search {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 360px;
}

.blog-search input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 15px;
}

.blog-search button {
  padding: 10px 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.post-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-alt);
}

.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 24px;
}

.post-card-cat {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-text);
}

.post-card h2,
.post-card h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.post-card p {
  font-size: 15px;
  color: var(--muted);
}

.post-card-meta {
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.blog-empty {
  margin-top: 32px;
  padding: 40px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--muted);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  min-width: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--ink-2);
  text-decoration: none;
}

.pagination [aria-current='page'] {
  border-color: var(--brand-200);
  background: var(--brand-50);
  color: var(--brand-text);
}

/* Artigo */

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.article-cat {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-text);
  text-decoration: none;
}

.article h1 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.article-lead {
  margin-top: 16px;
  font-size: 19px;
  color: var(--muted);
}

.article-meta {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.article-cover {
  margin: 28px 0 8px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

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

.prose {
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
}

.prose h2 {
  margin: 40px 0 12px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}

.prose h3 {
  margin: 28px 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose table {
  margin: 0 0 16px;
}

.prose ul,
.prose ol {
  padding-left: 24px;
}

.prose li + li {
  margin-top: 6px;
}

.prose a {
  color: var(--brand-text);
}

.prose blockquote {
  padding: 12px 18px;
  border-left: 4px solid var(--brand-200);
  background: var(--brand-50);
  color: var(--ink-2);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.prose th {
  background: var(--bg-alt);
}

.prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-alt);
  font-size: 0.92em;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.cta-box {
  margin: 32px 0;
  padding: 28px;
  border: 1px solid var(--brand-200);
  border-radius: var(--radius-lg);
  background: var(--brand-50);
}

.cta-box h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}

.cta-box p {
  margin: 0 0 18px;
  font-size: 16px;
  color: var(--ink-2);
}

.prose .cta-box .btn {
  color: #fff;
  text-decoration: none;
}

.cta-box .cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.cta-box .cta-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-text);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.article-tags a {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-alt);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.article-faq {
  margin-top: 40px;
}

.article-faq h2 {
  margin-bottom: 16px;
  font-size: 26px;
  font-weight: 800;
}

.related {
  padding: 56px 0 72px;
  background: var(--bg-alt);
}

.related h2 {
  font-size: 26px;
  font-weight: 800;
}

@media (max-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .blog-hero {
    padding-top: 40px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .blog-search {
    max-width: none;
  }

  .article {
    padding-top: 32px;
  }

  .prose {
    font-size: 16px;
  }

  .cta-box {
    padding: 22px;
  }
}
