/* leaderboard.css - Sortable table styling, status badges */

/* Table wrapper for horizontal scroll on mobile */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--color-border);
}

/* Base table styles */
.data-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.data-table thead {
  background: #f9fafb;
}

.data-table th {
  padding: 0.75rem 1.5rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
}

.data-table tbody tr {
  border-bottom: 1px solid var(--color-border);
}

.data-table tbody tr:last-child {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: #f9fafb;
}

.data-table td {
  padding: 1rem 1.5rem;
  white-space: nowrap;
}

/* Rank column */
.col-rank {
  color: var(--color-text-primary);
  font-weight: 500;
}

/* Model name - clickable link style */
.col-model {
  font-weight: 500;
  color: var(--color-accent);
  cursor: pointer;
}

.col-model:hover {
  text-decoration: underline;
}

/* Susceptibility score coloring */
.score-critical {
  color: var(--color-status-red);
  font-weight: 700;
}

.score-high {
  color: var(--color-status-orange);
  font-weight: 700;
}

.score-medium {
  color: var(--color-status-yellow);
  font-weight: 700;
}

.score-low {
  color: var(--color-status-green);
  font-weight: 700;
}

/* Vector/method column */
.col-vector {
  color: var(--color-text-secondary);
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--color-sidebar);
  border: 1px solid var(--color-border);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
}

.filter-select {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  background: white;
  cursor: pointer;
}

.filter-btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  background: white;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn:hover {
  background: var(--color-sidebar);
}

.filter-btn.active {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

/* Table footer with actions */
.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
}

.table-action-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-accent);
}

.table-stats {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--color-text-secondary);
}

/* Expandable row details */
.row-details {
  display: none;
  padding: 1rem 1.5rem;
  background: #f9fafb;
  border-bottom: 1px solid var(--color-border);
}

.row-details.expanded {
  display: block;
}

.row-details-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.row-details-content {
  font-size: 0.875rem;
  color: var(--color-text-primary);
}

/* Bounty table specific */
.bounty-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.bounty-stat {
  display: flex;
  justify-content: space-between;
}

.bounty-stat-label {
  color: var(--color-text-secondary);
}

.bounty-stat-value {
  font-family: var(--font-mono);
  color: var(--color-text-primary);
}

.bounty-payout {
  font-weight: 700;
  color: var(--color-status-green);
}
