/* ============================================================================
   VEGA INDEX — blog.css
   Estilos compartilhados do blog (índice + artigos). Mesma paleta/identidade
   das páginas principais (verde de fronteira), extraído pra não repetir CSS
   inline em cada post. Layout editorial: revista especializada.
   ========================================================================== */

:root {
  --bg:        #060a08;
  --bg-2:      #0a120e;
  --bg-3:      #101a14;
  --line:      #1a2a22;
  --line-2:    #25382e;
  --text:      #e6f5ea;
  --text-dim:  #a9c4b5;
  --accent:    #56d364;
  --accent-bright: #7ee589;
  --accent-deep:   #2ea043;
  --accent-glow:   rgba(86, 211, 100, 0.4);
  --grid:      rgba(86, 211, 100, 0.04);
  --green:     #69f0ae;
  --blog:      #8ab4f8;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 14px; line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
}
body::before {
  content: ''; position: fixed;
  top: -300px; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 600px;
  background: radial-gradient(ellipse, rgba(86,211,100,0.10), transparent 65%);
  pointer-events: none; z-index: 0;
}
#viral-bg {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none; z-index: 0;
  opacity: 0.35;
}
.container { max-width: 820px; margin: 0 auto; padding: 28px 24px 80px; position: relative; z-index: 1; }

/* ---- Topbar (padrão VEGA) ---- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 22px; border-bottom: 1px solid var(--line);
  margin-bottom: 36px; gap: 12px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 42px; height: 42px;
  border: 1.5px solid var(--accent);
  display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800; font-size: 19px;
  color: var(--accent);
  background: rgba(86,211,100,0.04);
}
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800; font-size: 18px;
  letter-spacing: 2.5px; text-transform: uppercase;
}
.brand-title a { text-decoration: none; }
.brand-title .lumen { color: var(--accent); margin-right: 5px; }
.brand-title .ani   { color: var(--accent-bright); }
.brand-sub {
  color: var(--text-dim);
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 2.5px;
}
.topbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lang-toggle { display: inline-flex; gap: 0; border: 1px solid var(--line); }
.lang-btn {
  background: transparent; border: 0;
  color: var(--text-dim);
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 700;
  padding: 6px 12px; cursor: pointer;
  letter-spacing: 1.5px; transition: all .15s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--accent); color: var(--bg); }
.admin-link {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--bg-2);
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 1px; font-weight: 700;
  transition: all .15s;
}
.admin-link:hover { filter: brightness(1.2); }
.admin-link[aria-current="page"] { filter: brightness(1.4); box-shadow: 0 0 12px currentColor; }

/* ---- Hero / cabeçalho de página ---- */
.hero-pill {
  display: inline-block; padding: 7px 16px;
  border: 1px solid var(--accent); color: var(--accent);
  font-size: 11px; text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 24px;
  background: rgba(86,211,100,0.05);
  font-weight: 700;
}
h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4.4vw, 48px);
  font-weight: 800; letter-spacing: -1.2px;
  margin-bottom: 14px; line-height: 1.06;
  color: var(--accent-bright);
  text-shadow: 0 0 30px var(--accent-glow);
}
h1 .green { color: var(--accent); }
.subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 500; letter-spacing: 0.3px;
  color: var(--text); opacity: 0.9;
  margin-bottom: 22px; max-width: 720px;
}
.subtitle .accent { color: var(--accent); font-weight: 700; }

/* ---- Meta do artigo (revista) ---- */
.article-meta {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--text-dim);
  letter-spacing: 1px; text-transform: uppercase;
  padding-bottom: 28px; margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.article-meta .kicker { color: var(--accent); font-weight: 600; }
.article-meta .sep { color: var(--line-2); }

