/**
 * File: blog.css
 * Purpose: Blog listing + single-post styling in the Columbus Remodel
 *          Cost design language (reads the --crc-* tokens defined in
 *          site.css :root; loaded per-view by blog.php / blog_post.php)
 * Author: iSpec LLC
 * Created: 2026-08-06
 * Last Modified: 2026-08-06
 */

/* ── BLOG HEADER ─────────────────────────────────────── */
.blog-header-title {
  font-size: 2rem;
  color: var(--crc-ink);
  margin-bottom: 0;
}
.blog-header-sub {
  color: var(--crc-muted);
  margin: 0.5rem 0 0;
}

/* ── POST GRID + CARDS ───────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  color: var(--crc-ink-mid);
  text-decoration: none;
  border-top: 3px solid var(--crc-teal);
  transition: box-shadow 0.2s, transform 0.15s;
}
.blog-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
  color: var(--crc-ink-mid);
}
.blog-card-img {
  height: 160px;
  background: var(--crc-teal-tint);
  border-bottom: 1px solid var(--crc-border);
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--crc-ink);
  margin-bottom: 0.375rem;
}
.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--crc-muted);
  margin-bottom: 0.625rem;
}
.blog-card-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--crc-muted);
}
.blog-empty { color: var(--crc-muted); }

.blog-pagination { margin-top: 2rem; }
.blog-pagination .pagination {
  --bs-pagination-active-bg: var(--crc-teal);
  --bs-pagination-active-border-color: var(--crc-teal);
  --bs-pagination-color: var(--crc-teal-dark);
  --bs-pagination-hover-color: var(--crc-teal-dark);
}

/* ── SIDEBAR ─────────────────────────────────────────── */
.blog-sidebar .sidebar-card { margin-bottom: 1.25rem; }
.sidebar-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crc-teal);
  margin-bottom: 0.75rem;
}
.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-list li { margin-bottom: 0.5rem; }
.sidebar-list a {
  font-size: 0.875rem;
  color: var(--crc-ink-mid);
  text-decoration: none;
}
.sidebar-list a:hover,
.sidebar-list a.active { color: var(--crc-teal-dark); }
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag-pill {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--crc-teal-tint);
  color: var(--crc-teal-dark);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}
.tag-pill:hover {
  background: var(--crc-teal);
  color: #ffffff;
}
.sidebar-cta { border-top: 3px solid var(--crc-teal); }
.sidebar-cta-text {
  font-size: 0.875rem;
  color: var(--crc-muted);
}

/* ── SINGLE POST ─────────────────────────────────────── */
.post-hero-img {
  max-height: 380px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.post-hero-img img {
  width: 100%;
  object-fit: cover;
}
.post-header { margin-bottom: 1.75rem; }
.post-title {
  font-size: 2rem;
  color: var(--crc-ink);
  margin-bottom: 0.625rem;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--crc-muted);
}
.post-meta-sep { color: var(--crc-border); }
.post-category {
  color: var(--crc-teal-dark);
  text-decoration: none;
  font-weight: 600;
}
.post-body {
  line-height: 1.8;
  color: var(--crc-ink-mid);
}
.post-body img { max-width: 100%; height: auto; }
.post-body h2,
.post-body h3 { margin-top: 1.75rem; }
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.post-back { margin-top: 2rem; }
.back-link {
  font-size: 0.875rem;
  color: var(--crc-teal-dark);
  text-decoration: none;
  font-weight: 600;
}
.back-link:hover { color: var(--crc-teal); }
.related-posts { margin-top: 3.5rem; }
