/* global window */
/* CartoonforChrist v2 — content data
 * Single source of truth for songs, books, sections, links.
 */

const SECTIONS = [
  { id: "watch",   href: "songs.html",    title: "Songs",         sub: "Scripture you can sing — Hindi & English",  num: "01", glyph: "🎵" },
  { id: "draw",    href: "cdbs.html",     title: "Colour & Draw", sub: "Five years of drawing through the Bible",  num: "02", glyph: "✏️" },
  { id: "play",    href: "socho.html",    title: "Socho Kids",    sub: "Discovering God through everyday science", num: "03", glyph: "🔬" },
  { id: "read",    href: "projects.html", title: "Our Projects",  sub: "Bible Buddies · Berean Play · community",  num: "04", glyph: "📱" },
  { id: "connect", href: "contest.html",  title: "Contest 2026",  sub: "Kids singing contest · entries open",       num: "05", glyph: "🎤" },
  { id: "explore", href: "explore.html",  title: "Explore",       sub: "100+ hobbies & skills to discover",         num: "06", glyph: "🧭" },
  { id: "learn",   href: "learn.html",    title: "How We Learn",  sub: "Our family learning playbook",              num: "07", glyph: "🧠" },
];

const LINKS = {
  youtube:      "https://www.youtube.com/@cartoonforchrist",
  ytEnglish:    "https://youtube.com/playlist?list=PLMMwMhj_cZZ5Ionp68eSmWB8nmCn1ja6g",
  ytHindi:      "https://youtube.com/playlist?list=PLMMwMhj_cZZ6d_R8OLt6t3uWro2tA5l9-",
  cdbsEnglish:  "https://youtube.com/playlist?list=PL_zwO2E6LyLJUq9r68bF-zXd8lw_phslx",
  cdbsHindi:    "https://youtube.com/playlist?list=PL_zwO2E6LyLJnofW5NCpVccQYMmDB4uwr",
  bibleBuddies: "https://biblebuddies.space",
  playStore:    "https://play.google.com/store/apps/details?id=com.kidsbiblechat.app",
  contestForm:  "contest.html",
  entryForm:    "https://forms.gle/yXTLfC4nij419n9c6",
  sochoYtEnglish: "https://www.youtube.com/playlist?list=PLMMwMhj_cZZ7lEpFc9ZJyUyhphqD_SVhi",
  sochoYtHindi:   "https://www.youtube.com/playlist?list=PLMMwMhj_cZZ5euDYycpx4P7PfZfyUsVv0",
  sochoPdfDrive:  "https://drive.google.com/drive/u/4/folders/1PAdbo_74k6eCn3xyTfykF7mZ6dpTM7MP",
  // Pre-filled WhatsApp message for buying a single Socho Kids issue (Rs. 100)
  sochoBuyWhatsApp: (issueNum, theme) =>
    `https://wa.me/919218612304?text=${encodeURIComponent(`Hi! I'd like to order Socho Kids Issue ${String(issueNum).padStart(2,"0")} — ${theme} (₹100). Please share payment details.`)}`,
  email:        "cartoonforchrist@gmail.com",
  // Google Apps Script Web App URL that saves form submissions to a Google
  // Sheet and emails cartoonforchrist@gmail.com. Paste the /exec URL here after
  // deploying the script in forms-backend/Code.gs (see forms-backend/SETUP.md).
  // Until set, forms still show the thank-you message but nothing is saved.
  formsEndpoint: "https://script.google.com/macros/s/AKfycbyHf7C7TPFWWZm-bD7MQZDMf-2pSaBicLeb5IYPinwKBHvFWR-qMnPziiTRnFyaix9a/exec",
  spotify:      "https://open.spotify.com/artist/1JfQwIEp86lDlFRJoZe1sE?si=4wBHr5z5Qv6vqqp_euIuSw",
  spotifyEmbed: "https://open.spotify.com/embed/artist/1JfQwIEp86lDlFRJoZe1sE?utm_source=generator",
  whatsapp:     "+91 92186 12304",
  whatsappUrl:  "https://wa.me/919218612304",
  whatsappGroup: "https://chat.whatsapp.com/DfXZDSP75CNK90rM0W86eD",
};

