/* LiveNewsBench - Minimal Elegant Design */

:root {
  --primary: #1a1a1a;
  --secondary: #666;
  --accent: #0066cc;
  --background: #ffffff;
  --surface: #fafafa;
  --border: #e6e6e6;
  --success: #008055;
  --muted: #999;
  --radius: 4px;
  --transition: all 0.15s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--primary);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Main Content */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 64px 32px;
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 32px;
}

.hero-title {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--secondary);
  font-weight: 400;
  margin-bottom: 24px;
}

/* GitHub Button */
.github-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
  white-space: nowrap;
}

.github-btn:hover {
  background: var(--secondary);
  transform: translateY(-1px);
}

.github-btn svg {
  fill: currentColor;
}

/* View Selector */
.view-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.view-btn {
  padding: 10px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
}

.view-btn:hover {
  border-color: var(--primary);
}

.view-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.view-label {
  font-weight: 500;
}

/* Table Container */
.table-container {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.leaderboard {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.leaderboard thead {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.leaderboard th {
  padding: 12px 8px;
  text-align: left;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

.leaderboard th.sortable-header {
  cursor: pointer;
  user-select: none;
  padding-right: 20px;
}

.leaderboard th.sortable-header:hover {
  background: var(--border);
}

.sort-indicator {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  opacity: 0.4;
}

.leaderboard th.sortable-header.active .sort-indicator {
  opacity: 1;
}

.leaderboard td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}

/* Remove bottom border from last row to match top */
.leaderboard tbody tr:last-child td {
  border-bottom: none;
}

.leaderboard tbody tr {
  transition: var(--transition);
}

.leaderboard tbody tr:hover {
  background: var(--surface);
}

/* Column widths - PROPERLY BALANCED */
.leaderboard th:nth-child(1),
.leaderboard td:nth-child(1) {
  min-width: 170px;
  max-width: 200px;
  font-weight: 500;
}

/* Checkmark columns - WIDER for balance */
.leaderboard th:nth-child(2),
.leaderboard td:nth-child(2),
.leaderboard th:nth-child(3),
.leaderboard td:nth-child(3),
.leaderboard th:nth-child(4),
.leaderboard td:nth-child(4) {
  text-align: center;
  width: 85px;
  padding: 10px 4px;
}

/* Numeric columns - CENTERED */
.leaderboard th:nth-child(5),
.leaderboard td:nth-child(5),
.leaderboard th:nth-child(6),
.leaderboard td:nth-child(6),
.leaderboard th:nth-child(7),
.leaderboard td:nth-child(7) {
  text-align: center;
  width: 85px;
}

/* Accuracy column - CENTERED, BLACK, BOLD */
.leaderboard th:nth-child(8),
.leaderboard td:nth-child(8) {
  text-align: center;
  width: 75px;
  font-weight: 600;
  color: var(--primary);
}

/* For no_search view which has fewer columns */
.leaderboard th:last-child,
.leaderboard td:last-child {
  text-align: center;
  width: 75px;
  font-weight: 600;
  color: var(--primary);
}

/* Cell styling - REMOVED ACCURACY COLORS */
.check-yes {
  color: var(--success);
  font-weight: bold;
}

.check-no {
  color: var(--muted);
}

/* Remove underline from emoji links in model names */
.leaderboard td a {
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .main-content {
    padding: 48px 20px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .view-selector {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  
  .view-btn {
    white-space: nowrap;
  }
  
  .table-container {
    margin: 0 -20px;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }
}