/* ==========================================================================
   Blog listing bundle
   Hero row: lead article + trending panel. Below: four-up grid, load more.
   Post cards themselves live in the global bundle.
   ========================================================================== */

/* Both columns share a height; the lead image absorbs the difference. */
.pc-blog-hero {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px;
  align-items: stretch; margin-bottom: 46px;
}

/* ---------- Lead article ---------- */
.pc-lead-post {
  display: flex; flex-direction: column; height: 100%;
  border: 1px solid var(--pc-border); border-radius: 22px; overflow: hidden;
  background: var(--pc-surface);
  box-shadow: 0 1px 2px rgba(46, 42, 34, .04), 0 10px 26px rgba(46, 42, 34, .06);
}
.pc-lead-media {
  flex: 1 1 auto; min-height: 200px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.pc-lead-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.pc-lead-post:hover .pc-lead-media img { transform: scale(1.04); }
.pc-lead-icon { display: flex; opacity: .45; }

.pc-lead-body { flex: none; padding: 24px 28px 26px; }
.pc-lead-title { font-size: 30px; line-height: 1.18; margin: 0 0 10px; }
.pc-lead-title a { color: var(--pc-ink); }
.pc-lead-title a:hover { color: var(--pc-teal); }
.pc-lead-excerpt { font-size: 15px; line-height: 1.7; color: var(--pc-muted); margin: 0 0 18px; }

.pc-lead-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pc-lead-author { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--pc-ink); }
.pc-avatar { border-radius: 50%; }
.pc-lead-meta { font-size: 12px; color: var(--pc-muted2); font-weight: 700; }

.pc-chip {
  background: var(--pc-teal-soft); color: var(--pc-teal-dark);
  font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 100px;
}
.pc-chip-sm { padding: 3px 8px; font-size: 10px; margin-left: 6px; }

/* ---------- Trending panel ---------- */
.pc-trending {
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 10px; height: 100%;
}

.pc-trend-item {
  display: flex; align-items: center; gap: 16px; padding: 12px;
  border: 1px solid var(--pc-border); border-radius: 16px;
  background: var(--pc-surface); color: var(--pc-ink);
  box-shadow: 0 1px 2px rgba(46, 42, 34, .04);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.pc-trend-item:hover {
  border-color: var(--pc-border2); color: var(--pc-ink); transform: translateX(3px);
  box-shadow: 0 1px 2px rgba(46, 42, 34, .05), 0 8px 20px rgba(46, 42, 34, .08);
}

.pc-trend-media {
  width: 124px; height: 88px; flex: none; border-radius: 13px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pc-trend-media img { width: 100%; height: 100%; object-fit: cover; }
.pc-trend-media .pc-icon { opacity: .55; }

.pc-trend-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pc-trend-title {
  font-weight: 700; font-size: 16px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-trend-item:hover .pc-trend-title { color: var(--pc-teal); }
.pc-trend-meta { font-size: 12px; color: var(--pc-muted2); font-weight: 700; }

/* ---------- Divider ---------- */
.pc-blog-divider {
  display: flex; align-items: center; gap: 16px; margin: 0 0 22px;
  font-family: var(--pc-serif); font-style: italic; font-weight: 700; font-size: 24px; color: var(--pc-ink);
}
.pc-blog-divider::after { content: ''; flex: 1; height: 1px; background: var(--pc-border); }

/* ---------- Load more ---------- */
.pc-load-wrap { display: flex; justify-content: center; margin-top: 34px; }
.pc-load-more {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 100px;
}
.pc-load-spinner { display: none; width: 16px; height: 16px; }
.pc-load-more.is-loading .pc-load-spinner {
  display: block; border: 2px solid rgba(46, 42, 34, .25);
  border-top-color: var(--pc-ink); border-radius: 50%; animation: pc-spin .7s linear infinite;
}
@keyframes pc-spin { to { transform: rotate(360deg); } }

/* ---------- Empty ---------- */
.pc-blog-empty {
  text-align: center; padding: 70px 20px; border: 2px dashed var(--pc-border2);
  border-radius: var(--pc-radius); background: var(--pc-surface2);
}
.pc-blog-empty .pc-icon { margin: 0 auto 12px; }
.pc-blog-empty p { color: var(--pc-muted); margin: 8px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pc-blog-hero { grid-template-columns: 1fr; }
  .pc-lead-media { aspect-ratio: 16 / 9; flex: none; }
  .pc-trending { height: auto; }
}
@media (max-width: 900px) {
  .pc-lead-title { font-size: 25px; }
  .pc-lead-body { padding: 22px; }
}
@media (max-width: 620px) {
  .pc-lead-title { font-size: 22px; }
  .pc-trend-media { width: 92px; height: 68px; }
  .pc-trend-title { font-size: 14px; }
  .pc-blog-divider { font-size: 20px; }
  .pc-load-more { width: 100%; justify-content: center; }
}
