
/* ========================================
   MOVES DRAWER — feral edition
   (Overlay UI; not a full screen)
   ======================================== */

.landing-actions{
  display:flex;
  gap:10px;
  align-items:center;
}

.moves-note{
  margin: 6px 0 12px;
  font-size: 13px;
  color: rgba(246,251,252,.72);
  line-height: 1.35;
  letter-spacing: .01em;
}

/* container spacing */
.moves-content{
  display:grid;
  gap:12px;

  position: relative;
  isolation: isolate;
}

/* soft aurora behind the whole list */
.moves-content::before{
  content:"";
  position:absolute;
  inset:-28px -12px;
  z-index:-1;
  pointer-events:none;

  opacity:.28;
  filter: blur(18px);

  background:
    radial-gradient(600px 220px at 15% 0%, rgba(210,173,59,.55), transparent 60%),
    radial-gradient(520px 240px at 85% 25%, rgba(11,101,140,.45), transparent 60%),
    radial-gradient(520px 260px at 40% 95%, rgba(206,130,125,.40), transparent 65%);
}

/* ========================================
   GROUP CARD
   ======================================== */

/* Base group card with default accent colors */
.moves-group{
  /* Use app root tokens for consistency */
  border: 1px solid var(--stroke-2);
  border-radius: var(--r18);
  overflow:hidden;
  background: var(--surface-card);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  transition: transform .18s ease, border-color .18s ease;
}

.moves-group__sum{
  list-style:none;
  cursor:pointer;
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background: transparent;
}

.moves-group__sum::before{
  display: none;
}

.moves-group__sum::after{
  content:"";
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--day-accent, var(--p-capri));
  border-bottom: 2px solid var(--day-accent, var(--p-capri));
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.moves-group[open] .moves-group__sum::after{
  transform: rotate(-135deg);
}

.moves-group__name{
  font-weight: var(--w-black);
  color: var(--text);
}

.moves-group__meta{
  font-size: 12px;
  color: rgba(246,251,252,.70);
  white-space:nowrap;

  padding: 4px 8px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,.14);
  background:
    linear-gradient(90deg, rgba(0,0,0,.22), rgba(0,0,0,.10)) padding-box,
    linear-gradient(90deg, rgba(255,255,255,.10), rgba(255,255,255,0)) border-box;

  box-shadow: 0 0 0 1px rgba(0,0,0,.10) inset;
  float: right
}

.moves-group__list{
  padding: 0 10px 10px;
  display:grid;
  gap:9px;
}

.moves-group[open] .moves-group__list{
  animation: fadeUp .22s ease both;
}

@keyframes fadeUp{
  from{ opacity:0; transform: translateY(-4px); }
  to{ opacity:1; transform: translateY(0); }
}

/* ========================================
   MOVE ITEMS
   ======================================== */

.move-item{
  border: 1px solid transparent;
  border-radius: 16px;
  overflow:hidden;

  background:
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.10)) padding-box,
    linear-gradient(90deg, rgba(255,255,255,.10), rgba(255,255,255,.04)) border-box;

  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.move-item:hover{
  border-color: rgba(255,255,255,.16);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.28);
}

.move-item__sum{
  list-style:none;
  cursor:pointer;

  padding: 10px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  position: relative;
  background: rgba(0,0,0,.10);
}

.move-item__sum::-webkit-details-marker{ display:none; }

.move-item__sum:focus-visible{
  outline: 2px solid rgba(255,255,255,.22);
  outline-offset: 3px;
  border-radius: 14px;
}

/* micro-chevron */
.move-item__sum::after{
  content:"›";
  position:absolute;
  right:10px;
  top:50%;
  transform: translateY(-50%) rotate(90deg);
  opacity:.55;
  transition: transform .18s ease, opacity .18s ease;
  pointer-events:none;
}
.move-item[open] .move-item__sum::after{
  transform: translateY(-50%) rotate(-90deg);
  opacity: .95;
}

