"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroSplitDualMedia from '@/components/sections/hero/HeroSplitDualMedia';
import TextAbout from '@/components/sections/about/TextAbout';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import BlogCardThree from '@/components/sections/blog/BlogCardThree';
import TestimonialCardTwo from '@/components/sections/testimonial/TestimonialCardTwo';
import ContactFaq from '@/components/sections/contact/ContactFaq';
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';
import { Utensils, ChefHat, Calendar } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-shift"
      defaultTextAnimation="background-highlight"
      borderRadius="pill"
      contentWidth="small"
      sizing="mediumLargeSizeLargeTitles"
      background="floatingGradient"
      cardStyle="outline"
      primaryButtonStyle="inset-glow"
      secondaryButtonStyle="glass"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          brandName="Culinary Haven"
          navItems={[
            { name: "Menu", id: "menu" },
            { name: "Gallery", id: "gallery" },
            { name: "About", id: "about" },
            { name: "Reviews", id: "testimonials" },
            { name: "Reservations", id: "reservations" }
          ]}
          button={{
            text: "Book Now",            href: "reservations"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitDualMedia
          background={{ variant: "plain" }}
          tag="Welcome to Culinary Excellence"
          tagIcon={Utensils}
          title="An Unforgettable Dining Experience Awaits"
          description="Discover our expertly crafted cuisine featuring locally sourced ingredients, signature dishes prepared by award-winning chefs, and an ambiance that celebrates the art of fine dining."
          mediaItems={[
            {
              imageSrc: "https://img.b2bpic.net/free-photo/wonderful-wedding-table-amazing-restaurant_8353-9875.jpg",              imageAlt: "Elegant restaurant dining room with ambient lighting"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-photo/top-view-grilled-chicken-fillet-served-with-bulgur-vegetables-white-wine_141793-2436.jpg",              imageAlt: "Beautifully plated gourmet signature dish"
            }
          ]}
          rating={5}
          ratingText="Loved by Diners"
          buttons={[
            {
              text: "Reserve a Table",              href: "reservations"
            },
            {
              text: "Explore Menu",              href: "menu"
            }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <TextAbout
          tag="Our Story"
          tagIcon={ChefHat}
          title="Celebrating the Art of Culinary Innovation Since 2010"
          useInvertedBackground="invertDefault"
          buttons={[
            {
              text: "View Our Team",              href: "team"
            }
          ]}
        />
      </div>

      <div id="menu" data-section="menu">
        <ProductCardTwo
          title="Our Menu"
          description="Expertly crafted dishes celebrating seasonal ingredients and culinary artistry"
          tag="Curated Selection"
          products={[
            {
              id: "appetizer-1",              brand: "Starters",              name: "Pan-Seared Scallop Medley",              price: "$18",              rating: 5,
              reviewCount: "247",              imageSrc: "https://img.b2bpic.net/free-photo/top-view-grilled-chicken-fillet-served-with-bulgur-vegetables-white-wine_141793-2435.jpg",              imageAlt: "Pan-seared scallops with seasonal vegetables"
            },
            {
              id: "main-1",              brand: "Main Courses",              name: "Prime Rib with Truffle Jus",              price: "$42",              rating: 5,
              reviewCount: "389",              imageSrc: "https://img.b2bpic.net/free-photo/vertical-view-delicious-tuna-dish-with-glass-wine-cheese-set_8353-10584.jpg",              imageAlt: "Prime rib with rich truffle jus and roasted vegetables"
            },
            {
              id: "main-2",              brand: "Main Courses",              name: "Herb-Crusted Salmon",              price: "$36",              rating: 5,
              reviewCount: "312",              imageSrc: "https://img.b2bpic.net/free-photo/vertical-view-delicious-tuna-dish-with-glass-wine-cheese-set_8353-10584.jpg",              imageAlt: "Herb-crusted salmon fillet with lemon beurre blanc"
            },
            {
              id: "dessert-1",              brand: "Desserts",              name: "Dark Chocolate Torte",              price: "$12",              rating: 5,
              reviewCount: "156",              imageSrc: "https://img.b2bpic.net/free-photo/chicken-nuggets-filled-with-cream-ham-served-with-pineapple_140725-1517.jpg",              imageAlt: "Rich dark chocolate torte with berry coulis"
            },
            {
              id: "drink-1",              brand: "Beverages",              name: "Estate Cabernet Sauvignon",              price: "$65",              rating: 5,
              reviewCount: "98",              imageSrc: "https://img.b2bpic.net/free-photo/nuts-fruits-black-background-with-glass-drink_114579-16625.jpg",              imageAlt: "Premium wine selection"
            }
          ]}
          gridVariant="bento-grid"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="gallery" data-section="gallery">
        <BlogCardThree
          title="Photo Gallery"
          description="Explore the elegance of our restaurant, from intimate dining moments to culinary masterpieces"
          tag="Visual Journey"
          blogs={[
            {
              id: "gallery-1",              category: "Dining Ambiance",              title: "Intimate Fine Dining Room",              excerpt: "Experience the warm, sophisticated atmosphere perfect for special occasions and celebrations",              imageSrc: "https://img.b2bpic.net/free-photo/grey-painted-fancy-restaurant-with-empty-dinner-table_140725-8729.jpg",              imageAlt: "Elegant dining room with warm lighting and table settings",              authorName: "Restaurant Team",              authorAvatar: "/placeholders/placeholder1.webp",              date: "Featured"
            },
            {
              id: "gallery-2",              category: "Culinary Craft",              title: "Our Award-Winning Chef",              excerpt: "Witness the expertise and passion behind every dish created in our professional kitchen",              imageSrc: "https://img.b2bpic.net/free-photo/there-are-glasses-wine-water-table-with-white-cloth-are-ready-dining_613910-3426.jpg",              imageAlt: "Chef preparing an elegant plated dish",              authorName: "Restaurant Team",              authorAvatar: "/placeholders/placeholder1.webp",              date: "Featured"
            },
            {
              id: "gallery-3",              category: "Signature Dishes",              title: "Artfully Plated Creations",              excerpt: "Each dish is a work of art, combining flavors, textures, and visual presentation",              imageSrc: "https://img.b2bpic.net/free-photo/fish-stew-creamy-sauce-tomato-parsley-plate-knife-fork-light-wooden-table_114579-3.jpg",              imageAlt: "Beautifully plated fine dining dish",              authorName: "Restaurant Team",              authorAvatar: "/placeholders/placeholder1.webp",              date: "Featured"
            },
            {
              id: "gallery-4",              category: "Seasonal Specials",              title: "Seasonal Signature Dish",              excerpt: "Our chef's special creation featuring the finest seasonal ingredients available",              imageSrc: "https://img.b2bpic.net/free-photo/fried-salmon-fillet-with-sauce-top_140725-6436.jpg",              imageAlt: "Premium specialty dish with artistic presentation",              authorName: "Restaurant Team",              authorAvatar: "/placeholders/placeholder1.webp",              date: "Featured"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTwo
          title="Guest Reviews"
          description="Hear from our valued guests about their unforgettable dining experiences"
          tag="Testimonials"
          testimonials={[
            {
              id: "1",              name: "Margaret Chen",              role: "Food Critic",              testimonial: "An exceptional culinary experience from start to finish. The attention to detail in every dish and the impeccable service made this dinner truly memorable. This restaurant sets the gold standard for fine dining.",              imageSrc: "https://img.b2bpic.net/free-photo/casual-smile-street-style-background-spring_1139-777.jpg",              imageAlt: "Margaret Chen"
            },
            {
              id: "2",              name: "David Richardson",              role: "Restaurant Enthusiast",              testimonial: "The passion for quality is evident in every aspect of this establishment. From the carefully curated wine list to the innovative menu, everything speaks to culinary excellence. A must-visit destination.",              imageSrc: "https://img.b2bpic.net/free-photo/young-businesswoman-portrait-office_1262-1506.jpg",              imageAlt: "David Richardson"
            },
            {
              id: "3",              name: "Sarah Martinez",              role: "Event Planner",              testimonial: "We've hosted numerous celebrations here and every single event has been flawlessly executed. The team's professionalism, combined with outstanding cuisine, creates an unforgettable experience for all guests.",              imageSrc: "https://img.b2bpic.net/free-photo/portrait-beautiful-business-office-business-center_1303-20365.jpg",              imageAlt: "Sarah Martinez"
            },
            {
              id: "4",              name: "James Wilson",              role: "Business Executive",              testimonial: "The perfect setting for important business dinners. Sophisticated ambiance, impeccable service, and world-class cuisine make every visit special. I highly recommend reserving a table.",              imageSrc: "https://img.b2bpic.net/free-photo/portrait-smiley-business-woman_23-2148603029.jpg",              imageAlt: "James Wilson"
            }
          ]}
          animationType="blur-reveal"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="reservations" data-section="reservations">
        <ContactFaq
          ctaTitle="Reserve Your Table"
          ctaDescription="Book an elegant dining experience with our team. We ensure every reservation receives exceptional service and attention to detail."
          ctaIcon={Calendar}
          ctaButton={{
            text: "Make a Reservation",            href: "https://reservations.example.com"
          }}
          faqs={[
            {
              id: "1",              title: "What is your typical reservation timeline?",              content: "We recommend reservations at least 2-3 days in advance. However, we often accommodate last-minute bookings based on availability. For special events or large parties (8+ guests), please call us directly."
            },
            {
              id: "2",              title: "Do you accommodate dietary restrictions?",              content: "Absolutely! We are committed to catering to all dietary needs including vegetarian, vegan, gluten-free, and allergy-specific requirements. Please mention any restrictions when making your reservation so our chef can prepare accordingly."
            },
            {
              id: "3",              title: "What is your dress code?",              content: "Business casual is our standard dress code. We appreciate when guests dress elegantly for the occasion, though jackets and ties are not required. We simply ask that attire be appropriate for an upscale dining establishment."
            },
            {
              id: "4",              title: "Do you have private dining options?",              content: "Yes, we offer private dining rooms perfect for intimate celebrations, corporate events, and special occasions. These spaces can accommodate groups of 8-40 guests with customized menus and dedicated service."
            },
            {
              id: "5",              title: "What is your cancellation policy?",              content: "We require 24 hours notice for cancellations. If you need to reschedule, please contact us as soon as possible. Late cancellations may result in a reservation fee."
            },
            {
              id: "6",              title: "Do you serve wine pairings with meals?",              content: "Our sommelier offers expertly curated wine pairings tailored to your chosen menu. We feature an extensive collection of local and international wines. Ask about our wine pairing options when you make your reservation."
            }
          ]}
          useInvertedBackground="invertDefault"
          animationType="slide-up"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoEmphasis
          logoText="Culinary Haven"
          columns={[
            {
              items: [
                { label: "Menu", href: "menu" },
                { label: "Gallery", href: "gallery" },
                { label: "About Us", href: "about" }
              ]
            },
            {
              items: [
                { label: "Make a Reservation", href: "reservations" },
                { label: "Guest Reviews", href: "testimonials" },
                { label: "Contact Us", href: "reservations" }
              ]
            },
            {
              items: [
                { label: "Hours: 5-11PM Daily", href: "#" },
                { label: "Private Dining", href: "#" },
                { label: "Gift Cards", href: "#" }
              ]
            },
            {
              items: [
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" },
                { label: "Accessibility", href: "#" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}