"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroSplit from '@/components/sections/hero/HeroSplit';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import MetricSplitMediaAbout from '@/components/sections/about/MetricSplitMediaAbout';
import FeatureCardTwentyOne from '@/components/sections/feature/FeatureCardTwentyOne';
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
import FaqSplitMedia from '@/components/sections/faq/FaqSplitMedia';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterSimple from '@/components/sections/footer/FooterSimple';
import { Sparkles, Crown, BookOpen, Gift, Heart, HelpCircle } from 'lucide-react';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="medium"
      sizing="largeSmall"
      background="none"
      cardStyle="inset"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="solid"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          brandName="Witch's Cauldron"
          navItems={[
            { name: "Home", id: "hero" },
            { name: "Shop", id: "products" },
            { name: "About", id: "about" },
            { name: "Reviews", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
          button={{ text: "Order Now", href: "products" }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplit
          title="Welcome to the Witch's Candy Cauldron"
          description="Step into our enchanted shop where ancient candy-making magic meets modern sweetness. Discover handcrafted potions, mystical treats, and spellbinding flavors that will transport your taste buds to another realm."
          tag="Magical Confections"
          tagIcon={Sparkles}
          imageSrc="https://img.b2bpic.net/free-photo/three-witches-are-sitting-table-prepared-potion-eve-halloween_1153-9073.jpg"
          imageAlt="Enchanted witch candy shop with potion bottles and magical candies"
          imagePosition="right"
          buttons={[
            { text: "Explore Our Spells", href: "products" },
            { text: "Learn the Magic", href: "about" }
          ]}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardTwo
          title="Enchanted Candy Collection"
          description="Discover our finest selection of bewitched sweets, each infused with magic and crafted with ancient candy-making secrets."
          tag="Featured Items"
          tagIcon={Crown}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          animationType="slide-up"
          gridVariant="three-columns-all-equal-width"
          products={[
            {
              id: "potion-drops",              brand: "Witch's Cauldron",              name: "Rainbow Potion Drops",              price: "$12.99",              rating: 5,
              reviewCount: "347",              imageSrc: "https://img.b2bpic.net/free-photo/flatlay-assorted-jelly-fruits-sprinkles-textured-background_53876-165340.jpg",              imageAlt: "Vibrant rainbow potion candy drops"
            },
            {
              id: "moonlight-taffy",              brand: "Witch's Cauldron",              name: "Moonlight Taffy Spellbind",              price: "$14.99",              rating: 5,
              reviewCount: "289",              imageSrc: "https://img.b2bpic.net/free-photo/chocolate-eggs-with-colorful-candies_23-2147761183.jpg",              imageAlt: "Glistening moonlight-colored taffy candies"
            },
            {
              id: "enchanted-chocolate",              brand: "Witch's Cauldron",              name: "Enchanted Dark Chocolate Gems",              price: "$16.99",              rating: 5,
              reviewCount: "412",              imageSrc: "https://img.b2bpic.net/free-photo/flatlay-assorted-jelly-fruits-sprinkles-textured-background_53876-31918.jpg",              imageAlt: "Luxurious dark chocolate gems with magical sparkle"
            }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <MetricSplitMediaAbout
          title="The Story of Our Mystical Candy Shop"
          description="Established in 1887 by a traveling candy sorceress, our shop has served as a refuge for sweet seekers from around the globe. We blend traditional candy-making techniques with enchanted ingredients to create confections that ignite wonder and delight."
          tag="Our Heritage"
          tagIcon={BookOpen}
          imageSrc="https://img.b2bpic.net/free-photo/interior-flower-shop_181624-58301.jpg"
          imageAlt="Historic candy shop interior with vintage shelves and mystical ambiance"
          metrics={[
            { value: "136+", title: "Years of Magical Candy Crafting" },
            { value: "50K+", title: "Happy Enchanted Customers" }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="collection" data-section="collection">
        <FeatureCardTwentyOne
          title="Our Candy Spell Collections"
          description="Each collection is carefully curated to bring magical experiences to candy lovers of all ages."
          tag="Collections"
          tagIcon={Gift}
          imageSrc="https://img.b2bpic.net/free-photo/top-view-cup-tea-with-colorful-french-macarons-pink-surface_140725-65748.jpg"
          imageAlt="Enchanting display of gourmet candy collections"
          mediaPosition="left"
          useInvertedBackground="invertDefault"
          accordionItems={[
            {
              id: "1",              title: "Potion Bottle Collection",              content: "Mysterious glass bottle candies filled with layered flavors. Each potion tells a different story of candy magic. Perfect for collectors and gift-givers seeking something truly special and Instagram-worthy."
            },
            {
              id: "2",              title: "Moonstone Artisan Chocolates",              content: "Hand-crafted chocolates infused with premium cocoa and magical botanicals. Each piece is a work of art, finished with edible shimmer dust. Ideal for special occasions and chocolate connoisseurs."
            },
            {
              id: "3",              title: "Enchanted Taffy Spell",              content: "Chewy, colorful taffies in mystical flavors inspired by ancient spell recipes. Wrapped in vintage-style paper and packaged in collectible boxes. Great for parties, favors, and personal indulgence."
            },
            {
              id: "4",              title: "Crystal Sugar Formations",              content: "Sparkling rock candy crystals grown in magical mineral solutions. Each crystal cluster is unique and perfect for both candy lovers and crystal enthusiasts seeking natural, artisanal sweets."
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardSix
          title="Enchanted Customer Reviews"
          description="Hear from our magical community of candy lovers who've experienced the wonder of our confections."
          tag="Customer Stories"
          tagIcon={Heart}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          testimonials={[
            {
              id: "1",              name: "Eleanor Moonwhisper",              handle: "@moonstruck_sweet_tooth",              testimonial: "These candies are absolutely magical! The potion drops taste like pure enchantment. I've ordered three times already and each delivery feels like opening a spellbook.",              imageSrc: "https://img.b2bpic.net/free-photo/front-view-cute-girl-looking-away_23-2148436134.jpg",              imageAlt: "Eleanor Moonwhisper"
            },
            {
              id: "2",              name: "Jasper Blackwood",              handle: "@the_candy_collector",              testimonial: "The Enchanted Dark Chocolate Gems are worth every penny. The quality and flavor are simply bewitching. This is my go-to place for premium sweets.",              imageSrc: "https://img.b2bpic.net/free-photo/front-view-woman-looking-camera-office_23-2148218515.jpg",              imageAlt: "Jasper Blackwood"
            },
            {
              id: "3",              name: "Violet Starlight",              handle: "@confection_addict",              testimonial: "I brought the Moonlight Taffy to a party and everyone was mesmerized! The flavors are unique and the presentation is absolutely stunning. Highly recommend!",              imageSrc: "https://img.b2bpic.net/free-photo/teen-age-youth-style-self-expression-concept-portrait-positive-happy-teenage-girl-with-bob-pinkish-hairstyle-facial-piercing-relaxing-indoors_343059-3781.jpg",              imageAlt: "Violet Starlight"
            },
            {
              id: "4",              name: "Orrin Spellbinder",              handle: "@candy_magician",              testimonial: "The craft and care that goes into each candy is evident. These aren't just sweets—they're little works of edible art. My whole family is enchanted!",              imageSrc: "https://img.b2bpic.net/free-photo/smiley-woman-posing-her-home_23-2148708980.jpg",              imageAlt: "Orrin Spellbinder"
            },
            {
              id: "5",              name: "Iris Nightshade",              handle: "@mystical_munchies",              testimonial: "Finding this shop was like discovering hidden treasure. The customer service is wonderful, and the candies are beyond anything I've tasted before. Pure magic!",              imageSrc: "https://img.b2bpic.net/free-photo/woman-with-big-smile-her-face-after-big-shopping_329181-18748.jpg",              imageAlt: "Iris Nightshade"
            },
            {
              id: "6",              name: "Cornelius Hexworth",              handle: "@sweet_sorcerer",              testimonial: "As someone who appreciates fine confectionery, I'm impressed by both the quality and creativity. The potion bottle collection is absolutely brilliant. Bravo!",              imageSrc: "https://img.b2bpic.net/free-photo/portrait-beautiful-afro-american-woman_23-2148332136.jpg",              imageAlt: "Cornelius Hexworth"
            }
          ]}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitMedia
          title="Candy Shop Grimoire"
          description="Answers to enchanted questions about our magical candies, ordering spells, and candy alchemy."
          tag="Common Incantations"
          tagIcon={HelpCircle}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          imageSrc="https://img.b2bpic.net/free-photo/halloween-party-with-candies_23-2147888883.jpg"
          imageAlt="Enchanted candy shop with FAQ guide"
          mediaPosition="right"
          animationType="smooth"
          faqs={[
            {
              id: "1",              title: "Are your candies made with real magic ingredients?",              content: "Our candies are crafted with the finest real ingredients and infused with love and passion—the most powerful magic of all! We use premium cocoa, natural flavoring extracts, and specialty botanicals sourced from ethical suppliers worldwide."
            },
            {
              id: "2",              title: "How should I store my enchanted candies?",              content: "Keep your candies in a cool, dark place (ideally 55-65°F) in an airtight container to preserve their magical properties. Avoid direct sunlight and humid environments. Properly stored, most candies last 2-3 months, though we recommend enjoying them sooner to experience peak flavor!"
            },
            {
              id: "3",              title: "Do you offer gift wrapping spells?",              content: "Absolutely! All orders come with complimentary enchanted gift packaging perfect for gifting. We also offer premium gift box options with personalized spell cards and mystical ribbons for an extra touch of magic."
            },
            {
              id: "4",              title: "What about dietary restrictions and allergens?",              content: "We take allergies and dietary needs seriously. Our product pages clearly list all ingredients and potential allergens. We also offer sugar-free, vegan, and gluten-free enchanted candy options. Please contact us for specific ingredient details."
            },
            {
              id: "5",              title: "How long does potion delivery usually take?",              content: "Standard mystical delivery takes 5-7 business days within the continental realm. We also offer expedited 2-3 day shipping and international delivery. All orders are tracked and insured for safe passage to your door."
            },
            {
              id: "6",              title: "Can I return or exchange candies?",              content: "Customer satisfaction is our highest enchantment! If you're not completely delighted, we offer exchanges or refunds within 30 days of purchase. Opened candies can be exchanged for a different flavor to try."
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Enchanted Newsletter"
          title="Join Our Candy Coven"
          description="Subscribe to receive exclusive potion recipes, magical candy announcements, and spellbinding discounts straight to your cauldron. Become part of our mystical community of candy enthusiasts!"
          useInvertedBackground="noInvert"
          imageSrc="https://img.b2bpic.net/free-photo/halloween-party-food-assortment_23-2149085656.jpg"
          imageAlt="Mystical potion brewing cauldron"
          mediaPosition="right"
          inputPlaceholder="Enter your enchanted email"
          buttonText="Seal the Spell"
          termsText="By joining our coven, you agree to receive magical updates and special offers. We respect your privacy and never share your potion recipe... er, email!"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterSimple
          columns={[
            {
              title: "Shop",              items: [
                { label: "All Candies", href: "#products" },
                { label: "Collections", href: "#collection" },
                { label: "Gift Boxes", href: "#products" },
                { label: "New Arrivals", href: "#products" }
              ]
            },
            {
              title: "About",              items: [
                { label: "Our Story", href: "#about" },
                { label: "Candy Alchemy", href: "#collection" },
                { label: "Reviews", href: "#testimonials" },
                { label: "Contact Us", href: "#contact" }
              ]
            },
            {
              title: "Support",              items: [
                { label: "FAQ", href: "#faq" },
                { label: "Shipping Info", href: "#faq" },
                { label: "Returns", href: "#faq" },
                { label: "Help Center", href: "#contact" }
              ]
            },
            {
              title: "Legal",              items: [
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" },
                { label: "Cookie Spell", href: "#" }
              ]
            }
          ]}
          bottomLeftText="© 2025 Witch's Cauldron Candy Shop. All enchantments reserved."
          bottomRightText="Crafted with love and magic ✨"
        />
      </div>
    </ThemeProvider>
  );
}