"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroBillboard from '@/components/sections/hero/HeroBillboard';
import SplitAbout from '@/components/sections/about/SplitAbout';
import FeatureCardSix from '@/components/sections/feature/FeatureCardSix';
import ProductCardThree from '@/components/sections/product/ProductCardThree';
import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FooterBase from '@/components/sections/footer/FooterBase';
import { Sparkles, CheckCircle, Heart, ChefHat, Leaf, Users, Star } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-stagger"
      defaultTextAnimation="entrance-slide"
      borderRadius="rounded"
      contentWidth="medium"
      sizing="medium"
      background="blurBottom"
      cardStyle="solid"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="glass"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered 
          navItems={[
            { name: "Hero", id: "hero-section" },
            { name: "About", id: "about-section" },
            { name: "Feature", id: "features-section" },
            { name: "Product", id: "product-section" },
            { name: "Testimonial", id: "testimonial-section" },
            { name: "Contact", id: "contact-section" }
          ]}
          button={{
            text: "Order Now",            href: "#product-section"
          }}
          brandName="Bob's Burgers"
        />
      </div>

      <div id="hero-section" data-section="hero-section">
        <HeroBillboard
          title="Where Every Bite Tells a Story"
          description="Experience the perfect blend of flavor and warmth at Bob's Burgers. Our handcrafted burgers are made with locally-sourced ingredients and served with a side of smiles."
          background={{ variant: "radial-gradient" }}
          tag="New Menu Items Available"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          buttons={[
            { text: "View Menu", href: "#product-section" },
            { text: "Order Online", href: "#contact-section" }
          ]}
          buttonAnimation="slide-up"
          avatars={[
            { src: "https://img.b2bpic.net/free-photo/young-happy-woman-her-friends-having-fun-while-drinking-wine-lunch-time-home_637285-3187.jpg", alt: "Happy customer enjoying a burger" },
            { src: "https://img.b2bpic.net/free-photo/happy-waiter-serving-food-group-cheerful-friends-pub_637285-12525.jpg", alt: "Family dining together" }
          ]}
          avatarText="Join over 10,000 happy customers!"
          imageSrc="https://img.b2bpic.net/free-photo/front-view-vegetarian-burger-plate_23-2148784526.jpg"
          imageAlt="Delicious burger with fresh ingredients"
          mediaAnimation="slide-up"
          marqueeItems={[
            { type: "text", text: "Locally Sourced Ingredients", icon: CheckCircle },
            { type: "text", text: "Family-Friendly Atmosphere", icon: Heart },
            { type: "text", text: "Handcrafted Burgers Daily", icon: ChefHat }
          ]}
          marqueeSpeed={30}
          showMarqueeCard={true}
          ariaLabel="Hero section featuring Bob's Burgers"
        />
      </div>

      <div id="about-section" data-section="about-section">
        <SplitAbout
          title="Welcome to Bob's Burgers"
          description="Since 1998, Bob's Burgers has been serving up the juiciest, most flavorful burgers in a cozy, family-friendly environment. Our locally sourced ingredients and secret recipes create an unforgettable dining experience."
          tag="Since 1998"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          buttons={[
            { text: "View Menu", href: "#product-section" },
            { text: "Visit Us", href: "#contact-section" }
          ]}
          buttonAnimation="slide-up"
          bulletPoints={[
            {
              title: "Locally Sourced Ingredients",              description: "We partner with local farms to bring you the freshest ingredients every day.",              icon: Leaf
            },
            {
              title: "Family-Friendly Atmosphere",              description: "A warm, welcoming space perfect for families and friends to gather.",              icon: Users
            },
            {
              title: "Secret Recipes",              description: "Our time-tested recipes ensure every burger is a masterpiece of flavor.",              icon: ChefHat
            }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/group-happy-young-people-having-dinner-together-dining-table-focus-is-redhead-woman-taking-food-from-her-friend_637285-3752.jpg"
          imageAlt="Cozy interior of Bob's Burgers with wooden tables and warm lighting"
          mediaAnimation="slide-up"
          imagePosition="left"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="features-section" data-section="features-section">
        <FeatureCardSix
          title="Why Choose Bob's Burgers?"
          description="Experience the perfect blend of quality ingredients, cozy ambiance, and mouth-watering flavors that make every visit unforgettable."
          textboxLayout="inline-image"
          useInvertedBackground={false}
          features={[
            {
              id: 1,
              title: "Fresh Ingredients",              description: "We source only the freshest locally-grown produce and premium beef for our signature burgers.",              imageSrc: "https://img.b2bpic.net/free-photo/front-view-fresh-vegetables-with-seasonings-dark-background-ripe-salad-health-food_140725-115776.jpg",              imageAlt: "Fresh ingredients for burgers"
            },
            {
              id: 2,
              title: "Cozy Atmosphere",              description: "Our warm and inviting space creates the perfect setting for family dinners and casual gatherings.",              imageSrc: "https://img.b2bpic.net/free-photo/tables-chairs-arranged-empty-coffee-shop_107420-96463.jpg",              imageAlt: "Cozy dining atmosphere at Bob's Burgers"
            },
            {
              id: 3,
              title: "Family Favorites",              description: "From classic cheeseburgers to our secret recipe sauces, we have something for everyone.",              imageSrc: "https://img.b2bpic.net/free-photo/toast-many-upcoming-family-dinners_637285-12559.jpg",              imageAlt: "Delicious family favorite burgers"
            }
          ]}
        />
      </div>

      <div id="product-section" data-section="product-section">
        <ProductCardThree
          title="Our Signature Burgers"
          description="Crafted with locally-sourced ingredients and served with a side of smiles. Each burger is a masterpiece of flavor and texture."
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          products={[
            {
              id: "beef-burger",              name: "Classic Beef Burger",              price: "$12.99",              imageSrc: "https://img.b2bpic.net/free-photo/black-burger-with-beef-meat-french-fries-tasty-appetizing_482257-10359.jpg",              imageAlt: "Delicious Classic Beef Burger with lettuce, tomato, and cheese",              initialQuantity: 1
            },
            {
              id: "chicken-burger",              name: "Grilled Chicken Burger",              price: "$11.99",              imageSrc: "https://img.b2bpic.net/free-photo/tasty-healthy-burgers-with-chicken-breast_1220-7105.jpg",              imageAlt: "Tasty Grilled Chicken Burger with avocado and special sauce",              initialQuantity: 1
            },
            {
              id: "veggie-burger",              name: "Veggie Delight Burger",              price: "$10.99",              imageSrc: "https://img.b2bpic.net/free-photo/vegan-burgers-with-lentils-pistashios_661915-259.jpg",              imageAlt: "Fresh Veggie Delight Burger with grilled vegetables and hummus",              initialQuantity: 1
            }
          ]}
        />
      </div>

      <div id="testimonial-section" data-section="testimonial-section">
        <TestimonialCardOne
          testimonials={[
            {
              id: "testimonial-1",              name: "Sarah Johnson",              role: "Food Blogger",              company: "Tasty Bites",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/low-angle-friends-shaking-hands_23-2148395404.jpg?_wi=1",              imageAlt: "Sarah Johnson, food blogger, enjoying a burger at Bob's Burgers"
            },
            {
              id: "testimonial-2",              name: "Michael Chen",              role: "Local Chef",              company: "Urban Kitchen",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/group-diverse-friends-are-having-dinner-together_53876-40927.jpg",              imageAlt: "Michael Chen, local chef, praising the quality of ingredients at Bob's Burgers"
            },
            {
              id: "testimonial-3",              name: "Emma Rodriguez",              role: "Family Diner Patron",              company: "Happy Family Reviews",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/low-angle-friends-shaking-hands_23-2148395404.jpg?_wi=2",              imageAlt: "Emma Rodriguez, family diner patron, sharing her experience with kids at Bob's Burgers"
            }
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          title="What Our Customers Say"
          description="Don't just take our word for it—hear from our satisfied customers who've experienced the magic of Bob's Burgers."
          tag="Real Reviews"
          tagIcon={Star}
          tagAnimation="slide-up"
          textboxLayout="inline-image"
          useInvertedBackground={false}
          carouselMode="buttons"
        />
      </div>

      <div id="contact-section" data-section="contact-section">
        <ContactSplitForm
          title="Visit Us or Order Online"
          description="We'd love to hear from you! Whether you're stopping by for a delicious burger or placing an order, our team is ready to serve you with warmth and flavor."
          inputs={[
            { name: "name", type: "text", placeholder: "Your Name", required: true },
            { name: "email", type: "email", placeholder: "Your Email", required: true },
            { name: "phone", type: "tel", placeholder: "Your Phone Number" }
          ]}
          textarea={{
            name: "message",            placeholder: "Your Message",            rows: 4,
            required: true
          }}
          useInvertedBackground={false}
          imageSrc="https://img.b2bpic.net/free-photo/love-sign-wall-wedding-reception_637285-5615.jpg"
          imageAlt="Cozy interior of Bob's Burgers with warm lighting and friendly atmosphere"
          mediaAnimation="slide-up"
          mediaPosition="right"
          buttonText="Send Message"
          ariaLabel="Contact section"
        />
      </div>

      <div id="footer-section" data-section="footer-section">
        <FooterBase
          columns={[
            {
              title: "Explore",              items: [
                { label: "Home", href: "#hero-section" },
                { label: "About Us", href: "#about-section" },
                { label: "Menu", href: "#product-section" },
                { label: "Testimonials", href: "#testimonial-section" }
              ]
            },
            {
              title: "Connect",              items: [
                { label: "Contact Us", href: "#contact-section" },
                { label: "Locations", href: "#contact-section" },
                { label: "Careers", href: "#contact-section" }
              ]
            },
            {
              title: "Support",              items: [
                { label: "FAQs", href: "#contact-section" },
                { label: "Delivery Info", href: "#contact-section" },
                { label: "Privacy Policy", href: "#" }
              ]
            }
          ]}
          logoText="Bob's Burgers"
          copyrightText="© 2025 Bob's Burgers | All rights reserved"
          ariaLabel="Site footer"
        />
      </div>
    </ThemeProvider>
  );
}