/* ── Blog Hero ── */
.blog-hero {
  padding: 10rem 0 5rem;
  text-align: center;
}

.blog-hero h1 { margin-bottom: 1.5rem; }
.blog-hero p { max-width: 600px; margin: 0 auto; font-size: var(--fs-md); }

/* ── Filter Pills ── */
.filter-pills {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: all var(--t-fast);
}

.filter-pill:hover,
.filter-pill.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ── Post Cards ── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.post-card {
  display: flex;
  flex-direction: column;
}

.post-card-image {
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  border-radius: var(--r-md) var(--r-md) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--r-md) var(--r-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}

.post-card-body h3 {
  margin-bottom: 0.75rem;
  font-size: var(--fs-lg);
}

.post-card-body h3 a:hover { color: var(--accent); }

.post-card-body p {
  font-size: var(--fs-sm);
  flex: 1;
}

.post-card-body .read-more {
  margin-top: 1rem;
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Single Post ── */
.post-header {
  padding: 10rem 0 3rem;
  text-align: center;
}

.post-header .tag { margin-bottom: 1rem; }
.post-header h1 { margin-bottom: 1rem; font-size: var(--fs-3xl); }
.post-header .post-meta {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.post-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}

.post-content h2 { margin: 2.5rem 0 1rem; font-size: var(--fs-2xl); }
.post-content h3 { margin: 2rem 0 0.75rem; font-size: var(--fs-xl); }
.post-content p { margin-bottom: 1.5rem; }
.post-content ul, .post-content ol { margin: 1rem 0 1.5rem 1.5rem; color: var(--text-secondary); }
.post-content li { margin-bottom: 0.5rem; list-style: disc; }
.post-content ol li { list-style: decimal; }
.post-content img { border-radius: var(--r-md); margin: 2rem 0; }
.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--accent-dim);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.post-content blockquote p { margin: 0; color: var(--text-primary); }
.post-content code {
  background: var(--bg-card);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9em;
}
.post-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.post-content pre code { background: none; padding: 0; }
.post-content a { color: var(--accent); }
.post-content a:hover { text-decoration: underline; }

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  margin-bottom: 2rem;
}

.post-back:hover { color: var(--accent); }

@media (max-width: 768px) {
  .posts-grid { grid-template-columns: 1fr; }
  .blog-hero { padding: 8rem 0 3rem; }
  .post-header { padding: 8rem 0 2rem; }
  .post-header h1 { font-size: var(--fs-2xl); }
}
