"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroSplit from '@/components/sections/hero/HeroSplit';
import AboutMetric from '@/components/sections/about/AboutMetric';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import TestimonialCardSixteen from '@/components/sections/testimonial/TestimonialCardSixteen';
import FeatureCardNine from '@/components/sections/feature/FeatureCardNine';
import MetricCardTen from '@/components/sections/metrics/MetricCardTen';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterBase from '@/components/sections/footer/FooterBase';
import { Award, Coffee, Globe, Mail, Menu, Sparkles, Star, Users } from 'lucide-react';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="smallMedium"
      sizing="mediumLarge"
      background="floatingGradient"
      cardStyle="soft-shadow"
      primaryButtonStyle="flat"
      secondaryButtonStyle="solid"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="BrewHaven"
          navItems={[
            { name: "About", id: "about" },
            { name: "Menu", id: "products" },
            { name: "Reviews", id: "testimonial" },
            { name: "Contact", id: "contact" }
          ]}
          button={{
            text: "Order Now",            href: "https://example.com/order"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplit
          title="Brew the Perfect Cup of Coffee"
          description="Experience premium, ethically sourced coffee at BrewHaven. From rich espresso shots to creamy cappuccinos, every cup is crafted with passion and expertise."
          tag="Specialty Coffee"
          tagIcon={Coffee}
          background={{ variant: "glowing-orb" }}
          imageSrc="https://img.b2bpic.net/free-photo/male-barista-preparing-coffee_23-2148824432.jpg"
          imageAlt="Beautiful coffee setup at BrewHaven"
          imagePosition="right"
          buttons={[
            { text: "Explore Menu", href: "products" },
            { text: "Reserve a Table", href: "https://example.com/reserve" }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <AboutMetric
          title="BrewHaven has been perfecting the art of coffee since 2015, sourcing the finest beans from sustainable farms around the world to deliver exceptional flavor in every cup."
          useInvertedBackground="noInvert"
          metrics={[
            { icon: Coffee, label: "Coffee Varieties", value: "25+" },
            { icon: Globe, label: "Countries Sourced", value: "12" },
            { icon: Users, label: "Happy Customers", value: "5,000+" },
            { icon: Award, label: "Awards Won", value: "8" }
          ]}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardFour
          title="Our Featured Beverages"
          description="Discover our signature coffee drinks, each expertly crafted to showcase the unique characteristics of our premium bean selections."
          tag="Best Sellers"
          tagIcon={Sparkles}
          products={[
            {
              id: "cappuccino",              name: "Signature Cappuccino",              price: "$5.50",              variant: "Espresso & Steamed Milk",              imageSrc: "https://img.b2bpic.net/free-photo/coffee-business-concept-handsome-bearded-man-apron-making-coffee-while-standing-cafe_1258-104246.jpg",              imageAlt: "Creamy cappuccino with latte art"
            },
            {
              id: "espresso",              name: "Double Espresso Shot",              price: "$4.00",              variant: "Bold & Concentrated",              imageSrc: "https://img.b2bpic.net/free-photo/close-up-hand-pouring-milk-delicious-coffee-cup_23-2148865585.jpg",              imageAlt: "Rich double espresso shots"
            },
            {
              id: "cold-brew",              name: "Cold Brew Iced Coffee",              price: "$5.00",              variant: "Smooth & Refreshing",              imageSrc: "https://img.b2bpic.net/free-photo/male-barista-preparing-cappuccino-coffee-shop_1303-29343.jpg",              imageAlt: "Refreshing cold brew coffee"
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="testimonial" data-section="testimonial">
        <TestimonialCardSixteen
          title="What Our Coffee Lovers Say"
          description="Join thousands of satisfied customers who have made BrewHaven their favorite coffee destination."
          tag="Customer Reviews"
          tagIcon={Star}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          testimonials={[
            {
              id: "1",              name: "Sarah Mitchell",              role: "Coffee Enthusiast",              company: "Local Regular",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/caucasion-woman-casual-confident-concept_53876-137678.jpg",              imageAlt: "Sarah Mitchell portrait"
            },
            {
              id: "2",              name: "Marcus Johnson",              role: "Barista & Competitor",              company: "Local Business",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/positive-blond-girl-shows-tongue-winks-camera-makes-happy-funny-face-stands-against-white-background_176420-46979.jpg",              imageAlt: "Marcus Johnson portrait"
            },
            {
              id: "3",              name: "Emma Rodriguez",              role: "Wellness Coach",              company: "Health Advocate",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-attractive-african-american-woman-smiling-looking-happy-standing-yellow-background_1258-54850.jpg",              imageAlt: "Emma Rodriguez portrait"
            },
            {
              id: "4",              name: "David Chen",              role: "Food Blogger",              company: "Media Creator",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/young-woman-smiling_176474-95672.jpg",              imageAlt: "David Chen portrait"
            }
          ]}
          kpiItems={[
            { value: "4.9/5", label: "Average Rating" },
            { value: "2,500+", label: "5-Star Reviews" },
            { value: "98%", label: "Would Recommend" }
          ]}
        />
      </div>

      <div id="menu" data-section="menu">
        <FeatureCardNine
          title="Explore Our Menu"
          description="Discover our carefully curated selection of specialty coffee drinks and premium blends."
          tag="Full Menu"
          tagIcon={Menu}
          showStepNumbers={false}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          features={[
            {
              id: 1,
              title: "Artisan Espresso Blends",              description: "Our signature espresso blends are carefully roasted in small batches to ensure optimal flavor and crema. Each blend tells a story of its origin.",              phoneOne: { imageSrc: "https://img.b2bpic.net/free-photo/close-up-hand-pouring-milk-delicious-coffee-cup_23-2148865585.jpg" },
              phoneTwo: { imageSrc: "https://img.b2bpic.net/free-photo/coffee-business-concept-handsome-bearded-man-apron-making-coffee-while-standing-cafe_1258-104246.jpg" }
            },
            {
              id: 2,
              title: "Cold Brew Selection",              description: "Experience smooth, refreshing cold brew coffee that's perfect for any season. Naturally sweet with low acidity for pure coffee enjoyment.",              phoneOne: { imageSrc: "https://img.b2bpic.net/free-photo/male-barista-preparing-cappuccino-coffee-shop_1303-29343.jpg" },
              phoneTwo: { imageSrc: "https://img.b2bpic.net/free-photo/coffee-business-concept-handsome-bearded-man-apron-making-coffee-while-standing-cafe_1258-104246.jpg" }
            }
          ]}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardTen
          title="Coffee Knowledge"
          description="Learn fascinating facts about coffee and discover what makes our beans special."
          tag="Coffee Facts"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          metrics={[
            {
              id: "1",              title: "Arabica vs Robusta",              subtitle: "Understanding coffee bean varieties and their unique characteristics",              category: "Education",              value: "70% Arabica"
            },
            {
              id: "2",              title: "The Perfect Temperature",              subtitle: "Optimal brewing temperatures for maximum flavor extraction",              category: "Brewing",              value: "195-205°F"
            },
            {
              id: "3",              title: "Freshness Window",              subtitle: "How long roasted coffee stays fresh and flavorful",              category: "Storage",              value: "30 Days"
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Stay Updated"
          title="Join Our Coffee Community"
          description="Subscribe to our newsletter for exclusive blends, brewing tips, and special offers delivered right to your inbox. Be the first to know about new arrivals and seasonal favorites."
          tagIcon={Mail}
          background={{ variant: "sparkles-gradient" }}
          useInvertedBackground="noInvert"
          imageSrc="https://img.b2bpic.net/free-photo/bar-concept-with-barman-putting-milk-coffee_23-2147798050.jpg"
          imageAlt="Beautiful coffee setup and workspace"
          mediaPosition="right"
          inputPlaceholder="your@email.com"
          buttonText="Subscribe"
          termsText="We respect your privacy. Unsubscribe anytime. You'll receive brewing tips and exclusive offers."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBase
          logoText="BrewHaven"
          copyrightText="© 2025 BrewHaven Coffee. All rights reserved."
          columns={[
            {
              title: "Menu",              items: [
                { label: "Coffee Drinks", href: "products" },
                { label: "Brewing Guide", href: "menu" },
                { label: "Gift Cards", href: "https://example.com/gifts" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "about" },
                { label: "Our Story", href: "about" },
                { label: "Sustainability", href: "https://example.com/sustainability" }
              ]
            },
            {
              title: "Connect",              items: [
                { label: "Contact", href: "contact" },
                { label: "Instagram", href: "https://instagram.com" },
                { label: "Newsletter", href: "contact" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}