/* ════════════════════════════════
   BLOG ARCHIVE — page-blog.css
   Extends main.css tokens. Loaded on archive.php (blog index, category, tag, search).
════════════════════════════════ */

/* ── BLOG HERO ── */
#blog-hero {
  position: relative;
  padding: 160px 64px 60px;
  overflow: hidden;
}

#blog-hero::before {
  content:'';
  position:absolute;
  top:-160px; right:-100px;
  width:520px; height:520px;
  border-radius:50%;
  background: radial-gradient(circle, rgba(245,158,11,0.06), transparent 70%);
  pointer-events:none;
}

.bh-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.bh-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.bh-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 18px;
}

.bh-sub {
  font-size: 16px;
  color: var(--slate2);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 36px;
}

/* Category filter pills */
.bh-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bh-filter {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate2);
  background: var(--glass);
  border: 1px solid var(--glass-b);
  padding: 9px 18px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.25s;
}

.bh-filter:hover {
  color: var(--amber);
  border-color: rgba(245,158,11,0.3);
  background: var(--amber-dim);
}

.bh-filter.active {
  color: var(--obsidian);
  background: var(--amber);
  border-color: var(--amber);
  font-weight: 700;
}

/* ── FEATURED POST ── */
#featured-post {
  padding: 0 64px 60px;
}

.fp-card {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  background: linear-gradient(150deg, rgba(245,158,11,0.07), var(--space2));
  border: 1px solid var(--glass-b);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, transform 0.4s, box-shadow 0.4s;
}

.fp-card:hover {
  border-color: rgba(245,158,11,0.3);
  transform: translateY(-4px);
  box-shadow: 0 32px 70px rgba(0,0,0,0.4);
}

.fp-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(245,158,11,0.1), var(--obsidian));
}

.fp-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.fp-card:hover .fp-image img { transform: scale(1.06); }

.fp-image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

.fp-content {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}

.fp-badge::before { content:''; width:20px; height:1px; background:var(--amber); }

.fp-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.fp-excerpt {
  font-size: 14.5px;
  color: var(--slate2);
  line-height: 1.75;
  margin-bottom: 24px;
}

.fp-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--slate2);
}

.fp-meta-divider { width: 3px; height: 3px; border-radius: 50%; background: var(--slate); }

/* ── POST GRID ── */
#post-grid {
  padding: 0 64px 100px;
}

.pg-inner {
  max-width: 1200px;
  margin: 0 auto;
}



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

.post-card {
  background: var(--space2);
  border: 1px solid var(--glass-b);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.4s, box-shadow 0.4s;
}

.post-card:hover {
  border-color: rgba(245,158,11,0.25);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

.pc-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(245,158,11,0.08), var(--obsidian));
}

.pc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.post-card:hover .pc-image img { transform: scale(1.08); }

.pc-image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  opacity: 0.6;
}

.pc-body {
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pc-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.pc-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.pc-excerpt {
  font-size: 13.5px;
  color: var(--slate2);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.pc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--slate2);
  padding-top: 16px;
  border-top: 1px solid var(--glass-b);
}

.pc-arrow {
  color: var(--amber);
  font-weight: 600;
  transition: gap 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.post-card:hover .pc-arrow { gap: 8px; }

/* ── EMPTY STATE ── */
.blog-empty {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 32px;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  border-radius: var(--radius-lg);
}

.blog-empty-icon { font-size: 48px; margin-bottom: 20px; }

.blog-empty-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.blog-empty-text {
  font-size: 14px;
  color: var(--slate2);
  line-height: 1.7;
}

/* ── PAGINATION ── */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--glass-b);
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  color: var(--slate2);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.25s;
}

.blog-pagination .page-numbers:hover {
  border-color: rgba(245,158,11,0.3);
  color: var(--amber);
}

.blog-pagination .page-numbers.current {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--obsidian);
}

.blog-pagination .page-numbers.dots {
  background: none;
  border: none;
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 1024px) {
  .pg-grid { grid-template-columns: 1fr 1fr; }
  .fp-card { grid-template-columns: 1fr; }
  .fp-image { aspect-ratio: 16/9; }
}

@media (max-width: 768px) {
  #blog-hero { padding: 140px 24px 40px; }
  .bh-filters { gap: 8px; }
  .bh-filter { font-size: 11.5px; padding: 8px 14px; }
  #featured-post { padding: 0 24px 40px; }
  .fp-content { padding: 28px 24px; }
  #post-grid { padding: 0 24px 70px; }
  .pg-grid { grid-template-columns: 1fr; gap: 20px; }
  .pc-image { aspect-ratio: 16/9; }
  .pc-body { padding: 22px 20px 24px; }
  .pg-toolbar { display: none; }
}
