"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroSplit from '@/components/sections/hero/HeroSplit';
import InlineImageSplitTextAbout from '@/components/sections/about/InlineImageSplitTextAbout';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import FeatureCardTwelve from '@/components/sections/feature/FeatureCardTwelve';
import TestimonialCardFifteen from '@/components/sections/testimonial/TestimonialCardFifteen';
import BlogCardOne from '@/components/sections/blog/BlogCardOne';
import FaqSplitMedia from '@/components/sections/faq/FaqSplitMedia';
import ContactText from '@/components/sections/contact/ContactText';
import FooterBase from '@/components/sections/footer/FooterBase';
import { Sparkles, Award } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="elastic-effect"
      defaultTextAnimation="entrance-slide"
      borderRadius="sharp"
      contentWidth="mediumSmall"
      sizing="largeSmallSizeLargeTitles"
      background="circleGradient"
      cardStyle="gradient-radial"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="glass"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="Trattoria Italiana"
          navItems={[
            { name: "Menu", id: "menu" },
            { name: "About", id: "about" },
            { name: "Reservations", id: "contact" },
            { name: "Gallery", id: "gallery" },
            { name: "Contact", id: "contact" }
          ]}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplit
          title="Authentic Italian Cuisine"
          description="Experience the warmth and elegance of Italy. From time-honored family recipes to contemporary culinary innovation, every dish tells a story of passion, tradition, and excellence."
          background={{ variant: "plain" }}
          tag="Est. 1998"
          tagIcon={Sparkles}
          buttons={[
            { text: "Reserve a Table", href: "contact" },
            { text: "View Menu", href: "menu" }
          ]}
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=g1bsg0"
          imageAlt="Elegant Italian restaurant dining room with warm ambiance"
          imagePosition="right"
          fixedMediaHeight={true}
        />
      </div>

      <div id="about" data-section="about">
        <InlineImageSplitTextAbout
          heading={[
            { type: "text", content: "Crafted with" },
            { type: "image", src: "http://img.b2bpic.net/free-photo/high-angle-chef-male-kitchen_23-2148471868.jpg", alt: "Master chef" },
            { type: "text", content: "passion and tradition" }
          ]}
          buttons={[
            { text: "Our Story", href: "#" },
            { text: "Chef Biography", href: "#" }
          ]}
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="menu" data-section="menu">
        <ProductCardOne
          title="Signature Dishes"
          description="Discover our most celebrated creations, each prepared with the finest Italian ingredients and technique."
          tag="Specialties"
          tagIcon={Award}
          products={[
            {
              id: "1",              name: "Tagliatelle al Ragù Bolognese",              price: "€24",              imageSrc: "http://img.b2bpic.net/free-photo/spaghetti-with-fresh-ingredients_1220-439.jpg",              imageAlt: "Fresh tagliatelle with traditional Bolognese ragù"
            },
            {
              id: "2",              name: "Risotto ai Funghi Porcini",              price: "€22",              imageSrc: "http://img.b2bpic.net/free-photo/healthy-ingredients-kitchen-table-spaghetti-olive-oil-t_1220-820.jpg",              imageAlt: "Creamy mushroom risotto with porcini"
            },
            {
              id: "3",              name: "Pizza Margherita Classica",              price: "€16",              imageSrc: "http://img.b2bpic.net/free-photo/italian-food-ingredients-prepared-be-cooked_23-2148551672.jpg",              imageAlt: "Traditional Neapolitan pizza with fresh mozzarella"
            }
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardTwelve
          title="The Trattoria Experience"
          description="What makes us different"
          features={[
            {
              id: "ingredients",              label: "Ingredients",              title: "Sourced from Trusted Italian Suppliers",              items: [
                "Direct partnerships with Italian farms",                "Seasonal, fresh produce daily",                "Authentic imported specialties"
              ]
            },
            {
              id: "preparation",              label: "Preparation",              title: "Traditional Methods with Modern Refinement",              items: [
                "Time-honored cooking techniques",                "Contemporary plating and presentation",                "Chef-curated menu rotations"
              ]
            }
          ]}
          animationType="opacity"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFifteen
          testimonial="Every visit to Trattoria Italiana feels like coming home to Italy. The flavors are authentic, the service is impeccable, and the atmosphere transports you directly to the heart of Tuscany. Simply unforgettable."
          rating={5}
          author="Marco Benedetti, Food Critic"
          avatars={[
            { src: "http://img.b2bpic.net/free-photo/young-smiling-lovers-looking-each-other-have-romantic-dinner-with-wine-food_171337-676.jpg", alt: "Satisfied dining guest" },
            { src: "http://img.b2bpic.net/free-photo/couple-lovers-having-romantic-dinner-home_171337-675.jpg", alt: "Family dinner experience" },
            { src: "http://img.b2bpic.net/free-photo/happy-woman-enjoying-dining-table-while-being-kissed-hand-by-her-boyfriend_637285-3196.jpg", alt: "Professional dining event" },
            { src: "http://img.b2bpic.net/free-photo/young-woman-eating-flirting-with-her-man-while-have-romantic-dinner_171337-19274.jpg", alt: "Celebration dinner" }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="gallery" data-section="gallery">
        <BlogCardOne
          title="Restaurant Highlights"
          description="Moments that capture the essence of our culinary journey"
          blogs={[
            {
              id: "1",              category: "Cuisine",              title: "Our Wine Selection",              excerpt: "A curated collection of the finest Italian and European wines, personally selected to complement every dish.",              imageSrc: "http://img.b2bpic.net/free-photo/many-wooden-barrels_1398-4736.jpg",              imageAlt: "Premium wine collection",              authorName: "Roberto Rossini",              authorAvatar: "http://img.b2bpic.net/free-photo/high-angle-chef-male-kitchen_23-2148471868.jpg",              date: "15 Nov 2024"
            },
            {
              id: "2",              category: "Heritage",              title: "Three Generations Strong",              excerpt: "Learn about our family legacy and how tradition continues to inspire every aspect of our restaurant.",              imageSrc: "http://img.b2bpic.net/free-photo/traditional-greek-street-cafe-with-flowers_661209-441.jpg",              imageAlt: "Historic restaurant storefront",              authorName: "Isabella Rossini",              authorAvatar: "http://img.b2bpic.net/free-photo/high-angle-chef-male-kitchen_23-2148471868.jpg",              date: "08 Nov 2024"
            },
            {
              id: "3",              category: "Experience",              title: "Special Events & Celebrations",              excerpt: "Host your most important moments with us. From intimate gatherings to grand celebrations, we create memories.",              imageSrc: "http://img.b2bpic.net/free-photo/young-woman-eating-flirting-with-her-man-while-have-romantic-dinner_171337-19274.jpg",              imageAlt: "Celebration dinner setting",              authorName: "Marco Benedetti",              authorAvatar: "http://img.b2bpic.net/free-photo/high-angle-chef-male-kitchen_23-2148471868.jpg",              date: "01 Nov 2024"
            }
          ]}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          animationType="slide-up"
          carouselMode="buttons"
        />
      </div>

      <div id="info" data-section="info">
        <FaqSplitMedia
          title="Dining Information"
          description="Everything you need to know about visiting us"
          faqs={[
            {
              id: "1",              title: "What are your operating hours?",              content: "We are open Tuesday through Thursday from 5:00 PM to 11:00 PM, Friday and Saturday from 5:00 PM to midnight, and Sunday from 5:00 PM to 10:00 PM. We are closed Mondays."
            },
            {
              id: "2",              title: "Do you accept reservations?",              content: "Yes, we highly recommend reservations, especially for weekends and special occasions. You can book online through our website or call us directly at +1 (555) 123-4567."
            },
            {
              id: "3",              title: "Do you accommodate dietary restrictions?",              content: "Absolutely. We can accommodate vegetarian, vegan, gluten-free, and other dietary requirements. Please mention your needs when making a reservation so our chef can prepare accordingly."
            }
          ]}
          imageSrc="http://img.b2bpic.net/free-photo/traditional-greek-street-cafe-with-flowers_661209-441.jpg"
          imageAlt="Trattoria Italiana storefront"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          mediaPosition="left"
          animationType="smooth"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText
          text="Ready to experience authentic Italian cuisine? Reserve your table today and let us welcome you to our family."
          animationType="entrance-slide"
          buttons={[
            { text: "Reserve Now", href: "#" },
            { text: "Call Us", href: "#" }
          ]}
          background={{ variant: "plain" }}
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBase
          logoText="Trattoria Italiana"
          copyrightText="© 2024 Trattoria Italiana. All rights reserved."
          columns={[
            {
              title: "Dining",              items: [
                { label: "Menu", href: "menu" },
                { label: "Private Events", href: "#" },
                { label: "Wine Selection", href: "#" }
              ]
            },
            {
              title: "Visit Us",              items: [
                { label: "Hours", href: "info" },
                { label: "Location", href: "#" },
                { label: "Directions", href: "#" }
              ]
            },
            {
              title: "Connect",              items: [
                { label: "Contact", href: "contact" },
                { label: "Instagram", href: "https://instagram.com" },
                { label: "Facebook", href: "https://facebook.com" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}