/* ═══════════════════════════════════════════════════════════
   Acemode Blog Stylesheet
   Shared across all blog posts. Save as /public/blog/blog.css
   ═══════════════════════════════════════════════════════════ */

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}

:root{
  --bg:#0a0a0b; --bg1:#111113; --bg2:#18181b; --bg3:#1f1f23;
  --border:rgba(255,255,255,0.06); --border2:rgba(255,255,255,0.1);
  --text:#ededed; --text2:#a1a1aa; --text3:#52525b;
  --green:#22c55e; --green-bg:rgba(34,197,94,0.08); --green-bd:rgba(34,197,94,0.2);
  --blue:#3b82f6; --red:#ef4444; --yellow:#eab308;
}

body{
  background:var(--bg); color:var(--text);
  font-family:'Geist',-apple-system,'Segoe UI',sans-serif;
  font-size:17px; line-height:1.75;
  -webkit-font-smoothing:antialiased;
}

.grid-bg{
  position:fixed; inset:0;
  background-image:linear-gradient(rgba(255,255,255,0.015) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(255,255,255,0.015) 1px,transparent 1px);
  background-size:72px 72px;
  pointer-events:none; z-index:0;
}

/* ── Nav ── */
nav{
  position:sticky; top:0; z-index:100; height:60px;
  display:flex; align-items:center; padding:0 32px;
  background:rgba(10,10,11,0.85); backdrop-filter:blur(16px);
  border-bottom:1px solid var(--border);
}
.nav-inner{
  max-width:1100px; margin:0 auto; width:100%;
  display:flex; align-items:center; gap:0;
}
.nav-logo{
  display:flex; align-items:center; gap:8px;
  font-size:15px; font-weight:600; color:var(--text);
  text-decoration:none; letter-spacing:-0.3px;
}
.nav-dot{
  width:7px; height:7px; background:var(--green);
  border-radius:50%; box-shadow:0 0 8px rgba(34,197,94,0.6);
}
.nav-links{display:flex; align-items:center; gap:4px; margin-left:auto; list-style:none}
.nav-links a{
  font-size:13.5px; color:var(--text2); text-decoration:none;
  padding:6px 12px; border-radius:6px; transition:all 0.15s; font-weight:400;
}
.nav-links a:hover{color:var(--text); background:var(--bg2)}
.nav-cta{
  margin-left:8px; font-size:13px; font-weight:500;
  color:var(--bg)!important; background:var(--text)!important;
  padding:7px 16px!important; border-radius:7px!important;
}
.nav-cta:hover{opacity:0.85!important; background:var(--text)!important}

/* ── Article ── */
article{
  position:relative; z-index:1;
  max-width:760px; margin:0 auto;
  padding:80px 32px 100px;
}

.article-header{margin-bottom:48px; padding-bottom:32px; border-bottom:1px solid var(--border)}
.article-eyebrow{
  font-family:'Geist Mono',monospace; font-size:11px;
  color:var(--green); letter-spacing:1.5px; text-transform:uppercase;
  margin-bottom:20px; display:flex; align-items:center; gap:8px;
}
.article-eyebrow::before{
  content:''; width:20px; height:1px;
  background:var(--green); opacity:0.5;
}
.article-back{
  display:inline-flex; align-items:center; gap:6px;
  font-size:13px; color:var(--text3); text-decoration:none;
  margin-bottom:24px; transition:color 0.15s;
}
.article-back:hover{color:var(--green)}

h1{
  font-size:clamp(34px,5vw,52px);
  font-weight:700; letter-spacing:-1.5px;
  line-height:1.1; margin-bottom:20px; color:var(--text);
}

.article-sub{
  font-size:18px; color:var(--text2);
  line-height:1.7; margin-bottom:24px;
}

.article-meta{
  display:flex; align-items:center; gap:14px;
  font-family:'Geist Mono',monospace; font-size:12px;
  color:var(--text3); flex-wrap:wrap;
}
.article-meta .sep{width:3px; height:3px; background:var(--text3); border-radius:50%}

.article-body{font-size:17px; line-height:1.8; color:var(--text2)}

.article-body h2{
  font-size:28px; font-weight:700; letter-spacing:-0.8px;
  color:var(--text); margin:56px 0 16px;
  line-height:1.2;
}

.article-body h3{
  font-size:20px; font-weight:600; letter-spacing:-0.4px;
  color:var(--text); margin:36px 0 12px; line-height:1.3;
}

.article-body p{margin-bottom:20px}
.article-body strong{color:var(--text); font-weight:600}
.article-body em{color:var(--text); font-style:italic}

.article-body a{color:var(--green); text-decoration:none; border-bottom:1px solid var(--green-bd); transition:border-color 0.15s}
.article-body a:hover{border-color:var(--green)}

.article-body ul,
.article-body ol{margin:20px 0; padding-left:24px}
.article-body li{margin-bottom:10px; line-height:1.75}
.article-body li::marker{color:var(--green)}

.article-body blockquote{
  border-left:3px solid var(--green);
  padding:18px 24px; margin:32px 0;
  background:var(--bg1); border-radius:0 8px 8px 0;
  font-size:16px; color:var(--text);
}
.article-body blockquote p:last-child{margin-bottom:0}

