"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroOverlay from '@/components/sections/hero/HeroOverlay';
import MediaAbout from '@/components/sections/about/MediaAbout';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne';
import FaqBase from '@/components/sections/faq/FaqBase';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FooterMedia from '@/components/sections/footer/FooterMedia';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-stagger"
      defaultTextAnimation="reveal-blur"
      borderRadius="pill"
      contentWidth="smallMedium"
      sizing="largeSmallSizeMediumTitles"
      background="blurBottom"
      cardStyle="soft-shadow"
      primaryButtonStyle="inset-glow"
      secondaryButtonStyle="solid"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay 
          brandName="Lviv Bakery"
          navItems={[{name:"Menu",id:"products"},{name:"About Us",id:"about"},{name:"Reviews",id:"testimonials"},{name:"FAQ",id:"faq"},{name:"Contact",id:"contact"}]}
          button={{text:"Order Now",href:"#contact"}}
          className="py-4 px-6"
          buttonClassName="px-5 py-2"
          buttonTextClassName="font-semibold"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroOverlay 
          title="Authentic Ukrainian Baking"
          description="Experience the warmth of tradition with our freshly baked breads, pastries, and desserts, crafted with love and age-old recipes."
          tag="Welcome Home"
          buttons={[{text:"View Our Menu",href:"#products"},{text:"Find Us",href:"#contact"}]}
          imageSrc="https://img.b2bpic.net/free-photo/white-cheese-bread-with-eggs_140725-3991.jpg?_wi=1"
          imageAlt="Cozy Ukrainian bakery interior with freshly baked goods"
          textPosition="bottom-left"
          showBlur={true}
          showDimOverlay={false}
          ariaLabel="Hero section with Ukrainian bakery ambiance"
          titleClassName="text-foreground text-7xl font-normal"
          descriptionClassName="text-foreground/90"
          tagClassName="text-primary-cta text-lg"
          buttonClassName="font-semibold"
          buttonTextClassName="text-primary-cta-text"
          mediaWrapperClassName="h-[70vh] md:h-[80vh] lg:h-[90vh]"
          className="pb-0"
        />
      </div>

      <div id="about" data-section="about">
        <MediaAbout 
          title="Our Story: A Taste of Ukraine"
          description="Founded on generations of family recipes and a passion for baking, Lviv Bakery brings the heart of Ukrainian culinary tradition to your table. Every loaf and pastry tells a story of heritage and handcrafted excellence."
          tag="About Us"
          buttons={[{text:"Learn More",href:"#"}]}
          imageSrc="https://img.b2bpic.net/free-photo/man-baker-with-fresh-bread-baker-house_1303-32273.jpg"
          imageAlt="Friendly Ukrainian baker in traditional setting"
          useInvertedBackground={false}
          ariaLabel="About section for Lviv Bakery"
          textBoxClassName="backdrop-blur-sm bg-card/60 p-8 rounded-pill"
          titleClassName="text-5xl"
          descriptionClassName="text-lg"
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardOne 
          title="Our Delicious Offerings"
          description="From fluffy Paska to savory Pirozhki, discover a world of authentic Ukrainian flavors baked fresh daily."
          tag="Freshly Baked"
          products={[{id:"1",name:"Paska (Easter Bread)",price:"$18.00",imageSrc:"https://img.b2bpic.net/free-photo/side-close-up-view-cupcakes-cake-appetizing-cupcakes-cake-cutting-board_140725-122889.jpg",imageAlt:"Traditional Ukrainian Easter bread, Paska"},{id:"2",name:"Pirozhki (Savory Buns)",price:"$4.50 ea",imageSrc:"https://img.b2bpic.net/free-photo/mini-casserole-with-side-salad_140725-4052.jpg?_wi=1",imageAlt:"Assortment of freshly baked Pirozhki"},{id:"3",name:"Medivnyk (Honey Cake)",price:"$7.00/slice",imageSrc:"https://img.b2bpic.net/free-photo/slice-homemade-honey-cake_658428-129.jpg?_wi=1",imageAlt:"Slice of Ukrainian Honey Cake, Medivnyk"},{id:"4",name:"Deruny (Potato Pancakes)",price:"$6.00",imageSrc:"https://img.b2bpic.net/free-photo/mini-casserole-with-side-salad_140725-4052.jpg?_wi=2",imageAlt:"Traditional Ukrainian potato pancakes, Deruny"},{id:"5",name:"Syrnyky (Cheese Pancakes)",price:"$5.50",imageSrc:"https://img.b2bpic.net/free-photo/slice-homemade-honey-cake_658428-129.jpg?_wi=2",imageAlt:"Sweet Ukrainian cheese pancakes, Syrnyky"}]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={true}
          ariaLabel="Products section displaying Ukrainian baked goods"
          cardClassName="bg-card rounded-pill border border-card/80 transition-transform duration-300 hover:scale-[1.02]"
          titleClassName="text-6xl text-foreground font-normal"
          descriptionClassName="text-foreground/90"
          cardNameClassName="text-foreground font-semibold"
          cardPriceClassName="text-primary-cta text-2xl"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardOne 
          title="What Our Customers Say"
          description="Hear from our cherished community about their Lviv Bakery experience."
          tag="Happy Faces"
          testimonials={[{id:"1",name:"Olena K.",role:"Local Resident",company:"Kyiv",rating:5,imageSrc:"https://img.b2bpic.net/free-photo/female-bakery-owner-counter-with-croissant-talking-mobile-phone_23-2148189128.jpg"},{id:"2",name:"Mark P.",role:"Food Blogger",company:"LvivEats",rating:5,imageSrc:"https://img.b2bpic.net/free-photo/smiling-man-having-coffee-pastry-coffee-shop_1170-2321.jpg"},{id:"3",name:"Sophia R.",role:"Small Business Owner",company:"Odesa Delights",rating:5,imageSrc:"https://img.b2bpic.net/free-photo/portrait-family-having-fun-kitchen_329181-5378.jpg"},{id:"4",name:"Andriy S.",role:"Pastry Enthusiast",company:"Kharkiv",rating:5,imageSrc:"https://img.b2bpic.net/free-photo/female-baker-taking-notes-while-pastry-shop_23-2150379560.jpg"}]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          ariaLabel="Customer Testimonials section"
          cardClassName="bg-card rounded-pill soft-shadow h-100 flex items-end justify-start p-6 text-foreground"
          overlayClassName="bg-card/70 backdrop-blur-sm rounded-lg p-4"
          nameClassName="font-semibold text-xl"
          roleClassName="text-foreground/80 text-sm"
          companyClassName="text-foreground/60 text-xs"
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqBase 
          title="Frequently Asked Questions"
          description="Find quick answers to common questions about our bakery, products, and services."
          faqs={[{id:"1",title:"What are your bakery hours?",content:"We are open Tuesday to Saturday, 8 AM - 6 PM. Closed on Sundays and Mondays."},{id:"2",title:"Do you offer custom cake orders?",content:"Yes, we do! Please contact us at least one week in advance to discuss your custom cake needs."},{id:"3",title:"Are there any vegan or gluten-free options?",content:"We offer a selection of vegan pastries. Please ask our staff for today's gluten-free options, as they vary."},{id:"4",title:"Do you deliver?",content:"Currently, we offer local pick-up only. We hope to introduce delivery services soon!"}]}
          faqsAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={true}
          ariaLabel="Frequently Asked Questions section"
          accordionClassName="bg-card/80 text-foreground"
          accordionTitleClassName="font-medium text-lg"
          accordionContentClassName="text-foreground/80"
          separatorClassName="border-foreground/20"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplitForm 
          title="Get in Touch With Us"
          description="We'd love to hear from you! Whether you have a question, a special request, or just want to say hello, fill out the form below."
          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-vector/colorful-hand-painted-exotic-floral-pattern_23-2148816092.jpg"
          imageAlt="Abstract Ukrainian folk pattern background"
          mediaAnimation="slide-up"
          mediaPosition="right"
          buttonText="Send Message"
          ariaLabel="Contact Us section"
          formCardClassName="bg-card soft-shadow p-8 rounded-pill"
          titleClassName="text-5xl text-foreground font-normal"
          descriptionClassName="text-foreground/90"
          buttonClassName="px-6 py-3 font-semibold"
          buttonTextClassName="text-primary-cta-text"
          mediaClassName="rounded-pill object-cover h-full"
          contentClassName="lg:min-h-[500px]"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterMedia 
          imageSrc="https://img.b2bpic.net/free-photo/white-cheese-bread-with-eggs_140725-3991.jpg?_wi=2"
          imageAlt="Ukrainian pastries on display in a bakery"
          columns={[{title:"Bakery",items:[{label:"Our Story",href:"#about"},{label:"Products",href:"#products"},{label:"FAQs",href:"#faq"}]},{title:"Connect",items:[{label:"Contact Us",href:"#contact"},{label:"Instagram",href:"https://www.instagram.com/lvivbakery"},{label:"Facebook",href:"https://www.facebook.com/lvivbakery"}]}]}
          logoText="Lviv Bakery"
          copyrightText="© 2024 Lviv Bakery. All rights reserved."
          ariaLabel="Site footer with navigation and social links"
          logoTextClassName="text-foreground"
          copyrightTextClassName="text-foreground/80"
          columnTitleClassName="text-foreground text-lg font-semibold"
          columnItemClassName="text-foreground/80 hover:text-primary-cta transition-colors"
        />
      </div>
    </ThemeProvider>
  );
}
