/* ═══════════════════════════════════════════════
   progress.css — стили экрана «Прогресс» v3
   Дизайн-система: tokens.css
   ═══════════════════════════════════════════════ */

/* ── Карточки ─────────────────────────────────── */
.pr-card {
  background: var(--card-bg);
  border-radius: var(--card-r);
  padding: 20px 16px;
  margin-bottom: var(--card-gap);
}

/* ── Заголовки секций ────────────────────────── */
.pr-section-title {
  font-size: var(--fs-24-semibold);
  font-weight: var(--fw-24-semibold);
  color: var(--c-header);
  line-height: var(--lh-33, 33px);
  margin-bottom: 4px;
}

.pr-section-sub {
  font-size: var(--fs-12-regular);
  font-weight: var(--fw-12-regular);
  color: var(--text3);
  line-height: 1.3;
}
.pr-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.pr-hero-streak {
  font-size: var(--fs-12-regular);
  font-weight: var(--fw-12-regular);
  color: var(--text3);
  text-align: right;
  line-height: 1.4;
  flex-shrink: 0;
  margin-left: 12px;
}
/* ── Херо-сводка ─────────────────────────────── */
.pr-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.pr-hero-stat {
  text-align: center;
}

.pr-hero-value {
  font-size: var(--fs-28-bold, 28px);
  font-weight: var(--fw-28-bold, 800);
  line-height: 1;
  color: var(--text);  /* переопределяется в JS через инлайн */
}

.pr-hero-label {
  font-size: var(--fs-12-light, 12px);
  font-weight: var(--fw-12-light, 300);
  color: var(--text3);
  margin-top: 4px;
}

/* ── Heatmap ──────────────────────────────────── */
.pr-heatmap-row {
  display: flex;
  gap: 2px;
  margin-bottom: 3px;
  align-items: center;
}

.pr-heatmap-label {
  font-size: 8px;
  color: var(--text3);
  width: 24px;
  flex-shrink: 0;
}

.pr-heatmap-cell {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.pr-heatmap-cell--done    { background: var(--training); }
.pr-heatmap-cell--planned { background: rgba(0, 204, 136, 0.20); }
.pr-heatmap-cell--rest    { background: rgba(255, 255, 255, 0.05); }
.pr-heatmap-cell--today   { border: 1px solid rgba(255, 255, 255, 0.5); }

.pr-heatmap-legend {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-10-regular);
  color: var(--text3);
  margin-bottom: 16px;
}

/* ── Совет ────────────────────────────────────── */
.pr-tip-card {
  padding: 10px 12px;
  background: rgba(46, 117, 182, 0.08);
  border: 0.5px solid rgba(46, 117, 182, 0.20);
  border-radius: 10px;
  font-size: var(--fs-12-regular);
  color: #85B7EB;
  line-height: 1.5;
}

/* ── Вес тела ─────────────────────────────────── */
.pr-weight-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.pr-weight-current {
  font-size: var(--fs-28-bold, 28px);
  font-weight: var(--fw-28-bold, 800);
  color: var(--text);
}

.pr-weight-delta {
  font-size: var(--fs-14-regular);
  margin-top: 2px;
}

/* Графики: css/charts.css, buildSparkline() */
.pr-sparkline-wrap,
.chart-wrap {
  margin: 14px 0;
  overflow: hidden;
}

