/* ============================================================
   ARTIGOS – CSS
   Estilos para /artigos/ (índice) e /artigos/[slug]/ (artigo)
   ============================================================ */

/* ─── HERO DA SEÇÃO ARTIGOS ────────────────────────────────── */
.artigos-hero {
  background: var(--grad-hero);
  padding: 7rem 1.5rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.artigos-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 60%, rgba(74,40,120,0.4) 0%, transparent 70%);
  pointer-events: none;
}
.artigos-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.artigos-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(212,160,23,0.1);
  border: 1px solid rgba(212,160,23,0.3);
  border-radius: 50px;
  padding: 0.3rem 1.1rem;
  margin-bottom: 1.25rem;
}
.artigos-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: 0.9rem;
  line-height: 1.15;
}
.artigos-hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}
.artigos-hero-desc a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── GRID DE CARDS ─────────────────────────────────────────── */
.artigos-lista {
  padding: 4rem 1.5rem 5rem;
  background: var(--bg-dark);
}
.artigos-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* ─── CARD INDIVIDUAL ───────────────────────────────────────── */
.artigo-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.artigo-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 20px rgba(212,160,23,0.08);
}
.artigo-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(74,40,120,0.5) 0%, rgba(6,95,70,0.3) 100%);
  overflow: hidden;
  flex-shrink: 0;
}
.artigo-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.artigo-card:hover .artigo-card-img img {
  transform: scale(1.04);
}
.artigo-card-body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
}
.artigo-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.artigo-meta time {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.7;
}
.artigo-categoria {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(212,160,23,0.1);
  border: 1px solid rgba(212,160,23,0.2);
  border-radius: 50px;
  padding: 0.15rem 0.7rem;
}
.artigo-card h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.35;
  margin: 0;
}
.artigo-card h2 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.artigo-card h2 a:hover { color: var(--gold-light); }

.artigo-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}
.artigo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
  padding-top: 0.25rem;
  transition: gap 0.2s;
}
.artigo-btn:hover { gap: 0.8rem; }
.artigo-btn i { font-size: 0.75rem; }

/* ─── CTA SECTION ───────────────────────────────────────────── */
.artigos-cta-section {
  background: linear-gradient(135deg, rgba(74,40,120,0.25) 0%, rgba(6,95,70,0.15) 100%);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 4rem 1.5rem;
  text-align: center;
}
.artigos-cta-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
.artigos-cta-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--emerald-light);
}
.artigos-cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--white);
}
.artigos-cta-section p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.artigos-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ════════════════════════════════════════════════════════════
   PÁGINA INTERNA DE ARTIGO
   ════════════════════════════════════════════════════════════ */

/* ─── HERO DO ARTIGO ─────────────────────────────────────────── */
.artigo-hero {
  background: var(--grad-hero);
  padding: 7rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}
.artigo-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 55% at 40% 60%, rgba(74,40,120,0.5) 0%, transparent 65%);
  pointer-events: none;
}
.artigo-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.artigo-hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.artigo-hero-meta time,
.artigo-hero-meta .artigo-autor {
  font-size: 0.82rem;
  color: var(--text-muted);
  opacity: 0.8;
}
.artigo-hero-meta .artigo-autor a {
  color: var(--gold-light);
  text-decoration: none;
}
.artigo-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.artigo-hero-excerpt {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 680px;
}

/* ─── IMAGEM DESTACADA ───────────────────────────────────────── */
.artigo-featured-img {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
}
.artigo-featured-img img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  border: 1px solid var(--border-soft);
}

/* ─── CORPO DO ARTIGO ────────────────────────────────────────── */
.artigo-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}
.artigo-content {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}
.artigo-content h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-soft);
}
.artigo-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-light);
  margin: 1.5rem 0 0.5rem;
}
.artigo-content p { margin-bottom: 1.2rem; }
.artigo-content ul, .artigo-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.artigo-content li { line-height: 1.65; }
.artigo-content strong { color: var(--white); font-weight: 600; }
.artigo-content em { color: var(--gold-light); font-style: italic; }
.artigo-content a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.artigo-content a:hover { opacity: 0.8; }
.artigo-content blockquote {
  border-left: 3px solid var(--gold-primary);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(212,160,23,0.05);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-muted);
}
.artigo-content .aviso-legal {
  background: rgba(52,211,153,0.06);
  border: 1px solid rgba(52,211,153,0.2);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  margin: 2rem 0;
}
.artigo-content .aviso-legal strong { color: var(--emerald-light); }

/* ─── SIDEBAR DO ARTIGO ─────────────────────────────────────── */
.artigo-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sidebar-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 1.5rem;
}
.sidebar-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-soft);
}
.sidebar-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.sidebar-card .btn {
  width: 100%;
  justify-content: center;
  font-size: 0.88rem;
  padding: 0.7rem 1rem;
}
.sidebar-artigos-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.sidebar-artigos-list li a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  transition: color 0.2s;
  line-height: 1.45;
}
.sidebar-artigos-list li a::before {
  content: '→';
  color: var(--gold-primary);
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.sidebar-artigos-list li a:hover { color: var(--gold-light); }

/* ─── TAGS DO ARTIGO ─────────────────────────────────────────── */
.artigo-tags {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
}
.artigo-tags-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}
.artigo-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.artigo-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-soft);
  border-radius: 50px;
  padding: 0.2rem 0.75rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.artigo-tag:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

/* ─── NAVEGAÇÃO ENTRE ARTIGOS ────────────────────────────────── */
.artigo-nav {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-soft);
}
.artigo-nav a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-width: 45%;
  text-decoration: none;
  transition: opacity 0.2s;
}
.artigo-nav a:hover { opacity: 0.8; }
.artigo-nav-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  opacity: 0.6;
}
.artigo-nav-title {
  font-size: 0.9rem;
  color: var(--gold-light);
  line-height: 1.4;
}
.artigo-nav .next { text-align: right; margin-left: auto; }

/* ─── RESPONSIVO ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .artigo-body {
    grid-template-columns: 1fr;
  }
  .artigo-sidebar {
    position: static;
    order: -1;
  }
}
@media (max-width: 600px) {
  .artigos-container {
    grid-template-columns: 1fr;
  }
  .artigo-hero { padding: 6rem 1.25rem 2.5rem; }
  .artigo-hero h1 { font-size: 1.6rem; }
  .artigo-nav a { max-width: 100%; }
}
