"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroBillboard from '@/components/sections/hero/HeroBillboard';
import TextAbout from '@/components/sections/about/TextAbout';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import FeatureCardMedia from '@/components/sections/feature/FeatureCardMedia';
import TestimonialCardThirteen from '@/components/sections/testimonial/TestimonialCardThirteen';
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { Coffee } from "lucide-react";
import Link from "next/link";

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="elastic-effect"
      defaultTextAnimation="entrance-slide"
      borderRadius="rounded"
      contentWidth="medium"
      sizing="medium"
      background="noise"
      cardStyle="gradient-mesh"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="Brew Haven"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Menu", id: "/menu" },
            { name: "About", id: "/about" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{
            text: "Order Now",
            href: "/menu"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboard
          title="Experience the Perfect Brew"
          description="Discover our artisan coffee blends, crafted with passion and precision. From single-origin espresso to smooth cold brew, every cup tells a story."
          background={{ variant: "sparkles-gradient" }}
          tag="Specialty Coffee"
          tagIcon={Coffee}
          imageSrc="https://img.b2bpic.net/free-photo/white-ceramic-mug-with-coffee_209848-35.jpg"
          imageAlt="Premium latte with latte art"
          buttons={[
            { text: "View Menu", href: "/menu" },
            { text: "Visit Us", href: "/contact" }
          ]}
          avatars={[
            { src: "https://img.b2bpic.net/free-photo/male-barista-coffee-shop-holding-cup-by-counter_1303-29321.jpg", alt: "Expert Barista" },
            { src: "https://img.b2bpic.net/free-photo/young-male-barista-working-coffee-house_1303-31760.jpg", alt: "Coffee Specialist" },
            { src: "https://img.b2bpic.net/free-photo/male-barista-serving-coffee-cardboard-cups_1303-31762.jpg", alt: "Owner & Founder" }
          ]}
          avatarText="Trusted by 5,000+ coffee lovers"
        />
      </div>

      <div id="about" data-section="about">
        <TextAbout
          tag="Our Story"
          title="Brew Haven was founded on the belief that coffee is more than a beverage—it's a ritual, a moment of connection, and an expression of quality craftsmanship. We source the finest beans from sustainable farmers worldwide and roast them to perfection in small batches."
          useInvertedBackground={false}
          buttons={[
            { text: "Learn More", href: "/about" }
          ]}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardTwo
          title="Featured Blends"
          description="Explore our signature coffee selections, carefully curated and roasted to showcase the unique flavors of each origin."
          tag="Best Sellers"
          products={[
            {
              id: "1",
              brand: "Brew Haven",
              name: "Ethiopian Highlands Single Origin",
              price: "$16.99",
              rating: 5,
              reviewCount: "2.4k",
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-roasted-brown-coffee-beans_23-2148254977.jpg",
              imageAlt: "Ethiopian coffee beans"
            },
            {
              id: "2",
              brand: "Brew Haven",
              name: "Dark Roast Espresso Blend",
              price: "$14.99",
              rating: 5,
              reviewCount: "1.9k",
              imageSrc: "https://img.b2bpic.net/free-photo/person-holding-white-ceramic-mug-with-coffee_209848-30.jpg",
              imageAlt: "Dark roast espresso"
            },
            {
              id: "3",
              brand: "Brew Haven",
              name: "Smooth Cold Brew Concentrate",
              price: "$12.99",
              rating: 4,
              reviewCount: "1.2k",
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-young-adult-enjoying-warm-drink_23-2149134379.jpg",
              imageAlt: "Cold brew concentrate bottle"
            }
          ]}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          gridVariant="uniform-all-items-equal"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardMedia
          title="Why Choose Brew Haven"
          description="We're committed to excellence in every aspect of the coffee experience."
          features={[
            {
              id: "1",
              title: "Artisan Roasting",
              description: "Small-batch roasting brings out the unique characteristics of each coffee origin, ensuring consistency and quality in every bean.",
              tag: "Quality",
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-hands-barista-make-latte-coffee-art-paint_1150-12161.jpg",
              imageAlt: "Expert barista pouring coffee"
            },
            {
              id: "2",
              title: "Sustainable Sourcing",
              description: "We partner directly with farmers who share our commitment to environmental stewardship and fair trade practices.",
              tag: "Ethical",
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-roasted-brown-coffee-beans_23-2148254977.jpg",
              imageAlt: "Premium coffee beans"
            },
            {
              id: "3",
              title: "Expert Baristas",
              description: "Our certified baristas are trained in advanced techniques to craft the perfect cup tailored to your preferences.",
              tag: "Expertise",
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-hands-barista-make-latte-coffee-art-paint_1150-12161.jpg",
              imageAlt: "Skilled barista crafting beverage"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardThirteen
          title="What Our Community Says"
          description="Hear from our loyal customers who've made Brew Haven their daily ritual."
          testimonials={[
            {
              id: "1",
              name: "Sarah Mitchell",
              handle: "@sarahmitchell",
              testimonial: "The best coffee I've ever had. The baristas are incredibly knowledgeable and every cup is crafted with care. This is my daily destination!",
              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/portrait-young-business-woman-walking-work-while-drinking-takeaway-coffee-business-success-concept_58466-12275.jpg"
            },
            {
              id: "2",
              name: "James Rodriguez",
              handle: "@jamesrods",
              testimonial: "Brew Haven's commitment to sourcing and sustainability genuinely matters. Delicious coffee that aligns with my values.",
              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/happy-businesswoman-sitting-with-coffee-office_1262-6120.jpg"
            },
            {
              id: "3",
              name: "Emma Chen",
              handle: "@emmachen_coffee",
              testimonial: "The Ethiopian Highlands blend is absolutely exquisite. I've recommended Brew Haven to all my friends. Worth every penny!",
              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/happy-african-business-woman-wearing-glasses-drinking-coffee_171337-16186.jpg"
            },
            {
              id: "4",
              name: "Marcus Thompson",
              handle: "@marcusthompson",
              testimonial: "Perfect ambiance, incredible coffee, and genuinely friendly service. It's become my favorite spot to work and connect with friends.",
              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/portrait-waitress-standing-with-disposable-coffee-cup_107420-12311.jpg"
            }
          ]}
          showRating={true}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCenter
          tag="Stay Connected"
          title="Join Our Coffee Community"
          description="Subscribe to receive exclusive brew recommendations, seasonal specials, and invitations to our tasting events."
          background={{ variant: "rotated-rays-animated" }}
          useInvertedBackground={false}
          inputPlaceholder="Enter your email address"
          buttonText="Subscribe"
          termsText="We respect your privacy. Unsubscribe anytime with one click."
        />
      </div>

      <FooterBaseReveal
        columns={[
          {
            title: "Company",
            items: [
              { label: "About Us", href: "/about" },
              { label: "Our Mission", href: "/about" },
              { label: "Careers", href: "#" }
            ]
          },
          {
            title: "Menu",
            items: [
              { label: "Coffee", href: "/menu" },
              { label: "Tea & Alternatives", href: "/menu" },
              { label: "Pastries", href: "/menu" }
            ]
          },
          {
            title: "Connect",
            items: [
              { label: "Contact Us", href: "/contact" },
              { label: "Instagram", href: "https://instagram.com" },
              { label: "Privacy Policy", href: "#" }
            ]
          }
        ]}
        copyrightText="© 2025 Brew Haven | Crafted with care"
      />
    </ThemeProvider>
  );
}