// Demo data for the prototype
const TAGS = {
  recruiting: { label: "Recruiting", color: "accent" },
  mental_health: { label: "Social-Emotional (SEL)", color: "purple" },
  academic: { label: "Academic Planning", color: "success" },
  ncaa: { label: "NCAA Eligibility", color: "gold" },
  financial_aid: { label: "Financial Aid / FAFSA", color: "gold" },
};

// Additional counselor resources (tab 2 of the Advising Roadmap workbook).
// These are standalone counselor-facing assets not tied to a specific month —
// added here as upload skeletons for the admin resource library.
const ADDITIONAL_RESOURCES = [
  { id: "ac-r1", category: "recruiting",    title: "Timelines & strategic planning \u2014 map the recruiting timeline to the sport and target level. [10th grade, fall]" },
  { id: "ac-r2", category: "recruiting",    title: "Utilizing AI for athlete advising" },
  { id: "ac-r3", category: "recruiting",    title: "Common struggles for student-athletes and families" },
  { id: "ac-r4", category: "recruiting",    title: "Biggest misconceptions of college recruiting" },
  { id: "ac-s1", category: "mental_health", title: "Identity beyond sport \u2014 you are more than an athlete. [9th grade, fall]" },
  { id: "ac-s2", category: "mental_health", title: "Normalize mental-health support for athletes \u2014 reduce the stigma around asking for help. [10th grade, late summer]" },
  { id: "ac-s3", category: "mental_health", title: "Performance anxiety, on and off the field. [10th grade, fall]" },
  { id: "ac-s4", category: "mental_health", title: "Burnout \u2014 spotting physical & mental fatigue from sport. [10th grade, winter]" },
  { id: "ac-s5", category: "mental_health", title: "Social status & confidence struggles as an athlete. [11th grade, fall]" },
  { id: "ac-s6", category: "mental_health", title: "Resilience & navigating external expectations (family, coaches, social media). [11th grade, winter]" },
  { id: "ac-s7", category: "mental_health", title: "Battling uncertainty across different athletic & academic pathways. [12th grade, late summer]" },
];