const yt = (id) => `https://youtu.be/${id}`;

const SONG_GROUPS = [
  {
    id: "parables",
    prefix: "Pa",
    title: "Parables of Jesus",
    color: "var(--cfc-pink)",
    glyph: "🌱",
    blurb: "Stories Jesus told — set to song so your kids carry them home.",
    songs: [
      { n: 1, title: "Root Down",            ref: "Parable of the Sower · Matthew 13",       en: yt("ubU9wmMIovw"), hi: yt("KBbdj8QjVKc") },
      { n: 2, title: "Worth It All",         ref: "The Treasure in the Field · Matt 13:44",   en: yt("LQ0-OG0Sa64"), hi: yt("LOkZU_ZVu60") },
      { n: 3, title: "Multiply It",          ref: "Parable of the Talents · Matthew 25",      en: yt("tZl8jPE3Bqw"), hi: yt("Y29x9v3nIX4") },
      { n: 4, title: "Lost Lamb",            ref: "The Lost Sheep · Luke 15",                  en: yt("qoFagicei0I"), hi: yt("WwsIPEv5JdY") },
      { n: 5, title: "Build on the Rock",    ref: "Wise & Foolish Builders · Matthew 7",       en: yt("x8seqhHLBOI"), hi: yt("0y4TJZmWlrA") },
      { n: 6, title: "Someone Stopped For Me", ref: "The Good Samaritan · Luke 10",            en: yt("Da31p7F4RWg"), hi: yt("Xi8pPF1zDPU") },
      { n: 7, title: "I'm Coming Home",      ref: "The Prodigal Son · Luke 15",                en: yt("ea8CCiuA2m4"), hi: yt("ZUuZuymKb-8") },
    ],
  },
  {
    id: "john",
    prefix: "Jn",
    title: "Gospel of John",
    color: "var(--cfc-blue)",
    glyph: "📖",
    blurb: "Walking through John's gospel verse by verse, song by song.",
    songs: [
      { n: 8,  title: "The Light Wins",       ref: "John 1:1–5",   en: yt("sFrLHAKfbZk"), hi: null },
      { n: 9,  title: "I'm God's Kid",        ref: "John 1:12",    en: yt("eBrcdXjI8Ds"), hi: null },
      { n: 10, title: "Bring Your Real Self", ref: "John 2:23–25", en: yt("yGQGd83B9rs"), hi: yt("Vq_xmYLbvXw") },
      { n: 11, title: "God So Loved",         ref: "John 3:16",    en: yt("bRN7fE5TImg"), hi: yt("_dHfhisE8mk") },
    ],
  },
  {
    id: "jesus",
    prefix: "Je",
    title: "Jesus Series · Easter",
    color: "var(--cfc-purple)",
    glyph: "✝️",
    blurb: "Six songs that walk children from the cross through the empty tomb.",
    songs: [
      { n: 12, title: "What Manner of Man?",          ref: "Who Jesus Really Is · #1",                en: yt("RitKihYFWKo"), hi: yt("5AThYW6oJjU") },
      { n: 13, title: "Before the Dust",              ref: "The Lamb Slain From the Foundation · #2", en: yt("FQGZ-V7VAt8"), hi: yt("6vMLHAqnY9Y") },
      { n: 14, title: "Same Cross, Many Responses",   ref: "Who Was at Calvary? · #3",                en: yt("ow1lbrYRlzc"), hi: yt("RdQ8wbtYspI") },
      { n: 15, title: "Only Blood",                   ref: "From Abel to Jesus · #4",                  en: yt("J4lDutDnhNw"), hi: yt("DO-F6Vn6a4E") },
      { n: 16, title: "He Rose To Stay",              ref: "The Resurrected Jesus With Us · #5",      en: yt("rrrBU3lyvDw"), hi: yt("wHsaAenEt5g") },
      { n: 17, title: "If He Did Not Rise",           ref: "The Stakes of the Resurrection · #6",     en: yt("FRxyZ_fX1E4"), hi: yt("vTgcmnj8Inc") },
    ],
  },
  {
    id: "verse",
    prefix: "Vr",
    title: "Special Verse Series",
    color: "var(--cfc-orange)",
    glyph: "💡",
    blurb: "Standalone verses worth memorising — for the whole family.",
    songs: [
      { n: 18, title: "Wide Awake",          ref: "1 Corinthians 10:12",                en: yt("a8Xe1CRRV1w"), hi: yt("_kOMkwLaiZg") },
      { n: 19, title: "Different Logic",     ref: "Isaiah 55:8–9",                      en: yt("0kVjQ0tNRMM"), hi: yt("GaJIecWrsqI") },
      { n: 20, title: "Help Me Look Beyond", ref: "2 Corinthians 4:18 + Romans 1:20",   en: yt("L8PzHbdUbgw"), hi: yt("R3aK9Ju4FSw") },
      { n: 21, title: "Eyes of the Lord",    ref: "2 Chronicles 16:9",                  en: yt("bZeJVfLWG9I"), hi: yt("tl_LCYRBpq4") },
      { n: 22, title: "Rest and Trust",      ref: "Isaiah 30:15–18",                    en: yt("wg1KAoSdEFw"), hi: yt("LX4muYZ52UM") },
    ],
  },
  {
    id: "seasonal",
    prefix: "Se",
    title: "Seasonal",
    color: "var(--cfc-green)",
    glyph: "🌟",
    blurb: "For Christmas, Easter and the seasons families gather.",
    songs: [
      { n: 23, title: "This Was Not a Silent Night", ref: "Original Christmas Song · 2025", en: yt("YKO1zPym9Ug"), hi: yt("r_A2S9Qa9hc") },
    ],
  },
  {
    id: "hindi-only",
    prefix: "Hi",
    title: "Hindi Only",
    color: "var(--cfc-yellow)",
    glyph: "🇮🇳",
    blurb: "Songs created in Hindi first — ambient worship for Indian homes.",
    songs: [
      { n: 24, title: "Complete Book of Psalms (संपूर्ण भजन) · Part 1", ref: "Ambient Worship", en: null, hi: yt("ZFzfUVOxu0k") },
    ],
  },
];