.pr-weight-mini-grid {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.pr-weight-mini-card {
  flex: 1;
  text-align: center;
  padding: 6px 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.pr-weight-mini-date {
  font-size: var(--fs-12-regular);
  color: var(--text3);
}

.pr-weight-mini-val {
  font-size: var(--fs-14-regular);
  font-weight: 600;
  color: var(--text);
  margin-top: 2px;
}

/* ── Сила по группам ──────────────────────────── */
.pr-strength-row {
  margin-bottom: 14px;
}

.pr-strength-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.pr-strength-name {
  font-size: var(--fs-14-regular);
  font-weight: 600;
  color: var(--text);
}

.pr-strength-val {
  font-size: var(--fs-14-regular);
  font-weight: 700;
}

.pr-strength-sparkline {
  height: var(--chart-h-sm);
}

.pr-strength-empty {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-10-regular);
  color: var(--text3);
}

/* ── Дневник тренировок ───────────────────────── */
.pr-diary-entry {
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 12px;
  border: 0.5px solid rgba(255, 255, 255, 0.06);
}

.pr-diary-date {
  font-size: var(--fs-12-regular);
  font-weight: var(--fw-12-regular);
  color: var(--text3);
  margin-bottom: 8px;
}

.pr-diary-train {
  margin-bottom: 8px;
}

.pr-diary-train-name {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
}

.pr-diary-ex-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.04);
}

.pr-diary-ex-row:last-child {
  border-bottom: none;
}

.pr-diary-ex-name {
  font-size: var(--fs-14-regular);
  color: var(--text);
  flex: 1;
}

.pr-diary-ex-schema {
  font-size: var(--fs-10-regular);
  color: var(--text3);
}

.pr-diary-ex-weight {
  font-size: var(--fs-12-regular);
  font-weight: 600;
  color: var(--training);
  min-width: 40px;
  text-align: right;
}

.pr-diary-more {
  text-align: center;
  padding: 12px;
  color: var(--text3);
  font-size: var(--fs-12-regular);
}

/* ── Сон ──────────────────────────────────────── */
.pr-sleep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.pr-sleep-stat {
  text-align: center;
}

.pr-sleep-value {
  font-size: var(--fs-28-bold, 28px);
  font-weight: var(--fw-28-bold, 800);
  line-height: 1;
}

.pr-sleep-label {
  font-size: var(--fs-12-light, 12px);
  font-weight: var(--fw-12-light, 300);
  color: var(--text3);
  margin-top: 4px;
}

.pr-sleep-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 64px;
  margin-bottom: 6px;
}

.pr-sleep-bar-col {
  flex: 1;
  display: flex;
  align-items: flex-end;
}

.pr-sleep-bar {
  width: 100%;
  border-radius: 3px 3px 0 0;
}

.pr-sleep-days {
  display: flex;
  gap: 4px;
}

.pr-sleep-day {
  flex: 1;
  text-align: center;
  font-size: 8px;
}

.pr-sleep-day--today {
  color: var(--accent);
  font-weight: 600;
}

/* ── Кардио ───────────────────────────────────── */
.pr-cardio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pr-cardio-stat {
  text-align: center;
}

.pr-cardio-value {
  font-size: var(--fs-24-semibold);
  font-weight: var(--fw-24-semibold);
  line-height: 1;
}

.pr-cardio-label {
  font-size: var(--fs-12-light, 12px);
  color: var(--text3);
  margin-top: 4px;
}

/* ── Пустое состояние ─────────────────────────── */
.pr-empty {
  padding: 30px 0;
  text-align: center;
  color: var(--text3);
  font-size: var(--fs-14-regular);
}

/* ── Кнопка ───────────────────────────────────── */
.pr-btn {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 0.5px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text2);
  font-size: var(--fs-14-regular);
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
}

.pr-btn:active {
  background: rgba(255, 255, 255, 0.08);
}

/* ═══ НЕОНОВЫЕ СЛОИ (iOS fix) ═══ */
.pr-neon-svg {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: filter;
}

.pr-glow-wide {
  fill: none;
  stroke-width: 32px;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: blur(20px);
  -webkit-filter: blur(20px);
  opacity: 0.5;
}
.pr-glow-medium {
  fill: none;
  stroke-width: 12px;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: blur(8px);
  -webkit-filter: blur(8px);
  opacity: 0.75;
}
.pr-glow-thin {
  fill: none;
  stroke-width: 4px;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: blur(2px);
  -webkit-filter: blur(2px);
  opacity: 0.85;
}
.pr-core-line {
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* shop-trigger-btn — см. css/buttons.css */