/* Course + lesson data — flat structure per latest spec */

const COURSE = {
  title: "Bach's Prelude in C Major",
  totalLessons: 21,
  // single flat list; one item ("perf") has children that expand inline
  items: [
    { id: "l1",  num: 1,  title: "Lesson 1",  dur: "8:12",  status: "done" },
    { id: "l2",  num: 2,  title: "Lesson 2",  dur: "10:04", status: "done" },
    { id: "l3",  num: 3,  title: "Lesson 3",  dur: "9:48",  status: "done" },
    { id: "l4",  num: 4,  title: "Lesson 4",  dur: "11:30", status: "done" },
    { id: "l5",  num: 5,  title: "Lesson 5",  dur: "12:24", status: "current" },
    { id: "l6",  num: 6,  title: "Lesson 6",  dur: "9:55",  status: "upcoming" },
    { id: "l7",  num: 7,  title: "Lesson 7",  dur: "10:18", status: "upcoming" },
    { id: "l8",  num: 8,  title: "Lesson 8",  dur: "8:41",  status: "upcoming" },
    { id: "l9",  num: 9,  title: "Lesson 9",  dur: "11:02", status: "upcoming" },
    { id: "l10", num: 10, title: "Lesson 10", dur: "9:14",  status: "upcoming" },
    { id: "l11", num: 11, title: "Lesson 11", dur: "10:46", status: "upcoming" },
    { id: "l12", num: 12, title: "Lesson 12", dur: "12:08", status: "upcoming" },
    { id: "l13", num: 13, title: "Lesson 13", dur: "13:32", status: "upcoming" },
    { id: "no-pedal", title: "How To Play Without The Sustain Pedal", dur: "9:28", status: "upcoming" },
    {
      id: "perf",
      title: "Full Performances",
      isParent: true,
      children: [
        { id: "p1", title: "With Pedal — With Metronome",    dur: "2:48", status: "upcoming" },
        { id: "p2", title: "With Pedal — Natural",            dur: "2:36", status: "upcoming" },
        { id: "p3", title: "Without Pedal — With Metronome", dur: "2:52", status: "upcoming" },
        { id: "p4", title: "Without Pedal — Natural",         dur: "2:40", status: "upcoming" },
      ],
    },
    { id: "pro",     title: "How To Perform Like A Pro",         dur: "14:20", status: "upcoming" },
    { id: "create",  title: "Creativity, Play & Experimentation", dur: "16:45", status: "upcoming" },
  ],
};

const LESSON = {
  id: "l5",
  num: 5,
  navLabel: "Lesson 5",
  displayTitle: "Lesson 5 — Building Flow and Ease",
  description: "In this lesson we settle the broken-chord pattern that runs through the prelude. The focus is on relaxed, even hand motion and connecting bars so the music feels like one long, breathing line — not a sequence of separate chords.",
  duration: "12 min",
  vimeoId: "1170625311",
  vimeoHash: "d34b00f021",
  lastViewed: "yesterday at 8:14 pm",
  resumeAt: "04:32",
};

const GOALS = [
  { id: "g1", text: "Settling the broken-chord pattern",  time: "0:00",  done: true  },
  { id: "g2", text: "Keeping the hand relaxed",           time: "2:48",  done: true  },
  { id: "g3", text: "Connecting bars smoothly",           time: "5:20",  done: false, current: true },
  { id: "g4", text: "Shaping the phrase musically",       time: "8:04",  done: false },
  { id: "g5", text: "Practising with rhythmic control",   time: "10:12", done: false },
];

window.COURSE = COURSE;
window.LESSON = LESSON;
window.GOALS = GOALS;
