/* ============================================================
   CHAMA IA — blog.css
   Estilos do blog: index + posts
   ============================================================ */

/* ── GRID DE CARDS ── */
.blog-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(34,197,227,.35);
}

.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--navy);
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.blog-card:hover .blog-card-img img { transform: scale(1.03); }

.blog-card-body {
  padding: 20px 22px 24px;
}

.blog-card-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34,197,227,.08);
  border: 1px solid rgba(34,197,227,.2);
  border-radius: 100px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

.blog-card-titulo {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 8px;
}

.blog-card-desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-body time {
  font-size: 12px;
  color: var(--gray-300);
}

/* ── POST INDIVIDUAL ── */
.post-main {
  min-height: 70vh;
}

.post-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 5vw 80px;
}

.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 32px;
}

.post-breadcrumb a {
  color: var(--blue-mid);
  text-decoration: none;
}

.post-breadcrumb a:hover { text-decoration: underline; }

.post-header { margin-bottom: 32px; }

.post-categoria {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34,197,227,.08);
  border: 1px solid rgba(34,197,227,.2);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.post-titulo {
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 16px;
}

.post-intro {
  font-size: 18px;
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 18px;
  border-left: 3px solid var(--cyan);
  padding-left: 16px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-500);
  flex-wrap: wrap;
}

.post-meta a { color: var(--blue-mid); }

/* Imagem hero */
.post-hero-figure {
  margin: 0 0 40px;
}

.post-hero-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  display: block;
}

.img-credit {
  font-size: 11px;
  color: var(--gray-300);
  text-align: right;
  margin-top: 6px;
}

.img-credit a { color: var(--gray-300); }

/* Corpo do post */
.post-corpo {
  font-size: 16px;
  line-height: 1.85;
  color: var(--gray-700);
}

.post-corpo h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  color: var(--navy);
  margin: 36px 0 16px;
}

.post-corpo h3 {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--navy);
  margin: 28px 0 12px;
}

.post-corpo p { margin-bottom: 20px; }

.post-corpo ul, .post-corpo ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.post-corpo li { margin-bottom: 8px; }

.post-corpo strong { color: var(--navy); }

.post-figure {
  margin: 32px 0;
}

.post-figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
}

/* CTA box */
.post-cta-box {
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  text-align: center;
  margin: 48px 0 32px;
}

.post-cta-box p {
  color: rgba(255,255,255,.8);
  font-size: 17px;
  margin-bottom: 24px;
}

/* Botão WhatsApp */
.btn-whatsapp {
  background: #25D366 !important;
  color: #fff !important;
  font-weight: 700 !important;
  border: none !important;
}
.btn-whatsapp:hover { background: #1fb855 !important; }

/* Fonte e assinatura */
.post-fonte, .post-assinatura {
  font-size: 13px;
  color: var(--gray-300);
  margin-top: 8px;
}

.post-fonte a, .post-assinatura a { color: var(--gray-500); }

/* Share */
.post-share {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid var(--gray-100);
  margin-top: 32px;
  font-size: 14px;
  color: var(--gray-500);
}

.share-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s;
}

.share-btn:hover { opacity: .85; }
.share-wa { background: #25D366; color: #fff; }
.share-li { background: #0A66C2; color: #fff; }

/* ── RESPONSIVO ── */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-container { padding: 24px 5vw 60px; }
  .post-cta-box { padding: 24px 20px; }
}
