/* ── LogicMint blog — shared styles for /blog index + articles ──────────── */
/* Reuses tokens.css custom properties; dark theme consistent with the site.  */

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

body {
  background: radial-gradient(ellipse 120% 60% at 50% -10%, #1c0544 0%, #07001a 55%);
  color: #eef4ff;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  padding: 0 20px 100px;
  -webkit-font-smoothing: antialiased;
}

.blog-wrap { max-width: 760px; margin: 0 auto; }
.blog-wrap.wide { max-width: 1000px; }

/* Nav */
.blog-nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.blog-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.blog-logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  display: flex; align-items: center; justify-content: center; font-weight: 900; color: #fff;
}
.blog-logo-text {
  font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(90deg, #c084fc, #22d3ee);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.blog-nav-links { display: flex; gap: 18px; align-items: center; }
.blog-nav-links a { font-size: 14px; font-weight: 600; color: #94a3b8; text-decoration: none; }
.blog-nav-links a:hover { color: #eef4ff; }
.blog-nav-cta {
  font-size: 14px; font-weight: 700; color: #fff !important; text-decoration: none;
  padding: 9px 18px; border-radius: 10px; background: linear-gradient(135deg, #6d28d9, #4338ca);
}

/* Breadcrumb */
.blog-breadcrumb { font-size: 13px; color: #94a3b8; margin: 24px 0 10px; }
.blog-breadcrumb a { color: #94a3b8; text-decoration: none; }
.blog-breadcrumb a:hover { color: #eef4ff; }

/* Article body */
.article h1 {
  font-size: clamp(30px, 5vw, 46px); font-weight: 900; letter-spacing: -0.03em;
  line-height: 1.1; margin-bottom: 18px;
}
.article .lede { font-size: 19px; color: #cbd5e1; margin-bottom: 8px; }
.article h2 {
  font-size: clamp(22px, 3.2vw, 30px); font-weight: 800; letter-spacing: -0.02em;
  margin: 44px 0 14px; padding-top: 8px;
}
.article h3 { font-size: 19px; font-weight: 700; margin: 28px 0 10px; color: #f0f4ff; }
.article p { color: #cbd5e1; margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 18px 1.3em; color: #cbd5e1; }
.article li { margin-bottom: 8px; }
.article strong { color: #eef4ff; }
.article a { color: #c084fc; text-decoration: none; border-bottom: 1px solid rgba(192,132,252,0.35); }
.article a:hover { color: #d8b4fe; border-bottom-color: rgba(192,132,252,0.8); }
.article code {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px; padding: 1px 6px; font-size: 0.9em;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.article blockquote {
  border-left: 3px solid #c084fc; margin: 20px 0; padding: 8px 18px;
  color: #e2e8f0; font-style: italic; background: rgba(192,132,252,0.06); border-radius: 0 10px 10px 0;
}
.article .callout {
  margin: 36px 0; padding: 24px 26px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(109,40,217,0.16), rgba(14,116,144,0.10));
  border: 1px solid rgba(192,132,252,0.3);
}
.article .callout h3 { margin-top: 0; color: #eef4ff; }
.article .callout ul { margin-bottom: 0; }

/* Article footer CTA */
.article-cta {
  margin: 48px 0 0; padding: 32px 28px; text-align: center; border-radius: 20px;
  background: linear-gradient(135deg, rgba(109,40,217,0.18), rgba(14,116,144,0.12));
  border: 1px solid rgba(192,132,252,0.28);
}
.article-cta h2 { margin: 0 0 8px; }
.article-cta p { margin-bottom: 20px; color: #cbd5e1; }
.btn-primary {
  display: inline-block; padding: 14px 30px; border-radius: 14px; font-weight: 700;
  text-decoration: none; color: #fff; background: linear-gradient(135deg, #6d28d9, #4338ca);
  box-shadow: 0 0 40px rgba(109,40,217,0.4);
}

/* Blog index */
.blog-hero { text-align: center; padding: 40px 0 8px; }
.blog-hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 900; letter-spacing: -0.03em; }
.blog-hero p { font-size: 18px; color: #94a3b8; margin-top: 12px; }
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px; margin-top: 40px;
}
.blog-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px; padding: 24px 22px; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
  border-color: rgba(192,132,252,0.45); transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(109,40,217,0.18);
}
.blog-card h2 { font-size: 18px; font-weight: 700; color: #eef4ff; margin-bottom: 8px; line-height: 1.3; }
.blog-card p { font-size: 14px; color: #94a3b8; line-height: 1.6; }
.blog-card .blog-card-date { font-size: 12px; color: #6b7a90; margin-top: 14px; text-transform: uppercase; letter-spacing: 0.06em; }

/* Footer */
.blog-footer {
  margin-top: 64px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px; color: #94a3b8; display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
}
.blog-footer a { color: #94a3b8; text-decoration: none; }
.blog-footer a:hover { color: #eef4ff; }
.blog-footer .spacer { margin-left: auto; }
