/* Shared styles for the blog index + every post. Linked as /blog/blog.css. */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #06090f;
  color: #e2e8f0;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, #6366f120 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 30%, #06b6d418 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

.container { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* Brand styling */
.brand-accent { color: #818cf8; }
.brand-ai {
  font-size: 0.42em;
  font-weight: 700;
  background: linear-gradient(135deg, #06b6d4, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  vertical-align: super;
  margin-left: 2px;
  letter-spacing: 0.5px;
}

/* Header */
header.site-header {
  padding: 20px 0;
  border-bottom: 1px solid #1e1b3a;
  margin-bottom: 48px;
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand img { width: 32px; height: 32px; border-radius: 7px; }
.nav-brand > span { font-size: 21px; font-weight: 700; color: #e2e8f0; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: #94a3b8; text-decoration: none; font-size: 14px;
  transition: color 0.2s;
}
.nav-links a:hover { color: #e2e8f0; }
.nav-links a.active { color: #c4b5fd; }
@media (max-width: 640px) { .nav-links { gap: 16px; } }

/* Blog index listing */
.blog-hero { padding: 16px 0 40px; }
.blog-hero h1 {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.blog-hero p { font-size: 16px; color: #94a3b8; }

.post-list { display: flex; flex-direction: column; gap: 24px; padding-bottom: 80px; }
.post-card {
  background: #0f0f1a;
  border: 1px solid #2d2b55;
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s, transform 0.2s;
}
.post-card:hover { border-color: #3730a3; transform: translateY(-2px); }
.post-card h2 { font-size: 22px; color: #e2e8f0; margin-bottom: 8px; font-weight: 700; }
.post-card p.excerpt { font-size: 14px; color: #94a3b8; margin-bottom: 12px; }
.post-card .meta { font-size: 12px; color: #64748b; }

.empty-state {
  background: #0f0f1a;
  border: 1px dashed #2d2b55;
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  color: #64748b;
}
.empty-state strong { color: #e2e8f0; display: block; margin-bottom: 8px; font-size: 17px; }

/* Article body */
article.post { padding: 16px 0 80px; }
article.post header.post-header { margin-bottom: 32px; }
article.post h1 {
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
article.post .post-meta {
  font-size: 13px;
  color: #64748b;
}
article.post .post-meta time { color: #94a3b8; }

article.post h2 {
  font-size: 26px; font-weight: 700; margin: 48px 0 14px;
  color: #e2e8f0;
  letter-spacing: -0.01em;
}
article.post h3 {
  font-size: 19px; font-weight: 700; margin: 32px 0 10px;
  color: #c4b5fd;
}
article.post p { font-size: 16px; color: #cbd5e1; margin-bottom: 18px; }
article.post ul, article.post ol { margin: 0 0 20px 24px; }
article.post li { margin-bottom: 8px; color: #cbd5e1; }
article.post strong { color: #e2e8f0; }
article.post a { color: #818cf8; text-decoration: underline; text-decoration-color: #3730a3; text-underline-offset: 3px; }
article.post a:hover { color: #c4b5fd; text-decoration-color: #818cf8; }
article.post code {
  background: #1e1b3a;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: #c4b5fd;
  font-family: 'SF Mono', Monaco, Consolas, 'Courier New', monospace;
}
article.post pre {
  background: #0f0f1a;
  border: 1px solid #2d2b55;
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  margin: 0 0 20px;
}
article.post pre code { background: transparent; padding: 0; color: #e2e8f0; }
article.post blockquote {
  border-left: 3px solid #818cf8;
  padding: 4px 0 4px 18px;
  margin: 24px 0;
  color: #94a3b8;
  font-style: italic;
}
article.post img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid #2d2b55;
  margin: 24px 0;
}

article.post .install-cta {
  margin-top: 56px;
  padding: 32px;
  background: linear-gradient(135deg, #1e1b3a, #2d2b55);
  border: 1px solid #3730a3;
  border-radius: 14px;
  text-align: center;
}
article.post .install-cta h3 {
  color: #e2e8f0; margin: 0 0 12px;
  font-size: 22px;
}
article.post .install-cta p { font-size: 14px; color: #94a3b8; margin-bottom: 18px; }
article.post .install-cta a.btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid #1e1b3a;
  padding: 30px 0;
  text-align: center;
}
footer .footer-brand {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px; opacity: 0.7;
}
footer .footer-brand img { width: 24px; height: 24px; border-radius: 5px; }
footer p { font-size: 12px; color: #64748b; }
footer a { color: #94a3b8; text-decoration: none; margin: 0 8px; }
footer a:hover { color: #c4b5fd; text-decoration: underline; }
