/*
 * single.css — Single post (artigo do blog).
 * Carregado via ai_theme_enqueue_assets() quando is_single().
 * Header/footer têm CSS próprio. Tokens no :root de style.css.
 */

.art-page { font-family: var(--tf-font); color: var(--tf-navy); background: #fff; }
.art-page a { text-decoration: none; }

@keyframes tfrise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; }
.eyebrow--blue { color: var(--tf-blue); }
.eyebrow-bar { width: 26px; height: 2px; background: var(--tf-yellow); }

/* ===== HERO ===== */
.art-hero { position: relative; background: var(--tf-navy); overflow: hidden; }
.art-hero-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.art-hero-ring { position: absolute; width: 640px; height: 640px; border-radius: 50%; border: 80px solid rgba(0, 78, 168, 0.28); right: -240px; top: -260px; }
.art-hero-stripes { position: absolute; inset: 0; background: repeating-linear-gradient(125deg, rgba(255, 255, 255, 0.028) 0 2px, transparent 2px 60px); }
.art-hero-inner { position: relative; max-width: 820px; margin: 0 auto; padding: 142px 32px 68px; animation: tfrise .7s ease both; }
.art-crumb { display: flex; align-items: center; gap: 14px; font-size: 13px; color: #9aa1d8; }
.art-crumb a { color: #c3c8ee; font-weight: 600; }
.art-crumb a:hover { color: #fff; }
.art-crumb-sep { opacity: 0.5; }
.art-crumb-cat { font-weight: 600; color: var(--tf-yellow); }
.art-title { font-family: var(--tf-font); font-weight: 700; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.1; color: #fff; margin: 18px 0 0; max-width: 740px; }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 26px; font-size: 14px; color: #c3c8ee; }
.art-meta-item { display: inline-flex; align-items: center; gap: 8px; }

/* ===== IMAGEM DE DESTAQUE ===== */
.art-featured-sec { background: #fff; }
.art-featured-wrap { max-width: 900px; margin: 0 auto; padding: 0 32px; }
.art-featured { position: relative; margin-top: -44px; aspect-ratio: 16 / 7; border-radius: 20px; overflow: hidden; background: var(--tf-navy); box-shadow: 0 30px 60px -28px rgba(10, 20, 107, 0.5); }
.art-featured-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.art-featured-ph { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 16px, transparent 16px 32px); }
.art-featured-note { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 24px; background: linear-gradient(0deg, rgba(5, 9, 63, 0.85), transparent); font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: #c3c8ee; }

/* ===== CORPO ===== */
.art-body-sec { background: #fff; }
.art-body-inner { max-width: 720px; margin: 0 auto; padding: 52px 32px 30px; }
.art-lead { font-size: 20px; line-height: 1.6; color: var(--tf-navy); font-weight: 600; margin: 0 0 30px; }

/* Prose (saída do the_content) */
.art-body p { font-size: 17px; line-height: 1.78; color: #3f4468; margin: 0 0 22px; }
.art-body h2 { font-family: var(--tf-font); font-weight: 700; font-size: 26px; line-height: 1.25; color: var(--tf-navy); margin: 44px 0 16px; }
.art-body h3 { font-family: var(--tf-font); font-weight: 700; font-size: 19px; line-height: 1.3; color: var(--tf-navy); margin: 32px 0 12px; }
.art-body ul { margin: 0 0 24px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.art-body ul li { position: relative; padding-left: 30px; font-size: 17px; line-height: 1.7; color: #3f4468; }
.art-body ul li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 9px; height: 9px; border-radius: 50%; background: var(--tf-yellow); }
.art-body ol { margin: 0 0 24px; padding-left: 22px; color: #3f4468; }
.art-body ol li { font-size: 17px; line-height: 1.7; margin-bottom: 8px; }
.art-body strong { color: var(--tf-navy); font-weight: 700; }
.art-body a { color: var(--tf-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.art-body a:hover { color: var(--tf-navy); }
.art-body img { max-width: 100%; height: auto; border-radius: 12px; }
.art-body blockquote { margin: 0 0 24px; padding: 14px 20px; border-left: 3px solid var(--tf-yellow); background: var(--tf-light); border-radius: 0 10px 10px 0; color: #3f4468; }

/* Compartilhar + tags */
.art-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--tf-border-2); }
.art-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.art-tag { font-size: 12.5px; font-weight: 600; color: #2a2f5c; background: #f2f4fc; border: 1px solid #e4e6f1; padding: 6px 12px; border-radius: 999px; }
.art-share-btn { display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #fff; font-weight: 700; font-size: 13.5px; padding: 11px 18px; border-radius: 10px; }
.art-share-btn:hover { color: #fff; }

/* ===== CTA ===== */
.art-cta-sec { background: #fff; }
.art-cta-inner { max-width: 720px; margin: 0 auto; padding: 20px 32px 72px; }
.art-cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: var(--tf-navy); border-radius: 20px; padding: 34px; }
.art-cta-text { min-width: 220px; flex: 1; }
.art-cta-title { font-weight: 700; font-size: 22px; color: #fff; }
.art-cta-sub { font-size: 14.5px; line-height: 1.6; color: #c3c8ee; margin: 8px 0 0; }
.art-cta-btn { flex: none; display: inline-flex; align-items: center; gap: 9px; background: var(--tf-yellow); color: var(--tf-navy); font-weight: 700; font-size: 15px; padding: 15px 24px; border-radius: 11px; box-shadow: 0 12px 30px -10px rgba(254, 219, 0, 0.5); }
.art-cta-btn:hover { color: var(--tf-navy); }

/* ===== RELACIONADOS ===== */
.art-rel-sec { background: var(--tf-light); border-top: 1px solid var(--tf-border-2); border-bottom: 1px solid var(--tf-border-2); }
.art-rel-inner { max-width: var(--tf-container); margin: 0 auto; padding: 80px 32px; }
.art-rel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.art-rel-title { font-family: var(--tf-font); font-weight: 700; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.15; color: var(--tf-navy); margin: 12px 0 0; }
.art-rel-all { flex: none; font-weight: 600; font-size: 14.5px; color: var(--tf-blue); }
.art-rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.art-rel-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tf-border); border-radius: 16px; overflow: hidden; box-shadow: 0 16px 40px -32px rgba(10, 20, 107, 0.5); transition: transform .18s ease, box-shadow .18s ease; }
.art-rel-card:hover { transform: translateY(-3px); box-shadow: 0 22px 48px -30px rgba(10, 20, 107, 0.6); }
.art-rel-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.art-rel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-rel-stripes { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0 14px, transparent 14px 28px); }
.art-rel-cat { position: absolute; left: 16px; bottom: 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: var(--tf-yellow); color: var(--tf-navy); padding: 5px 11px; border-radius: 999px; }
.art-rel-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.art-rel-meta { font-size: 12px; font-weight: 500; color: var(--tf-muted-3); }
.art-rel-name { font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--tf-navy); margin: 9px 0 0; }
.art-rel-more { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-weight: 600; font-size: 13.5px; color: var(--tf-blue); }

/* ===== RESPONSIVO ===== */
@media (max-width: 960px) {
  .art-rel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .art-hero-inner { padding: 130px 20px 56px; }
  .art-featured-wrap { padding: 0 20px; }
  .art-body-inner { padding: 40px 20px 24px; }
  .art-cta-inner { padding: 16px 20px 56px; }
  .art-rel-inner { padding: 56px 20px; }
  .art-body p, .art-body ul li, .art-body ol li { font-size: 16px; }
  .art-cta-box { padding: 26px 22px; }
}
