/* ── Migration Tracker ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #0f1117; color: #e2e8f0; margin: 0; }

.tracker-wrap { max-width: 1100px; margin: 0 auto; padding: 2.5rem 2rem 4rem; }

/* Header */
.tracker-header { margin-bottom: 2.5rem; }
.tracker-header h1 { font-size: 1.6rem; font-weight: 800; color: #f8fafc; letter-spacing: -0.02em; margin-bottom: 0.35rem; }
.tracker-header p { color: #94a3b8; font-size: 0.9rem; }
.tracker-meta { display: flex; align-items: center; gap: 1rem; margin-top: 0.75rem; flex-wrap: wrap; }
.tracker-built { font-size: 0.75rem; color: #8c9aaa; }

/* Scoreboard */
.tracker-scoreboard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.score-card { background: #1e2433; border: 1px solid #2d3748; border-radius: 10px; padding: 1.25rem 1.5rem; }
.score-val { font-size: 2.2rem; font-weight: 900; line-height: 1; }
.score-val.green { color: #34d399; }
.score-val.amber { color: #fbbf24; }
.score-val.red { color: #f87171; }
.score-val.blue { color: #60a5fa; }
.score-label { font-size: 0.75rem; color: #8c9aaa; font-weight: 600; margin-top: 0.4rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* Progress bar */
.tracker-progress { background: #1e2433; border: 1px solid #2d3748; border-radius: 10px; padding: 1.25rem 1.5rem; margin-bottom: 2.5rem; }
.progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.progress-title { font-size: 0.8rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.07em; }
.progress-pct { font-size: 1.1rem; font-weight: 800; color: #34d399; }
.progress-track { background: #0f1117; border-radius: 99px; height: 8px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #34d399, #60a5fa); transition: width 0.4s ease; }

/* Section groups */
.tracker-section { margin-bottom: 2rem; }
.section-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.section-name { font-size: 0.8rem; font-weight: 800; color: #cbd5e1; text-transform: uppercase; letter-spacing: 0.08em; }
.section-count { font-size: 0.72rem; color: #8c9aaa; font-weight: 600; }
.priority-pill { font-size: 0.65rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: 99px; text-transform: uppercase; letter-spacing: 0.06em; }
.priority-high   { background: rgba(248,113,113,0.15); color: #fca5a5; }
.priority-medium { background: rgba(251,191,36,0.12); color: #fde68a; }
.priority-low    { background: rgba(100,116,139,0.2); color: #94a3b8; }

/* Items table */
.tracker-table { width: 100%; border-collapse: collapse; }
.tracker-table th { font-size: 0.68rem; font-weight: 700; color: #8c9aaa; text-transform: uppercase; letter-spacing: 0.07em; padding: 0.5rem 1rem; text-align: left; border-bottom: 1px solid #1e2433; }
.tracker-table td { padding: 0.7rem 1rem; border-bottom: 1px solid #1a2030; font-size: 0.85rem; vertical-align: middle; }
.tracker-table tr:last-child td { border-bottom: none; }
.tracker-table tr:hover td { background: rgba(255,255,255,0.02); }

.item-label { color: #e2e8f0; font-weight: 500; }
.item-slug  { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.75rem; color: #8c9aaa; }
.item-notes { font-size: 0.78rem; color: #8c9aaa; }

/* Status badges */
.status-done    { display: inline-flex; align-items: center; gap: 0.3rem; background: rgba(52,211,153,0.12); color: #34d399; border: 1px solid rgba(52,211,153,0.25); padding: 0.2rem 0.65rem; border-radius: 99px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.status-pending { display: inline-flex; align-items: center; gap: 0.3rem; background: rgba(100,116,139,0.12); color: #8c9aaa; border: 1px solid rgba(100,116,139,0.2); padding: 0.2rem 0.65rem; border-radius: 99px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.status-done::before    { content: '✓'; }
.status-pending::before { content: '○'; }

/* Page link */
.page-link { color: #60a5fa; text-decoration: none; font-size: 0.75rem; }
.page-link:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .tracker-scoreboard { grid-template-columns: 1fr 1fr; }
  .tracker-table td:nth-child(3), .tracker-table th:nth-child(3) { display: none; }
}
