// data.jsx — mock data for the prototype

// Two courses only: ICSE Class 10 Computer Applications, ISC Class 12 Computer Science.
// Both are Java-based in the CISCE syllabus.

const COURSE_DATA = {
  icse10: {
    id: "icse10",
    name: "ICSE Class 10 — Computer Applications",
    code: "ICSE-X",
    board: "ICSE",
    chapters: [
      { id: "ch1", title: "Class as the Basis of All Computation", duration: "1h 38m", free: true,  desc: "Objects, classes, attributes & methods — the OOP foundation ICSE expects." },
      { id: "ch2", title: "User-Defined Methods",                  duration: "1h 52m", free: false, desc: "Method signatures, parameters, return types, pure vs impure methods." },
      { id: "ch3", title: "Constructors",                          duration: "1h 24m", free: false, desc: "Default, parameterised & copy constructors. Common board pitfalls." },
      { id: "ch4", title: "Library Classes & Wrapper Classes",     duration: "1h 46m", free: false, desc: "Integer, Character, String, Math — what ICSE always asks." },
      { id: "ch5", title: "Encapsulation",                         duration: "1h 12m", free: false, desc: "Access modifiers, getters/setters, scope of variables." },
      { id: "ch6", title: "Arrays & String Handling",              duration: "2h 28m", free: false, desc: "1D arrays, sorting, searching, String functions for ICSE." },
    ],
  },
  isc12: {
    id: "isc12",
    name: "ISC Class 12 — Computer Science",
    code: "ISC-XII",
    board: "ISC",
    chapters: [
      { id: "ch1", title: "Object-Oriented Methodology in Java",   duration: "2h 12m", free: true,  desc: "Classes, objects, encapsulation — the ISC 70-mark theory bedrock." },
      { id: "ch2", title: "Inheritance & Polymorphism",            duration: "2h 38m", free: false, desc: "Single, multilevel, hierarchical inheritance. Method overriding for the ISC paper." },
      { id: "ch3", title: "Recursion",                             duration: "2h 04m", free: false, desc: "Recursive thinking, stack of calls, classic ISC recursion problems." },
      { id: "ch4", title: "Arrays & 2D Arrays",                    duration: "2h 22m", free: false, desc: "Linear search, binary search, sorting — every ISC long-answer pattern." },
      { id: "ch5", title: "Data Structures: Stacks, Queues, Linked Lists", duration: "3h 04m", free: false, desc: "ISC implementations with self-referential classes." },
      { id: "ch6", title: "Complexity & Sorting",                  duration: "2h 14m", free: false, desc: "Big-O, bubble, selection, insertion — the 4-mark complexity asks." },
    ],
  },
};

const TESTIMONIALS = [
  { name: "Ananya Krishnan",  score: "98/100", board: "ISC",  year: "2024", course: "ISC Class 12", quote: "Revathi ma'am made the ISC OOP paper feel almost easy. Her trick to spot 'this' keyword traps in the theory section saved me at least 6 marks." },
  { name: "Rohan Mehta",      score: "97/100", board: "ICSE", year: "2024", course: "ICSE Class 10", quote: "I came in scared of Java. By the ICSE pre-boards I was writing constructor-overloading programs from scratch. The library-class drills were gold." },
  { name: "Sneha Pillai",     score: "96/100", board: "ISC",  year: "2024", course: "ISC Class 12", quote: "The ISC practical prep was the best part. We did 12 full mock practicals — by exam day the lab felt routine." },
  { name: "Karthik Iyer",     score: "95/100", board: "ICSE", year: "2024", course: "ICSE Class 10", quote: "My ICSE Computer Applications project was reviewed twice before I submitted. Ma'am's feedback was the reason I got full marks on it." },
  { name: "Priya Sundaram",   score: "99/100", board: "ISC",  year: "2024", course: "ISC Class 12", quote: "She breaks down recursion and linked lists so clearly that the ISC long-answer questions stop being scary. I finished the paper with 30 minutes to spare." },
  { name: "Aarav Nair",       score: "94/100", board: "ISC",  year: "2023", course: "ISC Class 12", quote: "I joined mid-October, four months before ISC boards. The recordings let me catch up in three weeks. Cleared with 94 in CS." },
];

