/* ==========================================================================
   Article Page - Estilos Específicos
   ========================================================================== */

/* Faz o header ficar com texto branco sobre o vídeo/imagem */
.site-header--dark .site-nav a,
.site-header--dark .logo-bossa,
.site-header--dark .logo-bureau {
  color: #fff;
  transition: color 0.3s;
}
.site-header--dark {
  background: transparent;
  border-bottom: none;
}
.site-header--dark .site-nav a:hover {
  color: rgba(255,255,255,0.6);
}

.logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

/* ==========================================================================
   HERO DO ARTIGO
   ========================================================================== */
.article-hero {
  padding: 120px var(--space-container-x) 40px;
  background-color: var(--sand);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.article-hero__media {
  width: 100%;
  max-width: 1000px;
  height: 400px;
  object-fit: cover;
  margin-top: 2rem;
  border-radius: 4px;
}

.article-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.article-back {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--onyx);
  transition: color 0.3s;
}
.article-back:hover {
  color: var(--orange);
}

.article-category {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  background: var(--orange);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
}

.article-hero__title-wrapper {
  max-width: 900px;
}

.article-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: var(--onyx);
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.article-hero__byline {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.article-date,
.article-author,
.article-read-time {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article-author {
  color: var(--onyx);
  font-weight: bold;
}

/* ==========================================================================
   CORPO DO ARTIGO
   ========================================================================== */
.container-article {
  max-width: 760px; /* Largura ideal para leitura confortável (66 chars/linha) */
  margin: 0 auto;
  padding: 5rem 2rem;
}

/* Lead / Chapeau */
.article-lead {
  font-family: var(--font-accent);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--onyx);
  border-left: 4px solid var(--orange);
  padding-left: 1.5rem;
  margin-bottom: 3rem;
}

/* Texto corrido e Tipografia */
.article-content p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.85;
  color: #333;
  margin-bottom: 1.8rem;
  font-weight: 300;
  text-align: justify;
}

.article-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--onyx);
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.article-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--onyx);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content ul, .article-content ol {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.article-content li {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 0.8rem;
  font-weight: 300;
  text-align: justify;
}

.article-content strong {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--onyx);
}

/* Pull Quote */
.article-quote {
  margin: 3rem 0;
  padding: 2rem 2.5rem;
  border-left: none;
  border-top: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  text-align: center;
}

.article-quote p {
  font-family: var(--font-accent);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-style: italic;
  color: var(--green);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.article-quote cite {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #999;
  font-style: normal;
}

/* Figura (imagem ou vídeo dentro do artigo) */
.article-figure {
  margin: 3rem -2rem; /* Estoura levemente as margens para dar ar editorial */
}

.article-figure__media {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.article-figure figcaption {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.75rem 2rem;
  border-left: 2px solid var(--color-border);
}

/* Tags */
.article-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
}

.tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.4rem 1rem;
  border: 1px solid var(--onyx);
  cursor: pointer;
  transition: all 0.2s;
}

.tag:hover {
  background: var(--onyx);
  color: var(--sand);
}

/* ==========================================================================
   ARTIGOS RELACIONADOS
   ========================================================================== */
.section-related {
  padding-top: 0;
  border-top: 1px solid var(--color-border);
}

.related-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 2.5rem;
  color: var(--onyx);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.related-card {
  text-decoration: none;
  color: var(--onyx);
  display: block;
  transition: transform 0.3s;
}

.related-card:hover {
  transform: translateY(-4px);
}

.related-card__media {
  overflow: hidden;
  margin-bottom: 1rem;
  aspect-ratio: 16/9;
}

.related-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.related-card:hover .related-card__media img {
  transform: scale(1.05);
}

.related-card__info .article-category {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.6rem;
}

.related-card__info h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.related-card__info .article-date {
  color: #999;
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 900px) {
  .related-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .article-figure {
    margin: 3rem 0;
  }

  .article-hero__title-wrapper {
    padding: 0 1.5rem 3rem;
  }
}
