@import url('exchange_rankings.css');

.exh-hub {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.exh-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--border-default);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(1200px 280px at 0% 0%, rgba(126, 195, 253, 0.16), transparent 55%),
    linear-gradient(160deg, var(--bg-canvas), var(--bg-muted));
}

@media (max-width: 900px) {
  .exh-hero { grid-template-columns: 1fr; }
}

.exh-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 700;
}

.exh-hero-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
}

.exh-hero-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
}

.exh-hero-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  border: 1px solid var(--border-default);
  background: var(--bg-muted);
}

.exh-hero-title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
}

.exh-hero-lead {
  margin: 0;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: 54ch;
}

.exh-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .exh-modules { justify-content: flex-start; }
}

.exh-module-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-default);
  background: rgba(13, 17, 23, 0.35);
  color: var(--fg-default);
}

.exh-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  background: var(--bg-canvas);
}

.exh-tab {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid transparent;
  color: var(--fg-muted);
  text-decoration: none;
}

.exh-tab:hover {
  color: var(--fg-default);
  background: var(--bg-muted);
}

.exh-tab.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.exh-panel {
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  background: var(--bg-canvas);
  padding: 16px 18px;
}

.exh-panel[hidden] {
  display: none !important;
}

.exh-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.exh-panel-head h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.exh-panel-head p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 13px;
  line-height: 1.5;
  max-width: 70ch;
}

.exh-chip {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-default);
  color: var(--fg-muted);
  background: var(--bg-muted);
}

.exh-chip.is-live {
  color: #3fb950;
  border-color: rgba(63, 185, 80, 0.35);
}

.exh-chip.is-exclusive {
  display: inline-block;
  margin-top: 10px;
  color: #d2a8ff;
  border-color: rgba(163, 113, 247, 0.45);
}

.exh-points {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--fg-default);
  font-size: 13px;
  line-height: 1.55;
}

.exh-points li + li {
  margin-top: 6px;
}

.exh-live-slot {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-muted);
}

.exh-placeholder {
  margin-top: 4px;
}

.exh-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

@media (max-width: 800px) {
  .exh-placeholder-grid { grid-template-columns: 1fr; }
}

.exh-ph-card {
  height: 88px;
  border-radius: calc(var(--radius) - 2px);
  border: 1px dashed var(--border-default);
  background:
    linear-gradient(90deg, rgba(126, 195, 253, 0.08), transparent 40%),
    var(--bg-muted);
}

.exh-placeholder p {
  margin: 0;
  font-size: 12px;
  color: var(--fg-muted);
}
