/* ═══════════════════════════════════════
   ThreadHunter Blog — Design System
   Light yellow · Neon accents · Modern SaaS
═══════════════════════════════════════ */

:root {
  --bg:             #F8F7EE;
  --bg-white:       #FFFFFF;
  --yellow:         #F4DB00;
  --yellow-hover:   #E6CE00;
  --yellow-light:   #FFFBE0;
  --neon:           #C8FF00;
  --neon-dim:       rgba(200,255,0,.16);
  --text:           #1A1A1A;
  --muted:          #6B6B78;
  --light:          #A8A8B4;
  --white:          #FFFFFF;
  --border:         #E4E1D0;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.06);
  --shadow-md:      0 4px 16px rgba(0,0,0,.08);
  --r:              8px;
  --r-lg:           14px;
}

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

html { font-size: 14px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Brand ─────────────────────────────── */

.brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.brand-link:hover { text-decoration: none !important; }

.brand-logo {
  width: 30px;
  height: 30px;
  background: var(--yellow);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(200,180,0,.25);
}

.brand-name {
  font-weight: 800;
  letter-spacing: -.4px;
  color: var(--text);
}

.brand-sep {
  color: var(--light);
  font-weight: 400;
  margin: 0 1px;
}

.brand-blog {
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -.2px;
}

/* ── Buttons ───────────────────────────── */

.th-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .15s, box-shadow .15s, color .15s;
  white-space: nowrap;
}

.th-btn-primary {
  background: var(--yellow);
  color: var(--text);
  padding: 9px 18px;
  box-shadow: 0 2px 6px rgba(200,180,0,.28);
}
.th-btn-primary:hover {
  background: var(--yellow-hover);
  box-shadow: 0 4px 12px rgba(200,180,0,.35);
  color: var(--text);
}

/* ── Nav ───────────────────────────────── */

.blog-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.blog-nav-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.blog-nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.blog-nav-link:hover {
  color: var(--text);
  text-decoration: none;
}

/* ── Blog Container ────────────────────── */

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

/* ── Blog Index ────────────────────────── */

.blog-hero {
  padding: 64px 0 48px;
  text-align: center;
}

.blog-hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--yellow-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.blog-hero-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.6px;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 12px;
}

.blog-hero-sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ── Article Cards ─────────────────────── */

.blog-articles {
  padding-bottom: 80px;
}

.blog-articles-grid {
  display: grid;
  gap: 20px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  display: block;
  text-decoration: none !important;
  transition: box-shadow .18s, border-color .18s;
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #D0CDB8;
  text-decoration: none !important;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.blog-card-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--yellow-light);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
}

.blog-card-date {
  font-size: 12px;
  color: var(--light);
}

.blog-card-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.3px;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 10px;
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
}

.blog-card-readmore {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── Article Page ──────────────────────── */

.article-header {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.article-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--yellow-light);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
}

.article-date {
  font-size: 13px;
  color: var(--light);
}

.article-read-time {
  font-size: 13px;
  color: var(--light);
}

.article-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.6px;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 16px;
}

.article-excerpt {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 640px;
}

/* ── Article Body ──────────────────────── */

.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.3px;
  margin: 44px 0 14px;
  color: var(--text);
  line-height: 1.3;
}

.article-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 32px 0 10px;
  color: var(--text);
}

.article-body p {
  font-size: 15px;
  color: #2C2C2C;
  line-height: 1.75;
  margin: 0 0 18px;
}

.article-body ul,
.article-body ol {
  font-size: 15px;
  color: #2C2C2C;
  line-height: 1.75;
  margin: 0 0 18px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 6px;
}

.article-body strong {
  font-weight: 700;
  color: var(--text);
}

.article-body a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: #555;
}

.article-body blockquote {
  border-left: 3px solid var(--yellow);
  margin: 28px 0;
  padding: 16px 20px;
  background: var(--yellow-light);
  border-radius: 0 var(--r) var(--r) 0;
  font-style: italic;
  color: var(--muted);
  font-size: 15px;
}

.article-body code {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
  background: #EFEDE0;
  color: var(--text);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ── Article CTA ───────────────────────── */

.article-cta {
  background: var(--text);
  border-radius: var(--r-lg);
  padding: 36px 40px;
  text-align: center;
  margin: 48px 0 64px;
}

.article-cta-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 8px;
  letter-spacing: -.3px;
}

.article-cta .article-cta-sub {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  margin: 0 0 22px;
}

.article-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: var(--r);
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(200,180,0,.35);
  transition: background .15s;
}
.article-cta-btn:hover {
  background: var(--yellow-hover);
  color: var(--text);
  text-decoration: none !important;
}

/* ── Back link ─────────────────────────── */

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 32px;
}
.article-back:hover {
  color: var(--text);
  text-decoration: none;
}

/* ── Footer ────────────────────────────── */

.blog-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.blog-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.blog-footer-inner a {
  color: var(--muted);
  text-decoration: none;
}
.blog-footer-inner a:hover {
  color: var(--text);
  text-decoration: underline;
}

.blog-footer-links {
  display: flex;
  gap: 18px;
}

/* ── Responsive ────────────────────────── */

@media (max-width: 640px) {
  .blog-hero-title { font-size: 26px; }
  .article-title { font-size: 24px; }
  .blog-card { padding: 20px; }
  .blog-nav-actions { gap: 12px; }
  .article-cta { padding: 24px 20px; }
  .article-body { padding-bottom: 48px; }
  .blog-hero { padding: 40px 0 32px; }
}
