/* ========================================================
   Mindful Zen — Statistics page (/stats.html)
   Total breath minutes, mentor chats, journal/calendar counts,
   streak, points, member-since.
   ======================================================== */

.stats-main {
  max-width: 980px;
  padding-top: 24px;
  padding-bottom: 60px;
}

/* HERO */
.stats-hero {
  text-align: center;
  padding: 28px 16px 24px;
  margin-bottom: 24px;
}
.stats-hero-icon {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 14px rgba(124, 58, 237, 0.25));
}
.stats-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--mag-ink, #1a1a1a);
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}
.stats-subtitle {
  font-size: 15px;
  color: var(--mag-ink-soft, #666);
  margin: 0;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.55;
}

/* GRID */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.stat-card {
  position: relative;
  padding: 22px 18px 20px;
  background: var(--mag-card, #fff);
  border: 1px solid var(--mag-border, #e5e5e5);
  border-radius: 16px;
  text-align: left;
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  opacity: 0.85;
}
.stat-card-breath::before  { background: linear-gradient(90deg, #5eead4, #0d9488); }
.stat-card-mentor::before  { background: linear-gradient(90deg, #b8a4d8, #7c3aed); }
.stat-card-journal::before { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.stat-card-cal::before     { background: linear-gradient(90deg, #f472b6, #ec4899); }
.stat-card-streak::before  { background: linear-gradient(90deg, #fb923c, #ef4444); }
.stat-card-points::before  { background: linear-gradient(90deg, #facc15, #f59e0b); }

.stat-card-emoji {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 10px;
  filter: grayscale(0);
}
.stat-card-num {
  font-size: 38px;
  font-weight: 900;
  color: var(--mag-ink, #1a1a1a);
  line-height: 1;
  letter-spacing: -1.5px;
  font-variant-numeric: tabular-nums;
}
.stat-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mag-ink-soft, #888);
  margin-top: 8px;
}
.stat-card-sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--mag-ink-soft, #888);
  font-variant-numeric: tabular-nums;
}

/* SUMMARY BLOCK */
.stats-summary-section { margin-top: 8px; }
.stats-summary-card {
  background: var(--mag-card, #fff);
  border: 1px solid var(--mag-border, #e5e5e5);
  border-radius: 16px;
  padding: 8px 22px;
}
.stats-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--mag-border, #f0f0f0);
}
.stats-summary-row:last-child { border-bottom: none; }
.stats-summary-label {
  font-size: 13.5px;
  color: var(--mag-ink-soft, #666);
  font-weight: 500;
}
.stats-summary-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--mag-ink, #1a1a1a);
  font-variant-numeric: tabular-nums;
}

/* CTA grid at bottom */
.stats-cta-section { margin-top: 24px; }
.stats-cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.stats-cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 14px 18px;
  background: var(--mag-card, #fff);
  border: 1px solid var(--mag-border, #e5e5e5);
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.18s;
}
.stats-cta-card:hover {
  transform: translateY(-2px);
  border-color: #7c3aed;
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.12);
}
.stats-cta-emoji {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 8px;
}
.stats-cta-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--mag-ink, #1a1a1a);
}

@media (max-width: 540px) {
  .stats-title { font-size: 24px; }
  .stat-card-num { font-size: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