.article-body code{
  font-family:'Geist Mono',monospace; font-size:14px;
  background:var(--bg2); padding:2px 7px; border-radius:5px;
  color:var(--text); border:1px solid var(--border);
}

.article-body pre{
  background:var(--bg1); border:1px solid var(--border2);
  border-radius:10px; padding:20px 24px; margin:24px 0;
  overflow-x:auto; font-family:'Geist Mono',monospace;
  font-size:14px; line-height:1.7;
}
.article-body pre code{
  background:none; border:none; padding:0; font-size:inherit;
}

.article-body hr{
  border:none; border-top:1px solid var(--border);
  margin:48px 0;
}

/* Highlight callout box */
.callout{
  background:var(--bg1); border:1px solid var(--border2);
  border-radius:12px; padding:24px 28px; margin:28px 0;
  display:flex; gap:16px; align-items:flex-start;
}
.callout-icon{
  font-size:22px; flex-shrink:0;
  width:36px; height:36px; background:var(--bg2);
  border:1px solid var(--border2); border-radius:8px;
  display:flex; align-items:center; justify-content:center;
}
.callout-body{flex:1}
.callout-title{
  font-size:15px; font-weight:600; color:var(--text);
  margin-bottom:8px; letter-spacing:-0.2px;
}
.callout-body p{margin-bottom:0!important; font-size:15px}

.callout.green{border-color:var(--green-bd); background:var(--green-bg)}
.callout.green .callout-icon{background:rgba(34,197,94,0.15); border-color:var(--green-bd); color:var(--green)}
.callout.warning{border-color:rgba(234,179,8,0.2); background:rgba(234,179,8,0.05)}
.callout.warning .callout-icon{background:rgba(234,179,8,0.1); border-color:rgba(234,179,8,0.2); color:var(--yellow)}

/* CTA block at end of post */
.article-cta{
  margin-top:64px; padding:36px;
  background:var(--bg1); border:1px solid var(--border2);
  border-radius:14px; text-align:center;
}
.article-cta h3{
  font-size:22px; font-weight:600; letter-spacing:-0.4px;
  color:var(--text); margin-bottom:12px;
}
.article-cta p{
  font-size:15px; color:var(--text2);
  margin-bottom:24px; line-height:1.7;
}
.article-cta .btn{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--text); color:var(--bg);
  font-size:14px; font-weight:600;
  padding:13px 28px; border-radius:8px;
  text-decoration:none; transition:all 0.15s; border:none;
  letter-spacing:-0.2px;
}
.article-cta .btn:hover{opacity:0.88; transform:translateY(-1px)}

/* ── Related posts ── */
.related{
  max-width:1100px; margin:0 auto;
  padding:60px 32px;
  border-top:1px solid var(--border);
}
.related-label{
  font-family:'Geist Mono',monospace; font-size:11px;
  color:var(--green); letter-spacing:1.5px; text-transform:uppercase;
  margin-bottom:24px;
}
.related-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:16px;
}
.related-card{
  background:var(--bg1); border:1px solid var(--border2);
  border-radius:12px; padding:24px; text-decoration:none;
  display:block; transition:all 0.2s;
}
.related-card:hover{
  border-color:rgba(255,255,255,0.16); transform:translateY(-2px);
}
.related-tag{
  display:inline-block; font-family:'Geist Mono',monospace;
  font-size:10px; color:var(--green);
  background:var(--green-bg); border:1px solid var(--green-bd);
  padding:3px 10px; border-radius:100px;
  margin-bottom:12px; letter-spacing:0.3px;
}
.related-title{
  font-size:15px; font-weight:600; line-height:1.4;
  color:var(--text); margin-bottom:8px; letter-spacing:-0.3px;
}
.related-desc{font-size:13px; color:var(--text3); line-height:1.6}

/* ── Footer ── */
footer{
  border-top:1px solid var(--border); padding:32px;
}
.footer-inner{
  max-width:1100px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:16px;
}
.footer-logo{
  font-size:14px; font-weight:600; color:var(--text2);
  display:flex; align-items:center; gap:7px;
}
.footer-links{display:flex; gap:24px; list-style:none}
.footer-links a{
  font-size:13px; color:var(--text3);
  text-decoration:none; transition:color 0.15s;
}
.footer-links a:hover{color:var(--text2)}
.footer-copy{font-size:12px; color:var(--text3)}

/* ── Reading progress bar ── */
.progress-bar{
  position:fixed; top:0; left:0; height:2px;
  background:var(--green); width:0%;
  z-index:200; transition:width 0.1s ease-out;
  box-shadow:0 0 8px rgba(34,197,94,0.4);
}

@media(max-width:760px){
  article{padding:48px 20px 80px}
  h1{letter-spacing:-1px}
  .article-body{font-size:16px}
  .related-grid{grid-template-columns:1fr}
  nav{padding:0 16px}
  .nav-links li:not(:last-child){display:none}
  footer{padding:24px 20px}
  .footer-inner{flex-direction:column; align-items:flex-start}
}