const SOCHO_BOOKS = [
  { n: 1,  theme: "Light",                  emoji: "💡",  color: "var(--cfc-yellow)", enSong: { title: "Jesus Lights My Way",      url: yt("ZAiw8Boml-E") }, hiSong: { title: "यीशु मेरी राहें रोशन करे", url: yt("5D7IcAY5aEA") } },
  { n: 2,  theme: "Design",                 emoji: "📐",  color: "var(--cfc-blue)",   enSong: { title: "The Grand Designer",       url: yt("ppT2wtnqhrA") }, hiSong: { title: "महान कलाकार",                  url: yt("2nua8sZhbj8") } },
  { n: 3,  theme: "Taste",                  emoji: "👅",  color: "var(--cfc-pink)",   enSong: { title: "Yum Yum Yum",              url: yt("w3yEk7jDPsA") }, hiSong: { title: "यम यम यम",                       url: yt("Ycq_Ck4UhVk") } },
  { n: 4,  theme: "Time",                   emoji: "⏳",  color: "var(--cfc-purple)", enSong: { title: "Home with God",            url: yt("mqnh3J9qsiU") }, hiSong: { title: "येशु के साथ हम स्वर्ग में",   url: yt("pX3x_RqK8FU") } },
  { n: 5,  theme: "Water",                  emoji: "💧",  color: "var(--cfc-blue)",   enSong: { title: "Spring Water",             url: yt("Q-RbJLiF8Ws") }, hiSong: { title: "झरने का जल",                   url: yt("1SfqIDcRzPc") } },
  { n: 6,  theme: "Brain",                  emoji: "🧠",  color: "var(--cfc-pink)",   enSong: { title: "Activate My Neurons",      url: yt("j4-4QwvOKNU") }, hiSong: { title: "मेरे न्यूरॉन्स को चला",         url: yt("YWwAJwj0FbI") } },
  { n: 7,  theme: "Colours",                emoji: "🌈",  color: "var(--cfc-orange)", enSong: { title: "Many Colours",             url: yt("uFUuBAiJO5E") }, hiSong: { title: "हजारों रंग",                      url: yt("VZKtIYbEGxc") } },
  { n: 8,  theme: "Sound",                  emoji: "🔊",  color: "var(--cfc-green)",  enSong: { title: "Listen to God",            url: yt("oDxr1r7cDr8") }, hiSong: { title: "सुनो, प्रभु की आवाज़",            url: yt("6v_6J7iqtwQ") } },
  { n: 9,  theme: "Artificial Intelligence", emoji: "🤖", color: "var(--cfc-purple)", enSong: { title: "Artificial Intelligence",  url: yt("4GswDf5OGrs") }, hiSong: { title: "Artificial Intelligence",        url: yt("YerfXsJzO_U") } },
  { n: 10, theme: "Magnets",                emoji: "🧲",  color: "var(--cfc-orange)", enSong: { title: "Jesus My Magnet",          url: yt("_MfEhLK4JHw") }, hiSong: { title: "येशू मेरा चुंबक",                 url: yt("506mi9pNV3s") } },
  { n: 11, theme: "Friction",               emoji: "⚙️",  color: "var(--cfc-yellow)", enSong: { title: "Friction",                 url: yt("OsEH7q5F4Mw") }, hiSong: { title: "घर्षण",                          url: yt("IwLuH6ukHxI") } },
  { n: 12, theme: "Mirror",                 emoji: "🪞",  color: "var(--cfc-green)",  enSong: { title: "Mirror",                   url: yt("hyZX-swsShs") }, hiSong: { title: "आईना",                            url: yt("S7J3D6hzwmI") } },
];

