﻿/* Program overview, week bar, day cards, and exercise editor */
/* ════════════════════════════════════════
   TODAY BANNER — LIQUID GLASS
════════════════════════════════════════ */
.today-banner { background: rgba(232,244,77,0.06); backdrop-filter: var(--blur-sm); -webkit-backdrop-filter: var(--blur-sm); border: 1px solid rgba(232,244,77,0.22); border-radius: 20px; padding: 20px 24px; display: flex; align-items: center; gap: 16px; margin-bottom: 24px; cursor: pointer; transition: all 0.3s var(--spring); box-shadow: 0 4px 20px rgba(232,244,77,0.08); -webkit-tap-highlight-color: transparent; }
.today-banner:active { transform: scale(0.98); background: rgba(232,244,77,0.10); }
.today-banner-icon { font-size: 32px; flex-shrink: 0; filter: drop-shadow(0 0 8px rgba(232,244,77,0.4)); }
.today-banner-content { flex: 1; }
.today-banner-day { font-size: 10px; color: var(--accent); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 4px; }
.today-banner-title { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 1px; line-height: 1; }
.today-banner-sub { font-size: 12px; color: var(--muted2); margin-top: 4px; }
.today-banner-cta { padding: 10px 20px; background: var(--accent); border: none; border-radius: 12px; color: #000; font-family: -apple-system, system-ui, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; cursor: pointer; transition: all 0.25s var(--spring); white-space: nowrap; flex-shrink: 0; box-shadow: 0 4px 12px rgba(232,244,77,0.35); -webkit-tap-highlight-color: transparent; }
.today-banner-cta:active { transform: scale(0.94); }

/* ════════════════════════════════════════
   WEEK BAR — LIQUID GLASS
════════════════════════════════════════ */
.week-bar { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 32px; }
.week-bar { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 24px; scrollbar-width: none; }
.week-bar::-webkit-scrollbar { display: none; }
.week-pill {
  background: rgba(255,255,255,0.05); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255,255,255,0.09); border-radius: 18px;
  padding: 14px 16px 14px; min-width: 110px; flex-shrink: 0;
  position: relative; cursor: pointer; transition: all 0.3s var(--spring);
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.week-pill:active { transform: scale(0.95); }
.week-pill.active { border-color: var(--day-color); background: rgba(255,255,255,0.08); box-shadow: 0 0 0 1px var(--day-color), 0 6px 20px rgba(0,0,0,0.3); }
.week-pill .pname { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.week-pill .pday { font-family: 'Bebas Neue', sans-serif; font-size: 32px; line-height: 1; color: var(--day-color); letter-spacing: 1px; }
.week-pill .pfocus { font-size: 11px; color: var(--text2); margin-top: 6px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.week-pill-progress { height: 3px; background: rgba(255,255,255,0.07); border-radius: 2px; margin-top: 10px; overflow: hidden; }
.week-pill-bar { height: 100%; background: var(--day-color, var(--accent)); border-radius: 2px; transition: width 0.4s ease; }
/* Color swatch picker in edit mode */
.pill-color-row { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.pill-color-dot { width: 14px; height: 14px; border-radius: 50%; cursor: pointer; transition: transform 0.15s var(--spring); border: 1.5px solid transparent; flex-shrink: 0; }
.pill-color-dot:active { transform: scale(1.3); }
.pill-color-dot.selected { border-color: #fff; }

/* ════════════════════════════════════════
   DAY CARDS — LIQUID GLASS
════════════════════════════════════════ */
.days-grid { display: grid; gap: 16px; }
.day-card { background: rgba(255,255,255,0.04); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); border: 1px solid rgba(255,255,255,0.09); border-radius: 20px; overflow: hidden; animation: fadeUp 0.4s var(--spring) both; transition: box-shadow 0.3s, opacity 0.2s, transform 0.2s var(--spring); box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.10); }
.day-card:nth-child(1){animation-delay:.04s}.day-card:nth-child(2){animation-delay:.09s}.day-card:nth-child(3){animation-delay:.14s}.day-card:nth-child(4){animation-delay:.19s}.day-card:nth-child(5){animation-delay:.24s}
.day-card.card-dragging { opacity:0.3; transform: scale(0.98); }
.day-card.card-drag-over { box-shadow: 0 0 0 2px var(--day-color, var(--accent)), 0 8px 32px rgba(0,0,0,0.4); }
.day-header { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.day-badge { width: 52px; height: 52px; border-radius: 14px; background: var(--day-color); display: flex; align-items: center; justify-content: center; font-family: 'Bebas Neue', sans-serif; font-size: 26px; color: #000; flex-shrink: 0; box-shadow: 0 4px 16px color-mix(in srgb, var(--day-color) 40%, transparent), inset 0 1px 0 rgba(255,255,255,0.3); }
.day-meta { flex: 1; min-width: 0; }
.day-weekday { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); background: transparent; border: none; outline: none; font-family: -apple-system, system-ui, sans-serif; width: 100%; cursor: default; }
body.edit-mode .day-weekday { cursor: text; }
.day-title-input { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 1px; line-height: 1.15; background: transparent; border: none; outline: none; color: var(--text); width: 100%; cursor: default; }
body.edit-mode .day-title-input:focus { color: var(--accent); }
.day-header-actions { display: none; gap: 5px; align-items: center; }
body.edit-mode .day-header:hover .day-header-actions { display: flex; }
.day-drag-handle { display: none; flex-direction: column; gap: 3px; cursor: grab; padding: 6px; opacity: 0.35; flex-shrink: 0; touch-action: none; user-select: none; }
.day-drag-handle span { display: block; width: 12px; height: 2px; background: var(--muted2); border-radius: 2px; }
body.edit-mode .day-drag-handle { display: flex; }
.workout-progress { display: none; padding: 10px 22px 0; }
body.workout-mode .workout-progress { display: block; }
.progress-bar-bg { height: 3px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 3px; background: var(--day-color, var(--accent)); transition: width 0.4s ease; width: 0%; box-shadow: 0 0 8px var(--day-color, var(--accent)); }
.progress-label { font-size: 9px; color: var(--muted); margin-top: 4px; letter-spacing: 1px; }
.day-body { padding: 10px 22px 18px; }

/* ════════════════════════════════════════
   SECTION / EXERCISE
════════════════════════════════════════ */
.section-block { margin-bottom: 12px; border-radius: 8px; }
.section-block.sec-drag-over { outline: 1px dashed rgba(255,255,255,0.15); }
.section-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; padding: 4px 0; }
.sec-drag-handle { display: none; flex-direction: column; gap: 2.5px; cursor: grab; opacity: 0.35; flex-shrink: 0; touch-action: none; user-select: none; }
.sec-drag-handle span { display: block; width: 10px; height: 1.5px; background: var(--muted2); border-radius: 2px; }
body.edit-mode .sec-drag-handle { display: flex; }
.section-label-input { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); background: transparent; border: none; outline: none; font-family: -apple-system, system-ui, sans-serif; flex: 1; cursor: default; font-weight: 600; }
body.edit-mode .section-label-input { cursor: text; }
body.edit-mode .section-label-input:focus { color: var(--muted2); }
.sec-delete { width: 20px; height: 20px; background: transparent; border: none; color: var(--muted); cursor: pointer; border-radius: 5px; font-size: 11px; display: none; align-items: center; justify-content: center; transition: all 0.15s; flex-shrink: 0; }
body.edit-mode .section-head:hover .sec-delete { display: flex; }
.sec-delete:hover { background: rgba(255,92,58,0.12); color: var(--red); }
.exercise-list { display: flex; flex-direction: column; gap: 1px; }
.ex-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; transition: background 0.2s; position: relative; -webkit-tap-highlight-color: transparent; }
.ex-row:active { background: rgba(255,255,255,0.04); }
.ex-row.done { opacity: 0.4; }
.ex-row.done .ex-name-input,
.ex-row.done .ex-name-display { text-decoration: line-through; }
.ex-row.ex-drag-over { border-top: 2px solid var(--accent); }
.ex-row.ex-dragging { opacity: 0.2; }
.exercise-list.list-drag-over { outline: 2px dashed rgba(232,244,77,0.4); border-radius: 8px; }
.section-block.sec-drag-over { outline: 2px dashed rgba(96,212,244,0.4); border-radius: 14px; }
.section-block.sec-dragging { opacity: 0.25; }
/* Dot marker — decorative only, no click */
.ex-marker { width: 7px; height: 7px; border-radius: 50%; background: var(--day-color, var(--accent)); flex-shrink: 0; opacity: 0.45; transition: all 0.2s; pointer-events: none; }
.ex-row.done .ex-marker { opacity: 0.9; box-shadow: 0 0 5px var(--day-color, var(--accent)); }
.ex-drag-handle { display: none; flex-direction: column; gap: 2px; cursor: grab; opacity: 0.3; flex-shrink: 0; touch-action: none; user-select: none; }
.ex-drag-handle span { display: block; width: 8px; height: 1.5px; background: var(--muted2); border-radius: 2px; }
body.edit-mode .ex-drag-handle { display: flex; }
.ex-name-input { flex: 1; background: transparent; border: none; outline: none; font-family: -apple-system, system-ui, sans-serif; font-size: 15px; color: var(--text2); cursor: default; min-width: 0; }
.ex-name-display { flex: 1; min-width: 0; font-size: 15px; color: var(--text2); line-height: 1.35; font-weight: 500; }
.ex-name-click { cursor: pointer; }
body.edit-mode .ex-name-input { cursor: text; }
body.edit-mode .ex-name-input:focus { color: var(--text); }
body.edit-mode .ex-name-input::placeholder { color: var(--muted); }
/* Sets/reps/RIR pill group */
.ex-sets-wrap { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ex-sets-pill { display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.10); border-radius: 8px; padding: 4px 10px; }
.sets-input { font-size: 14px; font-weight: 700; color: var(--day-color, var(--accent)); background: transparent; border: none; outline: none; font-family: -apple-system, system-ui, sans-serif; text-align: center; width: 36px; cursor: default; }
body.edit-mode .sets-input { cursor: text; }
.sets-label { font-size: 10px; color: var(--muted); flex-shrink: 0; }
.ex-sep { font-size: 12px; color: var(--muted); margin: 0 1px; }
.reps-input { font-size: 14px; font-weight: 600; color: var(--text2); background: transparent; border: none; outline: none; font-family: -apple-system, system-ui, sans-serif; text-align: center; width: 32px; cursor: default; }
body.edit-mode .reps-input { cursor: text; }
.rir-badge { font-size: 10px; font-weight: 700; color: var(--blue); background: rgba(96,212,244,0.10); border: 1px solid rgba(96,212,244,0.22); border-radius: 7px; padding: 4px 8px; white-space: nowrap; flex-shrink: 0; }
.rir-input { font-size: 11px; font-weight: 700; color: var(--blue); background: rgba(96,212,244,0.08); border: 1px solid rgba(96,212,244,0.18); outline: none; font-family: -apple-system, system-ui, sans-serif; text-align: center; width: 50px; padding: 4px 6px; border-radius: 7px; cursor: default; }
body.edit-mode .rir-input { cursor: text; }
body.edit-mode .rir-input:focus { background: rgba(96,212,244,0.14); }
.ex-delete { width: 20px; height: 20px; background: transparent; border: none; color: var(--muted); cursor: pointer; border-radius: 5px; font-size: 11px; display: none; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.15s; }
body.edit-mode .ex-row:hover .ex-delete { display: flex; }
.ex-delete:hover { background: rgba(255,92,58,0.12); color: var(--red); }
/* Drag ghost */
#drag-ghost { position: fixed; pointer-events: none; z-index: 9999; background: rgba(20,20,35,0.95); border: 1px solid rgba(255,255,255,0.18); border-radius: 10px; padding: 8px 14px; font-size: 13px; color: var(--text2); white-space: nowrap; max-width: 240px; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 8px 24px rgba(0,0,0,0.5); transform: rotate(1.5deg); }

/* ADD BUTTONS */
.add-ex-btn { display: none; align-items: center; gap: 7px; width: 100%; padding: 7px 10px; background: transparent; border: 1px dashed rgba(255,255,255,0.12); border-radius: 8px; color: var(--muted); font-family: -apple-system, system-ui, sans-serif; font-size: 11px; cursor: pointer; margin-top: 4px; transition: all 0.2s; }
body.edit-mode .add-ex-btn { display: flex; }
body.edit-mode .add-ex-btn:active { background: rgba(255,255,255,0.05); }
.add-section-btn { display: none; align-items: center; gap: 7px; padding: 7px 10px; background: transparent; border: 1px dashed rgba(255,255,255,0.10); border-radius: 8px; color: var(--muted); font-family: -apple-system, system-ui, sans-serif; font-size: 10px; cursor: pointer; margin-top: 10px; transition: all 0.2s; letter-spacing: 1px; text-transform: uppercase; }
body.edit-mode .add-section-btn { display: flex; }
.add-day-btn { display: none; align-items: center; justify-content: center; gap: 8px; padding: 16px; background: transparent; border: 1px dashed rgba(255,255,255,0.12); border-radius: 20px; color: var(--muted); font-family: -apple-system, system-ui, sans-serif; font-size: 12px; cursor: pointer; transition: all 0.2s; letter-spacing: 1px; margin-top: 4px; }
body.edit-mode .add-day-btn { display: flex; }

/* CARDIO */
.cardio-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(255,92,58,0.06); border: 1px solid rgba(255,92,58,0.18); }
.cardio-row.hidden { display: none; }
.cardio-text { font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--red); flex: 1; }
.cardio-min-input { width: 34px; background: transparent; border: none; outline: none; font-family: -apple-system, system-ui, sans-serif; font-size: 13px; font-weight: 700; color: var(--red); text-align: center; cursor: default; }
body.edit-mode .cardio-min-input { cursor: text; }
.cardio-unit { font-size: 9px; color: rgba(255,92,58,0.6); letter-spacing: 1px; }
.cardio-toggle { width: 20px; height: 20px; background: transparent; border: none; border-radius: 5px; color: var(--muted); font-size: 11px; cursor: pointer; display: none; align-items: center; justify-content: center; transition: all 0.15s; }
body.edit-mode .cardio-row:hover .cardio-toggle { display: flex; }
.cardio-toggle:hover { background: rgba(255,92,58,0.12); color: var(--red); }
.add-cardio-btn { display: none; align-items: center; gap: 7px; padding: 6px 10px; background: transparent; border: 1px dashed rgba(255,92,58,0.25); border-radius: 8px; color: rgba(255,92,58,0.5); font-family: -apple-system, system-ui, sans-serif; font-size: 10px; cursor: pointer; margin-top: 8px; transition: all 0.15s; letter-spacing: 1px; text-transform: uppercase; }
body.edit-mode .add-cardio-btn.visible { display: flex; }

/* ICON BTNS */
.icon-btn { width: 28px; height: 28px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); border-radius: 8px; color: var(--muted2); cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center; transition: all 0.2s var(--spring); flex-shrink: 0; -webkit-tap-highlight-color: transparent; }
.icon-btn:active { transform: scale(0.9); background: rgba(255,255,255,0.10); }
.icon-btn.danger:active { background: rgba(255,92,58,0.12); color: var(--red); }