const TRAINING_SESSIONS = [
  {
    id: "ts-apr-26",
    date: "2026-04-01",
    title: "Building a Balanced Recruiting Plan",
    subtitle: "How to help 9th–12th graders pace the recruiting process without burnout.",
    duration: 47,
    category: "recruiting",
    instructor: "Josh Nashed",
    role: "College Recruiting Specialist",
    views: 128,
    thumb: "url('assets/recruiting-thumb.png') center/cover, linear-gradient(135deg, #2B8C8C 0%, #1f6666 100%)",
    completed: true,
    watchedSeconds: 2820,
    resources: [
      { name: "Recruiting Timeline Worksheet (9th–12th)", type: "PDF", size: "412 KB" },
      { name: "Family Conversation Starters", type: "DOCX", size: "88 KB" },
      { name: "Session Slides", type: "PDF", size: "3.2 MB" },
    ],
  },
  {
    id: "ts-mar-26",
    date: "2026-03-01",
    title: "Recognizing Burnout in Student-Athletes",
    subtitle: "Evidence-based screening cues and first-conversation scripts.",
    duration: 52,
    category: "mental_health",
    instructor: "Jordan Reyes, CMPC",
    role: "Certified Mental Performance Consultant",
    views: 203,
    thumb: "url('assets/burnout-thumb.jpg') center/cover, linear-gradient(135deg, #1B3D2F 0%, #2C5C44 100%)",
    completed: true,
    watchedSeconds: 3120,
    resources: [
      { name: "Burnout Screening Checklist", type: "PDF", size: "220 KB" },
      { name: "Warm Handoff Script (to clinicians)", type: "PDF", size: "180 KB" },
    ],
  },
  {
    id: "ts-feb-26",
    date: "2026-02-01",
    title: "NCAA Eligibility Center — 2026 Updates",
    subtitle: "What's changed for DI/DII core-course and amateurism certification.",
    duration: 38,
    category: "ncaa",
    instructor: "Josh Nashed",
    role: "NCAA Eligibility Specialist",
    views: 241,
    thumb: "url('assets/ncaa-thumb.png') center/cover, linear-gradient(135deg, #E8A020 0%, #c4861a 100%)",
    completed: true,
    watchedSeconds: 2280,
    resources: [
      { name: "2026 DI/DII Core Course Ref Sheet", type: "PDF", size: "520 KB" },
      { name: "Amateurism FAQ for Families", type: "PDF", size: "310 KB" },
    ],
  },
  {
    id: "ts-jan-26",
    date: "2026-01-01",
    title: "The College Admissions Process as a Student-Athlete",
    subtitle: "Strategies and timelines based on athletic recruiting factors.",
    duration: 41,
    category: "academic",
    instructor: "Jimmy Meuel",
    role: "Student-Athlete Counselor",
    views: 176,
    thumb: "url('assets/admissions-thumb.jpg') center/cover, linear-gradient(135deg, #2B8C8C 0%, #14504F 100%)",
    completed: true,
    watchedSeconds: 2460,
    resources: [
      { name: "Multi-Sport Academic Calendar Template", type: "XLSX", size: "42 KB" },
      { name: "Counselor's Course-Mapping Guide", type: "PDF", size: "1.1 MB" },
    ],
  },
  {
    id: "ts-dec-25",
    date: "2025-12-01",
    title: "Performance Anxiety in Student-Athletes",
    subtitle: "Skills and tools to help athletes stay calm and perform under pressure.",
    duration: 55,
    category: "mental_health",
    instructor: "Dr. Tracy Raman",
    role: "Clinical Psychologist, NAMI Faculty",
    views: 189,
    thumb: "url('assets/mhfa-thumb.jpg') center/cover, linear-gradient(135deg, #1B3D2F 0%, #E07830 100%)",
    completed: true,
    watchedSeconds: 3300,
    resources: [
      { name: "MHFA Conversation Guide", type: "PDF", size: "680 KB" },
      { name: "Crisis Line Reference Card", type: "PDF", size: "94 KB" },
    ],
  },
  {
    id: "ts-nov-25",
    date: "2025-11-01",
    title: "'Mental Resilience' with MLB Player Ky Bush",
    subtitle: "Mastering the mental game as an athlete.",
    duration: 44,
    category: "mental_health",
    instructor: "Ky Bush",
    role: "MLB Player",
    views: 158,
    thumb: "url('assets/continue-watching.png') center/cover, linear-gradient(135deg, #E8A020 0%, #1B3D2F 100%)",
    completed: false,
    watchedSeconds: 880,
    resources: [
      { name: "Division Comparison Matrix", type: "PDF", size: "290 KB" },
      { name: "NAIA Eligibility Quickstart", type: "PDF", size: "340 KB" },
    ],
  },
];

