/* ====================================================================
   DATA — hooks, examples, quiz, etc. Globally exposed on window.
==================================================================== */

// 20 Proven viral hook templates — curated from the guides
const HOOKS = [
  { type: "Verbal", text: "If you {action}, {surprising outcome}.", ex: "If you post 1 reel a day for 30 days, your reach 10x's." },
  { type: "Verbal", text: "Not to flex, but I'm pretty good at {your skill}.", ex: "Not to flex, but I'm pretty good at social media marketing." },
  { type: "Verbal", text: "Did you know if you {unusual action}, {result}?", ex: "Did you know if you comment on 10 big accounts a day, your reach grows?" },
  { type: "Verbal", text: "3 levels of {topic}.", ex: "3 levels of Instagram hooks — from bad to viral." },
  { type: "Verbal", text: "How I went from {start} to {end} in {time}.", ex: "How I went from 2 to 30,000 followers in 25 days." },
  { type: "Verbal", text: "Is it possible to {ambitious goal}? Yes.", ex: "Is it possible to grow 10K followers without dancing? Yes." },
  { type: "Verbal", text: "{X} years ago, I was {struggle}. Today, {win}.", ex: "2 years ago, I had 0 followers. Today, my clients do 700M+ views." },
  { type: "Visual", text: "Split-screen: before vs. after.", ex: "Left: boring reel edit. Right: scroll-stopping version." },
  { type: "Visual", text: "Props in hand that tease the payoff.", ex: "Hold up 3 phones, each showing a different reel format." },
  { type: "Visual", text: "You standing mid-action the viewer doesn't expect.", ex: "Start mid-jump, mid-pour, mid-gesture — curiosity gap." },
  { type: "Written", text: "The {adjective} way to {desire}.", ex: "The dumb-simple way to hit 10K followers." },
  { type: "Written", text: "{Number} {topic} mistakes you're still making.", ex: "5 reel mistakes you're still making in 2026." },
  { type: "Written", text: "Watch this before you post again.", ex: "Watch this before you post another reel." },
  { type: "Written", text: "{Niche} creators — read this.", ex: "Coaches — read this before your next post." },
  { type: "Verbal", text: "Two {people} try {task}. One wins.", ex: "Two creators post for 30 days. Only one blows up. Here's why." },
  { type: "Verbal", text: "Rate my {thing} from 1 to 10.", ex: "Rate my first 5 reels from 1 to 10." },
  { type: "Written", text: "Good {thing} / bad {thing}.", ex: "Good hook / bad hook." },
  { type: "Verbal", text: "Smart {person} vs. dumb {person} when it comes to {topic}.", ex: "Smart creator vs. dumb creator when it comes to posting time." },
  { type: "Visual", text: "A bold text card as frame 1 — no face.", ex: "Black frame, huge white text: 'This killed my reach.'" },
  { type: "Verbal", text: "{Number} things I wish I knew before {goal}.", ex: "5 things I wish I knew before hitting my first 10K." },
];

// Niches used in the Niche Finder
const MAIN_NICHES = [
  "Fitness", "Business", "Finance", "Nutrition", "Beauty",
  "Fashion", "Content Creation", "Sales", "Real Estate", "Coaching",
  "Parenting", "Mental Health", "Tech", "Productivity", "Relationships",
];

const SUB_NICHE_MAP = {
  Fitness: ["Lifting technique", "Cardio that works", "Protein & supplements", "Meal prep", "Sleep & recovery", "Six-pack training", "Mobility"],
  Business: ["Lead generation", "Sales systems", "Offer design", "Content marketing", "Founder mindset", "Team & hiring", "Pricing"],
  Finance: ["Investing basics", "Tax hacks", "Money mindset", "Side hustles", "Real estate", "Credit scores", "Early retirement"],
  Nutrition: ["Weight loss", "High-protein meals", "Budget eating", "Gut health", "Supplements", "Myth-busting", "Meal plans"],
  Beauty: ["Skin routines", "Makeup tutorials", "Hair hacks", "Product reviews", "Anti-aging", "Acne recovery", "Before/afters"],
  Fashion: ["Styling by body type", "Capsule wardrobe", "Color theory", "Trend breakdowns", "Budget fits", "Shopping hauls", "Dress codes"],
  "Content Creation": ["Hook writing", "Script structures", "Reel editing", "Posting strategy", "Niche research", "Analytics", "Personal brand"],
  Sales: ["Cold outreach", "Closing lines", "Objection handling", "DM scripts", "Funnels", "Offer stacking", "Negotiation"],
  "Real Estate": ["Investing for beginners", "First home buying", "Market breakdowns", "Flipping", "Rental income", "Agent tips", "Staging"],
  Coaching: ["Client wins", "Coaching frameworks", "Niche picking", "Price setting", "Case studies", "Sales pages", "Offer design"],
  Parenting: ["Newborn hacks", "Toddler tantrums", "Homework tips", "Screen time", "Family routines", "Recipes", "Sleep training"],
  "Mental Health": ["Anxiety tools", "Journaling", "Sleep fixes", "Therapy myths", "Meditation", "Self-talk", "Boundaries"],
  Tech: ["AI tools", "Productivity apps", "Coding tips", "Gadget reviews", "Side projects", "Career advice", "Dev workflows"],
  Productivity: ["Morning routines", "Focus systems", "Time blocking", "Note-taking", "Habits", "Sleep optimization", "Deep work"],
  Relationships: ["Dating advice", "Green/red flags", "Marriage tips", "Communication", "Conflict repair", "Love languages", "Confidence"],
};

