/* === BLOG — Dados & Decisão · Light theme, reading-optimized === */

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --b-bg: #ffffff;
  --b-bg2: #f7f7f9;
  --b-bg3: #f0f0f4;
  --b-warm: #faf9f7;
  --b-bd: #e4e4ea;
  --b-bd2: #d1d1db;
  --b-txt: #1c1c28;
  --b-txt2: #44445c;
  --b-txt3: #6b6b80;
  --b-muted: #9898a8;
  --b-head: #0a0a14;
  --b-link: #7c3aed;
  --b-link2: #6d28d9;
  --b-accent: #7c3aed;
  --b-accent-bg: rgba(124,58,237,.05);
  --b-accent-bd: rgba(124,58,237,.12);
  --b-quote: #f8f5ff;
  --b-code: #f3efff;
  --b-shadow: 0 1px 3px rgba(0,0,0,.05);
  --b-shadow2: 0 4px 16px rgba(0,0,0,.07);
  --b-r: 10px;
  --b-max: 1120px;
  --b-content: 660px;
  --b-mono: 'JetBrains Mono', monospace;
  --b-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

body.blog-theme {
  font-family: var(--b-sans);
  background: var(--b-bg) !important;
  color: var(--b-txt);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ══════════════════════════════════
   NAV
   ══════════════════════════════════ */
.bn {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--b-bd);
  padding: .75rem 0;
}
.bn-inner {
  max-width: var(--b-max);
  margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.bn-left { display: flex; align-items: center; gap: 1.25rem; }
.bn-logo {
  height: 15px; width: auto;
  filter: brightness(0) saturate(100%) invert(22%) sepia(80%) saturate(4500%) hue-rotate(258deg) brightness(92%) contrast(95%);
}
.bn-sep { width: 1px; height: 18px; background: var(--b-bd); }
.bn-name {
  font-size: .85rem; font-weight: 700; color: var(--b-txt);
  letter-spacing: -.01em;
}
.bn-name:hover { color: var(--b-accent); }
.bn-right { display: flex; align-items: center; gap: 1rem; }
.bn-link {
  font-size: .82rem; font-weight: 500; color: var(--b-txt3);
  padding: .4rem .75rem; border-radius: 6px; transition: all .2s;
}
.bn-link:hover { color: var(--b-txt); background: var(--b-bg2); }
.bn-cta {
  font-size: .8rem; font-weight: 600; color: #fff;
  background: var(--b-accent); padding: .45rem 1rem;
  border-radius: 7px; transition: background .2s;
}
.bn-cta:hover { background: var(--b-link2); }

/* Mobile menu */
.bn-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: .4rem; color: var(--b-txt); line-height: 0;
}
.bn-toggle svg { width: 22px; height: 22px; }
.bn-mobile {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--b-bg); border-bottom: 1px solid var(--b-bd);
  box-shadow: var(--b-shadow2); padding: .75rem 1.25rem;
}
.bn-mobile.open { display: flex; flex-direction: column; gap: .25rem; }
.bn-mobile a {
  display: block; padding: .65rem .75rem; font-size: .88rem; font-weight: 500;
  color: var(--b-txt2); border-radius: 6px; transition: background .2s;
}
.bn-mobile a:hover { background: var(--b-bg2); color: var(--b-txt); }
.bn-mobile .bn-cta {
  display: block; text-align: center; margin-top: .5rem;
  padding: .65rem; font-size: .85rem; color: #fff !important;
}

/* ══════════════════════════════════
   LEAD-IN (SVPG-inspired)
   ══════════════════════════════════ */
