/* WarBrief Blog Archive v1 — premium slider + grid */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700;800&family=Geist+Mono:wght@500&display=swap');

.wb-blog-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1a1a1a 55%, #3d0009 100%);
  border-bottom: 3px solid #bb0112;
  padding: 48px 0 40px;
}

.wb-blog-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.wb-blog-hero-title {
  margin: 12px 0 14px;
  color: #fff;
  font: 800 clamp(1.75rem, 4vw, 2.75rem)/1.1 Inter, sans-serif;
  letter-spacing: -0.03em;
}

.wb-blog-hero-desc {
  margin: 0;
  max-width: 560px;
  color: rgba(255,255,255,0.78);
  font: 400 clamp(0.95rem, 1.8vw, 1.15rem)/1.55 Georgia, serif;
}

.wb-blog-hero-stats {
  display: flex;
  gap: 28px;
  flex-shrink: 0;
}

.wb-blog-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  min-width: 130px;
}

.wb-blog-stat-num {
  font: 800 1.75rem/1 Inter, sans-serif;
  color: #bb0112;
}

.wb-blog-stat-label {
  font: 500 11px/1.3 "Geist Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* Slider */
.wb-blog-slider-section {
  padding: 36px 0 8px;
  background: #f4f5f7;
}

.wb-blog-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #191c1e;
}

.wb-blog-slider-head h2 {
  margin: 0;
  font: 800 clamp(1.1rem, 2.5vw, 1.5rem)/1 Inter, sans-serif;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #191c1e;
}

.wb-blog-slider-controls {
  display: flex;
  gap: 8px;
}

.wb-blog-slider-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid #191c1e;
  color: #191c1e;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
  box-shadow: 3px 3px 0 #191c1e;
}

.wb-blog-slider-btn:hover {
  background: #bb0112;
  border-color: #bb0112;
  color: #fff;
  box-shadow: 3px 3px 0 #191c1e;
  transform: translate(-1px, -1px);
}

.wb-blog-slider {
  position: relative;
  overflow: hidden;
}

.wb-blog-slider-track {
  position: relative;
  min-height: 420px;
}

.wb-blog-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: #fff;
  border: 2px solid #191c1e;
  box-shadow: 6px 6px 0 #191c1e;
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
  overflow: hidden;
}

.wb-blog-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.wb-blog-slide-media {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 280px;
  text-decoration: none;
}

.wb-blog-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.wb-blog-slide.is-active .wb-blog-slide-media:hover img {
  transform: scale(1.04);
}

.wb-blog-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
}

.wb-blog-slide-body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.wb-blog-slide-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 11px/1 "Geist Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wb-blog-slide-cat {
  background: #bb0112;
  color: #fff;
  padding: 5px 10px;
}

.wb-blog-slide-meta time {
  color: #7e7576;
}

.wb-blog-slide-title {
  margin: 0;
  font: 800 clamp(1.25rem, 2.2vw, 1.85rem)/1.25 Inter, sans-serif;
  letter-spacing: -0.02em;
}

.wb-blog-slide-title a {
  color: #191c1e;
  text-decoration: none;
}

.wb-blog-slide-title a:hover {
  color: #bb0112;
}

.wb-blog-slide-excerpt {
  margin: 0;
  font: 400 1rem/1.65 Georgia, serif;
  color: #4c4546;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wb-blog-slide-cta {
  margin-top: 6px;
  font: 700 12px/1 Inter, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #191c1e;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s, gap 0.15s;
}

.wb-blog-slide-cta:hover {
  color: #bb0112;
  gap: 12px;
}

.wb-blog-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.wb-blog-slider-dot {
  width: 32px;
  height: 4px;
  background: #cfc4c5;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, width 0.2s;
}

.wb-blog-slider-dot.is-active {
  background: #bb0112;
  width: 48px;
}

/* Category nav */
.wb-blog-cat-nav {
  position: sticky;
  top: 64px;
  z-index: 30;
  background: #fff;
  border-bottom: 2px solid #191c1e;
  padding: 12px 0;
  box-shadow: 0 4px 0 rgba(0,0,0,0.05);
}

.wb-blog-cat-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wb-blog-cat-label {
  font: 700 11px/1 Inter, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7e7576;
  white-space: nowrap;
  flex-shrink: 0;
}

