"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroBillboardDashboard from '@/components/sections/hero/HeroBillboardDashboard';
import SplitAbout from '@/components/sections/about/SplitAbout';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import FeatureCardTen from '@/components/sections/feature/FeatureCardTen';
import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FooterLogoReveal from '@/components/sections/footer/FooterLogoReveal';
import { Sparkles, Heart, Coffee, Zap, Star, Mail, Leaf, Clock, Globe, Sun, CheckCircle, Croissant, ShoppingBag, Settings, Wheat, Cake, Flame, Thermometer, Award, HandshakeIcon } from 'lucide-react';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="background-highlight"
      borderRadius="rounded"
      contentWidth="mediumLarge"
      sizing="mediumSizeLargeTitles"
      background="noiseDiagonalGradient"
      cardStyle="layered-gradient"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="Artisan Bakery"
          navItems={[
            { name: "About", id: "about" },
            { name: "Products", id: "products" },
            { name: "Testimonials", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardDashboard
          title="Freshly Baked Goodness Daily"
          description="Discover our artisan bakery's premium selection of sourdough breads, croissants, and custom cakes made with organic ingredients and passion for traditional baking techniques."
          tag="Premium Artisan Bakery"
          tagIcon={Sparkles}
          background={{ variant: "radial-gradient" }}
          buttons={[
            { text: "Order Now", href: "#products" },
            { text: "Learn More", href: "#about" }
          ]}
          dashboard={{
            title: "Today's Fresh Selections",            logoIcon: Croissant,
            imageSrc: "http://img.b2bpic.net/free-photo/fresh-bread-wooden-spoon-old-wooden-background_169016-3149.jpg",            searchPlaceholder: "Search our menu...",            buttons: [
              { text: "View Menu", href: "#products" },
              { text: "Reserve Now", href: "#contact" }
            ],
            sidebarItems: [
              { icon: ShoppingBag, active: true },
              { icon: ShoppingBag },
              { icon: Settings }
            ],
            stats: [
              { title: "Years Baking", values: [15, 20, 25], description: "Of tradition" },
              { title: "Products", values: [45, 52, 60], description: "Fresh daily" },
              { title: "Happy Customers", values: [2500, 3200, 4100], description: "This month" }
            ],
            chartTitle: "Sales This Week",            chartData: [
              { value: 85 },
              { value: 72 },
              { value: 88 },
              { value: 76 },
              { value: 92 }
            ],
            listTitle: "Recent Orders",            listItems: [
              { icon: Croissant, title: "Butter Croissants", status: "Ready" },
              { icon: Wheat, title: "Sourdough Loaf", status: "Baking" },
              { icon: Cake, title: "Custom Birthday Cake", status: "Reserved" }
            ]
          }}
        />
      </div>

      <div id="about" data-section="about">
        <SplitAbout
          title="Our Baking Story"
          description="For over two decades, we've been committed to crafting exceptional baked goods using only the finest organic ingredients. Our master bakers combine traditional European techniques with creative innovation to deliver unforgettable flavors."
          tag="About Us"
          tagIcon={Heart}
          textboxLayout="default"
          useInvertedBackground={false}
          imagePosition="right"
          imageSrc="http://img.b2bpic.net/free-photo/man-baker-holding-croissants-bakehouse_1303-32275.jpg?_wi=1"
          imageAlt="Artisan bakers working in our kitchen"
          mediaAnimation="slide-up"
          bulletPoints={[
            {
              title: "100% Organic Ingredients",              description: "We source only certified organic flour, butter, and toppings",              icon: Leaf
            },
            {
              title: "Traditional Methods",              description: "Time-honored fermentation and baking techniques for superior taste",              icon: Clock
            },
            {
              title: "Local & Sustainable",              description: "Supporting local farms and eco-friendly packaging practices",              icon: Globe
            },
            {
              title: "Made Fresh Daily",              description: "Every item baked fresh each morning for optimal flavor and quality",              icon: Sun
            }
          ]}
          buttons={[{ text: "Visit Us Today", href: "#contact" }]}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardFour
          title="Our Featured Collection"
          description="Handcrafted pastries and breads that bring joy to your table every day"
          tag="Fresh Selections"
          tagIcon={Coffee}
          textboxLayout="default"
          useInvertedBackground={false}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          products={[
            {
              id: "1",              name: "Butter Croissants",              price: "$4.50",              variant: "Golden • 3 Types",              imageSrc: "http://img.b2bpic.net/free-photo/croissants-breakfast-with-copy-space_23-2148243546.jpg",              imageAlt: "Freshly baked butter croissant"
            },
            {
              id: "2",              name: "Sourdough Loaf",              price: "$6.99",              variant: "Tangy • Whole Grain",              imageSrc: "http://img.b2bpic.net/free-photo/fresh-homemade-bread-recipe-idea_53876-105983.jpg?_wi=1",              imageAlt: "Artisan sourdough bread loaf"
            },
            {
              id: "3",              name: "Custom Cakes",              price: "$35.00",              variant: "Assorted • Custom Orders",              imageSrc: "http://img.b2bpic.net/free-photo/closeup-person-holding-fruity-cake-with-happy-birthday-topper_181624-59494.jpg",              imageAlt: "Beautiful custom designed cake"
            }
          ]}
        />
      </div>

      <div id="process" data-section="process">
        <FeatureCardTen
          title="Our Baking Process"
          description="From grain to table: a carefully crafted journey ensuring every product meets our exacting standards"
          tag="How We Bake"
          tagIcon={Zap}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          features={[
            {
              id: "1",              title: "Premium Sourcing",              description: "We partner with certified organic farms across the region to source the finest grains and ingredients",              media: { imageSrc: "http://img.b2bpic.net/free-photo/man-baker-holding-croissants-bakehouse_1303-32275.jpg?_wi=2" },
              items: [
                { icon: Leaf, text: "100% Organic certified" },
                { icon: Globe, text: "Local farm partners" },
                { icon: CheckCircle, text: "Quality assured" }
              ],
              reverse: false
            },
            {
              id: "2",              title: "Artisan Preparation",              description: "Our master bakers hand-craft each product using traditional fermentation and mixing techniques",              media: { imageSrc: "http://img.b2bpic.net/free-photo/man-baker-holding-croissants-bakehouse_1303-32275.jpg?_wi=3" },
              items: [
                { icon: Clock, text: "24-hour fermentation" },
                { icon: HandshakeIcon, text: "Hand-shaped loaves" },
                { icon: Award, text: "Master bakers" }
              ],
              reverse: true
            },
            {
              id: "3",              title: "Perfect Baking",              description: "Each item is baked fresh daily in our traditional stone ovens at the ideal temperature for maximum flavor",              media: { imageSrc: "http://img.b2bpic.net/free-photo/fresh-homemade-bread-recipe-idea_53876-105983.jpg?_wi=2" },
              items: [
                { icon: Flame, text: "Stone oven baked" },
                { icon: Thermometer, text: "Perfect temperature" },
                { icon: Sun, text: "Baked fresh daily" }
              ],
              reverse: false
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardOne
          title="What Our Customers Love"
          description="Real feedback from people who have experienced our artisan baked goods"
          tag="Testimonials"
          tagIcon={Star}
          textboxLayout="default"
          useInvertedBackground={false}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          testimonials={[
            {
              id: "1",              name: "Sarah Mitchell",              role: "Food Blogger",              company: "Local Eats",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/casual-smile-street-style-background-spring_1139-777.jpg"
            },
            {
              id: "2",              name: "James Chen",              role: "Chef",              company: "Chef's Table Restaurant",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/smiling-businessman-standing-airport_107420-85035.jpg"
            },
            {
              id: "3",              name: "Emma Rodriguez",              role: "Event Planner",              company: "Perfect Events Co",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/smiling-middle-aged-attractive-woman-showing-thumb-up-outdoors_1262-12526.jpg"
            },
            {
              id: "4",              name: "David Thompson",              role: "Community Manager",              company: "Local Business Hub",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg?_wi=1"
            },
            {
              id: "5",              name: "Lisa Anderson",              role: "Café Owner",              company: "The Daily Brew",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/woman-showing-ok-sign_23-2148990150.jpg"
            },
            {
              id: "6",              name: "Michael Chang",              role: "Pastry Enthusiast",              company: "Bread Lover's Club",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg?_wi=2"
            }
          ]}
        />
      </div>

      <div id="social-proof" data-section="social-proof">
        <SocialProofOne
          title="Trusted by Community Leaders"
          description="Join thousands of satisfied customers who choose our artisan bakery for their daily bread and special occasions"
          tag="Featured In"
          textboxLayout="default"
          useInvertedBackground={false}
          names={[
            "Organic Living Magazine",            "Local Chef's Association",            "Community Market Network",            "Sustainable Business Council",            "Family Food Guide",            "Regional Wellness Initiative",            "Artisan Guild",            "Green Business Alliance"
          ]}
          logos={[
            "http://img.b2bpic.net/free-vector/grunge-vegan-seal-stamp-rubber-look_78370-671.jpg",            "http://img.b2bpic.net/free-vector/hand-drawn-shop-local-badges_23-2149550125.jpg",            "http://img.b2bpic.net/free-vector/two-gold-badges-awards_1017-5134.jpg",            "http://img.b2bpic.net/free-photo/woman-with-grandparents-working-together-country-side_23-2149518775.jpg",            "http://img.b2bpic.net/free-vector/badges-craftwork_23-2147564891.jpg",            "http://img.b2bpic.net/free-vector/hand-drawn-flat-design-ecology-badges_23-2149209137.jpg",            "http://img.b2bpic.net/free-vector/hand-drawn-bakery-labels-template_23-2149414026.jpg",            "http://img.b2bpic.net/free-photo/bakery_23-2148011502.jpg"
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCenter
          tag="Newsletter"
          tagIcon={Mail}
          title="Fresh Bread, Fresh News"
          description="Subscribe to our newsletter for weekly specials, new recipes, and updates on seasonal offerings. Get exclusive early access to limited-edition items!"
          background={{ variant: "rotated-rays-animated-grid" }}
          useInvertedBackground={false}
          inputPlaceholder="Enter your email"
          buttonText="Subscribe"
          termsText="By subscribing, you agree to receive marketing updates from our bakery. We respect your privacy and never share your information."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoReveal
          logoText="Artisan Bakery"
          leftLink={{ text: "Privacy Policy", href: "#" }}
          rightLink={{ text: "Terms of Service", href: "#" }}
        />
      </div>
    </ThemeProvider>
  );
}