.bi-lead {
  background: #7c3aed;
  padding: 5rem 2rem 4.5rem;
  min-height: 80vh;
  display: flex; align-items: center;
}
.bi-lead-inner { max-width: 820px; margin: 0 auto; }
.bi-lead-stmt {
  font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 600;
  color: rgba(255,255,255,.85); line-height: 1.3; margin-bottom: 1.75rem;
}
.bi-lead h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800;
  color: #fff; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 2rem;
}
.bi-lead-who {
  font-size: .95rem; color: rgba(255,255,255,.7); line-height: 1.7;
  max-width: 640px;
}
.bi-lead-who a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.bi-lead-who a:hover { opacity: .8; }
.bi-lead-arrow {
  margin-top: 2.5rem; display: block; width: 24px; height: 24px;
  color: rgba(255,255,255,.5); transition: color .2s;
}
.bi-lead-arrow:hover { color: #fff; }

/* ══════════════════════════════════
   BLOG INDEX
   ══════════════════════════════════ */
.bi { max-width: var(--b-max); margin: 0 auto; padding: 3rem 2rem 0; }

/* Featured card */
.bi-feat {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center;
  padding: 2.5rem; background: var(--b-warm); border: 1px solid var(--b-bd);
  border-radius: var(--b-r); margin-bottom: 2.5rem;
  color: inherit; transition: box-shadow .3s;
}
.bi-feat:hover { box-shadow: var(--b-shadow2); }
.bi-feat-body { display: flex; flex-direction: column; gap: .6rem; }
.bi-feat h2 {
  font-size: 1.5rem; font-weight: 800; color: var(--b-head);
  line-height: 1.2; letter-spacing: -.02em;
}
.bi-feat p { font-size: .92rem; color: var(--b-txt2); line-height: 1.65; }
.bi-feat-meta {
  font-family: var(--b-mono); font-size: .72rem; color: var(--b-muted);
  display: flex; align-items: center; gap: .5rem; margin-top: .25rem;
}
.bi-feat-meta img { width: 26px; height: 26px; border-radius: 50%; }

/* Tag pill */
.tag {
  font-family: var(--b-mono); font-size: .62rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 4px; display: inline-block; width: fit-content;
}
.tag-concept { color: #7c3aed; background: rgba(124,58,237,.07); }
.tag-framework { color: #059669; background: rgba(5,150,105,.07); }
.tag-opinion { color: #d97706; background: rgba(217,119,6,.07); }
.tag-guide { color: #0284c7; background: rgba(2,132,199,.07); }
.tag-career { color: #0891b2; background: rgba(8,145,178,.07); }
.tag-tech { color: #475569; background: rgba(71,85,105,.07); }

/* Post grid */
.bi-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1.25rem; padding-bottom: 3rem;
}
.bi-card {
  display: flex; flex-direction: column; padding: 1.5rem;
  background: var(--b-bg); border: 1px solid var(--b-bd);
  border-radius: var(--b-r); color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.bi-card:hover {
  transform: translateY(-2px); box-shadow: var(--b-shadow2);
  border-color: var(--b-accent-bd);
}
.bi-card-title {
  font-size: 1.05rem; font-weight: 800; color: var(--b-head);
  line-height: 1.3; margin: .6rem 0 .5rem;
}
.bi-card-desc { font-size: .85rem; color: var(--b-txt3); line-height: 1.6; flex: 1; }
.bi-card-footer {
  display: flex; align-items: center; gap: .5rem; margin-top: 1rem;
}
.bi-card-meta {
  font-family: var(--b-mono); font-size: .68rem; color: var(--b-muted);
}

/* ══════════════════════════════════
   BLOG POST — HYBRID HERO
   ══════════════════════════════════ */

/* 1. Title block */
.bp-top { max-width: var(--b-max); margin: 0 auto; padding: 2.5rem 2rem 1.75rem; }
.bp-top-inner { max-width: var(--b-max); }
.bp-top h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 900;
  color: var(--b-head); letter-spacing: -.03em; line-height: 1.1;
  margin-bottom: .6rem;
}
.bp-hero-desc { font-size: 1.05rem; color: var(--b-txt2); line-height: 1.65; }
.bp-hero-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .75rem; }

/* 2. Cover image (with image) */
.bp-cover { max-width: var(--b-max); margin: 0 auto; padding: 0 2rem; }
.bp-cover-inner {
  aspect-ratio: 21/9; border-radius: var(--b-r); overflow: hidden;
  background: var(--b-bg2); border: 1px solid var(--b-bd);
}
.bp-cover-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 2b. Fallback (no image): purple block with title */
.bp-cover-fallback {
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1034 50%, #0f0f1a 100%);
  padding: 4rem 2rem;
}
.bp-cover-fallback-inner {
  max-width: var(--b-max); margin: 0 auto;
  text-align: center;
}
.bp-cover-fallback-inner span {
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900;
  color: #fff; letter-spacing: -.03em; line-height: 1.15;
  display: block; max-width: 720px; margin: 0 auto;
}

/* 3. Meta bar (transition zone) */
.bp-meta-bar {
  max-width: var(--b-max); margin: 0 auto;
  padding: 1.25rem 2rem;
}
.bp-meta-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.bp-hero-author {
  display: flex; align-items: center; gap: .65rem;
}
.bp-hero-author img { width: 36px; height: 36px; border-radius: 50%; }
.bp-hero-author-name { font-weight: 600; font-size: .85rem; color: var(--b-txt); }
.bp-hero-author-date { font-family: var(--b-mono); font-size: .75rem; color: var(--b-muted); }
.bp-hero-share {
  display: flex; align-items: center; gap: .4rem;
}
.bp-share-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .4rem .7rem; font-size: .75rem; font-weight: 500;
  color: var(--b-txt3); border: 1px solid var(--b-bd);
  border-radius: 6px; transition: all .2s; background: none; cursor: pointer;
  font-family: var(--b-sans); line-height: 1.4; box-sizing: border-box;
  height: 32px;
}
.bp-share-btn:hover { border-color: var(--b-bd2); color: var(--b-txt); background: var(--b-bg2); }
.bp-share-btn svg { width: 14px; height: 14px; }

/* Disclaimer (republished posts) */
.bp-disclaimer {
  max-width: var(--b-max); margin: 0 auto; padding: .75rem 2rem;
}
.bp-disclaimer-inner {
  display: flex; align-items: center; gap: .6rem;
  padding: .75rem 1rem; background: var(--b-bg2);
  border: 1px solid var(--b-bd); border-radius: 6px;
  font-size: .82rem; color: var(--b-txt3);
}
.bp-disclaimer-inner a {
  color: var(--b-accent); font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
}
.bp-disclaimer-inner svg { flex-shrink: 0; color: var(--b-muted); }

/* 4. Divider bar */
.bp-divider-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--b-accent), #6366f1, var(--b-accent));
  border-radius: 2px;
  max-width: var(--b-max);
  margin: 0 auto;
}

/* ══════════════════════════════════
   BODY: TOC + ARTICLE
   ══════════════════════════════════ */
.bp-body {
  max-width: var(--b-max); margin: 0 auto; padding: 0 2rem 3rem;
  display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem;
}

/* TOC */
.bp-toc {
  position: sticky; top: 72px; padding-top: 2rem;
  max-height: calc(100vh - 90px); overflow-y: auto;
}
.bp-toc-title {
  font-family: var(--b-mono); font-size: .65rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--b-muted); margin-bottom: .75rem;
}
.bp-toc ol { list-style: none; counter-reset: toc; }
.bp-toc li { counter-increment: toc; margin-bottom: .15rem; }
.bp-toc a {
  display: flex; align-items: baseline; gap: .4rem;
  padding: .4rem .6rem; font-size: .8rem; font-weight: 500;
  color: var(--b-txt3); border-radius: 5px;
  transition: all .2s; line-height: 1.35; border-left: 2px solid transparent;
}
.bp-toc a::before {
  content: counter(toc); font-family: var(--b-mono); font-size: .68rem;
  color: var(--b-muted); min-width: 12px;
}
.bp-toc a:hover { background: var(--b-bg2); color: var(--b-txt); }
.bp-toc a.active {
  background: var(--b-accent-bg); color: var(--b-accent);
  border-left-color: var(--b-accent);
}
.bp-toc a.active::before { color: var(--b-accent); }

/* Article content */
.bp-content { padding-top: 2rem; max-width: var(--b-content); }
.bp-content h2 {
  font-size: 1.35rem; font-weight: 800; color: var(--b-head);
  letter-spacing: -.02em; margin: 2.5rem 0 .85rem; line-height: 1.2;
  scroll-margin-top: 80px;
}
.bp-content h3 {
  font-size: 1.1rem; font-weight: 700; color: var(--b-head);
  margin: 1.75rem 0 .65rem; line-height: 1.3; scroll-margin-top: 80px;
}
.bp-content p {
  font-size: 1.05rem; line-height: 1.9; color: var(--b-txt); margin-bottom: 1.3rem;
}
.bp-content a {
  color: var(--b-link); text-decoration: underline;
  text-decoration-color: rgba(124,58,237,.25); text-underline-offset: 3px;
  transition: text-decoration-color .2s;
}
.bp-content a:hover { text-decoration-color: var(--b-link); }
.bp-content strong { font-weight: 700; color: var(--b-head); }
.bp-content blockquote {
  border-left: 3px solid var(--b-accent);
  padding: 1rem 1.35rem; margin: 1.75rem 0;
  background: var(--b-quote); border-radius: 0 8px 8px 0;
}
.bp-content blockquote p {
  font-size: .98rem; font-style: italic; color: var(--b-txt2); margin-bottom: 0;
}
.bp-content blockquote p + p { margin-top: .6rem; }
.bp-content ul, .bp-content ol { margin: .75rem 0 1.3rem; padding-left: 1.4rem; }
.bp-content li { font-size: 1.05rem; line-height: 1.85; margin-bottom: .4rem; }
.bp-content code {
  font-family: var(--b-mono); font-size: .86em;
  background: var(--b-code); padding: .12rem .4rem;
  border-radius: 4px; color: var(--b-accent);
}
.bp-content hr {
  border: none; border-top: 1px solid var(--b-bd); margin: 2.5rem 0;
}
.bp-content ol li { list-style-type: decimal; }

/* ══════════════════════════════════
   POST FOOTER
   ══════════════════════════════════ */
.bp-footer {
  max-width: var(--b-max); margin: 0 auto; padding: 0 2rem 3rem;
}

/* Closing text (author sign-off) */
.bp-closing {
  padding: 2rem 0; border-top: 1px solid var(--b-bd);
  font-size: .95rem; color: var(--b-txt2); line-height: 1.8;
}
.bp-closing a { color: var(--b-link); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Program CTA */
.bp-cta {
  margin: 1.5rem 0 2rem; padding: 2.25rem;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1034 100%);
  border-radius: var(--b-r); text-align: center;
}
.bp-cta h3 { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: .4rem; }
.bp-cta p { font-size: .9rem; color: #b0b0cc; margin-bottom: 1.25rem; line-height: 1.6; }
.bp-cta-btn {
  display: inline-block; padding: .75rem 1.75rem;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: #fff; font-weight: 700; font-size: .85rem; border-radius: 8px;
  text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.bp-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,58,237,.25); }

/* Related posts */
.bp-related { padding: 2rem 0; }
.bp-related-title {
  font-size: 1rem; font-weight: 800; color: var(--b-head); margin-bottom: 1.25rem;
}
.bp-rel-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.bp-rel-card {
  padding: 1.25rem; border: 1px solid var(--b-bd); border-radius: var(--b-r);
  color: inherit; transition: all .2s;
}
.bp-rel-card:hover { border-color: var(--b-accent-bd); box-shadow: var(--b-shadow); }
.bp-rel-card h4 {
  font-size: .9rem; font-weight: 700; color: var(--b-head);
  line-height: 1.3; margin: .4rem 0 .3rem;
}
.bp-rel-card p { font-size: .78rem; color: var(--b-txt3); line-height: 1.5; }

/* Author box */
.bp-author {
  display: flex; align-items: start; gap: 1.1rem;
  padding: 1.75rem; border: 1px solid var(--b-bd); border-radius: var(--b-r);
  background: var(--b-bg2); margin-top: 1.5rem;
}
.bp-author img { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; }
.bp-author-name {
  font-weight: 700; font-size: .9rem; color: var(--b-head); margin-bottom: .2rem;
}
.bp-author-name a { color: inherit; }
.bp-author-name a:hover { color: var(--b-accent); }
.bp-author-bio { font-size: .82rem; color: var(--b-txt3); line-height: 1.55; }
.bp-author-links { display: flex; gap: .6rem; margin-top: .5rem; }
.bp-author-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .7rem; font-size: .75rem; font-weight: 600;
  color: var(--b-accent); background: var(--b-accent-bg);
  border: 1px solid var(--b-accent-bd); border-radius: 6px;
  text-decoration: none; transition: background .2s;
}
.bp-author-btn:hover { background: rgba(124,58,237,.1); }

