/* ─── Activity heatmap ─── */

.heatmap-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5);
}

.heatmap-grid {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
  grid-auto-flow: column;
  margin-bottom: var(--s-3);
}

.hm-cell {
  width: 100%;
  aspect-ratio: 1;
  min-width: 8px;
  border-radius: 2px;
  transition: transform var(--t-fast), filter var(--t-fast);
  cursor: default;
}

.hm-cell:hover {
  transform: scale(1.4);
  filter: brightness(1.1);
}

/* GitHub-like green scale */
.hm-l0 { background: var(--c-surface-2); }
.hm-l1 { background: #c7ebd0; }
.hm-l2 { background: #7dd2a0; }
.hm-l3 { background: #2dad6c; }
.hm-l4 { background: #15803d; }

.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}
.heatmap-legend .hm-cell {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.heatmap-legend .hm-cell:hover { transform: none; filter: none; }

@media (max-width: 720px) {
  .heatmap-grid { grid-template-columns: repeat(12, 1fr); gap: 2px; }
  .hm-cell { min-width: 6px; }
}
