/* ══════════════════════════════════════════
   ARTIGO — estilos compartilhados
   Requer styles.css carregado antes
══════════════════════════════════════════ */

/* ── Back link ──────────────────────────── */
.art-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 200ms;
  margin-bottom: 48px;
}
.art-back:hover { color: var(--white); }
.art-back svg { transition: transform 200ms; }
.art-back:hover svg { transform: translateX(-3px); }

/* ── Hero do artigo ─────────────────────── */
.art-hero {
  padding: 140px 0 72px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.art-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,196,106,0.05) 0%, transparent 65%);
  pointer-events: none;
}
.art-hero .container { position: relative; z-index: 1; }

.art-hero .label {
  margin-bottom: 20px;
}

.art-title {
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  max-width: 820px;
  margin: 0 0 28px;
}
.art-title em {
  font-style: normal;
  color: var(--green);
}

.art-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.art-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--dim);
  flex-shrink: 0;
}

/* ── Corpo do artigo ────────────────────── */
.art-wrap {
  padding: 80px 0 120px;
}
.art-cols {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .art-cols { grid-template-columns: 1fr; gap: 48px; }
}

/* Coluna de conteúdo */
.art-content {
  max-width: 720px;
}
.art-content p {
  font-size: 1.05rem;
  line-height: 1.82;
  color: rgba(245,245,245,0.88);
  margin: 0 0 1.6em;
  font-weight: 300;
}
.art-content p strong {
  color: var(--white);
  font-weight: 600;
}
.art-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 3em 0 1em;
  line-height: 1.25;
}
.art-content h2:first-child { margin-top: 0; }

.art-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6em;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.art-content ul li {
  padding-left: 20px;
  position: relative;
  font-size: 1.05rem;
  line-height: 1.72;
  color: rgba(245,245,245,0.88);
  font-weight: 300;
}
.art-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

/* Pull quote */
.art-pullquote {
  border-left: 3px solid var(--green);
  padding: 20px 28px;
  margin: 2.4em 0;
  background: rgba(0,196,106,0.04);
  border-radius: 0 8px 8px 0;
}
.art-pullquote p {
  font-size: 1.15rem !important;
  font-weight: 500 !important;
  color: var(--off-white) !important;
  font-style: italic;
  margin: 0 !important;
  line-height: 1.6 !important;
}

/* Separador editorial */
.art-sep {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 3em 0;
  color: var(--dim);
}
.art-sep::before, .art-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Stat inline */
.art-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.art-stat strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green) !important;
  line-height: 1;
}
.art-stat span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Sidebar ─────────────────────────────── */
.art-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Autor */
.art-author-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
}
.art-author-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(200,169,107,0.3);
  margin: 0 auto 16px;
}
.art-author-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.art-author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.art-author-role {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}
.art-author-box .btn-wpp {
  width: 100%;
  justify-content: center;
  font-size: 0.82rem;
  padding: 11px 16px;
}

/* Card de artigos relacionados */
.art-related {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.art-related-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.art-related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.art-related-list li a {
  font-size: 0.82rem;
  color: var(--off-white);
  text-decoration: none;
  line-height: 1.4;
  transition: color 180ms;
  display: block;
}
.art-related-list li a:hover { color: var(--green); }
.art-related-cat {
  font-size: 0.7rem;
  color: var(--green);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 3px;
}

/* ── Imagem inline no artigo ─────────────── */
.art-img-block {
  margin: 2.8em 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.art-img-block img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: brightness(0.88) contrast(1.06) saturate(0.85);
}
.art-img-caption {
  padding: 12px 18px;
  font-size: 0.76rem;
  color: var(--muted);
  background: var(--surface);
  font-style: italic;
  line-height: 1.5;
  border-top: 1px solid var(--border);
}

/* ── Compartilhar ────────────────────────── */
.art-share-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
  background: var(--surface);
}
.art-share-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.art-share-label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.art-share-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.art-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--off-white);
  background: transparent;
  cursor: pointer;
  transition: border-color 180ms, background 180ms, color 180ms;
  white-space: nowrap;
}
.art-share-btn:hover {
  border-color: #383838;
  background: var(--surface-alt);
}
.art-share-btn.btn-wpp-share {
  border-color: rgba(37,211,102,0.35);
  color: #25D366;
}
.art-share-btn.btn-wpp-share:hover {
  background: rgba(37,211,102,0.07);
}
.art-share-btn.copy-success {
  color: var(--green);
  border-color: rgba(0,196,106,0.45);
  background: rgba(0,196,106,0.05);
}

/* ── Comentários (Disqus) ─────────────────── */
.art-comments-section {
  padding: 72px 0 80px;
}
.art-comments-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--white);
  margin-bottom: 36px;
}
.art-comments-note {
  font-size: 0.8rem;
  color: var(--dim);
  margin-bottom: 28px;
  font-style: italic;
}
#disqus_thread a { color: var(--green) !important; }

/* ── CTA final ────────────────────────────── */
.art-cta-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 80px 0;
  text-align: center;
}
.art-cta-section .label { margin-bottom: 20px; }
.art-cta-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 16px;
}
.art-cta-desc {
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.65;
}
.art-cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid rgba(200,169,107,0.45);
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--gold);
  text-decoration: none;
  background: rgba(200,169,107,0.04);
  transition: background 280ms ease, border-color 280ms ease,
              color 280ms ease, box-shadow 280ms ease, transform 200ms ease;
  white-space: nowrap;
}
.btn-outline:hover {
  background: rgba(200,169,107,0.1);
  border-color: rgba(200,169,107,0.75);
  color: #d9b96e;
  box-shadow: 0 0 24px rgba(200,169,107,0.18), 0 6px 20px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}
.btn-outline:active { transform: translateY(0); }

/* ── Overlay link nos cards de insight ───── */
.ins-card-wrap,
.ins-featured-wrap {
  position: relative;
  display: block;
}
.ins-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  border-radius: inherit;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 768px) {
  .art-hero { padding: 110px 0 56px; }
  .art-wrap  { padding: 56px 0 80px; }
  .art-content p { font-size: 1rem; }
  .art-pullquote p { font-size: 1.05rem !important; }
}
