/* ==========================================================================
   pages/blog.css — específico de blog/index.html
   ========================================================================== */

.blog-hero {
  background: var(--gradient-header);
  color: var(--color-white);
  padding-block: var(--space-7);
}

.blog-hero__title {
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.blog-hero__text {
  color: rgba(255, 255, 255, 0.85);
  max-width: 60ch;
}

.blog-hero__social {
  margin-top: var(--space-4);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.75);
}

.blog-hero__social a {
  color: var(--color-white);
  font-weight: var(--fw-semibold);
}

/* ---------- Artigo em destaque (o mais novo, acima da lista) ----------
   Duas colunas no desktop (imagem 4:5 do slide + texto); empilhado no celular. */

.post-featured {
  display: grid;
  grid-template-columns: minmax(0, 240px) 1fr;
  align-items: center;
  gap: var(--space-6);
  max-width: 78ch;
  margin: 0 auto var(--space-7);
  padding: var(--space-6);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  background: var(--color-blue-100);
  transition: box-shadow var(--duration-base) var(--ease-standard),
    transform var(--duration-base) var(--ease-standard);
}

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

.post-featured__thumb {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.post-featured__thumb picture {
  display: block;
}

.post-featured__thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.post-featured__body {
  min-width: 0;
}

.post-featured__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-3);
  overflow-wrap: break-word;
}

.post-featured__title a {
  color: inherit;
  text-decoration: none;
}

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

.post-featured__excerpt {
  color: var(--color-gray-700);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-3);
}

.post-featured__date {
  font-size: var(--fs-sm);
  color: var(--color-gray-700);
  margin-bottom: var(--space-4);
}

@media (max-width: 640px) {
  .post-featured {
    grid-template-columns: 1fr;
    padding: var(--space-5);
  }

  /* No celular, a imagem inteira (4:5) ocuparia a tela: mostra só o topo do slide */
  .post-featured__thumb img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: top;
  }
}

.blog-placeholder {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
}

.blog-placeholder__title {
  margin-bottom: var(--space-4);
}

.blog-placeholder__text {
  color: var(--color-cream-ink);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-6);
}

/* ---------- Lista de posts ---------- */

.blog-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-5);
  max-width: 78ch;
  margin-inline: auto;
}

.post-card {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  background: var(--color-gray-100);
  padding: var(--space-6);
  transition: box-shadow var(--duration-base) var(--ease-standard),
    transform var(--duration-base) var(--ease-standard);
}

.post-card__thumb {
  flex: 0 0 clamp(110px, 26%, 168px);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-blue-100);
}

.post-card__thumb svg,
.post-card__thumb picture,
.post-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
}

/* Miniatura 4:3 do próprio assunto do artigo; no celular o quadro vira 16:7 e
   o object-fit corta as sobras sem distorcer */
.post-card__thumb img {
  object-fit: cover;
}

/* Prints de tela: o que importa (título, barra do app) fica em cima */
.post-card__thumb--topo img {
  object-position: top;
}

.post-card__body {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 640px) {
  .post-card {
    flex-direction: column;
    align-items: stretch;
  }

  .post-card__thumb {
    flex-basis: auto;
    width: 100%;
    aspect-ratio: 16 / 7;
  }
}

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

.post-card__meta {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gray-400);
  margin-bottom: var(--space-2);
}

.post-card__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-3);
}

.post-card__title a {
  color: inherit;
  text-decoration: none;
}

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

.post-card__excerpt {
  color: var(--color-gray-700);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-4);
}

.post-card__link {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  text-decoration: none;
}

.blog-list__note {
  text-align: center;
  margin-top: var(--space-7);
  font-size: var(--fs-sm);
  color: var(--color-gray-700);
}
