/* ════════ Progress (stats, badges, activity calendar) ════════ */

/* ── Activity chart ── */
.activity-chart { padding: var(--space-2) 0; }

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: var(--space-3);
  height: 120px;
}

.chart-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar {
  width: 100%;
  min-height: 4px;
  background: linear-gradient(180deg, var(--primary), var(--primary-mid));
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: height 0.6s ease;
}

.chart-bar.today { background: linear-gradient(180deg, var(--secondary), var(--primary)); }
.chart-bar.empty { background: var(--border); }

.chart-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--font-weight-medium);
}

.chart-val {
  font-size: var(--text-xs);
  color: var(--text-light);
}

.progress-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

/* ── Topic progress ── */
.topic-row { margin-bottom: var(--space-4); }
.topic-row:last-child { margin-bottom: 0; }

.topic-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.topic-name {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}

.topic-pct {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: var(--font-weight-semibold);
}

.topic-track {
  height: 8px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.topic-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.7s ease;
}

/* ── Badges ── */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--space-4) var(--space-3);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.badge-item.earned {
  border-color: var(--warning);
  background: var(--warning-light);
}

.badge-item.locked {
  opacity: 0.4;
  filter: grayscale(1);
}

.badge-icon { font-size: 1.8rem; }

.badge-name {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  color: var(--text);
}

.badge-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
}
