/* ════════════════════════════════════════════
   ARTICLE.CSS — Layout de artigos do blog
   Agência UC
════════════════════════════════════════════ */

/* ── Assinatura do autor ── */
.author-box {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-lg, .75rem);
  padding: 1.5rem 1.75rem;
  margin-top: 3rem;
}
.author-box__img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 2px solid var(--orange);
}
.author-box__info { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.author-box__label { font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; color: var(--orange); font-weight: 700; }
.author-box__name { font-size: 1rem; font-weight: 700; color: var(--text); }
.author-box__bio { font-size: .85rem; color: var(--text-muted); line-height: 1.6; margin: .25rem 0 .6rem; }
.author-box__link { font-size: .82rem; color: var(--orange); text-decoration: none; font-weight: 600; }
.author-box__link:hover { text-decoration: underline; }
@media (max-width: 540px) { .author-box { flex-direction: column; } }

/* ── Layout principal: conteúdo + sidebar ── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3.5rem;
  align-items: start;
  padding: 2.5rem 0 5rem;
}

/* ── Conteúdo principal ── */
.article-content { min-width: 0; }

/* ── Header do artigo ── */
.article-breadcrumb {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.article-breadcrumb a {
  font-size: .82rem;
  color: var(--text-faint);
  text-decoration: none;
}
.article-breadcrumb a:hover { color: var(--orange); }
.article-breadcrumb .sep { font-size: .82rem; color: var(--text-faint); }
.article-breadcrumb .cat { font-size: .82rem; color: var(--orange); }

.article-header { padding-bottom: 2rem; }

.article-header h1 {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.12;
  color: var(--text);
  margin: .75rem 0 1rem;
  text-wrap: balance;
  letter-spacing: .01em;
}

.article-intro {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  margin: 1rem 0 1.5rem;
  font-size: .82rem;
  color: var(--text-faint);
}
.article-meta span { display: flex; align-items: center; gap: .3rem; }

.article-featured-img {
  width: 100%;
  border-radius: var(--radius-lg, .75rem);
  margin-bottom: 2.5rem;
  aspect-ratio: 16/7;
  object-fit: cover;
  display: block;
}

/* ── Corpo do artigo ── */
.article-body { color: var(--text-muted); font-size: .97rem; line-height: 1.8; }

.article-body h2 {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  margin: 2.75rem 0 .9rem;
  color: var(--text);
  line-height: 1.15;
}

.article-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.75rem 0 .65rem;
  color: var(--text);
  line-height: 1.35;
}

.article-body p { margin-bottom: 1.2rem; max-width: none; }
.article-body strong { color: var(--text); }
.article-body em { font-style: italic; }
.article-body a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { opacity: .8; }

.article-body ul,
.article-body ol { padding-left: 1.4rem; margin-bottom: 1.2rem; }
.article-body li { margin-bottom: .45rem; }

.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .88rem; overflow-x: auto; display: block; }
.article-body th { background: var(--card); color: var(--text); font-weight: 700; padding: .7rem 1rem; text-align: left; border: 1px solid var(--border); }
.article-body td { padding: .65rem 1rem; border: 1px solid var(--border); color: var(--text-muted); vertical-align: top; }
.article-body tr:nth-child(even) td { background: var(--card); }

/* Caixa de resposta direta (GEO) */
.direct-answer {
  background: var(--card);
  border-left: 4px solid var(--orange);
  border-radius: 0 .75rem .75rem 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
}
.direct-answer p { margin: 0; font-size: .94rem; line-height: 1.7; color: var(--text-muted); }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: .65rem; margin: 1.5rem 0; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius, .5rem); overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; padding: 1rem 1.25rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-weight: 600; font-size: .93rem; color: var(--text);
  background: none; cursor: pointer; font-family: 'Inter', sans-serif; border: none;
}
.faq-icon { color: var(--orange); font-size: 1.2rem; flex-shrink: 0; transition: transform .3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 1.25rem 1rem; font-size: .88rem; color: var(--text-muted); line-height: 1.65; }
.faq-item.open .faq-answer { display: block; }

/* Artigos relacionados (grade no rodapé do artigo) */
.related-articles { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 3rem 0 1rem; }
.related-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius, .5rem); padding: 1.1rem 1.25rem; text-decoration: none; transition: border-color .2s; }
.related-card:hover { border-color: var(--orange); }
.related-card span { font-size: .72rem; color: var(--orange); text-transform: uppercase; letter-spacing: .07em; display: block; margin-bottom: .35rem; }
.related-card h4 { font-size: .9rem; color: var(--text); margin: 0; line-height: 1.35; }

/* ── SIDEBAR ── */
.article-sidebar { position: sticky; top: 5.5rem; display: flex; flex-direction: column; gap: 1.25rem; }

.sb-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, .75rem);
  padding: 1.4rem 1.5rem;
}

.sb-card__title {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}

/* Artigos recentes */
.sb-recent-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.sb-recent-list li { border-bottom: 1px solid var(--border); }
.sb-recent-list li:last-child { border-bottom: none; }
.sb-recent-list a {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .8rem 0; text-decoration: none; color: var(--text-muted);
  font-size: .84rem; line-height: 1.4; transition: color .2s;
}
.sb-recent-list a:hover { color: var(--orange); }
.sb-recent-list .sb-art-cat {
  font-size: .68rem; color: var(--orange); text-transform: uppercase;
  letter-spacing: .06em; display: block; margin-bottom: .2rem; font-weight: 600;
}
.sb-recent-list .sb-art-title { display: block; }

/* Sidebar CTA */
.sb-cta {
  background: linear-gradient(135deg, #e85d04, #dc2f02);
  border-radius: var(--radius-lg, .75rem);
  padding: 1.6rem 1.5rem;
  text-align: center;
}
.sb-cta__label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.7); font-weight: 700; display: block; margin-bottom: .6rem;
}
.sb-cta h4 {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.5rem; color: #fff; margin: 0 0 .65rem; line-height: 1.15;
}
.sb-cta p {
  font-size: .82rem; color: rgba(255,255,255,.85); margin: 0 0 1.1rem; line-height: 1.5;
}
.sb-cta a {
  display: inline-block; background: #fff; color: #e85d04;
  font-weight: 700; padding: .75rem 1.4rem; border-radius: .5rem;
  text-decoration: none; font-size: .88rem; transition: opacity .2s;
}
.sb-cta a:hover { opacity: .9; }

/* Sidebar — Serviços */
.sb-services-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .35rem; }
.sb-services-list a {
  display: flex; align-items: center; gap: .5rem;
  font-size: .84rem; color: var(--text-muted); text-decoration: none;
  padding: .35rem 0; transition: color .2s;
}
.sb-services-list a::before { content: '→'; color: var(--orange); font-size: .8rem; flex-shrink: 0; }
.sb-services-list a:hover { color: var(--orange); }

/* ── Responsivo ── */
@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 1.5rem;
  }
  .article-sidebar { position: static; flex-direction: row; flex-wrap: wrap; margin-top: 3rem; }
  .sb-card { flex: 1 1 280px; }
  .sb-cta { flex: 1 1 280px; }
}

@media (max-width: 640px) {
  .article-sidebar { flex-direction: column; }
  .related-articles { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 1.75rem; }
}
