/* ============================================================
   Dugout Labs — Progress Wins + Player Stats Styles
   ============================================================ */

/* ---- Progress Wins ---- */
.pw-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pw-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--border);
}
.pw-item:last-child { border-bottom: none; }

.pw-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  margin-top: 1px;
}

.pw-body { flex: 1; min-width: 0; }

.pw-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.pw-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.pw-date {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- Player Stats leaderboard ---- */
.ps-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -2px;
}

.ps-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 480px;
}

.ps-th {
  background: var(--surface);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
}
.ps-th:hover { color: var(--accent-light); }
.ps-th.active { color: var(--accent-light); }
.ps-th.ps-player-col { text-align: left; min-width: 130px; }
.ps-th.ps-rank { width: 28px; padding: 8px 4px; }

.ps-td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 0.5px solid var(--border);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.ps-td.ps-rank {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  width: 28px;
  padding: 10px 4px;
}

.ps-row {
  cursor: pointer;
  transition: background 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.ps-row:hover { background: var(--row-hover); }
.ps-row:active { background: var(--row-hover); }
.ps-row:last-child .ps-td { border-bottom: none; }

.ps-player-cell { text-align: left; }
.ps-player-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ps-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.ps-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.ps-pos {
  font-size: 10px;
  color: var(--text-muted);
}

/* stat color classes already in styles.css */
.ps-td.good { color: var(--good); font-weight: 600; }
.ps-td.warn { color: var(--warn); }
.ps-td.poor { color: var(--poor); }
