console.log("Custom Quote Generator App");
console.log("Choose a genre for your custom quote (motivation / funny / wisdom / success / life / productivity / coding)");

setTimeout(function () {
  const userInput = prompt("Enter a genre:").toLowerCase();

  const quotes = {
    motivation: [
      "Don't watch the clock; do what it does. Keep going. — Sam Levenson",
      "Push yourself, because no one else is going to do it for you. — Unknown"
    ],
    funny: [
      "I'm not lazy, I'm on energy-saving mode. — Anonymous",
      "Why do programmers prefer dark mode? Because light attracts bugs. — Anonymous"
    ],
    wisdom: [
      "Knowing yourself is the beginning of all wisdom. — Aristotle",
      "In the middle of difficulty lies opportunity. — Albert Einstein"
    ],
    success: [
      "Success is not final, failure is not fatal: it is the courage to continue that counts. — Winston Churchill",
      "Don't be afraid to give up the good to go for the great. — John D. Rockefeller"
    ],
    life: [
      "Life is 10% what happens to us and 90% how we react to it. — Charles R. Swindoll",
      "Your time is limited, so don't waste it living someone else's life. — Steve Jobs"
    ],
    productivity: [
      "It's not always that we need to do more but rather that we need to focus on less. — Nathan W. Morris",
      "Focus on being productive instead of busy. — Tim Ferriss"
    ],
    coding: [
      "Talk is cheap. Show me the code. — Linus Torvalds",
      "Programs must be written for people to read, and only incidentally for machines to execute. — Harold Abelson"
    ]
  };

  if (quotes[userInput]) {
    const randomQuote = quotes[userInput][Math.floor(Math.random() * quotes[userInput].length)];
    console.log(`\\n💬 Here's a ${userInput} quote:\\n"${randomQuote}"`);
  } else {
    console.log("❌ Invalid genre. Please refresh and try again.");
  }

}, 2000);