/* Blinta Competition System — shared styles for the missions-hub card and the
   dedicated /competitions page. Scoped under .comp- to avoid colliding with
   the shared design system in styles.css / ui.css. */

.comp-card {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.comp-eyebrow {
  display: block !important;
  margin: 0;
}

.comp-title {
  margin: 0;
  font-size: 1.35rem;
}

.comp-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0.3rem 0;
}

.comp-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.comp-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.comp-stat strong {
  font-size: 1.1rem;
}

.comp-countdown {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  color: var(--text);
}

.comp-prize-line {
  margin: 0;
  font-size: 0.95rem;
}

.comp-wildcard-note,
.comp-eligible-note {
  margin: 0;
  font-weight: 600;
}

.comp-eligible-note {
  color: #3fbf5f;
}

.comp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.comp-btn-primary,
.comp-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border);
}

.comp-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.comp-btn-secondary {
  background: transparent;
  color: var(--text);
}

.comp-mini-leaderboard {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.comp-mini-leaderboard li {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  background: #0e0e0e;
  border: 1px solid var(--border);
}

.comp-mini-leaderboard li.is-you {
  border-color: var(--accent);
}

.comp-card-live {
  border-color: var(--accent);
}

.comp-card-wildcard {
  border-color: #d4af37;
}

.comp-card-locked {
  opacity: 0.92;
}

/* Dedicated /competitions page */

.comp-page-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.comp-page-tab {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}

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

.comp-leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.comp-leaderboard-table th,
.comp-leaderboard-table td {
  text-align: left;
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--border);
}

.comp-leaderboard-table tr.is-you {
  background: rgba(230, 28, 36, 0.08);
}

.comp-badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  margin-left: 0.35rem;
}

.comp-badge-premium {
  background: #d4af37;
  color: #1a1a1a;
}

.comp-badge-wildcard {
  background: #3f7fbf;
  color: #fff;
}

.comp-past-event {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem;
  margin-bottom: 0.8rem;
  background: #0e0e0e;
}

.comp-past-event h3 {
  margin: 0 0 0.4rem;
}

.comp-past-event ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
