/* ================================================
   LEADERBOARD PAGE
   ================================================ */

.leaderboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.leaderboard-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0c1222;
  margin: 0;
  line-height: 1;
}

/* ------------------------------------------------
   Leaderboard list
   ------------------------------------------------ */

.lb-list {
  border: 1px solid rgba(12, 18, 34, 0.1);
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(12, 18, 34, 0.06);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.lb-row:last-child {
  border-bottom: none;
}

.lb-row:hover {
  background: #f7f8fc;
}

/* Rank number */
.lb-rank {
  width: 32px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #8b95a8;
  flex-shrink: 0;
}

.lb-rank.top1 {
  color: #b8880a;
}
.lb-rank.top2 {
  color: #6b7280;
}
.lb-rank.top3 {
  color: #9a6230;
}

/* Avatar */
.lb-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #f7f8fc;
  border: 1px solid rgba(12, 18, 34, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4e5a72;
  overflow: hidden;
}

.lb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Handle */
.lb-handle {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0c1222;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Creator badge — reuses inline-badge pattern from fankadobase */
.lb-creator-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.15);
  flex-shrink: 0;
  white-space: nowrap;
}

/* Metric value */
.lb-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  min-width: 64px;
}

.lb-metric-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0c1222;
  line-height: 1.2;
}

.lb-metric-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #8b95a8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ------------------------------------------------
   Empty state
   ------------------------------------------------ */

.lb-empty {
  text-align: center;
  padding: 60px 20px;
  color: #4e5a72;
  font-size: 0.85rem;
}

/* ------------------------------------------------
   Mobile
   ------------------------------------------------ */

@media (max-width: 768px) {
  .lb-list {
    border: none;
    border-radius: 0;
  }

  .leaderboard-title {
    font-size: 1.25rem;
  }

  .lb-row {
    padding: 12px 0px;
    gap: 10px;
  }

  .lb-creator-badge {
    display: none;
  }

  .lb-metric {
    min-width: 52px;
  }
}

@media (max-width: 480px) {
  .leaderboard-title {
    font-size: 1.1rem;
  }
}

.filter-pills a.filter-pill {
  text-decoration: none;
}

.filter-pills a.filter-pill.active {
  color: #fff;
}