// Quiz — What's your content style?
const QUIZ = [
  {
    q: "When you watch a great reel, you notice first...",
    a: [
      { text: "The facts, the numbers, the framework", style: "Teacher" },
      { text: "The story — how they felt, what happened", style: "Storyteller" },
      { text: "The edit, the rhythm, the vibe", style: "Director" },
      { text: "The proof — the results they showed", style: "Authority" },
    ],
  },
  {
    q: "Your friend asks you for advice. You respond with...",
    a: [
      { text: "A step-by-step plan", style: "Teacher" },
      { text: "A story of when you tried the same thing", style: "Storyteller" },
      { text: "A meme and a voice note", style: "Director" },
      { text: "Proof of what worked for your clients", style: "Authority" },
    ],
  },
  {
    q: "Filming yourself on camera feels like...",
    a: [
      { text: "A whiteboard session — I want to teach", style: "Teacher" },
      { text: "Journaling out loud — I want to connect", style: "Storyteller" },
      { text: "Directing a mini-movie — I care about every cut", style: "Director" },
      { text: "A case study — I want to show real results", style: "Authority" },
    ],
  },
  {
    q: "What would your followers miss most if you stopped posting?",
    a: [
      { text: "The 'aha' learning moments", style: "Teacher" },
      { text: "Your personality and realness", style: "Storyteller" },
      { text: "The stylish, hyper-edited reels", style: "Director" },
      { text: "The 'this actually works' proof", style: "Authority" },
    ],
  },
  {
    q: "Your biggest fear about posting is...",
    a: [
      { text: "Being wrong about the info", style: "Teacher" },
      { text: "Sounding too self-involved", style: "Storyteller" },
      { text: "Posting something ugly", style: "Director" },
      { text: "People thinking I'm bragging", style: "Authority" },
    ],
  },
];

const QUIZ_RESULTS = {
  Teacher: {
    title: "The Teacher",
    blurb: "You build authority through crystal-clear lessons. You'll convert viewers into followers faster than most.",
    bestFormats: ["Voiceover + B-roll", "Whiteboard", "3 Levels of X", "Tutorials"],
    hookStyles: ["Did you know...", "3 levels of...", "5 mistakes you're making"],
    nextStep: "Pick your niche + 5-7 sub-topics. Batch 4 teaching reels this week.",
  },
  Storyteller: {
    title: "The Storyteller",
    blurb: "You win on emotional connection. People will feel like they know you in 3 posts.",
    bestFormats: ["Talking head + B-roll", "POV voiceover", "Progress-update series"],
    hookStyles: ["X years ago, I was...", "Is it possible to...?", "The day I..."],
    nextStep: "Brainstorm one story in each of the 7 story types. Script 3. Post 1 per week.",
  },
  Director: {
    title: "The Director",
    blurb: "You stop the scroll with aesthetics. You'll build a recognizable visual brand fast.",
    bestFormats: ["Shot/angle change", "Setting change", "Clone format", "Visual/props"],
    hookStyles: ["Visual: before/after", "Good X / bad X", "Rate my X"],
    nextStep: "Lock your 2-3 colors, 2 fonts, 2 visual styles. Apply to every reel.",
  },
  Authority: {
    title: "The Authority",
    blurb: "You win through proof. Your case studies and client wins drive real leads, not just likes.",
    bestFormats: ["Case-study breakdown", "Client transformation", "Analytics on screen"],
    hookStyles: ["How I helped X go from Y to Z", "Not to flex...", "Two creators, one blew up"],
    nextStep: "Document 3 client or personal wins as transformation reels. Add clear CTAs.",
  },
};