/* ══════════════════════════════════
   FOOTER (light)
   ══════════════════════════════════ */
.bf { border-top: 1px solid var(--b-bd); padding: 3rem 0 0; margin-top: 2rem; }
.bf-inner { max-width: var(--b-max); margin: 0 auto; padding: 0 2rem; }
.bf-cols {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem; padding-bottom: 2rem;
}
.bf-col { display: flex; flex-direction: column; gap: .35rem; }
.bf-col-title {
  font-family: var(--b-mono); font-size: .65rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--b-muted); margin-bottom: .35rem;
}
.bf-col a {
  font-size: .82rem; color: var(--b-txt3); text-decoration: none;
  transition: color .2s;
}
.bf-col a:hover { color: var(--b-accent); }
.bf-brand span {
  font-size: .78rem; color: var(--b-txt3); margin-top: .4rem; display: block; line-height: 1.5;
}
.bf-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0; border-top: 1px solid var(--b-bd);
  font-size: .72rem; color: var(--b-muted);
}
.bf-bottom a { color: var(--b-txt3); text-decoration: none; }
.bf-bottom a:hover { color: var(--b-accent); }
@media (max-width: 768px) {
  .bf-cols { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 480px) {
  .bf-cols { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */
@media (max-width: 960px) {
  .bp-body { grid-template-columns: 1fr; gap: 0; }
  .bp-toc {
    position: static; padding: 1.25rem 0; max-height: none;
    border-bottom: 1px solid var(--b-bd);
  }
  .bp-toc ol { display: flex; flex-wrap: wrap; gap: .2rem; }
  .bp-toc a { font-size: .75rem; padding: .3rem .5rem; border-left: none; }
  .bi-feat { grid-template-columns: 1fr; gap: 1.25rem; }
  .bp-rel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .bi-grid { grid-template-columns: 1fr; }
  .bn-right { display: none; }
  .bn-toggle { display: block; }
  .bn-inner { padding: 0 1.25rem; }
  .bn-left { gap: .75rem; flex: 1; }
  .bn-name { font-size: .78rem; }
  .bi-lead { padding: 2.5rem 1.25rem 2rem; min-height: auto; }
  .bi-lead h1 { font-size: 1.8rem; }
  .bi-lead-stmt { font-size: 1.2rem; }
  .bp-top { padding: 1.5rem 1.25rem 1.25rem; }
  .bp-cover { padding: 0 1.25rem; }
  .bp-meta-bar { padding: 1rem 1.25rem; }
  .bp-meta-bar-inner { flex-direction: column; align-items: flex-start; }
  .bp-body { padding: 0 1.25rem 2rem; }
  .bp-footer { padding: 0 1.25rem 2rem; }
  .bi { padding: 0 1.25rem; }
  .bp-hero-share { flex-wrap: wrap; }
  .bp-cover-fallback { padding: 2.5rem 1.25rem; }
}
@media (max-width: 480px) {
  .bn-sep { display: none; }
  .bn-name { display: none; }
  .bn-logo { height: 13px; }
}
@media (max-width: 640px) {
  .bp-top h1 { font-size: 1.5rem; }
  .bp-content p, .bp-content li { font-size: 1rem; }
  .bp-cover-inner { aspect-ratio: 16/9; }
  .bp-cover-fallback-inner span { font-size: 1.3rem; }
  .bi-lead h1 { font-size: 1.4rem; }
  .bi-lead-stmt { font-size: 1rem; }
  .bi-lead-who { font-size: .82rem; }
}
