"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from "@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen";
import HeroBillboardTestimonial from "@/components/sections/hero/HeroBillboardTestimonial";
import SocialProofOne from "@/components/sections/socialProof/SocialProofOne";
import ProductCardFour from "@/components/sections/product/ProductCardFour";
import MetricSplitMediaAbout from "@/components/sections/about/MetricSplitMediaAbout";
import TestimonialCardFifteen from "@/components/sections/testimonial/TestimonialCardFifteen";
import ContactCenter from "@/components/sections/contact/ContactCenter";
import FaqBase from "@/components/sections/faq/FaqBase";
import FooterBaseReveal from "@/components/sections/footer/FooterBaseReveal";
import { Award, Star, Sparkles, Heart, Calendar, HelpCircle } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="mediumSmall"
      sizing="mediumLarge"
      background="noise"
      cardStyle="inset"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          brandName="Il Rustico"
          navItems={[
            { name: "Home", id: "home" },
            { name: "About", id: "about" },
            { name: "Dishes", id: "dishes" },
            { name: "Contact", id: "contact" },
            { name: "Reserve", id: "reserve" },
          ]}
          bottomLeftText="Nuoro, Sardinia"
          bottomRightText="+39 0784 XXXXX"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardTestimonial
          title="Authentic Sardinian Cuisine in Nuoro"
          description="Traditional dishes, generous portions, and warm family atmosphere. Experience the true flavors of Sardinia with dishes prepared using passion and local ingredients."
          tag="Est. Trusted Restaurant"
          tagIcon={Award}
          tagAnimation="blur-reveal"
          imageSrc="http://img.b2bpic.net/free-photo/family-having-great-time-together_23-2149479057.jpg"
          imageAlt="Il Rustico restaurant interior"
          mediaAnimation="slide-up"
          testimonials={[
            {
              name: "Marco Rossi",              handle: "Tourist from Rome",              testimonial: "Piatti genuini e abbondanti, personale gentilissimo. Un'esperienza indimenticabile!",              rating: 5,              imageSrc: "http://img.b2bpic.net/free-photo/modern-businesswoman_23-2148012909.jpg"
            },
            {
              name: "Laura Carta",              handle: "Local Family",              testimonial: "Porzioni abbondanti e prezzi più che onesti. Torneremo sicuramente!",              rating: 5,              imageSrc: "http://img.b2bpic.net/free-photo/outdoor-image-charming-young-european-female-wearing-trendy-red-polka-dress-sitting-bench_343059-2906.jpg"
            },
            {
              name: "Giovanni Bitti",              handle: "Food Enthusiast",              testimonial: "Il tris di primi è super consigliato. Ambiente familiare e accogliente.",              rating: 5,              imageSrc: "http://img.b2bpic.net/free-photo/happy-young-man-showing-disposable-coffee-cup-park_23-2148193872.jpg"
            },
          ]}
          testimonialRotationInterval={5000}
          useInvertedBackground={false}
          buttons={[
            { text: "Reserve a Table", href: "#reserve" },
            { text: "Call Now", href: "tel:+39" },
          ]}
          buttonAnimation="blur-reveal"
          background={{ variant: "plain" }}
        />
      </div>

      <div id="social-proof" data-section="social-proof">
        <SocialProofOne
          tag="Highly Rated"
          tagIcon={Star}
          tagAnimation="slide-up"
          title="Trusted by Thousands"
          description="Join thousands of satisfied guests who have experienced authentic Sardinian hospitality"
          textboxLayout="default"
          useInvertedBackground={true}
          names={[
            "4.6★ Rating",            "2,076+ Reviews",            "Local Favorite",            "Tourist Destination",            "Family-Friendly",            "Authentic Cuisine",            "Warm Welcome"
          ]}
          speed={40}
          showCard={true}
        />
      </div>

      <div id="dishes" data-section="dishes">
        <ProductCardFour
          title="Signature Sardinian Dishes"
          description="Discover our most beloved traditional specialties that keep guests coming back"
          tag="House Specialties"
          tagIcon={Sparkles}
          tagAnimation="blur-reveal"
          textboxLayout="default"
          useInvertedBackground={false}
          products={[
            {
              id: "culurgiones",              name: "Culurgiones",              price: "€14,00",              variant: "Hand-folded pasta with cheese and herbs",              imageSrc: "http://img.b2bpic.net/free-photo/traditional-delicious-gulas-dish-composition_23-2149072550.jpg",              imageAlt: "Culurgiones traditional Sardinian pasta"
            },
            {
              id: "malloreddus",              name: "Malloreddus alla Nuorese",              price: "€13,50",              variant: "Pasta with meat ragù and pecorino",              imageSrc: "http://img.b2bpic.net/free-photo/plate-with-spaghetii-bolognese-with-cutlery_23-2148551780.jpg",              imageAlt: "Malloreddus Sardinian specialty"
            },
            {
              id: "seadas",              name: "Seadas",              price: "€8,00",              variant: "Fried pastry with cheese and honey",              imageSrc: "http://img.b2bpic.net/free-photo/food-plate-jam-background-healthy_1203-5151.jpg",              imageAlt: "Seadas traditional Sardinian dessert"
            },
            {
              id: "grilled-meat",              name: "Tagliata di Manzo",              price: "€28,00",              variant: "Premium grilled beef slices",              imageSrc: "http://img.b2bpic.net/free-photo/azerbaijani-saj-cizbiz-cooked-with-aubergine-potato-tomato-pepper-cast-iron-pan_141793-1981.jpg",              imageAlt: "Tagliata di manzo premium beef"
            },
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          carouselMode="buttons"
          buttons={[{ text: "View Full Menu", href: "#menu" }]}
          buttonAnimation="blur-reveal"
        />
      </div>

      <div id="about" data-section="about">
        <MetricSplitMediaAbout
          tag="Our Story"
          tagIcon={Heart}
          tagAnimation="blur-reveal"
          title="The Heart of Sardinian Hospitality"
          description="Il Rustico has been serving authentic Sardinian cuisine with passion and pride for years. Led by the warm and welcoming Gianfranco, we believe in honest cooking with local ingredients, generous portions, and a genuine family atmosphere. Every dish tells the story of Sardinian tradition."
          metrics={[
            { value: "2,076+", title: "Satisfied Guests" },
            { value: "4.6★", title: "Customer Rating" },
          ]}
          imageSrc="http://img.b2bpic.net/free-photo/young-woman-her-senior-mother-preparing-dining-table-family-lunch-home_637285-3552.jpg"
          imageAlt="Happy family enjoying meal at Il Rustico"
          useInvertedBackground={false}
          mediaAnimation="slide-up"
          metricsAnimation="blur-reveal"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFifteen
          rating={5}
          testimonial="Piatti genuini, abbondanti e preparati con amore. Il personale è gentilissimo e l'atmosfera è familiare. Gianfranco sa come farsi ricordare. Tornerò certamente!"
          author="Marco Rossi, Travel Blogger"
          avatars={[
            {
              src: "http://img.b2bpic.net/free-photo/modern-businesswoman_23-2148012909.jpg",              alt: "Marco Rossi"
            },
            {
              src: "http://img.b2bpic.net/free-photo/outdoor-image-charming-young-european-female-wearing-trendy-red-polka-dress-sitting-bench_343059-2906.jpg",              alt: "Laura Carta"
            },
            {
              src: "http://img.b2bpic.net/free-photo/happy-young-man-showing-disposable-coffee-cup-park_23-2148193872.jpg",              alt: "Giovanni Bitti"
            },
            {
              src: "http://img.b2bpic.net/free-photo/young-beautiful-hipster-woman-summer-vacation-asia-relaxing-tropical-beach-digital-photo-camera-casual-boho-style-sea-landscape-slim-tanned-body-travel-alone_285396-6253.jpg",              alt: "Anna De Luca"
            },
          ]}
          ratingAnimation="blur-reveal"
          avatarsAnimation="slide-up"
          useInvertedBackground={true}
        />
      </div>

      <div id="reserve" data-section="reserve">
        <ContactCenter
          tag="Book Your Table"
          tagIcon={Calendar}
          tagAnimation="blur-reveal"
          title="Reserve Your Spot at Il Rustico"
          description="Join us for an unforgettable dining experience. Reserve your table now or call us directly."
          background={{ variant: "radial-gradient" }}
          useInvertedBackground={false}
          inputPlaceholder="your@email.com"
          buttonText="Reserve Table"
          termsText="By reserving, you agree to our cancellation policy. We respect your privacy."
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqBase
          title="Frequently Asked Questions"
          description="Everything you need to know about dining at Il Rustico"
          tag="Help"
          tagIcon={HelpCircle}
          tagAnimation="blur-reveal"
          textboxLayout="default"
          useInvertedBackground={false}
          faqsAnimation="blur-reveal"
          faqs={[
            {
              id: "1",              title: "What are your opening hours?",              content: "We're open Tuesday to Sunday from 12:00 PM to 3:00 PM and 7:00 PM to 11:00 PM. Closed on Mondays. For special events or group reservations, please call us."
            },
            {
              id: "2",              title: "Do you accommodate dietary restrictions?",              content: "Absolutely! We can accommodate vegetarian, vegan, and gluten-free diets. Please inform us when making your reservation so our chef can prepare special dishes for you."
            },
            {
              id: "3",              title: "Can we host private events?",              content: "Yes! Il Rustico is perfect for celebrations, family gatherings, and business events. Contact Gianfranco directly at +39 0784 XXXXX to discuss your event requirements."
            },
            {
              id: "4",              title: "Is parking available?",              content: "Street parking is available near the restaurant. For larger groups, please mention parking needs when you reserve."
            },
            {
              id: "5",              title: "How far in advance should we book?",              content: "We recommend booking at least 2-3 days in advance, especially for weekends and groups larger than 4 people. Last-minute reservations are welcome subject to availability."
            },
            {
              id: "6",              title: "Are children welcome?",              content: "Families are always welcome! We have a warm, family-friendly atmosphere. We can adjust portion sizes and have options for younger diners."
            },
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal
          columns={[
            {
              title: "Restaurant",              items: [
                { label: "About Us", href: "#about" },
                { label: "Signature Dishes", href: "#dishes" },
                { label: "Reserve Table", href: "#reserve" },
                { label: "Contact", href: "tel:+39" },
              ],
            },
            {
              title: "Company",              items: [
                { label: "Hours", href: "#faq" },
                { label: "Location", href: "#" },
                { label: "Private Events", href: "#contact" },
                { label: "Careers", href: "#" },
              ],
            },
            {
              title: "Connect",              items: [
                { label: "Facebook", href: "https://facebook.com" },
                { label: "Instagram", href: "https://instagram.com" },
                { label: "Google Reviews", href: "https://google.com" },
                { label: "Contact Us", href: "#reserve" },
              ],
            },
          ]}
          copyrightText="© 2025 Il Rustico. Authentic Sardinian Cuisine in Nuoro."
        />
      </div>
    </ThemeProvider>
  );
}
