/* blog.css — 3D Viral Prompt blog (Phase D).
 * Blog listing (featured article, search/filter, article grid) and
 * article pages. Text-first: the migrated guides have no images, so
 * no image block is rendered and none is invented. Design tokens
 * only; both themes. Shared primitives (.chip, .count-line,
 * .empty-state, .crumbs, .btn, .card) come from pages.css/layout.css.
 */

.blog-intro { color: var(--text-muted); max-width: 720px; }

/* ---------- Featured article ---------- */
.blog-featured { padding: var(--space-6); margin: var(--space-5) 0 var(--space-6); }
.blog-featured h2 { font-size: var(--text-3xl); margin-bottom: var(--space-2); }
.blog-featured h2 a { color: var(--text); }
.blog-featured h2 a:hover { color: var(--green-text); text-decoration: none; }
.blog-featured p { color: var(--text-muted); font-size: var(--text-lg); margin: 0 0 var(--space-4); }

/* ---------- Article grid ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.blog-card { display: flex; flex-direction: column; }
.blog-card .card-body { display: flex; flex-direction: column; flex: 1; }
.blog-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.blog-card h3 a { color: var(--text); }
.blog-card h3 a:hover { color: var(--green-text); text-decoration: none; }
.blog-card .card-desc { flex: 1; }
.blog-read { font-weight: 600; margin-top: var(--space-3); display: inline-block; }

/* ---------- Article page ---------- */
.article { max-width: 780px; margin: 0 auto; }
.article h1 { font-size: var(--text-3xl); }
.article-meta { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; margin-bottom: var(--space-4); }
.article-body p { font-size: var(--text-lg); line-height: 1.8; margin: 0 0 var(--space-4); }
.article-share { display: flex; gap: var(--space-2); flex-wrap: wrap; margin: var(--space-5) 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-featured { padding: var(--space-4); }
  .blog-featured h2 { font-size: var(--text-2xl); }
  .article h1 { font-size: var(--text-2xl); }
}

/* Phase F: featured image + publication date, rendered only when the
   post data has them (the 6 migrated guides have neither). */
.article-featured { margin: 0 0 var(--space-5); }
.article-featured img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.article-date {
  color: var(--muted);
  font-size: var(--text-sm);
}
