/* AGNIDYNE Engineering Blog — Shared Styles */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700&family=Barlow+Condensed:wght@600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --navy:       #111e30;
  --navy-mid:   #1a2c47;
  --orange:     #e8500a;
  --orange-hot: #ff6b1a;
  --white:      #f8f9fb;
  --text-main:  #1a2332;
  --text-sub:   #4a5568;
  --text-muted: #718096;
  --border:     #e2e8f0;
  --code-bg:    #1e2430;
  --code-text:  #e2e8f0;
  --radius:     8px;
  --font-main:  'Barlow', sans-serif;
  --font-cond:  'Barlow Condensed', sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--white);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.blog-nav {
  background: rgba(17,30,48,0.98);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.blog-nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 5vw; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.blog-nav-brand {
  font-family: var(--font-cond);
  font-size: 1.15rem; font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff; text-decoration: none;
  background: rgba(255,255,255,0.08);
  padding: 4px 10px; border-radius: 5px;
  transition: background 0.2s;
}
.blog-nav-brand:hover { background: rgba(255,255,255,0.13); }
.blog-nav-links { display: flex; gap: 8px; list-style: none; align-items: center; }
.blog-nav-links a {
  font-size: 0.87rem; font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-decoration: none; padding: 6px 12px; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.blog-nav-links a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.blog-nav-links .nav-cta {
  background: var(--orange); color: #fff !important;
  font-weight: 600; padding: 7px 16px;
}
.blog-nav-links .nav-cta:hover { background: var(--orange-hot) !important; }

/* ── BLOG HERO (listing page) ── */
.blog-hero {
  background: var(--navy);
  padding: 72px 5vw 60px;
  text-align: center;
}
.blog-hero-eyebrow {
  font-family: var(--font-cond);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 14px;
}
.blog-hero-title {
  font-family: var(--font-cond);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800; color: #fff; margin-bottom: 14px; line-height: 1.1;
}
.blog-hero-sub {
  font-size: 1rem; color: rgba(255,255,255,0.5);
  max-width: 520px; margin: 0 auto;
}

/* ── POST LISTING ── */
.blog-list {
  max-width: 800px; margin: 0 auto;
  padding: 52px 5vw 96px;
}
.post-card { border-bottom: 1px solid var(--border); padding: 40px 0; }
.post-card:last-child { border-bottom: none; }
.post-card-eyebrow {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 12px; flex-wrap: wrap;
}
.post-tag {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  background: rgba(232,80,10,0.1); color: var(--orange);
  padding: 3px 9px; border-radius: 4px;
}
.post-meta { font-size: 0.78rem; color: var(--text-muted); }
.post-card-title {
  font-family: var(--font-cond);
  font-size: 1.55rem; font-weight: 700; line-height: 1.2;
  color: var(--navy); text-decoration: none; display: block;
  margin-bottom: 10px; transition: color 0.2s;
}
.post-card-title:hover { color: var(--orange); }
.post-card-desc {
  font-size: 0.93rem; color: var(--text-sub);
  line-height: 1.65; margin-bottom: 16px; max-width: 640px;
}
.read-link {
  font-size: 0.83rem; font-weight: 600;
  color: var(--orange); text-decoration: none;
}
.read-link:hover { text-decoration: underline; }

/* ── ARTICLE LAYOUT ── */
.article-wrap {
  max-width: 740px; margin: 0 auto;
  padding: 56px 5vw 96px;
}

/* ── ARTICLE HEADER ── */
.article-eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.article-title {
  font-family: var(--font-cond);
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 800; line-height: 1.12;
  color: var(--navy); margin-bottom: 18px;
}
.article-subtitle {
  font-size: 1.06rem; color: var(--text-sub); line-height: 1.65;
  margin-bottom: 28px; padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.article-byline {
  font-size: 0.82rem; color: var(--text-muted);
  margin-bottom: 48px; display: flex; gap: 18px; flex-wrap: wrap;
}
.article-byline strong { color: var(--text-main); }

/* ── ARTICLE BODY ── */
.article-body h2 {
  font-family: var(--font-cond);
  font-size: 1.5rem; font-weight: 700;
  color: var(--navy); margin: 44px 0 14px;
  padding-top: 8px;
}
.article-body h3 {
  font-size: 1.05rem; font-weight: 600;
  color: var(--navy); margin: 30px 0 10px;
}
.article-body p { margin-bottom: 20px; font-size: 0.97rem; }
.article-body ul, .article-body ol {
  margin: 0 0 20px 22px; font-size: 0.97rem;
}
.article-body li { margin-bottom: 9px; line-height: 1.65; }
.article-body strong { font-weight: 600; }
.article-body em { font-style: italic; }
.article-body a { color: var(--orange); text-decoration: none; }
.article-body a:hover { text-decoration: underline; }

/* Inline code */
.article-body p code,
.article-body li code,
.article-body h3 code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: #edf0f5; color: #c0392b;
  padding: 1px 5px; border-radius: 3px;
  white-space: nowrap;
}

/* Callout / note box */
.callout {
  background: rgba(232,80,10,0.06);
  border-left: 3px solid var(--orange);
  border-radius: 0 6px 6px 0;
  padding: 16px 20px; margin: 28px 0;
  font-size: 0.92rem; line-height: 1.65; color: var(--text-sub);
}
.callout strong { color: var(--navy); }

.callout-info {
  background: rgba(59,130,246,0.06);
  border-left: 3px solid #3b82f6;
}
.callout-info strong { color: #1e40af; }

/* ── CODE BLOCKS ── */
.code-block {
  margin: 28px 0;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}
.code-header {
  background: #161d2b;
  padding: 9px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.code-lang {
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.copy-btn {
  font-family: var(--font-main);
  font-size: 0.72rem; font-weight: 600;
  color: rgba(255,255,255,0.4);
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px; padding: 3px 10px;
  cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.copy-btn:hover { color: #fff; border-color: rgba(255,255,255,0.45); }
.copy-btn.copied { color: #6ee7b7; border-color: #6ee7b7; }
.code-block pre {
  background: var(--code-bg);
  padding: 22px 20px; overflow-x: auto; margin: 0;
}
.code-block code {
  font-family: var(--font-mono);
  font-size: 0.83rem; line-height: 1.75;
  color: var(--code-text); white-space: pre;
}

/* ── ARTICLE FOOTER ── */
.article-end {
  margin-top: 64px; padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  justify-content: space-between;
}
.article-end p { font-size: 0.85rem; color: var(--text-muted); }
.article-end-links { display: flex; gap: 20px; }
.article-end-links a {
  font-size: 0.85rem; font-weight: 600;
  color: var(--orange); text-decoration: none;
}
.article-end-links a:hover { text-decoration: underline; }

/* ── SITE FOOTER ── */
.blog-footer {
  background: var(--navy);
  padding: 36px 5vw; text-align: center;
}
.blog-footer p { font-size: 0.78rem; color: rgba(255,255,255,0.28); }
.blog-footer a {
  color: rgba(255,255,255,0.45); text-decoration: none;
  transition: color 0.2s;
}
.blog-footer a:hover { color: #fff; }

@media (max-width: 600px) {
  .article-wrap { padding: 32px 5vw 64px; }
  .blog-hero { padding: 52px 5vw 44px; }
  .blog-list { padding: 36px 5vw 64px; }
}