/* ---- Corpo editorial ---- */
.essay p {
  font-size: 15.5px;
  color: var(--text-dim);
  line-height: 1.85;
  margin-bottom: 24px;
  max-width: 720px;
}
.essay p strong { color: var(--text); font-weight: 600; }
.essay p .accent { color: var(--accent-bright); font-weight: 600; }
.essay p:first-of-type::first-letter {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 56px; font-weight: 800;
  float: left; line-height: 0.9;
  margin: 6px 12px 0 0; color: var(--accent);
}
.essay h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 700; color: var(--text);
  letter-spacing: -0.5px; line-height: 1.2;
  margin: 48px 0 18px; max-width: 720px;
}
.essay h2 .green { color: var(--accent); }
.essay h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px; font-weight: 700;
  color: var(--accent-bright); margin: 32px 0 12px;
  letter-spacing: -0.2px;
}
.essay ul { margin: 0 0 24px 0; max-width: 720px; list-style: none; }
.essay ul li {
  position: relative; padding-left: 22px; margin-bottom: 12px;
  color: var(--text-dim); font-size: 15px; line-height: 1.75;
}
.essay ul li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}
.essay ul li strong { color: var(--text); }

.pullquote {
  margin: 48px 0 28px;
  padding: 20px 28px;
  border-left: 3px solid var(--accent);
  background: rgba(86,211,100,0.05);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(18px, 2.3vw, 23px);
  font-weight: 600; line-height: 1.4;
  color: var(--text); letter-spacing: -0.2px;
  max-width: 760px;
}
.pullquote .accent { color: var(--accent); }

.closing {
  margin-top: 56px; padding: 36px 28px;
  border: 1px solid var(--line-2);
  text-align: center;
  background: rgba(10,18,14,0.5);
}
.closing h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; font-weight: 700;
  color: var(--text); margin-bottom: 14px;
}
.closing p {
  color: var(--text-dim); font-size: 13.5px;
  max-width: 580px; margin: 0 auto 22px; line-height: 1.7;
}
.closing a.btn {
  display: inline-block; padding: 12px 28px;
  background: var(--accent); border: 0; color: var(--bg);
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .15s;
}
.closing a.btn:hover { background: var(--accent-bright); }

/* ---- Índice do blog (cards) ---- */
.blog-lede {
  font-size: 15px; color: var(--text-dim);
  line-height: 1.8; max-width: 720px; margin-bottom: 44px;
}
.blog-lede strong { color: var(--text); }
.blog-list { display: flex; flex-direction: column; gap: 18px; }
.blog-card {
  display: block; text-decoration: none;
  background: rgba(10, 18, 14, 0.5);
  border: 1px solid var(--line);
  padding: 26px 26px;
  transition: border-color .25s, transform .2s, background .25s;
}
.blog-card:hover {
  border-color: var(--accent-deep);
  transform: translateY(-2px);
  background: rgba(10, 18, 14, 0.8);
}
.blog-card .bc-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; color: var(--text-dim);
  letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 12px;
}
.blog-card .bc-meta .kicker { color: var(--accent); font-weight: 600; }
.blog-card .bc-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 700; color: var(--text);
  line-height: 1.22; letter-spacing: -0.5px; margin-bottom: 12px;
}
.blog-card:hover .bc-title { color: var(--accent-bright); }
.blog-card .bc-excerpt {
  font-size: 14px; color: var(--text-dim);
  line-height: 1.7; max-width: 680px;
}
.blog-card .bc-more {
  display: inline-block; margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--accent);
  letter-spacing: 1px; font-weight: 600;
}

.back-link {
  display: inline-block; margin-bottom: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--text-dim);
  letter-spacing: 1px; text-decoration: none; text-transform: uppercase;
  transition: color .15s;
}
.back-link:hover { color: var(--accent); }

/* ---- Footer ---- */
footer {
  margin-top: 80px; padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--text-dim); font-size: 12px; text-align: center;
}
footer .links { margin-top: 10px; }
footer .links a {
  color: var(--text-dim); text-decoration: none;
  margin: 0 12px; transition: color .15s;
}
footer .links a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .essay p:first-of-type::first-letter { font-size: 44px; }
  .article-meta { gap: 10px; }
}