// Gamifying reels — interactive mechanics
const GAME_MECHANICS = [
  {
    name: "The Prediction Game",
    subtitle: "Rapid-fire Q&A",
    hook: "Asset or liability?",
    example: ["Rolex?", "(pause)", "Liability.", "Diamonds?", "Liability.", "A coffee shop?", "Depends."],
    why: "Each pause = anticipation spike. Each answer = dopamine hit. Viewers keep watching to test their score.",
    template: "{Category A} or {Category B}? I say {list 5-7 items, revealing each one}.",
  },
  {
    name: "The Good / Bad / Accident",
    subtitle: "3-Tier rating",
    hook: "Good reel, bad reel, accident.",
    example: ["This hook → good.", "This transition → accident.", "This CTA → bad."],
    why: "Three tiers force the brain to compare. Viewers mentally rate their own work against yours.",
    template: "{Skill or niche thing}: good / bad / accident. Here's how to tell.",
  },
  {
    name: "The Trend Predictor",
    subtitle: "Up or down?",
    hook: "Is this trend going up or down?",
    example: ["This audio → up.", "This format → flatlining.", "This niche → exploding."],
    why: "Predictions are the ultimate engagement bait — people WILL comment their guess.",
    template: "{3-5 trending things in your niche}: up, down, or sideways? Let me know in the comments.",
  },
  {
    name: "The Countdown Reveal",
    subtitle: "Suspense loop",
    hook: "How much do you need to start a content business?",
    example: ["$10K?", "Less.", "$5K?", "Less.", "$500?", "Keep going down."],
    why: "Each 'less' = bigger surprise. Viewers are LOCKED in for the reveal.",
    template: "How much {money / time / effort} to {outcome}? Start at unrealistic — work down.",
  },
  {
    name: "Rate This From 1 to 10",
    subtitle: "Viewer scorekeeping",
    hook: "Rate my first 5 reels from 1 to 10.",
    example: ["Reel 1 → I'd say 6.", "Reel 2 → a 4.", "Reel 3 → solid 9."],
    why: "Viewers automatically play along. They rate silently in their head. Comments explode.",
    template: "Rate {your thing} from 1 to 10 — and tell me yours in the comments.",
  },
  {
    name: "Would You Rather",
    subtitle: "Forced decision",
    hook: "Would you rather 100K followers and $0, or 1K followers and $100K?",
    example: ["This? Or this?", "A or B — you can't pick both."],
    why: "Forced binary decisions light up the prefrontal cortex. Comments section becomes a debate.",
    template: "Would you rather {option A} or {option B}? No middle ground.",
  },
];

// The 3 video types
const CONTENT_TYPES = [
  {
    name: "Educational",
    purpose: "Build authority",
    core: "Teach one thing clearly.",
    examples: ["The 3-step hook formula", "5 reel mistakes", "How the algorithm ranks you"],
    color: "accent",
  },
  {
    name: "Storytelling",
    purpose: "Build connection",
    core: "Make them feel something.",
    examples: ["My story: 0 → 30K", "The worst client I ever took", "Day 47 of posting daily"],
    color: "hot",
  },
  {
    name: "Authority",
    purpose: "Build trust & leads",
    core: "Show the receipts.",
    examples: ["Client transformation", "Dashboard screenshots", "Testimonial breakdown"],
    color: "green",
  },
];

// The funnel — three levels
const FUNNELS = [
  {
    level: "L1",
    name: "Top — Reach",
    job: "Stop the scroll. Get in front of strangers.",
    content: "Big hooks, broad topics, trending formats. Every video is someone's first video of yours.",
    metric: "Views · Reach · Non-follower %",
    howToWin: "Hook stacks + viral outlier research + bold visual language.",
  },
  {
    level: "L2",
    name: "Middle — Followers",
    job: "Convert viewers into followers. Build the community.",
    content: "Series content, 'next episode' cliffhangers, teaching reels that leave them wanting more.",
    metric: "Followers · Return viewers · Saves",
    howToWin: "Series + storytelling + consistency. The reason to hit follow must be explicit.",
  },
  {
    level: "L3",
    name: "Bottom — Leads",
    job: "Turn followers into clients, buyers, bookings.",
    content: "Authority reels, case studies, client wins, DM-triggered freebies, strong CTAs.",
    metric: "DMs · Bookings · Replies · Revenue",
    howToWin: "ManyChat + case-study content + a clear offer linked in bio.",
  },
];

// Final checklist
const FINAL_CHECKLIST = [
  { t: "Picked my main niche + 5-7 sub-niches", s: "One video = one sub-niche. Don't mix." },
  { t: "Set my visual brand: 2-3 colors, 2 fonts, 2 visual styles", s: "Apply it to every single reel." },
  { t: "Written a 4-line bio that says who I help and what they get", s: "5-second test. Can a stranger tell?" },
  { t: "One link in bio (not a Linktree)", s: "Multiple links kill conversion." },
  { t: "Saved 20+ viral outlier hooks following the 5X rule", s: "Build your hook bank." },
  { t: "Scripted + batched my first 4 reels this week", s: "Don't freestyle. Use templates." },
  { t: "Set up ManyChat auto-DM for a CTA keyword", s: "Set it up BEFORE you post." },
  { t: "Posted consistently for 30 days", s: "Level 1 takes 50-100 videos. Don't quit here." },
  { t: "Studied my top 5 and bottom 5 reels in Edits app", s: "Double down on what worked." },
  { t: "Started a series with a clear 'episode' structure", s: "People follow for the next one." },
];

// Expose to window for other .jsx files
Object.assign(window, {
  HOOKS, MAIN_NICHES, SUB_NICHE_MAP,
  QUIZ, QUIZ_RESULTS,
  GAME_MECHANICS, CONTENT_TYPES, FUNNELS,
  FINAL_CHECKLIST,
});
