"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroLogoBlock from '@/components/sections/hero/HeroLogoBlock';
import MediaSplitTabsAbout from '@/components/sections/about/MediaSplitTabsAbout';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import FeatureCardSix from '@/components/sections/feature/FeatureCardSix';
import TestimonialCardFifteen from '@/components/sections/testimonial/TestimonialCardFifteen';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterMedia from '@/components/sections/footer/FooterMedia';
import { Sparkles, Heart } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-stagger"
      defaultTextAnimation="entrance-slide"
      borderRadius="soft"
      contentWidth="medium"
      sizing="largeSmall"
      background="floatingGradient"
      cardStyle="glass-depth"
      primaryButtonStyle="double-inset"
      secondaryButtonStyle="layered"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Artisan Bakery"
          navItems={[
            { name: "Home", id: "hero" },
            { name: "About", id: "about" },
            { name: "Products", id: "products" },
            { name: "Reviews", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
          button={{
            text: "Order Now",            href: "contact"
          }}
        />
      </div>
      
      <div id="hero" data-section="hero">
        <HeroLogoBlock
          title="Welcome to Artisan Bakery"
          description="Handcrafted pastries, fresh-baked breads, and delicious treats made daily with the finest ingredients. Taste the difference tradition makes."
          logos={[
            {
              imageSrc: "https://img.b2bpic.net/free-photo/baker-with-flour-hand_169016-6374.jpg",              imageAlt: "Fresh bakery display with pastries and bread"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-photo/top-view-croissants-tray_23-2149395317.jpg",              imageAlt: "Golden croissants"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-photo/set-bakery-pastries-wooden-table_123827-31529.jpg",              imageAlt: "Artisan sourdough bread"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-photo/medium-shot-croissants-jam_23-2148243510.jpg",              imageAlt: "Decadent chocolate cake"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-photo/different-types-bread-made-from-wheat-flour_140725-5648.jpg?id=7220003",              imageAlt: "Cozy bakery storefront"
            }
          ]}
          tag="Freshly Baked Daily"
          tagIcon={Sparkles}
          buttons={[
            { text: "Order Online", href: "contact" },
            { text: "Explore Menu", href: "products" }
          ]}
        />
      </div>
      
      <div id="about" data-section="about">
        <MediaSplitTabsAbout
          title="Our Baking Story"
          description="Committed to excellence and tradition in every bite"
          tabs={[
            {
              id: "heritage",              label: "Heritage",              description: "For over 15 years, we've been baking with passion and tradition. Our recipes are passed down through generations, refined to perfection."
            },
            {
              id: "quality",              label: "Quality",              description: "We source only the finest organic ingredients, never use artificial preservatives, and bake fresh every morning to ensure exceptional taste and quality."
            },
            {
              id: "community",              label: "Community",              description: "We're proud to be part of your local community. Our bakery is a gathering place where neighbors become friends over fresh bread and pastries."
            }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/woman-spreading-dough-with-hands-wooden-table-top-view_176474-5539.jpg"
          imageAlt="Artisan baker preparing dough"
          imagePosition="right"
          useInvertedBackground="invertDefault"
        />
      </div>
      
      <div id="products" data-section="products">
        <ProductCardTwo
          title="aaaaaaaaaaaa"
          description="bbbbbbbbb"
          products={[
            {
              id: "1",              brand: "Classic Selection",              name: "Butter Croissants",              price: "$4.99",              rating: 5,
              reviewCount: "287",              imageSrc: "https://img.b2bpic.net/free-photo/top-view-croissants-tray_23-2149395317.jpg",              imageAlt: "Golden butter croissants"
            },
            {
              id: "2",              brand: "Heritage Breads",              name: "Sourdough Loaf",              price: "$6.99",              rating: 5,
              reviewCount: "312",              imageSrc: "https://img.b2bpic.net/free-photo/set-bakery-pastries-wooden-table_123827-31529.jpg",              imageAlt: "Artisan sourdough loaf"
            },
            {
              id: "3",              brand: "Decadent Desserts",              name: "Chocolate Cake",              price: "$24.99",              rating: 5,
              reviewCount: "198",              imageSrc: "https://img.b2bpic.net/free-photo/medium-shot-croissants-jam_23-2148243510.jpg",              imageAlt: "Rich chocolate layer cake"
            }
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>
      
      <div id="features" data-section="features">
        <FeatureCardSix
          title="Why Choose Us"
          description="Experience the difference quality and tradition make in every bite"
          features={[
            {
              id: 1,
              title: "Premium Ingredients",              description: "We use only organic, high-quality ingredients sourced from trusted local suppliers. No artificial additives or preservatives ever.",              imageSrc: "https://img.b2bpic.net/free-photo/arrangement-delicious-food-ingredients_23-2148869889.jpg",              imageAlt: "Premium baking ingredients"
            },
            {
              id: 2,
              title: "Artisan Craftsmanship",              description: "Every item is handcrafted by our skilled bakers using traditional techniques perfected over decades of experience.",              imageSrc: "https://img.b2bpic.net/free-photo/woman-spreading-dough-with-hands-wooden-table-top-view_176474-5539.jpg",              imageAlt: "Master baker at work"
            }
          ]}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          tag="What Makes Us Special"
          tagIcon={Heart}
        />
      </div>
      
      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFifteen
          testimonial="The croissants from Artisan Bakery are absolutely divine. I've never tasted anything this buttery and delicious. It's become my favorite place to grab breakfast!"
          rating={5}
          author="Sarah Mitchell, Regular Customer"
          avatars={[
            {
              src: "https://img.b2bpic.net/free-photo/front-view-cute-girl-looking-away_23-2148436134.jpg",              alt: "Sarah Mitchell"
            },
            {
              src: "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",              alt: "David Chen"
            },
            {
              src: "https://img.b2bpic.net/free-photo/portrait-beautiful-woman-with-shopping-bags_329181-18722.jpg",              alt: "Emma Wilson"
            },
            {
              src: "https://img.b2bpic.net/free-photo/older-woman-with-thumb-up_1149-1162.jpg",              alt: "James Rodriguez"
            }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>
      
      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Get In Touch"
          title="Ready to Order?"
          description="Subscribe to our newsletter for special offers, new products, and delivery updates. Or visit us in store for a warm welcome and fresh treats."
          imageSrc="https://img.b2bpic.net/free-photo/delicious-donut-shop-ai-generated_23-2150694732.jpg"
          imageAlt="Our welcoming bakery storefront"
          mediaPosition="right"
          useInvertedBackground="invertDefault"
          inputPlaceholder="Enter your email"
          buttonText="Subscribe"
          termsText="We respect your privacy. Unsubscribe anytime."
        />
      </div>
      
      <div id="footer" data-section="footer">
        <FooterMedia
          imageSrc="https://img.b2bpic.net/free-photo/delicious-donut-shop-ai-generated_23-2150694732.jpg"
          imageAlt="Artisan Bakery storefront"
          logoText="Artisan Bakery"
          copyrightText="© 2025 Artisan Bakery. All rights reserved."
          columns={[
            {
              title: "Menu",              items: [
                { label: "Pastries", href: "products" },
                { label: "Breads", href: "products" },
                { label: "Cakes & Desserts", href: "products" }
              ]
            },
            {
              title: "Contact",              items: [
                { label: "Phone: (555) 123-4567", href: "#" },
                { label: "Email: hello@artisanbakery.com", href: "#" },
                { label: "Hours: 7am - 7pm Daily", href: "#" }
              ]
            },
            {
              title: "Follow Us",              items: [
                { label: "Instagram", href: "#" },
                { label: "Facebook", href: "#" },
                { label: "Twitter", href: "#" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}
