/* stadium page styles */

.stadium-hero {
  margin-bottom: var(--s5);
}

/* Reuse the home-page hero artwork (.hero-img). Keep it a banner, not a
   billboard — cap the height and crop, matching the dashboard hero. */
.stadium-hero .hero-img {
  overflow: hidden;
  border-radius: var(--r-xl);
}

.stadium-hero .hero-img img {
  width: 100%;
  height: clamp(180px, 26vh, 280px);
  object-fit: cover;
  object-position: center 34%;
}

.stadium-hero .overlay {
  left: var(--s4);
  right: var(--s4);
  bottom: var(--s4);
  align-items: flex-end;
  justify-content: space-between;
  padding: var(--s4);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(10, 10, 12, 0.62);
  box-shadow: var(--shadow-2);
}

.stadium-hero .overlay > div {
  display: grid;
  gap: 6px;
}

.stadium-hero .overlay .sub {
  color: var(--text-2);
  letter-spacing: 0;
  text-transform: none;
}

/* ----------------------------------------------------------- sections ---- */

.stadium-section {
  margin-bottom: var(--s5);
}

.stadium-section-title {
  margin: 0 0 var(--s3);
}

.stadium-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s3);
}

/* --------------------------------------------------- attendance chart ---- */

.crowd-chart {
  display: flex;
  align-items: flex-end;
  gap: var(--s2);
  height: 140px;
}

.crowd-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.crowd-col.clickable {
  cursor: pointer;
}

.crowd-col.clickable:hover .crowd-fill {
  filter: brightness(1.18);
}

.crowd-col.clickable:hover .crowd-opp,
.crowd-col.clickable:hover .crowd-val {
  color: var(--text);
}

.crowd-val {
  font-size: var(--fs-cap);
  font-weight: 600;
  color: var(--text-2);
}

/* The track is the full ground (capacity); the fill is the crowd that came. */
.crowd-track {
  flex: 1;
  width: 100%;
  max-width: 34px;
  display: flex;
  align-items: flex-end;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.crowd-fill {
  width: 100%;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  background: linear-gradient(180deg, var(--gold), rgba(227, 183, 101, 0.45));
}

.crowd-fill.cup {
  background: linear-gradient(180deg, var(--good), rgba(67, 209, 124, 0.45));
}

.crowd-opp {
  font-size: var(--fs-cap);
  color: var(--text-3);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ------------------------------------------------------------- cards ---- */

.stadium-card {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
}

.stadium-card.maxed {
  opacity: 0.62;
}

.stadium-card-head {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.stadium-card-icon {
  font-size: 20px;
  line-height: 1;
}

.stadium-card-name {
  flex: 1;
  font-weight: 600;
  line-height: 1.3;
}

.stadium-tag {
  font-size: var(--fs-cap);
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Now / Next impact lines — what you have, and what the build buys. */
.stadium-impact {
  display: grid;
  gap: 3px;
  font-size: var(--fs-sm);
  line-height: 1.35;
}

.stadium-impact-row {
  display: flex;
  gap: var(--s2);
  color: var(--text-2);
}

.stadium-impact-row.next {
  color: var(--good);
  font-weight: 600;
}

.stadium-impact-key {
  flex: 0 0 38px;
  color: var(--text-3);
  font-size: var(--fs-cap);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 1px;
}

.stadium-impact-row.next .stadium-impact-key {
  color: var(--good);
}

/* Level meter — filled pips for built levels. */
.stadium-meter {
  display: flex;
  gap: 4px;
}

.stadium-pip {
  flex: 1;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--line-strong);
}

.stadium-pip.on {
  background: var(--gold);
}

.stadium-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  margin-top: auto;
  padding-top: var(--s2);
}

.stadium-card-cost {
  color: var(--gold);
}

.stadium-note {
  margin-top: 0;
  font-size: var(--fs-sm);
  line-height: 1.6;
}

@media (max-width: 720px) {
  .stadium-hero .overlay {
    align-items: flex-start;
  }

  .stadium-hero .hero-img img {
    height: clamp(140px, 24vh, 220px);
  }

  .stadium-card-grid {
    grid-template-columns: 1fr 1fr;
  }
}
