"use client";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroBillboardScroll from '@/components/sections/hero/HeroBillboardScroll';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import ContactText from '@/components/sections/contact/ContactText';
import FooterSimple from '@/components/sections/footer/FooterSimple';
import { Flower, Sparkles, Heart } from 'lucide-react';
import Link from 'next/link';

export default function HomePage() {
  const navItems = [
    { name: "Home", id: "/" },
    { name: "Shop", id: "/shop" },
    { name: "About", id: "/about" },
    { name: "Contact", id: "/contact" }
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="entrance-slide"
      borderRadius="soft"
      contentWidth="medium"
      sizing="medium"
      background="circleGradient"
      cardStyle="glass-elevated"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="glass"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Beautiful Flowers"
          navItems={navItems.map(item => ({
            name: item.name,
            id: item.id
          }))}
          button={{
            text: "Order Now",
            href: "/shop"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardScroll
          title="Discover Nature's Most Beautiful Moments"
          description="Exquisite floral arrangements hand-crafted by expert florists. Fresh flowers delivered to your doorstep with love and care."
          tag="Premium Floral Designs"
          tagIcon={Flower}
          imageSrc="https://img.b2bpic.net/free-photo/still-life-with-bouquet-blue-pink-wildflowers-vase_169016-58261.jpg"
          imageAlt="Beautiful fresh flower arrangement"
          buttons={[
            { text: "Shop Now", href: "/shop" },
            { text: "Learn More", href: "/about" }
          ]}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardOne
          title="Featured Collections"
          description="Explore our carefully curated selection of premium flower arrangements perfect for every occasion"
          tag="New Arrivals"
          tagIcon={Sparkles}
          textboxLayout="default"
          animationType="slide-up"
          gridVariant="uniform-alternating-sizes"
          products={[
            {
              id: "1",
              name: "Velvet Rose Bouquet",
              price: "$45.00",
              imageSrc: "https://img.b2bpic.net/free-photo/floral-decor-woman-holding-bouquet-anthurium_140725-10842.jpg",
              imageAlt: "Beautiful red velvet roses"
            },
            {
              id: "2",
              name: "Sunny Sunflower Mix",
              price: "$38.00",
              imageSrc: "https://img.b2bpic.net/free-photo/valentines-day-womens-mothers-day-red-rose-gift-surprise-dark_114579-445.jpg",
              imageAlt: "Cheerful sunflower arrangement"
            },
            {
              id: "3",
              name: "White Lily Elegance",
              price: "$52.00",
              imageSrc: "https://img.b2bpic.net/free-photo/valentines-day-womens-mothers-day-red-rose-gift-surprise-dark_114579-446.jpg",
              imageAlt: "Elegant white lily display"
            },
            {
              id: "4",
              name: "Spring Tulip Paradise",
              price: "$42.00",
              imageSrc: "https://img.b2bpic.net/free-photo/valentines-day-womens-mothers-day-red-rose-with-ribbon-heart-gift-surprise_114579-449.jpg",
              imageAlt: "Vibrant colorful tulips"
            }
          ]}
          buttons={[
            { text: "View All Collections", href: "/shop" }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText
          text="Ready to brighten someone's day with beautiful flowers? Get in touch with our team to discuss custom arrangements, special orders, or any questions about our collections."
          animationType="entrance-slide"
          buttons={[
            { text: "Contact Us", href: "/contact" },
            { text: "Schedule Consultation", href: "/contact" }
          ]}
          useInvertedBackground="invertDefault"
        />
      </div>

      <FooterSimple
        columns={[
          {
            title: "Shop",
            items: [
              { label: "All Flowers", href: "/shop" },
              { label: "Occasions", href: "/shop" },
              { label: "Seasonal", href: "/shop" },
              { label: "Custom Orders", href: "/shop" }
            ]
          },
          {
            title: "Company",
            items: [
              { label: "About Us", href: "/about" },
              { label: "Our Story", href: "/about" },
              { label: "Careers", href: "#" },
              { label: "Press", href: "#" }
            ]
          },
          {
            title: "Support",
            items: [
              { label: "Contact Us", href: "/contact" },
              { label: "Delivery Info", href: "#" },
              { label: "Returns", href: "#" },
              { label: "FAQ", href: "#" }
            ]
          },
          {
            title: "Legal",
            items: [
              { label: "Privacy Policy", href: "#" },
              { label: "Terms of Service", href: "#" },
              { label: "Shipping Policy", href: "#" },
              { label: "Sitemap", href: "#" }
            ]
          }
        ]}
        bottomLeftText="© 2025 Beautiful Flowers. All rights reserved."
        bottomRightText="Crafted with love for flower enthusiasts"
      />
    </ThemeProvider>
  );
}