const SOCHO_QUESTIONS = [
  { q: "Did God really make me?",             p: "and why that means you matter" },
  { q: "What's the evidence God created everything?", p: "looking closely at the world around us" },
  { q: "In the beginning was God",            p: "where it all starts" },
  { q: "There's a purpose behind every design", p: "the Designer leaves fingerprints" },
  { q: "His designs are beautiful",            p: "from a single feather to a galaxy" },
  { q: "How the Designer gives meaning to my life", p: "you were made on purpose, for a purpose" },
];

const PROJECTS = [
  {
    id: "bible-buddies-app",
    title: "Bible Buddies Chat",
    tag: "ANDROID APP",
    color: "var(--cfc-pink)",
    fg: "#fff",
    blurb: "What if your child could actually chat with people of the Bible? Its like role play. Ask Moses what it felt like to face the Red Sea, ask Esther where she found her courage, ask David what was going through his mind as he stared down a giant. Get deep answers and discover scripture in a fun way.",
    bullets: ["50+ Bible characters", "45+ languages (multiple language with the same room)", "Talk about a topic / bible passage / about anything", "Group chat or solo"],
    cta: { label: "Install on Google Play →", href: LINKS.playStore },
    icon: "assets/BibleBuddiesChatLogo.png",
    state: "live",
  },
  {
    id: "bible-buddies-space",
    title: "biblebuddies.space",
    tag: "WEB STUDY TOOL",
    color: "var(--cfc-blue)",
    fg: "#fff",
    blurb: "A full Bible study workspace for the whole family. Do deeper study, analyze context, find similar patters across scripture, similar styles, similar events, generate questions to think about etc with 16+ panels to add into your tool set. And you have the choice to ask any character in the Bible to explain a passage to you in their terms using character commentary.",
    bullets: ["Side-by-side translations", "Cross-references & themes", "Scripture Breaker + Pilgrim's Platform games", "Highlights · notes · plans · sync"],
    cta: { label: "Visit biblebuddies.space →", href: LINKS.bibleBuddies },
    icon: "assets/biblebuddies-space-preview.webp",
    iconMode: "screenshot",
    state: "live",
  },
  {
    id: "berean-play",
    title: "Berean Play",
    tag: "COMING SOON",
    color: "var(--cfc-orange)",
    fg: "#fff",
    blurb: "Family game pack with the Bible at the heart of it. Thirty-plus Bible games — word, puzzle, party — all built for families and friends to play together, in person or across the country. Every game runs on difficulty levels so the youngest cousin and the oldest grandparent can play the same round.",
    bullets: ["30+ games · word, puzzle, party", "Quiet solo + lively group modes", "Levels for kids and grandparents", "Bonus games from the CDBS visual language"],
    cta: { label: "Tell us you're interested", href: "mailto:" + LINKS.email + "?subject=Berean Play – early interest" },
    icon: "assets/BereanPlayLogo.png",
    state: "soon",
  },
  {
    id: "community",
    title: "A Christian family community",
    tag: "COMING SOON",
    color: "var(--cfc-green)",
    fg: "var(--cfc-ink)",
    blurb: "No family should have to walk this road alone. A gentle, safe place for Christian families to find one another, encourage each other, pray together, and let their children make friendships that point them toward Jesus.",
    bullets: ["Family-to-family connections", "Moderated kid-safe spaces", "Prayer & encouragement", "An extended family for the isolated home"],
    cta: { label: "Tell us you're interested", href: "mailto:" + LINKS.email + "?subject=Family Community – early interest" },
    icon: "🏠",
    state: "soon",
  },
];

