"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroLogoBillboard from '@/components/sections/hero/HeroLogoBillboard';
import SplitAbout from '@/components/sections/about/SplitAbout';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
import MetricCardFourteen from '@/components/sections/metrics/MetricCardFourteen';
import ContactText from '@/components/sections/contact/ContactText';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import { Leaf, Coffee, Globe, Heart } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="expand-hover"
      defaultTextAnimation="entrance-slide"
      borderRadius="sharp"
      contentWidth="medium"
      sizing="medium"
      background="floatingGradient"
      cardStyle="glass-depth"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="solid"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="Artisan Brew"
          navItems={[
            { name: "About", id: "about" },
            { name: "Menu", id: "menu" },
            { name: "Reviews", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogoBillboard
          logoText="Artisan Brew"
          description="Exceptional single-origin coffee, crafted by hand. Experience the finest specialty coffee in a warm, welcoming space designed for connection and conversation."
          background={{ variant: "sparkles-gradient" }}
          imageSrc="https://img.b2bpic.net/free-photo/parisian-coffee-shop-style-with-tasty-coffee-served-wooden-table-coffee-shop-design_482257-18283.jpg"
          imageAlt="Warm and inviting coffee shop interior with natural light"
          frameStyle="card"
        />
      </div>

      <div id="about" data-section="about">
        <SplitAbout
          title="Our Story"
          description="For over a decade, Artisan Brew has been roasting exceptional coffee beans sourced directly from sustainable farms around the world. We believe in quality, transparency, and community."
          tag="Who We Are"
          bulletPoints={[
            {
              title: "Single-Origin Excellence",              description: "Each bean tells a story. We hand-select micro-lots from specialty coffee regions to ensure uncompromising quality in every cup.",              icon: Leaf
            },
            {
              title: "Skilled Baristas",              description: "Our team of certified coffee professionals brings passion and precision to every drink, crafting beverages that celebrate the bean.",              icon: Coffee
            },
            {
              title: "Sustainable Sourcing",              description: "We partner with fair-trade certified farms and support direct-trade relationships that benefit farmers and the environment.",              icon: Globe
            }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/medium-shot-smiley-woman-with-hot-chocolate_52683-102636.jpg"
          imageAlt="Artisanal coffee beans and roasting process"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          imagePosition="right"
        />
      </div>

      <div id="menu" data-section="menu">
        <ProductCardFour
          title="Featured Menu"
          description="Discover our signature drinks and daily specials, each crafted with premium beans and expert technique."
          tag="Coffee Selection"
          tagIcon={Coffee}
          products={[
            {
              id: "espresso",              name: "Single-Origin Espresso",              price: "$4.50",              variant: "Ethiopian Yirgacheffe",              imageSrc: "https://img.b2bpic.net/free-photo/low-angle-friends-drinking-coffee_23-2148395430.jpg",              imageAlt: "Rich espresso shot with crema"
            },
            {
              id: "latte",              name: "Crafted Latte",              price: "$5.50",              variant: "Milk options available",              imageSrc: "https://img.b2bpic.net/free-photo/low-angle-friends-drinking-coffee_23-2148395430.jpg",              imageAlt: "Creamy latte with latte art"
            },
            {
              id: "cold-brew",              name: "Cold Brew Concentrate",              price: "$4.00",              variant: "Smooth, less acidic",              imageSrc: "https://img.b2bpic.net/free-photo/cocktail-wooden-table-restaurant_23-2147936121.jpg",              imageAlt: "Refreshing cold brew over ice"
            },
            {
              id: "pastry",              name: "Fresh Pastries",              price: "$5.00",              variant: "Daily baked selections",              imageSrc: "https://img.b2bpic.net/free-photo/croissant-coffee-food-photography_53876-104492.jpg",              imageAlt: "Freshly baked croissants and pastries"
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardSix
          title="What Our Guests Love"
          description="Hear from the coffee lovers who make Artisan Brew part of their daily ritual."
          tag="Customer Stories"
          tagIcon={Heart}
          testimonials={[
            {
              id: "1",              name: "Sarah Mitchell",              handle: "@coffeelover_sm",              testimonial: "The best coffee I've had in years. The baristas really know their craft and the atmosphere is unbeatable.",              imageSrc: "https://img.b2bpic.net/free-photo/positive-confident-businesswoman-wearing-formal-suit-standing-with-arms-folded_74855-10328.jpg",              imageAlt: "Sarah Mitchell"
            },
            {
              id: "2",              name: "James Chen",              handle: "@james_writes",              testimonial: "I work here almost every day. Great vibes, exceptional coffee, and they remember my order. A true community hub.",              imageSrc: "https://img.b2bpic.net/free-photo/closeup-smiling-beautiful-adult-businesswoman_1262-1760.jpg",              imageAlt: "James Chen"
            },
            {
              id: "3",              name: "Emma Rodriguez",              handle: "@emma_explores",              testimonial: "The single-origin espresso is a revelation. You can taste the care in every step of their process.",              imageSrc: "https://img.b2bpic.net/free-photo/portrait-smiley-business-woman_23-2148603029.jpg",              imageAlt: "Emma Rodriguez"
            },
            {
              id: "4",              name: "Marcus Thompson",              handle: "@marcus_coffee",              testimonial: "Finally found a coffee shop that takes sourcing and sustainability as seriously as quality. Highly recommend.",              imageSrc: "https://img.b2bpic.net/free-photo/close-up-good-looking-smiling-friendly-female-trainee-ready-tackle-assignments-smiling-broadly-feeling-lucky-day-work-self-assured-encouraged-achieve-success-goal-white-wall_176420-35567.jpg",              imageAlt: "Marcus Thompson"
            },
            {
              id: "5",              name: "Lisa Park",              handle: "@lisa_grateful",              testimonial: "The latte art is beautiful, but what really impresses me is how they explain the origin of each bean.",              imageSrc: "https://img.b2bpic.net/free-photo/blond-business-woman-blue-shirt_23-2148095792.jpg",              imageAlt: "Lisa Park"
            },
            {
              id: "6",              name: "David Walsh",              handle: "@david_morning",              testimonial: "My morning doesn't start without Artisan Brew. Worth every penny and then some.",              imageSrc: "https://img.b2bpic.net/free-photo/young-businesswoman-portrait-office_1262-1506.jpg",              imageAlt: "David Walsh"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          speed={40}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardFourteen
          title="We're committed to excellence in coffee and community impact."
          tag="By The Numbers"
          metrics={[
            {
              id: "1",              value: "50K+",              description: "Cups of specialty coffee served to our community each month."
            },
            {
              id: "2",              value: "100%",              description: "Of our beans sourced from fair-trade certified, sustainable farms."
            },
            {
              id: "3",              value: "15+",              description: "Years of expertise in specialty coffee roasting and preparation."
            },
            {
              id: "4",              value: "25",              description: "Direct partnerships with coffee farmers across the globe."
            }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText
          text="Ready to experience exceptional coffee? Visit us today or order your favorite beans online for home brewing."
          animationType="entrance-slide"
          buttons={[
            { text: "Find Us", href: "#" },
            { text: "Order Online", href: "#" }
          ]}
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseCard
          logoText="Artisan Brew"
          columns={[
            {
              title: "Coffee",              items: [
                { label: "Our Menu", href: "#menu" },
                { label: "Bean Origins", href: "#" },
                { label: "Brewing Guide", href: "#" }
              ]
            },
            {
              title: "Community",              items: [
                { label: "About Us", href: "#about" },
                { label: "Our Story", href: "#about" },
                { label: "Careers", href: "#" }
              ]
            },
            {
              title: "Connect",              items: [
                { label: "Contact", href: "#contact" },
                { label: "Instagram", href: "#" },
                { label: "Newsletter", href: "#" }
              ]
            },
            {
              title: "Support",              items: [
                { label: "FAQs", href: "#" },
                { label: "Bulk Orders", href: "#" },
                { label: "Corporate Gifts", href: "#" }
              ]
            }
          ]}
          copyrightText="© 2025 Artisan Brew. Crafted with care and exceptional coffee."
        />
      </div>
    </ThemeProvider>
  );
}