.wb-blog-cat-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.wb-blog-cat-chips::-webkit-scrollbar { display: none; }

.wb-blog-chip {
  flex-shrink: 0;
  font: 600 11px/1 Inter, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #191c1e;
  text-decoration: none;
  padding: 9px 16px;
  border: 2px solid #e1e2e5;
  border-radius: 999px;
  transition: all 0.15s;
}

.wb-blog-chip:hover,
.wb-blog-chip.is-active {
  background: #191c1e;
  border-color: #191c1e;
  color: #fff;
}

/* Main layout */
.wb-blog-main-wrap {
  padding: 40px 0 72px;
  background: #f4f5f7;
}

.wb-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.wb-blog-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid #191c1e;
}

.wb-blog-section-head h2 {
  margin: 0;
  font: 800 clamp(1.15rem, 2.5vw, 1.6rem)/1 Inter, sans-serif;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #191c1e;
}

.wb-blog-section-head span {
  font: 500 11px/1 "Geist Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bb0112;
}

/* Card grid */
.wb-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.wb-blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid #191c1e;
  box-shadow: 4px 4px 0 #191c1e;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}

.wb-blog-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 #bb0112;
}

.wb-blog-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8eaed;
  text-decoration: none;
}

.wb-blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.wb-blog-card:hover .wb-blog-card-media img {
  transform: scale(1.05);
}

.wb-blog-card-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: #bb0112;
  color: #fff;
  font: 700 9px/1 Inter, sans-serif;
  letter-spacing: 0.12em;
  padding: 5px 9px;
}

.wb-blog-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.wb-blog-card-meta time {
  font: 500 11px/1 "Geist Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #bb0112;
}

.wb-blog-card-title {
  margin: 0;
  font: 700 clamp(1rem, 1.6vw, 1.15rem)/1.3 Inter, sans-serif;
}

.wb-blog-card-title a {
  color: #191c1e;
  text-decoration: none;
}

.wb-blog-card-title a:hover {
  color: #bb0112;
}

.wb-blog-card-excerpt {
  margin: 0;
  font: 400 0.9rem/1.6 Georgia, serif;
  color: #4c4546;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.wb-blog-card-link {
  margin-top: 4px;
  font: 700 10px/1 Inter, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #191c1e;
  text-decoration: none;
}

.wb-blog-card-link:hover {
  color: #bb0112;
}

.wb-blog-empty {
  text-align: center;
  padding: 48px 0;
  color: #7e7576;
  font: 500 14px/1.5 Inter, sans-serif;
}

/* Pagination */
.wb-blog-pagination {
  margin-top: 36px;
}

.wb-blog-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.wb-blog-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.wb-blog-pagination a,
.wb-blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  font: 600 12px/1 Inter, sans-serif;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid #191c1e;
  background: #fff;
  color: #191c1e;
  transition: background 0.15s, color 0.15s;
}

.wb-blog-pagination a:hover,
.wb-blog-pagination .current {
  background: #bb0112;
  border-color: #bb0112;
  color: #fff;
}

/* Sidebar integration */
.wb-blog-sidebar .sidebar-primary {
  position: sticky;
  top: 140px;
}

.wb-blog-sidebar .sidebar-primary > div {
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1100px) {
  .wb-blog-layout {
    grid-template-columns: 1fr;
  }
  .wb-blog-sidebar .sidebar-primary {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .wb-blog-sidebar .sidebar-primary > div {
    margin-bottom: 0;
  }
}

@media (max-width: 820px) {
  .wb-blog-slide {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .wb-blog-slider-track {
    min-height: auto;
  }
  .wb-blog-slide-media {
    aspect-ratio: 16 / 9;
    min-height: auto;
  }
  .wb-blog-slide-body {
    padding: 24px 22px 28px;
  }
  .wb-blog-grid {
    grid-template-columns: 1fr;
  }
  .wb-blog-hero-stats {
    width: 100%;
  }
  .wb-blog-stat {
    flex: 1;
  }
}

@media (max-width: 600px) {
  .wb-blog-sidebar .sidebar-primary {
    grid-template-columns: 1fr;
  }
  .wb-blog-cat-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

body.admin-bar .wb-blog-cat-nav { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .wb-blog-cat-nav { top: 46px; }
}
