/* ===== WELLNESS STATS PAGE ===== */

.stats-main { padding: 2rem 0 5rem; }

/* ---- Hero numbers ---- */
.stats-hero {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.stats-hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stats-hero-val {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 1;
}

.stats-hero-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- Sections ---- */
.stats-section {
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.stats-section-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ---- 14-day chart ---- */
.stats-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
}

.stats-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.stats-bar {
  width: 100%;
  min-height: 3px;
  border-radius: 3px 3px 0 0;
  background: rgba(139,124,248,0.25);
  transition: background 0.3s;
}

.stats-bar.has-data { background: var(--accent); }
.stats-bar.today    { background: var(--accent2); }

.stats-bar-label {
  font-size: 0.6rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ---- Activity breakdown ---- */
.stats-breakdown {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stats-break-row {
  display: grid;
  grid-template-columns: 1fr 80px 80px;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--border);
}

.stats-break-row:last-child { border-bottom: none; }

.stats-break-type { font-size: 0.88rem; display: flex; align-items: center; gap: 0.5rem; }
.stats-break-count, .stats-break-time {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: right;
}

.stats-break-bar {
  grid-column: 1 / -1;
  height: 3px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
  margin: -0.4rem 0 0;
}

.stats-break-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.8s ease;
}

/* ---- Milestones ---- */
.stats-milestones {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stats-milestone-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stats-ms-icon   { font-size: 1.6rem; flex-shrink: 0; }
.stats-ms-label  { font-size: 0.74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.stats-ms-val    { font-family: var(--font-serif); font-size: 1.1rem; margin-top: 0.2rem; }

/* ---- Empty state ---- */
.stats-empty {
  max-width: 360px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.stats-empty span { font-size: 2.5rem; color: var(--muted); }
.stats-empty p { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 640px) {
  .stats-hero { grid-template-columns: repeat(2, 1fr); }
  .stats-milestones { grid-template-columns: 1fr; }
}
