/* ============================================
   HUMANT.AI — Blog Styles
   Matches home-style.css design system
   ============================================ */

:root {
  --bg: #0f1117;
  --bg-card: #1a1d27;
  --bg-card-hover: #1f2335;
  --bg-subtle: #13151f;
  --accent: #6366f1;
  --accent-bright: #818cf8;
  --accent-dim: #4f46e5;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --accent-glow-strong: rgba(99, 102, 241, 0.3);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(99, 102, 241, 0.3);
  --green: #10b981;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-accent); border-radius: 3px; }

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  height: 64px;
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 32px;
}
.nav-logo {
  font-size: 1.2rem; font-weight: 800; color: var(--text);
  text-decoration: none; letter-spacing: -0.5px; white-space: nowrap;
}
.t-accent { color: var(--accent-bright); }
.nav-links { display: flex; gap: 24px; list-style: none; margin-left: auto; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.875rem; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  border: none; transition: all 0.2s;
}
.btn-ghost { color: var(--text-muted); background: transparent; }
.btn-ghost:hover { color: var(--text); }
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: var(--accent-bright); }

/* ── Container ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ── Blog Index ── */
.blog-hero {
  padding: 140px 0 64px;
  text-align: center;
}
.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800; letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.blog-hero p {
  color: var(--text-muted); font-size: 1.125rem; max-width: 520px; margin: 0 auto;
}
.gradient-text {
  background: linear-gradient(135deg, #e2e8f0 0%, #818cf8 50%, #6366f1 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.blog-grid {
  padding: 0 0 96px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-decoration: none;
  display: flex; flex-direction: column; gap: 12px;
  transition: all 0.2s;
}
.blog-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.blog-tag {
  display: inline-block;
  padding: 4px 10px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600;
  background: var(--accent-glow); color: var(--accent-bright);
  border: 1px solid var(--border-accent);
  width: fit-content;
}
.blog-card h2 {
  font-size: 1.25rem; font-weight: 700;
  color: var(--text); line-height: 1.3;
}
.blog-card p {
  color: var(--text-muted); font-size: 0.9rem; line-height: 1.6;
  flex: 1;
}
.blog-card .meta {
  color: var(--text-dim); font-size: 0.8rem;
  display: flex; gap: 8px; align-items: center;
}
.blog-card .read-more {
  color: var(--accent-bright); font-size: 0.875rem; font-weight: 600;
  margin-top: 4px;
}

/* ── Blog Post ── */
.post-header {
  padding: 140px 0 48px;
}
.post-header .back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-muted); text-decoration: none; font-size: 0.875rem;
  margin-bottom: 32px; transition: color 0.2s;
}
.post-header .back-link:hover { color: var(--text); }
.post-header .blog-tag { margin-bottom: 20px; }
.post-header h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -1px;
  line-height: 1.15; margin-bottom: 20px;
}
.post-header .post-meta {
  color: var(--text-dim); font-size: 0.875rem;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.post-header .post-meta span { display: flex; align-items: center; gap: 4px; }

.post-body {
  padding-bottom: 96px;
}
.post-body .prose {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.8;
}
.post-body .prose h2 {
  font-size: 1.5rem; font-weight: 700;
  color: var(--text); margin: 48px 0 16px;
  letter-spacing: -0.5px;
}
.post-body .prose h3 {
  font-size: 1.125rem; font-weight: 700;
  color: var(--text); margin: 32px 0 12px;
}
.post-body .prose p { margin-bottom: 20px; }
.post-body .prose ul, .post-body .prose ol {
  margin: 0 0 20px 24px;
}
.post-body .prose li { margin-bottom: 8px; }
.post-body .prose strong { color: var(--text); }
.post-body .prose a { color: var(--accent-bright); text-decoration: underline; }
.post-body .prose a:hover { color: var(--text); }
.post-body .prose hr {
  border: none; border-top: 1px solid var(--border);
  margin: 48px 0;
}
.post-body .prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  font-style: italic;
}
.post-body .prose code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-bright);
  border: 1px solid var(--border);
}
.post-body .prose pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
  overflow-x: auto;
}
.post-body .prose pre code {
  background: none; border: none; padding: 0;
  font-size: 0.875rem; color: var(--text-muted);
}

/* ── Divider ── */
.divider {
  height: 1px; background: var(--border); margin: 0;
}

/* ── CTA Banner ── */
.cta-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin: 64px 0 0;
}
.cta-banner h3 {
  font-size: 1.375rem; font-weight: 700;
  margin-bottom: 8px;
}
.cta-banner p {
  color: var(--text-muted); margin-bottom: 24px;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-dim); font-size: 0.8rem;
  text-align: center;
}
footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--text-muted); }
