"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroLogoBillboardSplit from '@/components/sections/hero/HeroLogoBillboardSplit';
import TextSplitAbout from '@/components/sections/about/TextSplitAbout';
import ProductCardThree from '@/components/sections/product/ProductCardThree';
import FeatureCardTwentySix from '@/components/sections/feature/FeatureCardTwentySix';
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
import FaqBase from '@/components/sections/faq/FaqBase';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';
import { BookText, Heart, Leaf, Users } from "lucide-react";

export default function SitePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="mediumLarge"
      sizing="mediumSizeLargeTitles"
      background="noise"
      cardStyle="gradient-mesh"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          navItems={[
            { name: "About Us", id: "about" },
            { name: "Menu", id: "products" },
            { name: "Testimonials", id: "testimonials" },
            { name: "FAQ", id: "faq" },
            { name: "Contact", id: "contact" },
          ]}
          brandName="Смачна Випічка"
          button={{ text: "Order Now", href: "#products" }}
          className="py-2 lg:py-4"
          buttonClassName="px-4 py-2 lg:px-6 lg:py-3 text-sm lg:text-base font-semibold"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogoBillboardSplit
          logoText="Смачна Випічка"
          description="Смачна Випічка (Smachna Vypichka) brings the authentic taste of Ukraine to your table. Experience handcrafted pastries, fresh bread, and traditional delights made with love and the finest ingredients."
          background={{ variant: "radial-gradient" }}
          buttons={[
            { text: "Explore Our Menu", href: "#products" },
            { text: "Learn More About Us", href: "#about" },
          ]}
          layoutOrder="default"
          imageSrc="https://img.b2bpic.net/free-photo/white-cheese-bread-with-eggs_140725-3991.jpg"
          imageAlt="Assortment of freshly baked Ukrainian pastries and bread"
          mediaAnimation="opacity"
          frameStyle="card"
          className="py-16 lg:py-24"
        />
      </div>

      <div id="about" data-section="about">
        <TextSplitAbout
          title="Our Story: A Taste of Home"
          description={[
            "Nestled in the heart of our community, Смачна Випічка is more than just a bakery – it's a culinary journey to Ukraine. We proudly uphold generations of family recipes, ensuring every bite evokes warmth, tradition, and homemade comfort.",            "Our dedicated bakers meticulously craft each item, from savory Pampushky to sweet Varenyky, using only the freshest, locally sourced ingredients. We believe in baking with passion, serving with a smile, and sharing the rich heritage of Ukrainian flavors with you."]}
          useInvertedBackground={true}
          showBorder={true}
          buttons={[{ text: "Meet Our Team", href: "#team" }]}
          titleClassName="text-4xl lg:text-6xl font-extrabold"
          descriptionClassName="text-lg lg:text-xl text-foreground/80 leading-relaxed"
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardThree
          title="Our Delicious Baked Goods"
          description="Explore our authentic collection of Ukrainian pastries, breads, and delightful treats, baked fresh daily with traditional recipes."
          products={[
            {
              id: "pampushky",              name: "Pampushky with Garlic",              price: "$5.99",              imageSrc: "https://img.b2bpic.net/free-photo/top-view-delicious-sweet-pastry-light-surface-tea-dessert-pie-sugar-fruit-biscuit-cookie-sweet-cake_179666-17705.jpg",              imageAlt: "Freshly baked Pampushky with garlic sauce"},
            {
              id: "varenyky-sweet",              name: "Sweet Varenyky (Cherry)",              price: "$8.50",              imageSrc: "https://img.b2bpic.net/free-photo/delicious-dumplings-with-cherries-jam_2829-8239.jpg?_wi=1",              imageAlt: "Homemade cherry varenyky with sour cream"},
            {
              id: "pyrizhky-potato",              name: "Pyrizhky (Potato Filling)",              price: "$4.25",              imageSrc: "https://img.b2bpic.net/free-photo/vertical-shot-delicious-sweet-yeast-bread-white-table_181624-58275.jpg?_wi=1",              imageAlt: "Fluffy pyrizhky with a savory potato filling"},
            {
              id: "varenyky-savory",              name: "Savory Varenyky (Potato & Onion)",              price: "$8.50",              imageSrc: "https://img.b2bpic.net/free-photo/delicious-dumplings-with-cherries-jam_2829-8239.jpg?_wi=2",              imageAlt: "Homemade potato and onion varenyky"},
            {
              id: "pyrizhky-cabbage",              name: "Pyrizhky (Cabbage Filling)",              price: "$4.25",              imageSrc: "https://img.b2bpic.net/free-photo/vertical-shot-delicious-sweet-yeast-bread-white-table_181624-58275.jpg?_wi=2",              imageAlt: "Pyrizhky filled with braised cabbage"},
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          useInvertedBackground={false}
          cardClassName="p-4 bg-card rounded-soft shadow-sm hover:shadow-md transition-all duration-300"
          textBoxTitleClassName="text-3xl lg:text-5xl font-bold"
          textBoxDescriptionClassName="text-md lg:text-lg text-foreground/70"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardTwentySix
          title="Why Choose Смачна Випічка?"
          description="We are dedicated to preserving Ukrainian culinary traditions and bringing joy to our customers with every bite."
          features={[
            {
              title: "Fresh, Local Ingredients",              description: "We source the finest local ingredients to ensure unmatched quality and freshness in every baked good.",              imageSrc: "https://img.b2bpic.net/free-photo/milk-bakery-products_93675-134322.jpg",              imageAlt: "Fresh produce and baking ingredients",              buttonIcon: Leaf,
            },
            {
              title: "Authentic Ukrainian Recipes",              description: "Our recipes have been passed down through generations, ensuring an authentic taste of Ukraine.",              imageSrc: "https://img.b2bpic.net/free-photo/view-raw-pastry-round-board-set-various-foods-grater-ice-background_140725-156890.jpg",              imageAlt: "Old cookbook with traditional recipes",              buttonIcon: BookText,
            },
            {
              title: "Handcrafted with Love",              description: "Every pastry and loaf of bread is meticulously handcrafted by our skilled bakers with passion and care.",              imageSrc: "https://img.b2bpic.net/free-photo/chef-holds-fresh-bread-hand-man-preparing-dough-table-kitchen-black-background-healthy-cooking-concept_639032-475.jpg",              imageAlt: "Baker kneading dough by hand",              buttonIcon: Heart,
            },
            {
              title: "Community Focused",              description: "We are proud to be a part of our local community, supporting local producers and sharing our culture.",              imageSrc: "https://img.b2bpic.net/free-photo/beautiful-girls-buys-buns-bakery_1157-24661.jpg",              imageAlt: "Friendly bakery staff serving customers",              buttonIcon: Users,
            },
          ]}
          textboxLayout="default"
          useInvertedBackground={true}
          className="py-16 lg:py-24"
          textBoxTitleClassName="text-3xl lg:text-5xl font-bold"
          textBoxDescriptionClassName="text-md lg:text-lg text-foreground/70"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardSix
          title="What Our Community Says"
          description="Hear from our wonderful customers who love our authentic Ukrainian baked goods."
          testimonials={[
            { id: "1", name: "Olena Petrova", handle: "@olenabakes", testimonial: "Смачна Випічка reminds me of my grandmother's kitchen! The best varenyky outside of Ukraine. Absolutely divine!", imageSrc: "https://img.b2bpic.net/free-photo/woman-films-vlog-praising-bio-local-shop_482257-81629.jpg?_wi=1", imageAlt: "Olena Petrova" },
            { id: "2", name: "Dmytro Kovalenko", handle: "@dmytro_foodie", testimonial: "The pampushky are a must-try! Perfectly garlicky and soft. This bakery is a true gem in our neighborhood.", imageSrc: "https://img.b2bpic.net/free-photo/waiter-serving-cup-coffee-customer_1170-634.jpg?_wi=1", imageAlt: "Dmytro Kovalenko" },
            { id: "3", name: "Anastasiia Fedorova", handle: "@anastasiia_eats", testimonial: "I can't get enough of their pyrizhky! Each bite is bursting with flavor. A wonderful taste of Ukrainian tradition.", imageSrc: "https://img.b2bpic.net/free-photo/portrait-family-having-fun-kitchen_329181-5378.jpg", imageAlt: "Anastasiia Fedorova" },
            { id: "4", name: "Maksym Zinchenko", handle: "@maksym_z", testimonial: "Their sweet pastries are incredible, especially the cherry varenyky. A perfect treat for any occasion. Highly recommend!", imageSrc: "https://img.b2bpic.net/free-photo/fashionable-lady-cafe-drinking-coffee-leaning-table-enjoying-view-outdoors_197531-22724.jpg", imageAlt: "Maksym Zinchenko" },
            { id: "5", name: "Kateryna Lysenko", handle: "@kateryna_home", testimonial: "A truly authentic experience! The bread is so fresh, and every item is made with such care. My new favorite bakery.", imageSrc: "https://img.b2bpic.net/free-photo/woman-films-vlog-praising-bio-local-shop_482257-81629.jpg?_wi=2", imageAlt: "Kateryna Lysenko" },
            { id: "6", name: "Ivan Volkov", handle: "@ivan_chef", testimonial: "As a chef, I appreciate the dedication to traditional methods and quality ingredients. This bakery is a culinary delight.", imageSrc: "https://img.b2bpic.net/free-photo/waiter-serving-cup-coffee-customer_1170-634.jpg?_wi=2", imageAlt: "Ivan Volkov" },
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          speed={40}
          className="py-16 lg:py-24"
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqBase
          title="Common Questions"
          description="Find answers to frequently asked questions about our bakery and products."
          faqs={[
            { id: "1", title: "What are your opening hours?", content: "We are open Tuesday to Saturday, 8 AM - 6 PM. Closed on Sundays and Mondays." },
            { id: "2", title: "Do you offer catering services?", content: "Yes, we offer catering for events big and small! Please contact us directly for custom orders and pricing." },
            { id: "3", title: "Do you have gluten-free options?", content: "While we strive to accommodate all dietary needs, our kitchen handles wheat. Please inform us of any allergies." },
            { id: "4", title: "Can I place a custom order?", content: "Absolutely! For custom cakes, pastries, or large orders, please contact us at least 48 hours in advance." },
          ]}
          faqsAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={true}
          animationType="smooth"
          showCard={true}
          className="py-16 lg:py-24"
        />
      </div>
      
      <div id="contact" data-section="contact">
        <ContactSplitForm
          title="Visit Us or Get in Touch"
          description="We'd love to hear from you! Send us a message or stop by our bakery."
          inputs={[
            { name: "name", type: "text", placeholder: "Your Name", required: true },
            { name: "email", type: "email", placeholder: "Your Email", required: true },
          ]}
          textarea={{ name: "message", placeholder: "Your Message", rows: 5, required: true }}
          useInvertedBackground={false}
          imageSrc="https://img.b2bpic.net/free-photo/woman-blue-hat-sits-windowsill-cafe_8353-194.jpg"
          imageAlt="Cozy Ukrainian bakery storefront with warm lighting"
          mediaAnimation="opacity"
          mediaPosition="right"
          buttonText="Send Message"
          className="py-16 lg:py-24"
          titleClassName="text-3xl lg:text-5xl font-bold"
          descriptionClassName="text-md lg:text-lg text-foreground/70"
        />
      </div>
      
      <div id="footer" data-section="footer">
        <FooterLogoEmphasis
          columns={[
            { items: [{ label: "Home", href: "#hero" }, { label: "Menu", href: "#products" }, { label: "About Us", href: "#about" }] },
            { items: [{ label: "FAQ", href: "#faq" }, { label: "Contact", href: "#contact" }, { label: "Privacy Policy", href: "/privacy" }] },
            { items: [
              { label: "Follow Us", href: "https://facebook.com/smachnavypichka", onClick: () => window.open('https://facebook.com/smachnavypichka', '_blank') },
              { label: "Instagram", href: "https://instagram.com/smachnavypichka", onClick: () => window.open('https://instagram.com/smachnavypichka', '_blank') }
            ] },
          ]}
          logoText="Смачна Випічка"
          className="bg-card text-foreground/90 py-8 lg:py-12 text-center"
        />
      </div>
    </ThemeProvider>
  );
}
