/* =============================================================
   pages/aero2.css — AERO2 case study
   Page-specific additions only: the survey filter/chart component
   and the acid-green/obsidian-black style swatches. Everything
   else on this page reuses project-detail.css as-is.
   ============================================================= */

/* ── Filter chips (copied from projects.css so this page doesn't
   have to load the whole projects.css stylesheet just for two
   classes — same visual language, same tokens) ─────────────── */
.filter-chip {
  display:        inline-flex;
  align-items:    center;
  height:         32px;
  padding:        0 12px;
  background:     #1B1834;
  border:         1px solid var(--purple-card-border);
  border-radius:  20px;
  font-family:    var(--font-mono);
  font-size:      var(--fs-12);
  font-weight:    var(--mono-fw-lte20);
  letter-spacing: 0.04em;
  color:          var(--gray-900);
  cursor:         pointer;
  transition:     border-color 0.2s, color 0.2s, background 0.2s;
}
.filter-chip:hover { border-color: var(--purple-border); color: var(--white); }
.filter-chip--active {
  background:   rgba(143, 0, 216, 0.22);
  border-color: var(--purple-border);
  color:        var(--purple-900);
}
.filter-chip:focus-visible { outline: 2px solid var(--purple-border); outline-offset: 2px; }
.filter-chip--all { background: #1B1834; border-color: rgba(250, 250, 250, 0.12); color: var(--gray-900); }
.filter-chip--all.filter-chip--active { background: rgba(250, 250, 250, 0.12); border-color: rgba(250, 250, 250, 0.35); color: var(--white); }

/* ── Filter groups ──────────────────────────────────────────── */
.aero2-filters {
  display:       flex;
  flex-wrap:     wrap;
  gap:           24px;
  margin-top:    24px;
  padding:       20px 24px;
  background:    rgba(170, 172, 241, 0.03);
  border:        1px solid var(--purple-card-border);
  border-radius: 14px;
}
.aero2-filters__group { display: flex; flex-direction: column; gap: 10px; }
.aero2-filters__label {
  font-family:    var(--font-mono);
  font-size:      var(--fs-11);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--purple-900);
}
.aero2-filters__chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Bar chart ──────────────────────────────────────────────── */
.aero2-chart {
  margin-top:    24px;
  padding:       28px 28px 24px;
  background:    rgba(170, 172, 241, 0.03);
  border:        1px solid var(--purple-card-border);
  border-radius: 16px;
}
.aero2-chart__head {
  display:         flex;
  justify-content: space-between;
  align-items:     baseline;
  flex-wrap:       wrap;
  gap:             8px;
  margin-bottom:   4px;
}
.aero2-chart__title {
  font-family: var(--font-headings);
  font-size:   var(--fs-15);
  font-weight: var(--fw-heading);
  color:       var(--white);
  margin:      0;
}
.aero2-chart__n {
  font-family:    var(--font-mono);
  font-size:      var(--fs-11);
  letter-spacing: 0.08em;
  color:          var(--gray-900);
  margin:         0;
  transition:     opacity 0.2s;
}

.aero2-bars { display: flex; gap: 20px; margin-top: 24px; }
.aero2-bars__col { flex: 1; display: flex; flex-direction: column; align-items: center; }
.aero2-bars__plot {
  width:           100%;
  height:          168px;
  display:         flex;
  align-items:     flex-end;
  justify-content: center;
  border-bottom:   1px solid var(--purple-card-border);
}
.aero2-bars__bar {
  position:      relative;
  width:         100%;
  max-width:     72px;
  height:        var(--h, 0%);
  border-radius: 8px 8px 0 0;
  transition:    height 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.aero2-bars__bar--green  { background: linear-gradient(180deg, #C4EB5C, #A6D93B); }
.aero2-bars__bar--blue   { background: linear-gradient(180deg, #3E7BC4, #1F5AAA); }
.aero2-bars__bar--yellow { background: linear-gradient(180deg, #FFF87A, #FFF424); }
.aero2-bars__count {
  position:    absolute;
  top:         -26px;
  left:        0; right: 0;
  text-align:  center;
  font-family: var(--font-mono);
  font-size:   var(--fs-13);
  font-weight: 500;
  color:       var(--white);
}
.aero2-bars__x {
  margin-top:  9px;
  font-family: var(--font-text);
  font-size:   var(--fs-13);
  color:       var(--gray-900);
  text-align:  center;
}

.aero2-chart__empty {
  margin-top:  20px;
  font-family: var(--font-mono);
  font-size:   var(--fs-13);
  color:       var(--gray-900);
  text-align:  center;
}

/* ── "Who's in the panel" demographic mini-charts ──────────────── */
.aero2-demo {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   24px;
  margin-top:            24px;
}
.aero2-demo__block { }
.aero2-demo__label {
  font-family:    var(--font-mono);
  font-size:      var(--fs-11);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--purple-900);
  margin-bottom:  10px;
}

/* Segmented horizontal bar (gender split) */
.aero2-seg {
  display:       flex;
  height:        16px;
  border-radius: 8px;
  overflow:      hidden;
  background:    rgba(255, 255, 255, 0.05);
}
.aero2-seg__part { height: 100%; }
.aero2-seg__legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.aero2-leg { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: var(--fs-11); color: var(--gray-900); }
.aero2-leg::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--dot, var(--purple-500)); }

/* Horizontal bar list (sport distribution) */
.aero2-hbars { display: flex; flex-direction: column; gap: 10px; }
.aero2-hbar__row { display: flex; align-items: center; gap: 10px; }
.aero2-hbar__label { flex: 0 0 84px; font-family: var(--font-text); font-size: var(--fs-13); color: var(--gray-900); }
.aero2-hbar__track { flex: 1; height: 10px; border-radius: 5px; background: rgba(255,255,255,0.05); overflow: hidden; }
.aero2-hbar__fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, #8F00D8, #AAACF1); }
.aero2-hbar__count { flex: 0 0 20px; font-family: var(--font-mono); font-size: var(--fs-11); color: var(--gray-900); text-align: right; }

/* ── Style swatches (acid green / obsidian black) ──────────────── */
.aero2-swatches { display: flex; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.aero2-swatch {
  flex:          1;
  min-width:     220px;
  border-radius: 12px;
  overflow:      hidden;
  border:        1px solid var(--purple-card-border);
}
.aero2-swatch__block { height: 96px; }
.aero2-swatch__block--acid { background: #A6D93B; }
.aero2-swatch__block--obsidian { background: #0E0F0C; border-top: 1px solid rgba(166,217,59,0.3); }
.aero2-swatch__meta { padding: 12px 16px; background: rgba(170, 172, 241, 0.03); }
.aero2-swatch__name {
  font-family: var(--font-headings);
  font-size:   var(--fs-14);
  font-weight: var(--fw-heading);
  color:       var(--white);
  margin:      0 0 2px;
}
.aero2-swatch__hex {
  font-family: var(--font-mono);
  font-size:   var(--fs-11);
  color:       var(--gray-900);
  margin:      0;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .aero2-demo { grid-template-columns: 1fr; }
  .aero2-bars__plot { height: 140px; }
}
