/* Blog styles — self-contained, matches the nAppleCleaner landing aesthetic. */
:root {
  --bg: #050a0e;
  --bg-surface: #0a1018;
  --bg-card: #0d1520;
  --bg-elevated: #111d2e;
  --neon: #00ff88;
  --neon-dim: #00cc6a;
  --neon-glow: rgba(0, 255, 136, 0.15);
  --text: #e8edf2;
  --text-muted: #7a8da0;
  --text-dim: #4a5d72;
  --border: rgba(0, 255, 136, 0.08);
  --border-active: rgba(0, 255, 136, 0.25);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--neon-dim); text-decoration: none; }
a:hover { color: var(--neon); text-decoration: underline; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  background: rgba(5, 10, 14, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.nav__brand:hover { text-decoration: none; }
.nav__brand img { width: 28px; height: 28px; }
.nav__links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav__links a { color: var(--text-muted); }
.nav__links a:hover { color: var(--text); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn--primary { background: var(--neon); color: #032312; }
.btn--primary:hover { color: #032312; text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 24px var(--neon-glow); }
.btn--ghost { border: 1px solid var(--border-active); color: var(--text); }
.btn--ghost:hover { color: var(--text); text-decoration: none; background: rgba(0,255,136,0.06); }

/* layout */
main { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 80px; }
.wide { max-width: 1080px; }
.crumbs { font-size: 13px; color: var(--text-dim); margin-bottom: 28px; }
.crumbs a { color: var(--text-muted); }

/* article */
.tag {
  display: inline-block; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--neon);
  border: 1px solid var(--border-active); border-radius: 999px; padding: 4px 12px; margin-bottom: 18px;
}
article h1 {
  font-size: clamp(30px, 5vw, 46px); line-height: 1.12; font-weight: 800;
  letter-spacing: -0.02em; margin: 0 0 16px;
}
.byline { color: var(--text-dim); font-size: 14px; margin-bottom: 32px; }
.byline span { color: var(--text-muted); }
article h2 { font-size: 26px; font-weight: 700; margin: 44px 0 14px; letter-spacing: -0.01em; }
article h3 { font-size: 19px; font-weight: 700; margin: 30px 0 10px; color: var(--text); }
article p, article li { color: #d3dbe4; font-size: 17px; }
article ul, article ol { padding-left: 22px; }
article li { margin: 8px 0; }
article strong { color: #fff; }
article code {
  font-family: var(--font-mono); font-size: 0.88em; color: var(--neon);
  background: rgba(0,255,136,0.06); padding: 2px 6px; border-radius: 5px;
}
blockquote {
  margin: 26px 0; padding: 14px 20px; border-left: 3px solid var(--neon-dim);
  background: var(--bg-card); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text); font-size: 18px;
}
hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* callout / key takeaways */
.callout {
  background: var(--bg-card); border: 1px solid var(--border-active);
  border-radius: var(--radius); padding: 20px 24px; margin: 28px 0;
}
.callout h2, .callout h3 { margin-top: 0; }
.callout--danger { border-color: rgba(255,69,58,0.35); background: rgba(255,69,58,0.06); }
.callout--danger .callout__title { color: #ff8f8a; }
.callout__title { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--neon); margin: 0 0 10px; }
.callout ul { margin: 0; }

/* CTA */
.cta {
  margin: 48px 0 0; padding: 34px; text-align: center;
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-card));
  border: 1px solid var(--border-active); border-radius: var(--radius);
}
.cta h2 { margin: 0 0 10px; }
.cta p { color: var(--text-muted); margin: 0 0 22px; }
.cta__row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* FAQ */
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 4px 18px; margin: 10px 0; background: var(--bg-surface);
}
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; color: var(--neon); font-family: var(--font-mono); }
.faq details[open] summary::before { content: "− "; }
.faq details p { margin: 0 0 14px; }

/* blog index cards */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
@media (min-width: 720px) { .post-grid { grid-template-columns: 1fr 1fr; } }
.post-card {
  display: block; padding: 26px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.post-card:hover { border-color: var(--border-active); transform: translateY(-2px); text-decoration: none; }
.post-card h2 { font-size: 21px; margin: 12px 0 8px; color: var(--text); }
.post-card p { color: var(--text-muted); font-size: 15px; margin: 0; }
.lead { font-size: 20px; color: var(--text-muted); line-height: 1.6; }

/* footer */
.footer {
  border-top: 1px solid var(--border); padding: 32px 24px; text-align: center;
  color: var(--text-dim); font-size: 14px;
}
.footer a { color: var(--text-muted); }
