"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroBillboardRotatedCarousel from '@/components/sections/hero/HeroBillboardRotatedCarousel';
import MetricSplitMediaAbout from '@/components/sections/about/MetricSplitMediaAbout';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import PricingCardNine from '@/components/sections/pricing/PricingCardNine';
import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne';
import FaqSplitMedia from '@/components/sections/faq/FaqSplitMedia';
import ContactFaq from '@/components/sections/contact/ContactFaq';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { Sparkles, Heart, Award, Gift, Star, HelpCircle, Phone } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="directional-hover"
      defaultTextAnimation="reveal-blur"
      borderRadius="rounded"
      contentWidth="small"
      sizing="largeSmallSizeMediumTitles"
      background="circleGradient"
      cardStyle="glass-depth"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="glass"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="Artisan Bakery"
          navItems={[
            { name: "About", id: "about" },
            { name: "Products", id: "products" },
            { name: "Pricing", id: "pricing" },
            { name: "Reviews", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardRotatedCarousel
          title="Handcrafted Goodness, Delivered Fresh"
          description="Discover our artisan bakery specializing in organic breads, pastries, and seasonal desserts made fresh daily with the finest ingredients."
          tag="Premium Bakery"
          tagIcon={Sparkles}
          background={{ variant: "plain" }}
          buttons={[
            { text: "Order Now", href: "#contact" },
            { text: "Learn More", href: "#about" }
          ]}
          carouselItems={[
            {
              id: "1",              imageSrc: "https://img.b2bpic.net/free-photo/view-tasty-croissants_23-2148531595.jpg",              imageAlt: "Fresh croissant"
            },
            {
              id: "2",              imageSrc: "https://img.b2bpic.net/free-photo/freshly-baked-croissant-wooden-table-french-breakfast-idea-sunny-bright-day-top-view-flat-lay-with-copy-space-text_166373-3514.jpg",              imageAlt: "Artisan bread"
            },
            {
              id: "3",              imageSrc: "https://img.b2bpic.net/free-photo/fresh-sweet-pastry-is-sprinkled-with-sugar-powder-wooden-surface_78826-2429.jpg",              imageAlt: "Homemade cake"
            },
            {
              id: "4",              imageSrc: "https://img.b2bpic.net/free-photo/close-up-tasty-croissants_1232-1242.jpg",              imageAlt: "Glazed donuts"
            },
            {
              id: "5",              imageSrc: "https://img.b2bpic.net/free-photo/fresh-baked-butter-croissants-display-cafe_53876-121720.jpg",              imageAlt: "Fresh muffins"
            },
            {
              id: "6",              imageSrc: "https://img.b2bpic.net/free-photo/cup-cappuccino-with-cookie_114579-4245.jpg",              imageAlt: "Sourdough loaf"
            }
          ]}
          autoPlay={true}
          autoPlayInterval={4000}
        />
      </div>

      <div id="about" data-section="about">
        <MetricSplitMediaAbout
          tag="Our Story"
          tagIcon={Heart}
          title="Baking Tradition Since 2008"
          description="Founded on the belief that great baking starts with great ingredients, our bakery has been perfecting the craft of artisan baking for over 15 years. Every loaf, pastry, and dessert is made by hand using traditional techniques and the finest organic ingredients sourced from local suppliers."
          metrics={[
            { value: "15+", title: "Years of Excellence" },
            { value: "500+", title: "Happy Customers Daily" }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/delicious-donut-shop-ai-generated_23-2150694732.jpg"
          imageAlt="Artisan bakery interior"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardTwo
          title="Featured Products"
          description="Explore our signature baked goods, all made fresh daily with premium organic ingredients."
          tag="Best Sellers"
          tagIcon={Award}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          products={[
            {
              id: "1",              brand: "Artisan Bakery",              name: "Chocolate Croissant",              price: "$6.50",              rating: 5,
              reviewCount: "247",              imageSrc: "https://img.b2bpic.net/free-photo/set-bakery-pastries-wooden-table_123827-31529.jpg",              imageAlt: "Chocolate croissant"
            },
            {
              id: "2",              brand: "Artisan Bakery",              name: "Whole Grain Sourdough",              price: "$8.00",              rating: 5,
              reviewCount: "189",              imageSrc: "https://img.b2bpic.net/free-photo/croissants-wooden-box-jam-pot-aside-grey-table_176420-274.jpg",              imageAlt: "Whole grain sourdough loaf"
            },
            {
              id: "3",              brand: "Artisan Bakery",              name: "Classic Cheesecake",              price: "$24.00",              rating: 5,
              reviewCount: "156",              imageSrc: "https://img.b2bpic.net/free-photo/rustic-croissants-breakfast_23-2147667282.jpg",              imageAlt: "New York style cheesecake"
            }
          ]}
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardNine
          title="Order Plans"
          description="Choose the perfect selection for your needs, from everyday treats to special occasion platters."
          tag="Special Offers"
          tagIcon={Gift}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          plans={[
            {
              id: "starter",              title: "Pastry Selection",              price: "$35",              period: "/box",              imageSrc: "https://img.b2bpic.net/free-photo/beautiful-shot-delicious-croissants-being-prerpared_181624-56837.jpg",              imageAlt: "Assorted pastries",              features: [
                "6 assorted pastries",                "Fresh daily baked",                "Free local delivery",                "Next-day pickup available"
              ],
              button: { text: "Order Now", href: "#contact" }
            },
            {
              id: "professional",              title: "Bread Lover Bundle",              price: "$48",              period: "/week",              imageSrc: "https://img.b2bpic.net/free-photo/glass-grapefruit-juice-with-pink-pipe-blue-table_114579-4251.jpg",              imageAlt: "Fresh bread selection",              features: [
                "3 specialty loaves",                "Rotating seasonal breads",                "Weekly subscription",                "10% member discount"
              ],
              button: { text: "Subscribe Now", href: "#contact" }
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardOne
          title="What Our Customers Say"
          description="Real feedback from our valued customers who trust us for their baking needs."
          tag="Customer Reviews"
          tagIcon={Star}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          carouselMode="buttons"
          testimonials={[
            {
              id: "1",              name: "Sarah Mitchell",              role: "Coffee Shop Owner",              company: "Downtown Café",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/portrait-young-woman_23-2148574874.jpg",              imageAlt: "Sarah Mitchell"
            },
            {
              id: "2",              name: "James Chen",              role: "Event Planner",              company: "Events & More",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/caucasion-woman-casual-confident-concept_53876-137678.jpg",              imageAlt: "James Chen"
            },
            {
              id: "3",              name: "Emily Rodriguez",              role: "Home Baker",              company: "Baking Enthusiast",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/positive-blond-girl-shows-tongue-winks-camera-makes-happy-funny-face-stands-against-white-background_176420-46979.jpg",              imageAlt: "Emily Rodriguez"
            },
            {
              id: "4",              name: "Michael Thompson",              role: "Restaurant Chef",              company: "Local Bistro",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/beautiful-woman-cafe_273609-12690.jpg",              imageAlt: "Michael Thompson"
            }
          ]}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitMedia
          title="Frequently Asked Questions"
          description="Find answers to common questions about our bakery, products, and ordering process."
          tag="Help Center"
          tagIcon={HelpCircle}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          mediaPosition="left"
          imageSrc="https://img.b2bpic.net/free-photo/delicious-donut-shop-ai-generated_23-2150694730.jpg"
          imageAlt="Bakery counter with fresh pastries"
          faqs={[
            {
              id: "1",              title: "What are your operating hours?",              content: "We are open Monday through Sunday, 7:00 AM to 6:00 PM. Extended hours available during weekends and holidays. Call ahead for special orders."
            },
            {
              id: "2",              title: "Do you offer custom cakes and special orders?",              content: "Yes! We specialize in custom cakes for weddings, birthdays, and special events. Please allow 48 hours notice for custom orders. Contact us at (555) 123-4567 to discuss your vision."
            },
            {
              id: "3",              title: "Are your products gluten-free or vegan?",              content: "We offer a selection of gluten-free pastries and vegan breads made in our dedicated area to prevent cross-contamination. Ask staff for available options."
            },
            {
              id: "4",              title: "Do you deliver or offer online ordering?",              content: "Yes! We offer free local delivery for orders over $30. Online ordering is available on our website with next-day pickup options throughout the week."
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactFaq
          ctaTitle="Ready to Order?"
          ctaDescription="Get in touch with us today to place your order or learn more about our custom baking services. We're here to make your day sweeter!"
          ctaButton={{ text: "Contact Us Now", href: "mailto:hello@artisanbakery.com" }}
          ctaIcon={Phone}
          useInvertedBackground="noInvert"
          animationType="slide-up"
          faqs={[
            {
              id: "1",              title: "How do I place a bulk order?",              content: "For bulk orders of 20 items or more, please contact us directly at (555) 123-4567 or email hello@artisanbakery.com. We offer special pricing for wholesale and corporate orders."
            },
            {
              id: "2",              title: "What payment methods do you accept?",              content: "We accept cash, all major credit cards, and online payment platforms. Online orders can be paid securely through our website."
            },
            {
              id: "3",              title: "What is your cancellation policy?",              content: "Custom orders can be cancelled up to 24 hours before pickup with a full refund. Regular menu items can be returned within 2 hours of purchase if unused."
            }
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal
          columns={[
            {
              title: "Company",              items: [
                { label: "About Us", href: "#about" },
                { label: "Our Story", href: "#about" },
                { label: "Careers", href: "#" },
                { label: "Blog", href: "#" }
              ]
            },
            {
              title: "Products",              items: [
                { label: "Bread & Loaves", href: "#products" },
                { label: "Pastries", href: "#products" },
                { label: "Custom Cakes", href: "#contact" },
                { label: "Seasonal Items", href: "#products" }
              ]
            },
            {
              title: "Support",              items: [
                { label: "Contact Us", href: "#contact" },
                { label: "FAQs", href: "#faq" },
                { label: "Delivery Info", href: "#" },
                { label: "Privacy Policy", href: "#" }
              ]
            }
          ]}
          copyrightText="© 2025 Artisan Bakery | Handcrafted with Love"
        />
      </div>
    </ThemeProvider>
  );
}