"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroBillboardRotatedCarousel from '@/components/sections/hero/HeroBillboardRotatedCarousel';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import MetricSplitMediaAbout from '@/components/sections/about/MetricSplitMediaAbout';
import TestimonialCardFifteen from '@/components/sections/testimonial/TestimonialCardFifteen';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { Flower2, Star, Leaf } from 'lucide-react';

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="small"
      sizing="mediumSizeLargeTitles"
      background="aurora"
      cardStyle="inset"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="layered"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          brandName="KvitKa"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Shop", id: "/shop" },
            { name: "About", id: "/about" },
            { name: "Blog", id: "/blog" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{
            text: "Order Now",
            href: "/shop"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardRotatedCarousel
          title="Celebrate Every Moment with Fresh Flowers"
          description="Discover our carefully curated collection of fresh, vibrant flowers delivered straight to your door. Perfect for any occasion."
          tag="Premium Floral Designs"
          tagIcon={Flower2}
          background={{
            variant: "sparkles-gradient"
          }}
          buttons={[
            { text: "Shop Now", href: "/shop" },
            { text: "Learn More", href: "/about" }
          ]}
          carouselItems={[
            { id: "carousel-1", imageSrc: "https://img.b2bpic.net/free-photo/assorted-flower-arrangement-vase_209848-94.jpg", imageAlt: "floral bouquet fresh flowers arrangement beautiful spring" },
            { id: "carousel-2", imageSrc: "https://img.b2bpic.net/free-photo/red-roses-gift-box-marble-background_1150-45208.jpg", imageAlt: "red roses bouquet fresh flowers gift romantic premium" },
            { id: "carousel-3", imageSrc: "https://img.b2bpic.net/free-photo/rose-flowers-package-paper-table_23-2148079473.jpg", imageAlt: "sunflowers yellow flowers bright cheerful bundle arrangement" },
            { id: "carousel-4", imageSrc: "https://img.b2bpic.net/free-photo/woman-holding-bouquet-red-velvet-roses-hand_114579-1435.jpg", imageAlt: "tulips colorful flowers spring garden bouquet fresh" },
            { id: "carousel-5", imageSrc: "https://img.b2bpic.net/free-photo/assorted-flower-arrangement-vase_209848-94.jpg", imageAlt: "floral bouquet fresh flowers arrangement beautiful spring" },
            { id: "carousel-6", imageSrc: "https://img.b2bpic.net/free-photo/red-roses-gift-box-marble-background_1150-45208.jpg", imageAlt: "red roses bouquet fresh flowers gift romantic premium" }
          ]}
          autoPlay={true}
          autoPlayInterval={4000}
        />
      </div>

      <div id="featured-products" data-section="featured-products">
        <ProductCardTwo
          title="Featured Collections"
          description="Handpicked selections of our most loved flowers, arranged by our expert florists"
          tag="This Week's Favorites"
          tagIcon={Star}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          animationType="slide-up"
          gridVariant="three-columns-all-equal-width"
          carouselMode="buttons"
          products={[
            {
              id: "rose-luxury",
              brand: "KvitKa Premium",
              name: "Luxury Rose Bouquet",
              price: "$89.99",
              rating: 5,
              reviewCount: "2.3k",
              imageSrc: "https://img.b2bpic.net/free-photo/red-roses-gift-box-marble-background_1150-45208.jpg",
              imageAlt: "Beautiful red roses bouquet"
            },
            {
              id: "sunflower-joy",
              brand: "KvitKa Select",
              name: "Sunny Day Sunflowers",
              price: "$64.99",
              rating: 5,
              reviewCount: "1.8k",
              imageSrc: "https://img.b2bpic.net/free-photo/rose-flowers-package-paper-table_23-2148079473.jpg",
              imageAlt: "Bright sunflower arrangement"
            },
            {
              id: "tulip-spring",
              brand: "KvitKa Gardens",
              name: "Spring Tulip Collection",
              price: "$74.99",
              rating: 5,
              reviewCount: "1.5k",
              imageSrc: "https://img.b2bpic.net/free-photo/woman-holding-bouquet-red-velvet-roses-hand_114579-1435.jpg",
              imageAlt: "Colorful fresh tulips"
            }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <MetricSplitMediaAbout
          title="Crafted with Love, Delivered with Care"
          description="KvitKa brings fresh, beautiful flowers to your loved ones with same-day delivery. Our expert florists handpick each bloom to ensure maximum freshness and visual impact. We believe every bouquet tells a story."
          tag="Our Mission"
          tagIcon={Leaf}
          metrics={[
            { value: "10,000+", title: "Happy Customers" },
            { value: "Same-Day", title: "Delivery Available" }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/woman-making-pretty-floral-arrangement_23-2148846539.jpg"
          imageAlt="Expert florist arranging fresh flowers"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFifteen
          testimonial="KvitKa transformed the way I celebrate special moments. The flowers arrived fresh, beautifully arranged, and absolutely stunning. Customer service was exceptional!"
          rating={5}
          author="Sarah Mitchell, Event Planner"
          avatars={[
            { src: "https://img.b2bpic.net/free-photo/portrait-young-woman_23-2148574874.jpg", alt: "Sarah Mitchell" },
            { src: "https://img.b2bpic.net/free-photo/caucasion-woman-casual-confident-concept_53876-137678.jpg", alt: "Happy customer" },
            { src: "https://img.b2bpic.net/free-photo/positive-blond-girl-shows-tongue-winks-camera-makes-happy-funny-face-stands-against-white-background_176420-46979.jpg", alt: "Satisfied client" },
            { src: "https://img.b2bpic.net/free-photo/close-up-attractive-african-american-woman-smiling-looking-happy-standing-yellow-background_1258-54850.jpg", alt: "Verified buyer" },
            { src: "https://img.b2bpic.net/free-photo/young-woman-smiling_176474-95672.jpg", alt: "Happy customer" },
            { src: "https://img.b2bpic.net/free-photo/beautiful-woman-cafe_273609-12690.jpg", alt: "Satisfied client" }
          ]}
          useInvertedBackground="invertDefault"
        />
      </div>

      <FooterBaseReveal
        copyrightText="© 2025 KvitKa Flowers. All rights reserved."
        columns={[
          {
            title: "Shop",
            items: [
              { label: "All Flowers", href: "/shop" },
              { label: "Bouquets", href: "/shop" },
              { label: "Gifts", href: "/shop" },
              { label: "Subscription", href: "/shop" }
            ]
          },
          {
            title: "Company",
            items: [
              { label: "About Us", href: "/about" },
              { label: "Blog", href: "/blog" },
              { label: "Careers", href: "#" },
              { label: "Press", href: "#" }
            ]
          },
          {
            title: "Support",
            items: [
              { label: "Contact Us", href: "/contact" },
              { label: "FAQ", href: "/contact" },
              { label: "Delivery Info", href: "#" },
              { label: "Privacy Policy", href: "#" }
            ]
          }
        ]}
      />
    </ThemeProvider>
  );
}