/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #0d1117;
  color: #c9d1d9;
  line-height: 1.6;
}

a { color: #58a6ff; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header ===== */
header {
  background: linear-gradient(135deg, #161b22 0%, #0d1117 100%);
  border-bottom: 1px solid #30363d;
  padding: 2rem 0;
}

.header-inner h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #f0f6fc;
}

.subtitle {
  color: #8b949e;
  margin-top: 0.25rem;
  font-size: 1rem;
}

/* ===== Loading & Error ===== */
.loading {
  text-align: center;
  padding: 4rem 0;
  font-size: 1.2rem;
  color: #8b949e;
}

.loading::after {
  content: '';
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  margin-left: 0.5rem;
  border: 3px solid #30363d;
  border-top-color: #58a6ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

.error {
  background: #3d1214;
  border: 1px solid #f85149;
  color: #f85149;
  padding: 1rem;
  border-radius: 6px;
  margin: 2rem 0;
}

.hidden { display: none !important; }

/* ===== Sections ===== */
.section {
  margin: 2.5rem 0;
}

.section h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #f0f6fc;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #21262d;
}

.chart-wrapper {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  min-height: 400px;
  position: relative;
}

/* ===== Tables ===== */
.table-responsive {
  overflow-x: auto;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 0.6rem 1rem;
  text-align: left;
  border-bottom: 1px solid #21262d;
  white-space: nowrap;
}

th {
  background: #21262d;
  color: #8b949e;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

tbody tr:hover {
  background: #1c2128;
}

/* ===== Reviewer Grid ===== */
.reviewer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.reviewer-col h3 {
  color: #c9d1d9;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid #21262d;
  margin-top: 3rem;
  color: #8b949e;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .reviewer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .header-inner h1 { font-size: 1.5rem; }
}