/* ==========================================================================
   Arenas page — reuses site.css tokens (--bg, --surface, --border, etc.)
   and the .leaderboard-tabs / .lb-tab / .tier-pill / .leaderboard-* shapes
   already defined there. Used by: /new/arenas/index.html
   ========================================================================== */

.arenas-content {
  flex: 1 1 auto;
  max-width: 900px;
  margin: 0 auto;
  padding: 34px 24px 48px;
  width: 100%;
}

.arenas-header {
  text-align: center;
  margin-bottom: 24px;
}

.arenas-header h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: normal;
  margin: 0 0 6px;
}

.arenas-header .subline {
  font-size: 16px;
  color: var(--text-muted);
}

/* Search box (.arenas-search) now lives in site.css — it's shared with the
   Leaderboard and Profiles pages, which don't load this stylesheet. */

/* Category chips reuse .leaderboard-tabs / .lb-tab from site.css verbatim. */

.arenas-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* One card per arena — same shape/rhythm as .faq-item. */
.arena-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
}

.arena-card.is-featured {
  border-color: rgba(255, 206, 104, 0.35);
  background: linear-gradient(180deg, rgba(255, 206, 104, 0.06), var(--surface) 60%);
}

.arena-card-main {
  min-width: 0;
  flex: 1 1 240px;
}

.arena-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.arena-card-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* .arena-featured-chip now lives in site.css — it's shared with the
   Profiles page's owned-arenas list, which doesn't load this stylesheet. */

.arena-owner-link {
  cursor: pointer;
  transition: color var(--ease);
}

.arena-owner-link:hover { color: var(--accent); text-decoration: underline; }

.arena-card-owner {
  margin-top: 2px;
  font-size: 14px;
  color: var(--text-muted);
}

.arena-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-body);
  font-size: 14px;
}

.arena-card-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.arena-card-stat .value {
  color: var(--gold);
  font-weight: 600;
}

.arena-card-actions {
  flex: 0 0 auto;
}

.arena-copy-btn {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-chip);
  background: var(--table-head);
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}

.arena-copy-btn:hover {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.arenas-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
}

@media (max-width: 480px) {
  .arena-card { flex-direction: column; align-items: stretch; }
  .arena-card-actions { align-self: flex-start; }
}