const RESOURCES = [
  { id: "r1", title: "Recruiting Timeline Worksheet — 9th to 12th Grade", category: "recruiting", type: "PDF", size: "412 KB", downloads: 18, shares: 9, updated: "2026-04-02", featured: true, pinned: true },
  { id: "r2", title: "Family Conversation Starters: College Fit", category: "recruiting", type: "DOCX", size: "88 KB", downloads: 14, shares: 5, updated: "2026-04-02" },
  { id: "r3", title: "Division I vs. II vs. III: Comparison Matrix", category: "recruiting", type: "PDF", size: "290 KB", downloads: 22, shares: 11, updated: "2025-11-14" },
  { id: "r4", title: "Coach Outreach Email Templates (6 variations)", category: "recruiting", type: "DOCX", size: "54 KB", downloads: 31, shares: 17, updated: "2026-02-18", featured: true },
  { id: "r5", title: "Highlight Reel Submission Checklist", category: "recruiting", type: "PDF", size: "210 KB", downloads: 19, shares: 6, updated: "2026-01-09" },

  { id: "r6", title: "Burnout Screening Checklist", category: "mental_health", type: "PDF", size: "220 KB", downloads: 27, shares: 14, updated: "2026-03-05", pinned: true },
  { id: "r7", title: "Warm Handoff Script to Clinical Support", category: "mental_health", type: "PDF", size: "180 KB", downloads: 16, shares: 8, updated: "2026-03-05" },
  { id: "r8", title: "Anxiety & Performance: Student-Facing Handout", category: "mental_health", type: "PDF", size: "340 KB", downloads: 24, shares: 19, updated: "2026-02-01", featured: true },
  { id: "r9", title: "Crisis Line Reference Card (printable)", category: "mental_health", type: "PDF", size: "94 KB", downloads: 38, shares: 22, updated: "2025-12-10" },
  { id: "r10", title: "Family Mental Wellness Conversation Guide", category: "mental_health", type: "PDF", size: "410 KB", downloads: 12, shares: 4, updated: "2025-12-10" },

  { id: "r11", title: "Multi-Sport Academic Calendar Template", category: "academic", type: "XLSX", size: "42 KB", downloads: 21, shares: 10, updated: "2026-01-12", pinned: true },
  { id: "r12", title: "Core Course Planning Worksheet (NCAA-aligned)", category: "academic", type: "PDF", size: "380 KB", downloads: 29, shares: 15, updated: "2026-01-12", featured: true },
  { id: "r13", title: "Study Block Planner for In-Season Athletes", category: "academic", type: "PDF", size: "260 KB", downloads: 17, shares: 9, updated: "2025-10-22" },
  { id: "r14", title: "Teacher Communication Templates (travel weeks)", category: "academic", type: "DOCX", size: "60 KB", downloads: 11, shares: 3, updated: "2025-10-22" },

  { id: "r15", title: "2026 NCAA DI Core Course Reference Sheet", category: "ncaa", type: "PDF", size: "520 KB", downloads: 33, shares: 16, updated: "2026-02-03", pinned: true, featured: true },
  { id: "r16", title: "Amateurism FAQ for Families", category: "ncaa", type: "PDF", size: "310 KB", downloads: 20, shares: 12, updated: "2026-02-03" },
  { id: "r17", title: "Eligibility Center Registration Walkthrough", category: "ncaa", type: "PDF", size: "440 KB", downloads: 15, shares: 7, updated: "2025-09-18" },
  { id: "r18", title: "Transcript Submission Checklist — by Grade", category: "ncaa", type: "PDF", size: "190 KB", downloads: 26, shares: 13, updated: "2025-09-18" },
];

const COUNSELOR = {
  name: "Rachel Kim",
  initials: "RK",
  school: "Westbrook High School",
  district: "Cascade USD #47",
  role: "School Counselor",
  joined: "2025-09-01",
};

const ADMIN = {
  name: "Dr. Evan Torres",
  initials: "ET",
  role: "District Administrator",
  district: "Cascade USD #47",
};

const IMPACT = {
  streak: 14,
  minutesThisMonth: 184,
  minutesAllTime: 762,
  videosCompleted: 5,
  totalVideos: 6,
  resourcesDownloaded: 23,
  resourcesShared: 14,
  rank: 4,
  totalInDistrict: 38,
  byCategory: [
    { cat: "recruiting", engagement: 42 },
    { cat: "mental_health", engagement: 34 },
    { cat: "academic", engagement: 16 },
    { cat: "ncaa", engagement: 8 },
  ],
  weeklyMinutes: [22, 41, 18, 35, 28, 24, 16], // last 7 weeks
  milestones: [
    { id: "m1", title: "First Session Complete", desc: "Watched your first training end-to-end", earned: true, earnedDate: "2025-09-12", icon: "check" },
    { id: "m2", title: "Resource Sharer", desc: "Shared 10+ resources with student-athletes", earned: true, earnedDate: "2025-11-03", icon: "share" },
    { id: "m3", title: "Two-Week Streak", desc: "Logged in 14 days in a row", earned: true, earnedDate: "2026-04-15", icon: "flame" },
    { id: "m4", title: "Full Curriculum", desc: "Complete all 6 monthly sessions", earned: false, progress: 5, total: 6, icon: "trophy" },
    { id: "m5", title: "Whole-Athlete Advocate", desc: "Engage with all 4 pillars in one month", earned: false, progress: 3, total: 4, icon: "heart" },
    { id: "m6", title: "1,000 Minutes Club", desc: "Reach 1,000 minutes of training", earned: false, progress: 762, total: 1000, icon: "medal" },
  ],
  painPoints: [
    { theme: "Amateurism rule changes for 2026", mentions: 7, trend: "up" },
    { theme: "Supporting athletes after transfer portal news", mentions: 5, trend: "up" },
    { theme: "Families asking about NIL at high-school level", mentions: 4, trend: "flat" },
    { theme: "Balancing AP course loads in-season", mentions: 3, trend: "down" },
  ],
  recentActivity: [
    { when: "Today, 9:14 AM", action: "Downloaded", target: "2026 NCAA DI Core Course Reference Sheet", kind: "download" },
    { when: "Today, 8:52 AM", action: "Watched", target: "Building a Balanced Recruiting Plan", detail: "47 min · complete", kind: "watch" },
    { when: "Yesterday", action: "Shared", target: "Burnout Screening Checklist", detail: "with 3 student-athletes", kind: "share" },
    { when: "Apr 14", action: "Completed", target: "Recognizing Burnout in Student-Athletes", detail: "earned Mental Health First Responder badge", kind: "complete" },
    { when: "Apr 12", action: "Asked Support", target: "How to export a counselor report", kind: "support" },
  ],
};

