/**
 * Single Post — Página de detalhe do artigo
 */

.artigo {
  background-color: var(--grey-10);
  padding: 200px 0 140px;
}

.artigo__inner {
  display: flex;
  flex-direction: column;
  gap: 140px;
  align-items: center;
}

/* ── Info: título + meta ─────────────────── */

.artigo__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 1462px;
}

.artigo__title {
  color: var(--white);
  margin-bottom: 0;
}

.artigo__meta {
  display: flex;
  align-items: center;
  gap: 24px;
}

.artigo__date {
  color: var(--grey-100);
  margin-bottom: 0;
}

.artigo__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 3px solid var(--grey-50);
  color: var(--white);
  letter-spacing: 0.07px;
  text-transform: uppercase;
  white-space: nowrap;
  margin-bottom: 0;
}

/* ── Imagem destaque ─────────────────────── */

.artigo__image {
  width: 100%;
  aspect-ratio: 1760 / 878;
  overflow: hidden;
}

.artigo__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Conteúdo do post ────────────────────── */

.artigo__content {
  width: 100%;
  max-width: 864px;
}

.artigo__content p,
.artigo__content li {
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-medium);
  font-size: clamp(24px, 1.771vw, 34px);
  line-height: 1.15;
  letter-spacing: 0.5px;
  color: var(--white);
  margin-bottom: 1.5em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.artigo__content h2 {
  color: var(--white);
  margin-bottom: 0.75em;
  margin-top: 1.5em;
}

.artigo__content h3 {
  color: var(--white);
  margin-bottom: 0.75em;
  margin-top: 1.5em;
}

.artigo__content h4 {
  color: var(--white);
  margin-bottom: 0.75em;
  margin-top: 1.5em;
}

.artigo__content a {
  color: var(--primary);
  text-underline-offset: 4px;
}

.artigo__content a:hover {
  color: var(--primary-100);
}

.artigo__content strong {
  font-weight: var(--font-weight-bold);
}

.artigo__content ul,
.artigo__content ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}

.artigo__content blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 1.5em;
  margin: 2em 0;
  color: var(--grey-90);
}

/* ── Artigos Relacionados ────────────────── */

.artigos-relacionados {
  background-color: var(--white);
  padding: 140px 0;
}

.artigos-relacionados__title {
  color: var(--grey-10);
  margin-bottom: 80px;
}

.artigos-relacionados__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.artigos-relacionados__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.artigos-relacionados__card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.artigos-relacionados__image {
  width: 100%;
  aspect-ratio: 1312 / 656;
  overflow: hidden;
}

.artigos-relacionados__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.artigos-relacionados__card:hover .artigos-relacionados__image img {
  transform: scale(1.04);
}

.artigos-relacionados__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 2;
  align-items: flex-start;
}

.artigos-relacionados__card-title {
  color: var(--grey-10);
  margin-bottom: 0;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.25s ease;
}

.artigos-relacionados__card-title a {
  color: inherit;
  text-decoration: inherit;
  text-decoration-color: inherit;
  text-underline-offset: inherit;
}

.artigos-relacionados__card-title a:hover {
  color: inherit;
}

.artigos-relacionados__card:hover .artigos-relacionados__card-title {
  text-decoration-color: var(--grey-10);
}

.artigos-relacionados__date {
  color: var(--grey-100);
  margin-bottom: 0;
}

.artigos-relacionados__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 3px solid var(--grey-50);
  color: var(--grey-10);
  letter-spacing: 0.07px;
  text-transform: uppercase;
  white-space: nowrap;
  margin-bottom: 0;
}

/* ── Responsivo ──────────────────────────── */

@media (max-width: 1024px) {
  .artigo {
    padding: 160px 0 80px;
  }

  .artigo__inner {
    gap: 80px;
  }
}

@media (max-width: 768px) {
  .artigos-relacionados__grid {
    grid-template-columns: 1fr;
  }

  .artigo__content p,
  .artigo__content li {
    font-size: clamp(18px, 5.33vw, 30px);
  }
}

@media (max-width: 600px) {
  .artigo {
    padding: 100px 0 64px;
  }

  .artigo__inner {
    gap: 48px;
  }

  .artigo__image {
    aspect-ratio: 4 / 3;
  }

  .artigos-relacionados {
    padding: 80px 0;
  }

  .artigos-relacionados__title {
    margin-bottom: 48px;
  }
}
