/* ═══════════════════════════════════════════════════════════════
   ABC REPAIR — blog.css
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────────── */
.blog-hero {
  padding: 140px 56px 60px;
  position: relative;
  z-index: 2;
}

.blog-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: center;
}

.blog-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(44px, 5.8vw, 72px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -2.5px;
  color: #fff;
  margin: 16px 0 0;
}

.blog-term-card {
  overflow: hidden;
  border-radius: 14px;
}

/* ── Filter ────────────────────────────────────────────────────── */
.blog-filter-section {
  padding: 0 56px 32px;
  position: relative;
  z-index: 2;
}

.blog-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.blog-filter a.pill {
  text-decoration: none;
  color: inherit;
}

/* ── Featured Post ─────────────────────────────────────────────── */
.blog-featured-section {
  padding: 0 56px 48px;
  position: relative;
  z-index: 2;
}

.blog-featured-card {
  display: block;
  padding: 40px 44px;
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 250ms ease, transform 150ms ease;
}

.blog-featured-card:hover {
  transform: translateY(-2px);
}

.blog-featured-inner {
  max-width: 760px;
}

.blog-featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.blog-cat-tag {
  background: rgba(13,138,104,0.12);
  color: #73BE9E;
  border-color: rgba(115,190,158,0.2);
}

.blog-read-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}

.blog-featured-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.blog-featured-excerpt {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 640px;
}

.blog-read-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #73BE9E;
  letter-spacing: 0.5px;
}

/* ── Post Grid ─────────────────────────────────────────────────── */
.blog-grid-section {
  padding: 0 56px 80px;
  position: relative;
  z-index: 2;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-post-card {
  display: block;
  padding: 28px;
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 250ms ease, transform 150ms ease;
}

.blog-post-card:hover {
  transform: translateY(-2px);
}

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

.blog-post-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 10px;
}

.blog-post-excerpt {
  font-size: 14px;
  color: rgba(255,255,255,0.42);
  line-height: 1.75;
  margin-bottom: 16px;
}

/* ── Article (show page) ───────────────────────────────────────── */
.blog-article {
  position: relative;
  z-index: 2;
}

.article-header {
  padding: 120px 56px 48px;
}

.article-header-inner {
  max-width: 760px;
  margin: 0 auto;
}

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

.article-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}

.article-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.article-excerpt {
  font-size: 18px;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.article-body-section {
  padding: 48px 56px;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(255,255,255,0.72);
}

.article-body h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 40px 0 16px;
  letter-spacing: -0.5px;
}

.article-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin: 32px 0 12px;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

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

.article-body strong {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

.article-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 2px 7px;
  color: #73BE9E;
}

.article-body pre {
  background: #070f1a;
  border: 1px solid rgba(115,190,158,0.1);
  border-radius: 10px;
  padding: 24px;
  overflow-x: auto;
  margin-bottom: 24px;
}

.article-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  line-height: 1.7;
}

.article-body a {
  color: #73BE9E;
  text-decoration: underline;
  text-decoration-color: rgba(115,190,158,0.3);
}

.article-footer {
  padding: 40px 56px 80px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.article-footer-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Blog term lines (for stagger animation) ───────────────────── */
.blog-term-line {
  display: flex;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-hero-inner { grid-template-columns: 1fr; }
  .blog-term-card { display: none; }
}

@media (max-width: 768px) {
  .blog-hero, .blog-filter-section, .blog-featured-section,
  .blog-grid-section, .article-header, .article-body-section, .article-footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  .blog-hero { padding-top: 100px; }
  .blog-hero-title { letter-spacing: -1px; }
  .blog-featured-card { padding: 24px; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-footer-inner { flex-direction: column; }
}
