/* =====================================================================
 * ranking.css
 * Tela de ranking global: abas (4 modos), lista de pontuações,
 * estados de loading/empty.
 * ===================================================================== */

.ranking-screen {
  align-items: center;
  padding: 24px;
  gap: 20px;
}
.ranking-screen h2 {
  font-size: 1.5rem;
  color: var(--color-accent);
}

/* ========== TABS ========== */
.tabs {
  display: flex;
  gap: 4px;
  width: 100%;
  max-width: 480px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  flex: 1;
  min-width: 100px;
  padding: 10px 8px;
  background: var(--color-surface);
  color: var(--color-muted);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all var(--transition);
  white-space: nowrap;
}
.tab-btn.active {
  background: var(--color-primary);
  color: var(--color-text);
  border-color: rgba(255,255,255,0.15);
}

/* ========== RANKING LIST ========== */
.ranking-list {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ranking-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.ranking-row:nth-child(1) { border-left: 3px solid #f1c40f; }
.ranking-row:nth-child(2) { border-left: 3px solid #bdc3c7; }
.ranking-row:nth-child(3) { border-left: 3px solid #cd6133; }

.ranking-pos {
  font-weight: 800;
  color: var(--color-muted);
  min-width: 28px;
}
.ranking-name { flex: 1; }
.ranking-score {
  font-weight: 700;
  color: var(--color-accent);
}
.ranking-mode {
  font-size: 0.75rem;
  color: var(--color-muted);
  background: rgba(255,255,255,0.05);
  padding: 2px 8px;
  border-radius: 10px;
}

.ranking-row .ranking-when {
  font-size: 0.7rem;
  color: var(--color-muted);
  margin-left: 6px;
}
.ranking-row .ranking-title {
  font-size: 0.7rem;
  color: var(--color-muted);
}

.ranking-loading {
  color: var(--color-muted);
  font-style: italic;
  padding: 30px 0;
  text-align: center;
}
.ranking-empty {
  color: var(--color-muted);
  font-style: italic;
  padding: 40px 0;
}