const RESULTS = [
  { name: "Priya Sundaram",  score: 99, board: "ISC",  year: 2024 },
  { name: "Ananya Krishnan", score: 98, board: "ISC",  year: 2024 },
  { name: "Rohan Mehta",     score: 97, board: "ICSE", year: 2024 },
  { name: "Sneha Pillai",    score: 96, board: "ISC",  year: 2024 },
  { name: "Karthik Iyer",    score: 95, board: "ICSE", year: 2024 },
  { name: "Aarav Nair",      score: 94, board: "ISC",  year: 2023 },
  { name: "Diya Raghav",     score: 93, board: "ICSE", year: 2023 },
  { name: "Vihaan Gupta",    score: 92, board: "ISC",  year: 2023 },
];

const FAQS = [
  { q: "Which courses do you teach?",
    a: "Only two — ICSE Class 10 Computer Applications and ISC Class 12 Computer Science. Both are Java-based, and both are taught by Revathi personally to small batches." },
  { q: "Will the ICSE board pattern be followed for practice papers?",
    a: "Yes. All ICSE mock papers use the exact two-hour format and section weightage as the latest ICSE Computer Applications board paper. Marking is done strictly per the official scheme." },
  { q: "What's included in the monthly subscription?",
    a: "Two live classes per week, recordings of every class, weekly practice sheets, and access to the WhatsApp doubt channel. Everything for ₹1800/month per course." },
  { q: "Can I join mid-batch?",
    a: "Yes. All recordings from the start of the batch are available immediately, so you can catch up at your own pace before the next live class." },
  { q: "Are the recordings limited time?",
    a: "Recordings remain available for the full duration of your enrolment — through to the board exam for that academic year." },
  { q: "How are payments handled?",
    a: "All payments are processed securely via Razorpay. You can pay using UPI, cards, net banking, or wallets. Monthly billing, cancel anytime." },
];

const RECORDINGS = [
  // ISC Class 12 batch — what an enrolled ISC student sees
  { id: "r12",  chapter: "Inheritance & Polymorphism",         title: "Method Overriding — Live Class",      date: "Aug 14, 2025", duration: "1h 32m" },
  { id: "r11",  chapter: "Inheritance & Polymorphism",         title: "Single & Multilevel Inheritance",    date: "Aug 11, 2025", duration: "1h 28m" },
  { id: "r10",  chapter: "Inheritance & Polymorphism",         title: "super keyword + ISC theory drill",    date: "Aug 07, 2025", duration: "1h 18m" },
  { id: "r9",   chapter: "Inheritance & Polymorphism",         title: "Practice + Doubts Session",           date: "Aug 04, 2025", duration: "0h 56m" },
  { id: "r8",   chapter: "Object-Oriented Methodology in Java", title: "Encapsulation & Access Modifiers",   date: "Jul 31, 2025", duration: "1h 12m" },
  { id: "r7",   chapter: "Object-Oriented Methodology in Java", title: "Constructors Deep Dive",             date: "Jul 28, 2025", duration: "1h 24m" },
  { id: "r6",   chapter: "Object-Oriented Methodology in Java", title: "Classes & Objects — ISC Pattern",    date: "Jul 24, 2025", duration: "1h 08m" },
  { id: "r5",   chapter: "Object-Oriented Methodology in Java", title: "this keyword & object initialisation", date: "Jul 21, 2025", duration: "1h 02m" },
  { id: "r4",   chapter: "Orientation",                         title: "Welcome + ISC Syllabus Walkthrough",  date: "Jul 17, 2025", duration: "0h 48m" },
];

