"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroBillboardScroll from '@/components/sections/hero/HeroBillboardScroll';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import MetricSplitMediaAbout from '@/components/sections/about/MetricSplitMediaAbout';
import FeatureHoverPattern from '@/components/sections/feature/featureHoverPattern/FeatureHoverPattern';
import TestimonialCardTwelve from '@/components/sections/testimonial/TestimonialCardTwelve';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';
import { Leaf, Truck, Palette, Shield, Heart, Star } from 'lucide-react';
import Link from 'next/link';

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="shift-hover"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="small"
      sizing="medium"
      background="circleGradient"
      cardStyle="glass-depth"
      primaryButtonStyle="inset-glow"
      secondaryButtonStyle="glass"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Fiona"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Shop", id: "/shop" },
            { name: "About", id: "/about" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{
            text: "Order Now",            href: "/shop"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardScroll
          title="Elevate Every Moment with Fiona"
          description="Discover our curated collection of fresh, stunning flowers for every occasion. From elegant bouquets to custom arrangements, Fiona brings beauty directly to your doorstep."
          tag="Premium Flowers"
          background={{ variant: "canvas-reveal" }}
          imageSrc="https://img.b2bpic.net/free-photo/bouquet-fresh-roses-glass-vase-close-up_169016-8804.jpg"
          imageAlt="Beautiful fresh flower bouquet arrangement"
          buttons={[
            { text: "Shop Now", href: "/shop" },
            { text: "Learn More", href: "#about" }
          ]}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardFour
          title="Featured Collections"
          description="Handpicked selections for every moment and celebration"
          tag="Best Sellers"
          products={[
            {
              id: "1",              name: "Royal Rose Elegance",              price: "$85",              variant: "Red Roses • 24 Stems",              imageSrc: "https://img.b2bpic.net/free-photo/flat-lay-beautifully-bloomed-colorful-rose-flowers_23-2149005546.jpg",              imageAlt: "Red rose bouquet"
            },
            {
              id: "2",              name: "Spring Tulip Medley",              price: "$65",              variant: "Mixed Tulips • 20 Stems",              imageSrc: "https://img.b2bpic.net/free-photo/bouquet-pink-roses-with-blue-ribbon-vintage-wooden-background_1220-284.jpg",              imageAlt: "Spring tulip arrangement"
            },
            {
              id: "3",              name: "Sunshine Sunflower Delight",              price: "$75",              variant: "Sunflowers • 15 Stems",              imageSrc: "https://img.b2bpic.net/free-photo/bouquet-roses-with-red-bow_23-2147591160.jpg",              imageAlt: "Bright sunflower bouquet"
            },
            {
              id: "4",              name: "Exotic Orchid Paradise",              price: "$95",              variant: "Premium Orchids • 12 Stems",              imageSrc: "https://img.b2bpic.net/free-photo/gentle-flowers-bouquet_23-2147694593.jpg",              imageAlt: "Exotic orchid arrangement"
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="about" data-section="about">
        <MetricSplitMediaAbout
          title="Crafted with Passion Since 2010"
          description="Fiona was born from a simple belief: every flower tells a story, and every arrangement should be a masterpiece. Our expert florists hand-select the finest blooms from trusted growers worldwide, ensuring freshness and beauty in every delivery."
          tag="Our Story"
          metrics={[
            { value: "10K+", title: "Happy Customers" },
            { value: "100%", title: "Fresh Guarantee" }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/front-view-beautiful-roses-vase_23-2148387998.jpg"
          imageAlt="Fiona florist workspace and arrangement studio"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureHoverPattern
          title="Why Choose Fiona"
          description="Discover what sets us apart in the floral industry"
          features={[
            {
              icon: Leaf,
              title: "Farm Fresh Blooms",              description: "Sourced daily from premium growers, our flowers arrive at peak freshness and vibrancy."
            },
            {
              icon: Truck,
              title: "Same-Day Delivery",              description: "Order before noon and enjoy same-day delivery to your loved ones."
            },
            {
              icon: Palette,
              title: "Custom Arrangements",              description: "Work with our florists to create personalized arrangements for any occasion."
            },
            {
              icon: Shield,
              title: "Quality Guarantee",              description: "100% satisfaction guaranteed or your money back within 7 days."
            },
            {
              icon: Heart,
              title: "Sustainable Practices",              description: "Eco-friendly packaging and partnerships with ethical growers worldwide."
            },
            {
              icon: Star,
              title: "Expert Florists",              description: "Decades of combined experience ensuring every arrangement is perfection."
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTwelve
          testimonials={[
            {
              id: "1",              name: "Sarah Mitchell",              imageSrc: "https://img.b2bpic.net/free-photo/portrait-young-woman_23-2148574874.jpg",              imageAlt: "Sarah Mitchell"
            },
            {
              id: "2",              name: "Emma Richardson",              imageSrc: "https://img.b2bpic.net/free-photo/caucasion-woman-casual-confident-concept_53876-137678.jpg",              imageAlt: "Emma Richardson"
            },
            {
              id: "3",              name: "James Thompson",              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: "James Thompson"
            },
            {
              id: "4",              name: "Victoria Chen",              imageSrc: "https://img.b2bpic.net/free-photo/close-up-attractive-african-american-woman-smiling-looking-happy-standing-yellow-background_1258-54850.jpg",              imageAlt: "Victoria Chen"
            },
            {
              id: "5",              name: "Olivia Martinez",              imageSrc: "https://img.b2bpic.net/free-photo/beautiful-woman-cafe_273609-12690.jpg",              imageAlt: "Olivia Martinez"
            },
            {
              id: "6",              name: "David Anderson",              imageSrc: "https://img.b2bpic.net/free-photo/young-woman-smiling_176474-95672.jpg",              imageAlt: "David Anderson"
            }
          ]}
          cardTitle="Over 10,000 customers trust Fiona for their special moments"
          cardTag="See what they say"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Newsletter"
          title="Stay Updated on New Arrivals"
          description="Subscribe to receive exclusive offers, seasonal collections, and care tips for your flowers delivered straight to your inbox."
          useInvertedBackground="invertDefault"
          imageSrc="https://img.b2bpic.net/free-photo/bouquet-fresh-roses-glass-vase-close-up_169016-8804.jpg"
          mediaPosition="right"
          inputPlaceholder="Enter your email"
          buttonText="Subscribe"
          termsText="We respect your privacy. Unsubscribe at any time."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoEmphasis
          logoText="Fiona"
          columns={[
            {
              items: [
                { label: "Shop", href: "/shop" },
                { label: "About", href: "/about" },
                { label: "Contact", href: "/contact" }
              ]
            },
            {
              items: [
                { label: "Delivery Info", href: "/delivery" },
                { label: "Care Tips", href: "/care" },
                { label: "FAQ", href: "/faq" }
              ]
            },
            {
              items: [
                { label: "Privacy Policy", href: "/privacy" },
                { label: "Terms", href: "/terms" },
                { label: "Sustainability", href: "/sustainability" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}