/* ============================================================
   GRIT — Leaderboards
   leaderboards.css
   ============================================================ */

.lb-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px 120px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.lb-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 32px 0 40px;
  padding: 52px 52px;
}
.lb-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 100% at 15% 50%, rgba(244,196,48,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 40% 80% at 85% 25%, rgba(124,124,255,0.1) 0%, transparent 65%),
    linear-gradient(135deg, rgba(5,6,15,0.98) 0%, rgba(10,9,5,0.95) 100%);
}
.lb-hero-content { position: relative; z-index: 1; }
.lb-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 99px;
  background: rgba(244,196,48,0.1); border: 1px solid rgba(244,196,48,0.25);
  font-size: 13px; font-weight: 700; color: #f4c430;
  margin-bottom: 16px; letter-spacing: 0.05em;
}
.lb-hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 52px; font-weight: 700;
  background: linear-gradient(135deg, #fff 30%, #f4c430 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 10px; line-height: 1.05;
}
.lb-hero p { font-size: 15px; color: var(--text-muted); }

/* ── Main grid ────────────────────────────────────────────── */
.lb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) {
  .lb-grid { grid-template-columns: 1fr; }
  .lb-hero { padding: 32px 24px; }
  .lb-hero h1 { font-size: 36px; }
  .lb-page { padding: 0 16px 80px; }
}

/* ── Section ──────────────────────────────────────────────── */
.lb-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.lb-section-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.lb-section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.lb-section-icon { font-size: 20px; }

/* Period tabs */
.lb-period-tabs { display: flex; gap: 4px; }
.lb-period-tab {
  padding: 5px 12px; border-radius: 99px;
  background: none; border: 1px solid transparent;
  color: var(--text-muted); font-size: 12px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all 0.15s;
}
.lb-period-tab:hover { color: var(--text); border-color: var(--border); }
.lb-period-tab.active {
  background: rgba(244,196,48,0.1);
  border-color: rgba(244,196,48,0.3);
  color: #f4c430;
}

/* ── List ─────────────────────────────────────────────────── */
.lb-list { padding: 8px 0; }
.lb-loading {
  padding: 48px; text-align: center;
  color: var(--text-muted); font-size: 14px;
}
.lb-empty {
  padding: 48px 24px; text-align: center;
  color: var(--text-muted); font-size: 14px;
}

/* ── Post row ─────────────────────────────────────────────── */
.lb-post-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s; text-decoration: none; color: inherit;
}
.lb-post-row:last-child { border-bottom: none; }
.lb-post-row:hover { background: rgba(255,255,255,0.03); }

.lb-rank {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px; font-weight: 700;
  min-width: 32px; text-align: center; flex-shrink: 0;
}
.lb-rank.rank-1 { color: #f4c430; }
.lb-rank.rank-2 { color: #c0c0c0; }
.lb-rank.rank-3 { color: #cd7f32; }
.lb-rank.rank-other { color: var(--text-hint); font-size: 16px; }

.lb-post-info { flex: 1; min-width: 0; }
.lb-post-title {
  font-size: 14px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px; line-height: 1.3;
}
.lb-post-meta {
  font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.lb-post-game {
  padding: 2px 8px; border-radius: 99px;
  background: rgba(124,124,255,0.1); border: 1px solid rgba(124,124,255,0.2);
  color: #a89bff; font-size: 11px; font-weight: 500;
}
.lb-post-type {
  padding: 2px 8px; border-radius: 99px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.lb-post-type.guide { background: rgba(93,202,165,0.1); color: var(--teal); }
.lb-post-type.build { background: rgba(124,124,255,0.1); color: var(--purple); }

.lb-post-stats {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  flex-shrink: 0;
}
.lb-stat { font-size: 13px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 4px; }
.lb-stat-label { font-size: 10px; color: var(--text-hint); font-weight: 500; }

/* ── Player row ───────────────────────────────────────────── */
.lb-player-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s; text-decoration: none; color: inherit;
}
.lb-player-row:last-child { border-bottom: none; }
.lb-player-row:hover { background: rgba(255,255,255,0.03); }

.lb-player-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--violet));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: #fff; flex-shrink: 0;
  overflow: hidden;
}
.lb-player-avatar img { width: 100%; height: 100%; object-fit: cover; }

.lb-player-info { flex: 1; min-width: 0; }
.lb-player-name {
  font-size: 14px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 6px; margin-bottom: 3px;
}
.lb-player-bio {
  font-size: 12px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.lb-player-stats {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  flex-shrink: 0;
}

/* Crown for #1 */
.lb-crown { font-size: 16px; }
