/* Unorthodox Ops — Today tab (home dashboard).
   Dark premium theme matching the app. Mobile-first. */

/* ---------- greeting header ---------- */
.today-head { margin: 6px 0 18px; }
.today-greet {
  font-family: var(--font-display); font-weight: 800;
  font-size: 38px; letter-spacing: 0.5px; line-height: 1.05; margin: 0;
}
.today-greet .today-name { color: var(--red-soft); }
.today-date {
  color: var(--muted); font-size: 13px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; margin: 6px 0 0;
}

/* ---------- readiness ring ---------- */
.today-readiness {
  display: flex; align-items: center; gap: 18px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin-bottom: 14px;
}
.today-ring { position: relative; width: 104px; height: 104px; flex-shrink: 0; }
.today-ring svg { width: 104px; height: 104px; transform: rotate(-90deg); }
.today-ring .ring-bg { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 10; }
.today-ring .ring-fg {
  fill: none; stroke: var(--red); stroke-width: 10; stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.22, 0.9, 0.28, 1);
}
.today-ring .ring-fg.ring-green { stroke: var(--green); }
.today-ring .ring-fg.ring-amber { stroke: #f5a623; }
.today-ring-num {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.today-ring-num b { font-family: var(--font-display); font-size: 32px; font-weight: 800; line-height: 1; }
.today-ring-num small { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.today-readiness-copy { flex: 1; min-width: 0; }
.today-readiness-copy .eyebrow-red { margin: 0 0 4px; }
.today-readiness-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.today-readiness-copy p b { color: var(--text); }

/* ---------- workout card ---------- */
.today-workout {
  background: linear-gradient(135deg, #1a0a0a 0%, var(--card) 60%);
  border: 1px solid rgba(225, 6, 0, 0.25);
  border-radius: var(--radius); padding: 20px; margin-bottom: 14px;
  position: relative; overflow: hidden;
}
.today-workout::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), transparent);
}
.today-workout .eyebrow-red { margin: 0 0 6px; }
.today-workout h3 { font-family: var(--font-display); font-size: 26px; font-weight: 800; margin: 0 0 4px; letter-spacing: 0.5px; }
.today-workout .today-wo-meta { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.today-workout .today-wo-ex { color: var(--muted); font-size: 13px; margin: 0 0 14px; line-height: 1.6; }
.today-cta {
  display: block; width: 100%; height: 52px; border: none; border-radius: 14px;
  background: var(--red); color: #fff; font-family: var(--font-body);
  font-size: 15px; font-weight: 800; letter-spacing: 0.5px; cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}
.today-cta:active { transform: scale(0.98); background: #c00500; }
.today-cta.secondary { background: rgba(255,255,255,0.08); color: var(--text); }

/* ---------- streak + stats row ---------- */
.today-stats-row { display: flex; gap: 10px; margin-bottom: 14px; }
.today-stat {
  flex: 1; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 12px; text-align: center;
}
.today-stat .today-stat-icon { font-size: 22px; display: block; margin-bottom: 4px; }
.today-stat b { font-family: var(--font-display); font-size: 28px; font-weight: 800; display: block; line-height: 1; }
.today-stat small { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- quick actions ---------- */
.today-section-title {
  font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); margin: 20px 0 10px;
}
.today-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 6px; }
.today-action {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--text); font-family: var(--font-body); font-size: 11px; font-weight: 700;
  cursor: pointer; transition: transform 0.12s ease, border-color 0.15s ease;
}
.today-action:active { transform: scale(0.95); border-color: var(--red); }
.today-action svg { width: 24px; height: 24px; fill: none; stroke: var(--red-soft); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.today-action span { text-align: center; line-height: 1.3; }

/* ---------- week chart ---------- */
.today-week {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin-bottom: 14px;
}
.today-week .eyebrow-red { margin: 0 0 12px; }
.today-bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; }
.today-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.today-bar {
  width: 100%; max-width: 34px; border-radius: 6px 6px 3px 3px;
  background: rgba(255,255,255,0.10); min-height: 6px;
  transition: height 0.8s cubic-bezier(0.22, 0.9, 0.28, 1);
}
.today-bar.active { background: linear-gradient(180deg, var(--red-soft), var(--red)); }
.today-bar.today { outline: 2px solid var(--red-soft); outline-offset: 2px; }
.today-bar-day { color: var(--muted); font-size: 10px; font-weight: 700; }
.today-bar-day.today { color: var(--red-soft); }

/* ---------- lock state ---------- */
.today-lock {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 20px; text-align: center; margin-bottom: 14px;
}
.today-lock p { color: var(--muted); font-size: 13px; margin: 0 0 14px; line-height: 1.6; }
.today-lock p b { color: var(--text); }

/* ---------- skeleton shimmer ---------- */
.today-skel {
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%; animation: todayShimmer 1.4s infinite;
}
@keyframes todayShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* rise-in stagger for cards */
.today-rise { opacity: 0; transform: translateY(14px); animation: todayRise 0.5s ease forwards; }
@keyframes todayRise { to { opacity: 1; transform: none; } }