.move-item__title{
  font-weight: 850;
  letter-spacing: .01em;
  padding-right: 18px;
}

.move-item__time{
  font-size:12px;
  color: rgba(246,251,252,.72);
  white-space:nowrap;

  padding: 4px 8px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(200px 40px at 10% 0%, rgba(255,255,255,.07), transparent 60%),
    linear-gradient(90deg, rgba(0,0,0,.22), rgba(0,0,0,.12));
}

.move-item__body{
  padding: 0 10px 10px;
  display:grid;
  gap:8px;
}

.move-item[open] .move-item__body{
  animation: fadeUp .22s ease both;
}

.move-item__cue{
  font-size:12px;
  color: rgba(246,251,252,.80);

  border-left: 3px solid var(--a);
  padding-left: 10px;

  background:
    linear-gradient(90deg, rgba(0,0,0,.12), rgba(0,0,0,0) 60%),
    linear-gradient(90deg, color-mix(in srgb, var(--a) 18%, transparent), transparent 65%);

  border-radius: 10px;
  padding-top: 6px;
  padding-bottom: 6px;
}

@supports not (color-mix(in srgb, red 50%, transparent)){
  .move-item__cue{
    background:
      linear-gradient(90deg, rgba(0,0,0,.12), rgba(0,0,0,0) 60%),
      linear-gradient(90deg, rgba(210,173,59,.10), transparent 65%);
  }
}

.move-item__desc{
  font-size: 13px;
  color: rgba(246,251,252,.88);
  line-height:1.45;
}

.move-item__media{
  display:grid;
  gap:6px;
}

.move-item__gif{
  width:100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.move-item__url,
.move-item__nogif{
  font-size: 11px;
  color: rgba(246,251,252,.60);
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  opacity: .9;
}
/* ========================================
   MOVES DRAWER — glow-up, not a rewrite
   Paste BELOW existing moves drawer CSS
   ======================================== */

/* 1) Stop the desktop runway: center + cap width */
.moves-content{
  max-width: 720px;
  margin: 0 auto;
}

/* Make the note readable (less ghost text) */
.moves-note{
  font-size: 14px;
  color: color-mix(in srgb, var(--text) 78%, transparent);
}

/* Give the whole drawer a slightly more solid base so text pops */
.moves-drawer{
  --a: var(--day-accent, var(--p-capri)); /* default accent for cues */
}

/* 2) Group cards: reduce muddy gradients, add accent stripe */
.moves-group{
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface-card) 92%, rgba(255,255,255,.06)),
    color-mix(in srgb, var(--surface-card) 92%, rgba(0,0,0,.10))
  );
  border-color: color-mix(in srgb, var(--stroke-2) 70%, rgba(255,255,255,.10));
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
}

/* Header layout + accent stripe */
.moves-group__sum{
  position: relative;
  padding: 16px 16px 16px 18px;
  min-height: 52px;
}

/* Accent stripe (this is the “BA vibe” without chaos gradients) */
.moves-group__sum::before{
  content:"";
  display:block;
  position:absolute;
  left: 10px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--a) 85%, white 10%),
    color-mix(in srgb, var(--a) 85%, black 10%)
  );
  opacity: .85;
}

/* Chevron: a little brighter + consistent */
.moves-group__sum::after{
  border-right-color: color-mix(in srgb, var(--text) 65%, transparent);
  border-bottom-color: color-mix(in srgb, var(--text) 65%, transparent);
}

/* Name: stronger, clamp so it doesn’t look like a paragraph */
.moves-group__name{
  font-size: 15px;
  letter-spacing: .01em;
  line-height: 1.1;
}

/* Meta pill: higher contrast, less glassy */
.moves-group__meta{
  color: color-mix(in srgb, var(--text) 74%, transparent);
  border-color: color-mix(in srgb, var(--stroke-2) 70%, rgba(255,255,255,.12));
  background: rgba(0,0,0,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  margin-left: auto;
}

/* TODAY badge: stop yelling red; use accent */
.today-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .08em;
  font-weight: 850;
  color: color-mix(in srgb, var(--a) 82%, white 18%);
  border: 1px solid color-mix(in srgb, var(--a) 55%, rgba(255,255,255,.14));
  background: color-mix(in srgb, var(--a) 18%, rgba(0,0,0,.22));
}

