/* ============================================================
   pages/taxonomy.css — Taxonomy Page Specifics
   Migrated: hero uses core .hero--compact base, eyebrow uses
   .hero__eyebrow from core. Only unique taxonomy elements remain.
   ============================================================ */

/* -- Taxonomy Hero overrides -- */
.tax-hero {
  background: linear-gradient(135deg, #1a1625 0%, #2d1f3d 50%, #1e2a35 100%);
  text-align: center;
  color: #fff;
}

.tax-hero__bg-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.tax-hero__bg-shape--1 {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -80px;
  background: radial-gradient(circle, rgba(21, 148, 134, 0.12) 0%, transparent 70%);
}

.tax-hero__bg-shape--2 {
  width: 320px;
  height: 320px;
  bottom: -100px;
  left: -40px;
  background: radial-gradient(circle, rgba(172, 50, 138, 0.1) 0%, transparent 70%);
}

.tax-hero .hero__eyebrow {
  position: relative;
  z-index: 1;
}

.tax-hero__title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.tax-hero__flag {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.tax-hero__type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(172, 50, 138, 0.15);
  border: 1px solid rgba(172, 50, 138, 0.3);
  color: #d47ab8;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.tax-hero__title-row h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.tax-hero__desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
  margin: 0 auto 28px;
  position: relative;
  z-index: 1;
  line-height: 1.5;
}

.tax-hero__desc strong {
  color: #fff;
  font-weight: 700;
}

.tax-hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.tax-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 80px;
  transition: all 0.2s;
}

.tax-hero__stat:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.tax-hero__stat--open {
  border-color: rgba(21, 148, 134, 0.4);
  background: rgba(21, 148, 134, 0.08);
}

.tax-hero__stat--open .tax-hero__stat-num {
  color: #4dd9c8;
}

.tax-hero__stat--closing {
  border-color: rgba(172, 50, 138, 0.3);
  background: rgba(172, 50, 138, 0.06);
  position: relative;
}

.tax-hero__stat--closing .tax-hero__stat-num {
  color: #d47ab8;
}

.tax-hero__stat--closing::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ac328a;
  animation: finder-pulse 2s infinite;
}

.tax-hero__stat-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.tax-hero__stat-label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.tax-hero__stat-sep {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.12);
}

/* -- Tax filter bar -- */
.tax-filter {
  background: var(--color-bg-alt);
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.tax-filter__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tax-filter__search {
  flex: 2;
  position: relative;
  min-width: 180px;
}

.tax-filter__search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.tax-filter__search input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #fff;
  transition: border-color 0.2s;
}

.tax-filter__search input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.tax-filter__select-wrap {
  flex: 1;
  min-width: 140px;
}

.tax-filter__select-wrap select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}

.tax-filter__select-wrap select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.tax-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 9px 20px;
  font-size: 14px;
}

/* -- Responsive -- */
@media (max-width: 768px) {
  .tax-hero__flag {
    font-size: 2.2rem;
  }

  .tax-hero__type-badge {
    width: 44px;
    height: 44px;
    font-size: 12px;
    border-radius: 10px;
  }

  .tax-hero__title-row {
    gap: 10px;
  }

  .tax-hero__title-row h1 {
    font-size: 1.7rem;
  }

  .tax-hero__desc {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .tax-hero__stats {
    gap: 10px;
  }

  .tax-hero__stat {
    padding: 10px 14px;
    min-width: 68px;
  }

  .tax-hero__stat-num {
    font-size: 1.3rem;
  }

  .tax-filter__row {
    flex-direction: column;
    gap: 8px;
  }

  .tax-filter__search,
  .tax-filter__select-wrap {
    width: 100%;
    min-width: auto;
  }

  .tax-filter__btn {
    width: 100%;
    justify-content: center;
  }

  .tax-filter__search input,
  .tax-filter__select-wrap select {
    min-height: 44px;
  }
}
