/* Learn to DJ: coach card on the practice decks (js/learn.js) and the lesson list (learn.html). */

/* ---------- coach card ---------- */
.coach { background: #161616; border-radius: 8px; padding: 12px 16px 14px; margin: 0 0 8px; box-shadow: inset 0 0 0 1px #2a2a2a; color: #fff; font-family: Inter, system-ui, sans-serif; }
.coach.passed { box-shadow: inset 0 0 0 2px #fff; }
.coach-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.coach-k { font-size: 12px; font-weight: 700; color: #b3b3b3; }
.coach-title { font-size: 15px; font-weight: 800; }
.coach-dots { display: inline-flex; gap: 4px; }
.coach-dots i { width: 6px; height: 6px; border-radius: 9999px; background: #3a3a3a; }
.coach-dots i.d { background: #b3b3b3; }
.coach-dots i.on { background: #fff; }
.coach-head .grow { flex: 1; }
.coach-link { font-size: 12px; font-weight: 700; color: #b3b3b3; text-decoration: none; }
.coach-link:hover { color: #fff; text-decoration: underline; }
.coach-body { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: end; }
.coach-body.has-fig { grid-template-columns: minmax(220px, 420px) minmax(0,1fr) auto; align-items: center; }
.coach-fig .fig-svg { width: 100%; height: auto; display: block; }
.coach-say { font-size: 15px; line-height: 1.45; margin: 0; max-width: 70ch; color: #fff; }
.coach-say b { font-weight: 800; }
.coach-keys { font-size: 12px; color: #b3b3b3; margin: 6px 0 0; }
.coach-keys kbd { font: 700 11px Inter, system-ui, sans-serif; background: #2a2a2a; color: #fff; border-radius: 4px; padding: 2px 6px; }
.coach-live { font-size: 13px; font-weight: 600; color: #b3b3b3; margin: 6px 0 0; min-height: 18px; font-variant-numeric: tabular-nums; }
.coach.passed .coach-live { color: #fff; }
.coach-hint { font-size: 13px; color: #b3b3b3; margin: 6px 0 0; padding-left: 10px; box-shadow: inset 2px 0 0 #3a3a3a; }
.coach-hold { height: 4px; border-radius: 2px; background: #2a2a2a; margin-top: 8px; overflow: hidden; max-width: 420px; }
.coach-hold i { display: block; height: 100%; width: 0; background: #fff; transition: width .1s linear; }
.coach-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.coach-btn, .coach-next, .coach-tap { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 18px; border-radius: 9999px; border: 0; font: 700 13px Inter, system-ui, sans-serif; cursor: pointer; text-decoration: none; white-space: nowrap; }
.coach-btn { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.coach-btn:hover { box-shadow: inset 0 0 0 1px #fff; text-decoration: none; }
.coach-btn.quiet { box-shadow: none; color: #b3b3b3; padding: 0 8px; }
.coach-btn.quiet:hover { color: #fff; }
.coach-next { background: #1ed760; color: #000; }
.coach-next:hover { transform: scale(1.03); text-decoration: none; }
.coach-tap { background: #fff; color: #000; min-width: 120px; min-height: 48px; font-size: 15px; }
.coach.tapped .coach-tap { animation: coach-tap .18s ease-out; }
@keyframes coach-tap { from { transform: scale(.94); } to { transform: scale(1); } }
@media (max-width: 900px) { .coach-body, .coach-body.has-fig { grid-template-columns: 1fr; } .coach-act { justify-content: flex-start; } }

/* the control a step needs */
.learn-glow { outline: 2px solid #fff !important; outline-offset: 3px; animation: learn-glow 1.4s ease-in-out infinite; position: relative; z-index: 1; }
@keyframes learn-glow { 0%, 100% { outline-color: rgba(255,255,255,1); } 50% { outline-color: rgba(255,255,255,.25); } }
@media (prefers-reduced-motion: reduce) { .learn-glow { animation: none; } }

/* ---------- lesson list page ---------- */
.learn-sum { color: #b3b3b3; font-size: 14px; margin: 0 0 24px; }
.learn-unit { margin: 0 0 32px; }
.learn-unit h2 { font-size: 22px; margin: 0 0 4px; }
.learn-unit .unit-sub { color: #b3b3b3; font-size: 13px; margin: 0 0 12px; }
.lesson-row { display: grid; grid-template-columns: 32px minmax(0,1fr) 70px 110px; gap: 16px; align-items: center; padding: 10px 16px; border-radius: 6px; color: #fff; text-decoration: none; }
.lesson-row:hover { background: #1f1f1f; text-decoration: none; }
.lesson-row .n { color: #b3b3b3; font-size: 16px; font-variant-numeric: tabular-nums; text-align: right; }
.lesson-row .t { font-size: 16px; font-weight: 600; }
.lesson-row .a { font-size: 13px; color: #b3b3b3; margin-top: 2px; }
.lesson-row .m, .lesson-row .w { font-size: 13px; color: #b3b3b3; }
.lesson-row .st { font-size: 13px; font-weight: 700; color: #b3b3b3; text-align: right; }
.lesson-row.done .st { color: #fff; }
.lesson-row .gig { display: inline-block; font-size: 11px; font-weight: 700; color: #b3b3b3; box-shadow: inset 0 0 0 1px #3a3a3a; border-radius: 9999px; padding: 2px 8px; margin-left: 8px; vertical-align: 2px; }
.learn-head-row { display: grid; grid-template-columns: 32px minmax(0,1fr) 70px 110px; gap: 16px; padding: 0 16px 8px; margin-bottom: 8px; border-bottom: 1px solid #2a2a2a; color: #b3b3b3; font-size: 12px; font-weight: 600; }
.learn-head-row span:first-child, .learn-head-row span:last-child { text-align: right; }
@media (max-width: 700px) { .lesson-row, .learn-head-row { grid-template-columns: 28px minmax(0,1fr) 80px; } .lesson-row .m, .learn-head-row .m { display: none; } }
