/* =========================================================================
   dashboard.css — daily/weekly overview, hero countdown, quick actions.
   ========================================================================= */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, var(--accent), var(--accent-hero-end));
  color: var(--accent-contrast);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  box-shadow: var(--shadow-2);
}
.hero::after {
  content: "";
  position: absolute; right: -40px; top: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.hero__eyebrow {
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; opacity: 0.9;
}
.hero__title { font-size: 1.5rem; font-weight: 800; margin: 2px 0 var(--sp-4); position: relative; }
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-3); position: relative; }

.greeting { margin-bottom: var(--sp-2); }
.greeting__hi { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.greeting__sub { color: var(--text-2); font-size: 0.9rem; }

/* Today's training */
.today-card__none {
  display: flex; align-items: center; gap: var(--sp-3);
  color: var(--text-2);
}

/* Week strip (7-day mini overview) */
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week-strip__day {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: var(--sp-2) 2px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  min-height: 64px;
}
.week-strip__day.is-today { box-shadow: inset 0 0 0 2px var(--accent); }
.week-strip__dow { font-size: 0.64rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; }
.week-strip__dot { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; }
.week-strip__dot svg { width: 12px; height: 12px; color: #fff; }
.week-strip__rest { width: 7px; height: 7px; border-radius: 50%; background: var(--border-2); }
.week-strip__date { font-size: 0.72rem; font-weight: 700; }
.week-strip__done { position: relative; }
.week-strip__done::after {
  content: ""; position: absolute; right: -2px; bottom: -2px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--good); border: 1.5px solid var(--surface);
}

/* Weekly metrics block */
/* minmax(0,1fr) instead of 1fr: guarantees columns of exactly equal width – otherwise the
   boxes in Safari can end up with different widths depending on their content. */
.week-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); align-items: stretch; }
/* Within the grid the global ".card + .card" rule must not create an offset. */
.week-stats > .card + .card { margin-top: 0; }

/* Streak */
.streak { display: inline-flex; align-items: center; gap: 6px; font-weight: 750; }
.streak svg { width: 18px; height: 18px; color: var(--warn-text); }

/* The coach's single daily recommendation: "Why this recommendation?" discreetly expandable. */
.coach-why summary { font-size: .78rem; color: var(--text-2); cursor: pointer; font-weight: 600; }
.coach-why summary::marker { color: var(--text-3); }

/* Today's session: the card leads to the session, ▶ starts it directly (UI-09). */
.today-unit { display: flex; align-items: center; gap: var(--sp-3); }
.today-unit__link { display: flex; align-items: center; gap: var(--sp-3); flex: 1 1 auto; min-width: 0; }
.today-unit__link:active { opacity: 0.7; }
.today-unit__play { flex: 0 0 auto; min-height: 44px; min-width: 48px; padding: 0 14px; }

/* Entry after "Start empty" (UI-13) */
.start-steps { display: flex; flex-direction: column; gap: var(--sp-2); }
.start-step {
  display: flex; align-items: center; gap: var(--sp-3);
  min-height: 52px; padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md); background: var(--surface-2);
}
.start-step__num {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--accent-contrast); font-weight: 800; font-size: .86rem;
}
.start-step.is-done .start-step__num { background: var(--good-strong); color: #fff; }
.start-step__label { display: block; font-weight: 650; }
.start-step.is-done .start-step__label { color: var(--text-2); }
.start-step__hint { display: block; font-size: .78rem; color: var(--text-2); }

/* Further coach hints bundled (UI-15) */
.coach-more > summary {
  cursor: pointer; font-size: .86rem; font-weight: 650; color: var(--accent-text);
  min-height: 40px; display: flex; align-items: center; gap: 6px; padding: 0 var(--sp-1);
}
.coach-more > summary::marker { color: var(--text-3); }
