"use client"

import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroSplitKpi from '@/components/sections/hero/HeroSplitKpi';
import MetricSplitMediaAbout from '@/components/sections/about/MetricSplitMediaAbout';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import FeatureCardSix from '@/components/sections/feature/FeatureCardSix';
import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import { Heart, Mail, Sparkles, Wheat } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="entrance-slide"
      borderRadius="soft"
      contentWidth="compact"
      sizing="largeSmall"
      background="none"
      cardStyle="glass-elevated"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="layered"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="Piekarnia"
          navItems={[
            { name: "About", id: "about" },
            { name: "Products", id: "products" },
            { name: "Process", id: "process" },
            { name: "Contact", id: "contact" }
          ]}
          button={{
            text: "Order Now",            href: "#contact"
          }}
        />
      </div>
      
      <div id="hero" data-section="hero">
        <HeroSplitKpi
          title="Freshly Baked Tradition"
          description="Discover authentic Ukrainian bakery craftsmanship. Every loaf tells a story of heritage, quality ingredients, and passion for traditional baking methods passed down through generations."
          tag="Ukrainian Bakery Since 1995"
          tagIcon={Sparkles}
          background={{ variant: "plain" }}
          kpis={[
            { value: "25+", label: "Years of Excellence" },
            { value: "1000+", label: "Daily Customers" },
            { value: "100%", label: "Natural Ingredients" }
          ]}
          enableKpiAnimation={true}
          imageSrc="https://img.b2bpic.net/free-photo/man-putting-homemade-wheat-bread-with-flour-it-white-towel-with-two-hands_114579-2680.jpg"
          imageAlt="Fresh artisan bread display"
          imagePosition="right"
          buttons={[
            { text: "View Products", href: "#products" },
            { text: "Learn More", href: "#about" }
          ]}
        />
      </div>
      
      <div id="about" data-section="about">
        <MetricSplitMediaAbout
          tag="Our Story"
          tagIcon={Heart}
          title="Baked with Passion, Served with Pride"
          description="Our bakery was founded with a simple mission: to bring back the authentic taste of traditional Ukrainian baking. Using time-honored techniques, locally-sourced grains, and pure natural ingredients, we create breads and pastries that nourish both body and soul. Every product is a testament to our commitment to quality and our respect for baking traditions."
          metrics={[
            { value: "25+", title: "Years Perfecting Our Craft" },
            { value: "50+", title: "Traditional Recipes" }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/top-view-whole-cut-black-bread-spikes-brown-towel-meter-potteries-dark-colors-surface_179666-24628.jpg"
          imageAlt="Master baker at work"
          useInvertedBackground="noInvert"
        />
      </div>
      
      <div id="products" data-section="products">
        <ProductCardFour
          title="Our Finest Selection"
          description="Hand-crafted breads and pastries made fresh every morning with premium ingredients and traditional techniques."
          tag="Fresh Daily"
          tagIcon={Wheat}
          products={[
            {
              id: "sourdough",              name: "Artisan Sourdough",              price: "₴85",              variant: "Traditional Crust, 750g",              imageSrc: "https://img.b2bpic.net/free-photo/fresh-homemade-bread-recipe-idea_53876-105983.jpg",              imageAlt: "Golden sourdough loaf"
            },
            {
              id: "croissants",              name: "Butter Croissants",              price: "₴45",              variant: "Laminated Layers, 150g",              imageSrc: "https://img.b2bpic.net/free-photo/fresh-bread-wooden-spoon-old-wooden-background_169016-3149.jpg",              imageAlt: "Golden buttery croissants"
            },
            {
              id: "rye",              name: "Traditional Rye",              price: "₴95",              variant: "Dark Heritage, 900g",              imageSrc: "https://img.b2bpic.net/free-photo/bread-menu-restaurant_624325-713.jpg",              imageAlt: "Dark dense rye bread"
            }
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>
      
      <div id="process" data-section="process">
        <FeatureCardSix
          tag="Craftsmanship"
          title="The Art of Traditional Baking"
          description="Witness the meticulous process behind every loaf. From selecting grains to the final bake, quality is our constant."
          features={[
            {
              id: 1,
              title: "Grain Selection",              description: "We source premium flour from trusted local mills using traditional stone-ground methods for optimal flavor and nutrition.",              imageSrc: "https://img.b2bpic.net/free-photo/baker-forming-dough-sphere-wooden-board_74855-5658.jpg"
            },
            {
              id: 2,
              title: "Long Fermentation",              description: "Our doughs ferment slowly for 18-24 hours, developing complex flavors and improving digestibility through natural processes.",              imageSrc: "https://img.b2bpic.net/free-photo/cook-accurately-breaks-egg-make-dough-ingredients-cooking-flour-products-dough-bread-muffins-pie-pizza-dough-copy-space_639032-453.jpg"
            },
            {
              id: 3,
              title: "Artisan Shaping",              description: "Every loaf is hand-shaped by master bakers, ensuring perfect texture, crust development, and that signature authentic appearance.",              imageSrc: "https://img.b2bpic.net/free-photo/mid-shot-woman-kneading-dough-bowl_23-2148613500.jpg"
            }
          ]}
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>
      
      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFive
          title="What Our Customers Love"
          description="Hear from families and businesses who trust us for their daily bread and special occasions."
          tag="Customer Stories"
          testimonials={[
            {
              id: "1",              name: "Mariya Kovalenko, Kyiv",              date: "Date: 15 November 2024",              title: "The taste of childhood",              quote: "These breads remind me of what my grandmother used to bake. The quality is exceptional, and I can taste the love in every bite. We've been customers for three years now.",              tag: "Regular Customer",              avatarSrc: "https://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg",              avatarAlt: "Mariya Kovalenko",              imageSrc: "https://img.b2bpic.net/free-photo/fresh-homemade-bread-recipe-idea_53876-105983.jpg",              imageAlt: "Sourdough loaf"
            },
            {
              id: "2",              name: "Ivan Shevchenko, Lviv",              date: "Date: 08 November 2024",              title: "Perfect for our café",              quote: "We supply our café exclusively with Piekarnia breads. Our customers rave about the quality, freshness, and authentic taste. Highly recommended to any business owner.",              tag: "Café Owner",              avatarSrc: "https://img.b2bpic.net/free-photo/woman-showing-ok-sign_23-2148990150.jpg",              avatarAlt: "Ivan Shevchenko",              imageSrc: "https://img.b2bpic.net/free-photo/bread-menu-restaurant_624325-713.jpg",              imageAlt: "Rye bread loaf"
            },
            {
              id: "3",              name: "Olena Bondarenko, Kharkiv",              date: "Date: 02 November 2024",              title: "Worth every hryvnia",              quote: "I tried many bakeries, but this one stands out. The ingredients are clearly premium, the craftsmanship is obvious, and the prices are fair for the quality offered.",              tag: "Health Conscious",              avatarSrc: "https://img.b2bpic.net/free-photo/smiling-middle-aged-woman-showing-ok-sign_1262-17571.jpg",              avatarAlt: "Olena Bondarenko",              imageSrc: "https://img.b2bpic.net/free-photo/fresh-bread-wooden-spoon-old-wooden-background_169016-3149.jpg",              imageAlt: "Fresh croissants"
            },
            {
              id: "4",              name: "Sergiy Karpenko, Odesa",              date: "Date: 25 October 2024",              title: "Tradition meets quality",              quote: "As someone who appreciates traditional baking, I can confirm these are authentic Ukrainian methods and flavors. A true gem in our community.",              tag: "Tradition Lover",              avatarSrc: "https://img.b2bpic.net/free-photo/smiling-middle-aged-attractive-woman-showing-thumb-up-outdoors_1262-12526.jpg",              avatarAlt: "Sergiy Karpenko",              imageSrc: "https://img.b2bpic.net/free-photo/fresh-homemade-bread-recipe-idea_53876-105983.jpg",              imageAlt: "Artisan sourdough"
            }
          ]}
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>
      
      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Stay Connected"
          tagIcon={Mail}
          title="Join Our Baking Community"
          description="Subscribe to receive updates about new products, special promotions, and baking tips. Be the first to know when seasonal specialties arrive."
          useInvertedBackground="noInvert"
          imageSrc="https://img.b2bpic.net/free-photo/man-putting-homemade-wheat-bread-with-flour-it-white-towel-with-two-hands_114579-2680.jpg"
          imageAlt="Fresh bakery display"
          mediaPosition="right"
          inputPlaceholder="Enter your email"
          buttonText="Subscribe"
          termsText="We respect your privacy and will only send occasional updates about new products and special offers."
        />
      </div>
      
      <div id="footer" data-section="footer">
        <FooterLogoEmphasis
          logoText="Piekarnia"
          columns={[
            {
              items: [
                { label: "About Us", href: "about" },
                { label: "Our Products", href: "products" },
                { label: "Our Process", href: "process" }
              ]
            },
            {
              items: [
                { label: "Contact", href: "contact" },
                { label: "Orders", href: "#contact" },
                { label: "Special Orders", href: "#contact" }
              ]
            },
            {
              items: [
                { label: "Hours: 6am - 8pm Daily", href: "#" },
                { label: "Kyiv, Ukraine", href: "#" },
                { label: "+380 (50) 123-45-67", href: "#" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}