const CONTEST_STEPS = [
  { n: "01", title: "Pick a song",           body: "Choose from any English or Hindi CartoonforChrist song. Sing in one language or enter in both!" },
  { n: "02", title: "Record your video",     body: "Introduce yourself, then sing your chosen song all the way through. Horizontal or vertical, single take preferred, face clearly visible." },
  { n: "03", title: "Join the WhatsApp group", body: "Scan the QR code or tap the link to join our WhatsApp Community for all updates and reminders." },
  { n: "04", title: "Upload your entry", body: "Tap the “Enter now” button to open the entry form and send us your video — parental consent is collected right there." },
];

const CONTEST_JUDGING = [
  { c: "Pitch & clarity",         w: "40%", note: "Stay in key and sing the words so they can be heard." },
  { c: "Expression & joy",        w: "30%", note: "Sing it like you mean it — that's the heart of this." },
  { c: "Pronunciation & diction", w: "20%", note: "Say each word clearly and correctly, so every line comes through." },
  { c: "Presentation",            w: "10%", note: "A tidy frame, clear sound, calm hands behind the camera." },
];

const CONTEST_PRIZES = [
  { title: "Top three per category",      body: "₹5,000 Amazon voucher each (Junior & Senior, English & Hindi)", glyph: "🏆", color: "var(--cfc-yellow)", fg: "var(--cfc-ink)" },
  { title: "Winner's certificate + goodie bag", body: "Hand-printed certificate plus a CartoonforChrist goodie bag", glyph: "🎁", color: "var(--cfc-pink)",   fg: "#fff" },
  { title: "People's Choice award",       body: "Most Loved Video — one per language, decided by YouTube likes",   glyph: "💖", color: "var(--cfc-purple)", fg: "#fff" },
  { title: "Participation e-certificate", body: "Every singer who enters gets one. No exceptions.",                glyph: "🎖️", color: "var(--cfc-blue)",   fg: "#fff" },
];

window.CFC = {
  SECTIONS,
  LINKS,
  SONG_GROUPS,
  SOCHO_BOOKS,
  SOCHO_QUESTIONS,
  PROJECTS,
  CONTEST_STEPS,
  CONTEST_JUDGING,
  CONTEST_PRIZES,
};