// Counselor's caseload — student-athletes assigned to Rachel Kim
const STUDENTS = [
  { id: "s01", name: "Marcus Johnson",   grade: 12, sports: ["Football", "Track"],       gpa: 3.6, status: "committed", flags: [],                                            email: "mjohnson@westbrook.k12", lastContact: "2026-04-12" },
  { id: "s02", name: "Aisha Patel",      grade: 11, sports: ["Soccer"],                  gpa: 3.9, status: "active",    flags: ["recruiting-window"],                         email: "apatel@westbrook.k12",  lastContact: "2026-04-18" },
  { id: "s03", name: "Diego Ramirez",    grade: 11, sports: ["Baseball", "Basketball"],  gpa: 3.4, status: "active",    flags: ["recruiting-window"],                         email: "dramirez@westbrook.k12",lastContact: "2026-04-09" },
  { id: "s04", name: "Sofia Nguyen",     grade: 10, sports: ["Volleyball"],              gpa: 3.8, status: "active",    flags: [],                                            email: "snguyen@westbrook.k12", lastContact: "2026-03-30" },
  { id: "s05", name: "Tyler Brooks",     grade: 12, sports: ["Football"],                gpa: 3.2, status: "active",    flags: ["academic-watch"],                            email: "tbrooks@westbrook.k12", lastContact: "2026-04-20" },
  { id: "s06", name: "Olivia Chen",      grade: 9,  sports: ["Tennis", "Swim"],          gpa: 4.0, status: "active",    flags: [],                                            email: "ochen@westbrook.k12",   lastContact: "2026-04-02" },
  { id: "s07", name: "Jamal Williams",   grade: 11, sports: ["Basketball"],              gpa: 3.5, status: "active",    flags: ["recruiting-window"],                         email: "jwilliams@westbrook.k12",lastContact: "2026-04-15" },
  { id: "s08", name: "Emma Larsen",      grade: 12, sports: ["Soccer", "Track"],         gpa: 3.7, status: "active",    flags: ["wellness-followup"],                         email: "elarsen@westbrook.k12", lastContact: "2026-04-19" },
  { id: "s09", name: "Noah Kim",         grade: 10, sports: ["Cross Country"],           gpa: 3.6, status: "active",    flags: [],                                            email: "nkim@westbrook.k12",    lastContact: "2026-03-28" },
  { id: "s10", name: "Mia Rodriguez",    grade: 11, sports: ["Softball"],                gpa: 3.3, status: "active",    flags: ["recruiting-window", "academic-watch"],       email: "mrodriguez@westbrook.k12",lastContact: "2026-04-11" },
  { id: "s11", name: "Ethan Park",       grade: 9,  sports: ["Wrestling"],               gpa: 3.5, status: "active",    flags: [],                                            email: "epark@westbrook.k12",   lastContact: "2026-04-04" },
  { id: "s12", name: "Zoe Williams",     grade: 12, sports: ["Lacrosse"],                gpa: 3.9, status: "committed", flags: [],                                            email: "zwilliams@westbrook.k12",lastContact: "2026-04-17" },
  { id: "s13", name: "Caleb Foster",     grade: 10, sports: ["Football", "Baseball"],    gpa: 3.4, status: "active",    flags: [],                                            email: "cfoster@westbrook.k12", lastContact: "2026-04-08" },
  { id: "s14", name: "Hannah Liu",       grade: 11, sports: ["Volleyball", "Track"],     gpa: 3.8, status: "active",    flags: ["recruiting-window"],                         email: "hliu@westbrook.k12",    lastContact: "2026-04-14" },
  { id: "s15", name: "Isaiah Davis",     grade: 12, sports: ["Basketball"],              gpa: 3.1, status: "active",    flags: ["academic-watch", "wellness-followup"],       email: "idavis@westbrook.k12", lastContact: "2026-04-21" },
  { id: "s16", name: "Riley O'Connor",   grade: 9,  sports: ["Soccer"],                  gpa: 3.7, status: "active",    flags: [],                                            email: "roconnor@westbrook.k12",lastContact: "2026-03-25" },
  { id: "s17", name: "Layla Ahmed",      grade: 10, sports: ["Tennis"],                  gpa: 3.9, status: "active",    flags: [],                                            email: "lahmed@westbrook.k12", lastContact: "2026-04-06" },
  { id: "s18", name: "Brayden Cooper",   grade: 11, sports: ["Baseball"],                gpa: 3.6, status: "active",    flags: ["recruiting-window"],                         email: "bcooper@westbrook.k12",lastContact: "2026-04-13" },
  { id: "s19", name: "Naomi Garcia",     grade: 12, sports: ["Swim"],                    gpa: 3.8, status: "active",    flags: [],                                            email: "ngarcia@westbrook.k12",lastContact: "2026-04-16" },
  { id: "s20", name: "Owen Bennett",     grade: 9,  sports: ["Football"],                gpa: 3.3, status: "active",    flags: [],                                            email: "obennett@westbrook.k12",lastContact: "2026-04-01" },
  { id: "s21", name: "Priya Shah",       grade: 11, sports: ["Cross Country", "Track"],  gpa: 4.0, status: "active",    flags: ["recruiting-window"],                         email: "pshah@westbrook.k12",  lastContact: "2026-04-18" },
  { id: "s22", name: "Lucas Hayes",      grade: 10, sports: ["Lacrosse"],                gpa: 3.5, status: "active",    flags: [],                                            email: "lhayes@westbrook.k12", lastContact: "2026-04-05" },
  { id: "s23", name: "Grace Sullivan",   grade: 12, sports: ["Volleyball"],              gpa: 3.7, status: "active",    flags: ["wellness-followup"],                         email: "gsullivan@westbrook.k12",lastContact: "2026-04-20" },
  { id: "s24", name: "Andre Thompson",   grade: 11, sports: ["Football", "Wrestling"],   gpa: 3.4, status: "active",    flags: ["recruiting-window"],                         email: "athompson@westbrook.k12",lastContact: "2026-04-10" },
  { id: "s25", name: "Bella Reyes",      grade: 9,  sports: ["Softball"],                gpa: 3.6, status: "active",    flags: [],                                            email: "breyes@westbrook.k12", lastContact: "2026-03-29" },
  { id: "s26", name: "Kai Tanaka",       grade: 10, sports: ["Soccer", "Track"],         gpa: 3.9, status: "active",    flags: [],                                            email: "ktanaka@westbrook.k12",lastContact: "2026-04-07" },
  { id: "s27", name: "Sienna Walsh",     grade: 12, sports: ["Tennis"],                  gpa: 4.0, status: "committed", flags: [],                                            email: "swalsh@westbrook.k12", lastContact: "2026-04-19" },
  { id: "s28", name: "Mateo Vasquez",    grade: 11, sports: ["Basketball", "Track"],     gpa: 3.5, status: "active",    flags: ["recruiting-window"],                         email: "mvasquez@westbrook.k12",lastContact: "2026-04-12" },
];

window.DATA = { TAGS, TRAINING_SESSIONS, RESOURCES, COUNSELOR, ADMIN, IMPACT, STUDENTS, ADDITIONAL_RESOURCES };