/* Open group: slightly brighter so it’s obvious what’s expanded */
.moves-group[open]{
  border-color: color-mix(in srgb, var(--a) 35%, var(--stroke-2));
  box-shadow: 0 16px 36px rgba(0,0,0,.34);
}

/* 3) Move items: make them look tappable + readable */
.moves-group__list{
  padding: 0 12px 12px;
  gap: 10px;
}

.move-item{
  border-radius: 14px;
  background: rgba(0,0,0,.16);
  border: 1px solid color-mix(in srgb, var(--stroke-2) 65%, rgba(255,255,255,.10));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

/* Kill the “hover float” on touch; keep it only on real hover devices */
@media (hover:hover){
  .move-item:hover{
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--a) 22%, rgba(255,255,255,.16));
    box-shadow: 0 14px 28px rgba(0,0,0,.30);
  }
}

/* Summary becomes a grid: title | time | chevron */
.move-item__sum{
  background: rgba(0,0,0,.12);
  padding: 12px 12px;
  display: grid;
  grid-template-columns: 1fr auto 16px;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}

/* Replace the weird rotated › with the same chevron style */
.move-item__sum::after{
  content:"";
  position: static;
  width: 12px;
  height: 12px;
  border-right: 2px solid color-mix(in srgb, var(--text) 55%, transparent);
  border-bottom: 2px solid color-mix(in srgb, var(--text) 55%, transparent);
  transform: rotate(45deg);
  opacity: .85;
  justify-self: end;
}
.move-item[open] .move-item__sum::after{
  transform: rotate(-135deg);
}

/* Title: allow 2 lines, stop hard padding */
.move-item__title{
  padding-right: 0;
  font-weight: 850;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Time pill: crisp + numeric */
.move-item__time{
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--text) 78%, transparent);
  border-color: color-mix(in srgb, var(--stroke-2) 70%, rgba(255,255,255,.14));
  background: rgba(0,0,0,.20);
}

/* Body: make expanded content feel like “lore panel” */
.move-item__body{
  padding: 10px 12px 12px;
  gap: 10px;
}

/* Cue: actually use accent variable */
.move-item__cue{
  border-left-color: var(--a);
  color: color-mix(in srgb, var(--text) 86%, transparent);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--a) 16%, rgba(0,0,0,.20)), transparent 70%),
    rgba(0,0,0,.10);
}

/* Description: bump readability */
.move-item__desc{
  font-size: 13px;
  color: color-mix(in srgb, var(--text) 86%, transparent);
  line-height: 1.5;
}

/* Reduced motion: don’t animate panels for folks who hate it */
@media (prefers-reduced-motion: reduce){
  .moves-group[open] .moves-group__list,
  .move-item[open] .move-item__body{
    animation: none;
  }
}

/* Map workout index → accent (tune to your tokens) */
.moves-group[data-day="0"]{ --a: var(--p-paradise-pink); }
.moves-group[data-day="1"]{ --a: var(--p-capri); }
.moves-group[data-day="2"]{ --a: var(--p-blazing-yellow); }
.moves-group[data-day="3"]{ --a: var(--p-papaya); }
.moves-group[data-day="4"]{ --a: var(--p-iris-orchid); }
.moves-group[data-day="5"]{ --a: var(--p-alaskan-blue); }
.moves-group[data-day="6"]{ --a: var(--p-dusky-citron); }

/* Today overrides everything */
.moves-group--today{ --a: var(--day-accent, var(--p-capri)); }
.moves-drawer .drawer__header{
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--surface) 78%, rgba(0,0,0,.22));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--stroke-2) 70%, rgba(255,255,255,.10));
}

