/* ═══════════════════════════════════════════
   Learn Archive — page-specific styles
   Template: page-learn-archive.php
   ═══════════════════════════════════════════ */

/* ── Page Header ── */
.wv-la-header {
  padding: 40px 48px 0;
  max-width: 1100px;
  margin: 0 auto;
}
.wv-la-header__inner {
  max-width: 1100px;
}
.wv-la-eyebrow {
  font-family: var(--wv-font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--wv-color-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wv-la-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--wv-color-primary);
}
.wv-la-title {
  margin-bottom: 6px;
}
.wv-la-count {
  font-family: var(--wv-font-primary);
  font-size: 13px;
  font-weight: 400;
  color: #A09A8E; /* TODO: add to CSS variables if used across multiple pages */
}

/* ── Sticky Section Carousel ── */
.wv-la-carousel-wrap {
  position: sticky;
  top: var(--wv-header-height);
  z-index: 90;
  background: var(--wv-color-background);
  border-bottom: 1px solid var(--wv-color-border);
}
.wv-la-carousel__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
}
.wv-la-carousel-track-wrap {
  overflow: hidden;
}
.wv-la-carousel-track {
  display: flex;
  gap: 0;
  transition: transform 0.3s ease;
}
.wv-la-section-tab {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 16px 28px;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  position: relative;
}
.wv-la-section-tab:hover .wv-la-tab-label {
  color: var(--wv-color-text-primary);
}
.wv-la-section-tab.active {
  border-bottom-color: var(--wv-color-text-primary);
}
.wv-la-section-tab.active .wv-la-tab-label {
  color: var(--wv-color-text-primary);
  font-weight: 600;
}
.wv-la-tab-label {
  font-family: var(--wv-font-primary);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #A09A8E; /* TODO: add to CSS variables if used across multiple pages */
  transition: color 0.15s;
  white-space: nowrap;
}
.wv-la-tab-count {
  font-family: var(--wv-font-primary);
  font-size: 10px;
  font-weight: 400;
  color: #BDB5AC; /* TODO: add to CSS variables if used across multiple pages */
  margin-top: 2px;
}

/* Active tab — uniform accent */
.wv-la-section-tab.active { border-bottom-color: var(--wv-color-text-primary); }

/* Carousel arrows */
.wv-la-carr-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FDFAF5; /* TODO: add to CSS variables if used across multiple pages */
  border: 1px solid var(--wv-color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.15s;
  color: var(--wv-color-text-secondary);
}
.wv-la-carr-btn:hover {
  background: var(--wv-color-surface);
  border-color: var(--wv-color-text-secondary);
}
.wv-la-carr-btn--prev { left: 8px; }
.wv-la-carr-btn--next { right: 8px; }

/* ── Toolbar — mirrors shop toolbar pattern ── */
.wv-la-toolbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wv-la-toolbar__filter,
.wv-la-toolbar__sort {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--wv-font-primary);
  font-size: 14px;
  font-weight: 600;
  color: var(--wv-color-text-primary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.wv-la-toolbar__filter svg,
.wv-la-toolbar__sort svg {
  width: auto;
  height: 20px;
  color: var(--wv-color-text-primary);
}

.wv-la-toolbar__filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wv-color-primary);
  color: var(--wv-color-text-inverse);
  border-radius: var(--wv-radius-pill);
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
}

.wv-la-toolbar__filter-badge:empty {
  display: none;
}

/* ── Active Pills — below toolbar ── */
.wv-la-pills {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.wv-la-pills__left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.wv-la-pills__right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.wv-la-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--wv-font-primary);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--wv-radius-pill);
  background: var(--wv-color-background);
  border: 1px solid var(--wv-color-border);
  color: var(--wv-color-text-secondary);
}

.wv-la-active-pill__remove {
  background: none;
  border: none;
  font-size: 13px;
  color: var(--wv-color-text-secondary);
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.wv-la-active-pill__remove:hover {
  color: var(--wv-color-primary);
}

/* ── Article Grid ── */
.wv-la-grid-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px 64px;
}
.wv-la-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 20px;
  margin-bottom: 32px;
}
.wv-la-load-more-row {
  text-align: center;
  padding-bottom: 16px;
}
.wv-la-load-more {
  background: none;
  border: 1px solid var(--wv-color-border);
  border-radius: 10px;
  padding: 12px 32px;
  font-family: var(--wv-font-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wv-color-text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}
.wv-la-load-more:hover {
  border-color: var(--wv-color-text-primary);
  color: var(--wv-color-text-primary);
}

/* ── Article Card + Cluster Pill — now uses global wv-card.css ── */

/* ── Empty State ── */
.wv-la-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 0;
}
.wv-la-empty__title {
  font-family: var(--wv-font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--wv-color-text-secondary);
  margin-bottom: 8px;
}
.wv-la-empty__body {
  font-family: var(--wv-font-primary);
  font-size: 13px;
  font-weight: 400;
  color: #A09A8E; /* TODO: add to CSS variables if used across multiple pages */
}

/* ── Article Overlay ── */
.wv-la-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--wv-color-overlay);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.wv-la-overlay.open { display: flex; }

.wv-la-overlay__inner {
  background: var(--wv-color-background);
  border-radius: 14px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.wv-la-overlay__close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--wv-color-text-secondary);
  cursor: pointer;
  line-height: 1;
  z-index: 1;
}
.wv-la-overlay__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 14px 14px 0 0;
  background: var(--wv-color-surface);
}
.wv-la-overlay__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--wv-font-primary);
  font-size: 12px;
  font-style: italic;
  color: #A09A8E; /* TODO: add to CSS variables if used across multiple pages */
}
.wv-la-overlay__body {
  padding: 28px 34px 34px;
}
.wv-la-overlay__tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.wv-la-overlay__title {
  font-family: var(--wv-font-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--wv-color-text-primary);
  margin-bottom: 10px;
}
.wv-la-overlay__byline {
  font-family: var(--wv-font-primary);
  font-size: 12px;
  font-weight: 400;
  color: #A09A8E; /* TODO: add to CSS variables if used across multiple pages */
  margin-bottom: 18px;
}
.wv-la-overlay__text {
  font-family: var(--wv-font-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--wv-color-text-secondary);
}
.wv-la-overlay__text p { margin-bottom: 14px; }
.wv-la-overlay__text p:last-child { margin-bottom: 0; }
.wv-la-overlay__text strong {
  font-weight: 600;
  color: var(--wv-color-text-primary);
}
.wv-la-overlay__cta {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.wv-la-btn--read {
  background: var(--wv-color-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 22px;
  font-family: var(--wv-font-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.15s;
}
.wv-la-btn--read:hover { background: var(--wv-color-primary-hover); }

/* ── Responsive ── */
@media (max-width: 767px) {
  .wv-la-header,
  .wv-la-toolbar,
  .wv-la-grid-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
  .wv-la-carousel__inner {
    padding: 0 20px;
  }
  .wv-la-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .wv-la-drawer {
    width: 100%;
  }
  .wv-la-drawer--right {
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .wv-la-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
