:root {
  --bg: #0f1220;
  --card: #151a2e;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #7c3aed;
  --accent2: #22d3ee;
  --border: rgba(148, 163, 184, 0.2);
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  --orange: #f97316;
}

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

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(circle at top left, #1f2440, #0b0d18 65%);
  color: var(--text);
  min-height: 100vh;
  padding: 40px 24px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

header { margin-bottom: 32px; }

.back {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 16px;
}

.back:hover { color: var(--accent2); }

h1 { font-size: 2rem; margin-bottom: 8px; }

.subtitle { color: var(--muted); font-size: 1rem; }

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.tab {
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.tab:hover { background: rgba(124, 58, 237, 0.1); color: var(--text); }
.tab.active { background: var(--accent); color: white; border-color: var(--accent); }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent2);
}

.stat-label {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* Cards */
.card {
  background: rgba(21, 26, 46, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--text);
}

/* Proof Types */
.proof-types { display: flex; flex-direction: column; gap: 12px; }

.proof-type-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.proof-type-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  font-size: 1.2rem;
}

.proof-type-icon.github { background: rgba(138, 43, 226, 0.2); }
.proof-type-icon.url { background: rgba(34, 211, 238, 0.2); }
.proof-type-icon.screenshot { background: rgba(249, 115, 22, 0.2); }
.proof-type-icon.demo { background: rgba(34, 197, 94, 0.2); }

.proof-type-info { flex: 1; }

.proof-type-name {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: capitalize;
  margin-bottom: 4px;
}

.proof-type-bar {
  height: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  overflow: hidden;
}

.proof-type-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.proof-type-fill.github { background: linear-gradient(90deg, #7c3aed, #a855f7); }
.proof-type-fill.url { background: linear-gradient(90deg, #0ea5e9, #22d3ee); }
.proof-type-fill.screenshot { background: linear-gradient(90deg, #f97316, #fb923c); }
.proof-type-fill.demo { background: linear-gradient(90deg, #22c55e, #4ade80); }

.proof-type-count {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  min-width: 30px;
  text-align: right;
}

/* Insights */
.insights-list { display: flex; flex-direction: column; gap: 12px; }

.insight {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.insight-icon { font-size: 1.5rem; }

.insight-text { flex: 1; }

.insight-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.insight-desc {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Skills Radar */
.skills-container {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.radar-chart {
  width: 300px;
  height: 300px;
}

/* Heatmap */
.heatmap-desc {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.heatmap { display: flex; flex-direction: column; gap: 4px; }

.heatmap-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.heatmap-label {
  width: 40px;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
  padding-right: 8px;
}

.heatmap-cells {
  display: flex;
  gap: 2px;
  flex: 1;
}

.heatmap-cell {
  width: 12px;
  height: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 2px;
}

.heatmap-cell.level-1 { background: rgba(34, 211, 238, 0.2); }
.heatmap-cell.level-2 { background: rgba(34, 211, 238, 0.4); }
.heatmap-cell.level-3 { background: rgba(34, 211, 238, 0.6); }
.heatmap-cell.level-4 { background: rgba(34, 211, 238, 0.8); }
.heatmap-cell.level-5 { background: var(--accent2); }

.heatmap-hours {
  display: flex;
  gap: 2px;
  padding-left: 48px;
  margin-top: 4px;
}

.heatmap-hour {
  font-size: 0.7rem;
  color: var(--muted);
}

/* Import Section */
.import-section textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
}

.import-section textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.import-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

/* Buttons */
.btn {
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn:hover { background: #6d28d9; }

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

/* Portfolio */
.export-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.portfolio-preview {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
  max-height: 400px;
  overflow-y: auto;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
  .tabs { flex-wrap: wrap; }
  .tab { flex: 1; min-width: 100px; text-align: center; }
}