const ADMIN_STUDENTS = [
  { name: "Ananya Krishnan",  email: "ananya.k@gmail.com",   phone: "+91 98765 43210", cls: "12", board: "ISC",  status: "active",   batch: "ISC-XII Aug"  },
  { name: "Rohan Mehta",      email: "rohan.m@outlook.com",  phone: "+91 98765 43211", cls: "10", board: "ICSE", status: "active",   batch: "ICSE-X Aug"   },
  { name: "Sneha Pillai",     email: "snehap@gmail.com",     phone: "+91 98765 43212", cls: "12", board: "ISC",  status: "active",   batch: "ISC-XII Aug"  },
  { name: "Karthik Iyer",     email: "kiyer@yahoo.com",      phone: "+91 98765 43213", cls: "12", board: "ISC",  status: "expired",  batch: "ISC-XII May"  },
  { name: "Priya Sundaram",   email: "priya.s@gmail.com",    phone: "+91 98765 43214", cls: "10", board: "ICSE", status: "active",   batch: "ICSE-X Aug"   },
  { name: "Aarav Nair",       email: "aarav.n@gmail.com",    phone: "+91 98765 43215", cls: "12", board: "ISC",  status: "active",   batch: "ISC-XII Aug"  },
  { name: "Diya Raghav",      email: "diya.r@gmail.com",     phone: "+91 98765 43216", cls: "10", board: "ICSE", status: "pending",  batch: "—"            },
  { name: "Vihaan Gupta",     email: "vihaang@gmail.com",    phone: "+91 98765 43217", cls: "12", board: "ISC",  status: "active",   batch: "ISC-XII Aug"  },
  { name: "Maya Reddy",       email: "mayar@gmail.com",      phone: "+91 98765 43218", cls: "10", board: "ICSE", status: "active",   batch: "ICSE-X Aug"   },
  { name: "Arjun Suresh",     email: "arjun.s@gmail.com",    phone: "+91 98765 43219", cls: "12", board: "ISC",  status: "expired",  batch: "ISC-XII May"  },
];

const ADMIN_BATCHES = [
  { name: "ISC-XII Aug 2025", course: "ISC Class 12 — Computer Science",      start: "Aug 04, 2025", students: 38, schedule: "Mon, Thu • 7:00–8:30 PM", zoom: "https://meet.google.com/abc-xyz-pqr", active: true  },
  { name: "ICSE-X Aug 2025",  course: "ICSE Class 10 — Computer Applications", start: "Aug 06, 2025", students: 24, schedule: "Tue, Fri • 6:00–7:30 PM", zoom: "https://meet.google.com/def-uvw-mno", active: true  },
  { name: "ISC-XII May 2025", course: "ISC Class 12 — Computer Science",      start: "May 12, 2025", students: 32, schedule: "Mon, Thu • 7:00–8:30 PM", zoom: "https://meet.google.com/ghi-rst-jkl", active: false },
  { name: "ICSE-X May 2025",  course: "ICSE Class 10 — Computer Applications", start: "May 14, 2025", students: 18, schedule: "Tue, Fri • 6:00–7:30 PM", zoom: "https://meet.google.com/jkl-mno-pqr", active: false },
];

const ADMIN_PAYMENTS = [
  { name: "Maya Reddy",      batch: "ICSE-X Aug",  amount: 1800, rzp: "pay_QF8gN2qWxLnVbT", status: "paid",    date: "Aug 12, 2025" },
  { name: "Aarav Nair",      batch: "ISC-XII Aug", amount: 1800, rzp: "pay_QF7tR9pYzKjUaS", status: "paid",    date: "Aug 11, 2025" },
  { name: "Diya Raghav",     batch: "ICSE-X Aug",  amount: 1800, rzp: "pay_QF7kL5mXcDgRfQ", status: "failed",  date: "Aug 10, 2025" },
  { name: "Vihaan Gupta",    batch: "ISC-XII Aug", amount: 1800, rzp: "pay_QF6nJ8oVbAhEdP", status: "paid",    date: "Aug 09, 2025" },
  { name: "Priya Sundaram",  batch: "ICSE-X Aug",  amount: 1800, rzp: "pay_QF5pM3lWaZfCdO", status: "paid",    date: "Aug 08, 2025" },
  { name: "Sneha Pillai",    batch: "ISC-XII Aug", amount: 1800, rzp: "pay_QF4rN1kVbYeBcN", status: "paid",    date: "Aug 07, 2025" },
  { name: "Karthik Iyer",    batch: "ISC-XII Aug", amount: 1800, rzp: "pay_QF3sQ7jUaXdAbM", status: "created", date: "Aug 06, 2025" },
  { name: "Rohan Mehta",     batch: "ICSE-X Aug",  amount: 1800, rzp: "pay_QF2tR4iTzWcZaL", status: "paid",    date: "Aug 05, 2025" },
  { name: "Ananya Krishnan", batch: "ISC-XII Aug", amount: 1800, rzp: "pay_QF1uS2hSyVbYZaK", status: "paid",    date: "Aug 05, 2025" },
];

Object.assign(window, {
  COURSE_DATA, TESTIMONIALS, RESULTS, FAQS, RECORDINGS,
  ADMIN_STUDENTS, ADMIN_BATCHES, ADMIN_PAYMENTS,
});
