"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroCarouselLogo from '@/components/sections/hero/heroCarouselLogo/HeroCarouselLogo';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import AboutMetric from '@/components/sections/about/AboutMetric';
import FeatureCardTen from '@/components/sections/feature/FeatureCardTen';
import TestimonialCardFifteen from '@/components/sections/testimonial/TestimonialCardFifteen';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { Flower, Heart, MapPin, Award, CheckCircle } from 'lucide-react';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="background-highlight"
      borderRadius="rounded"
      contentWidth="compact"
      sizing="medium"
      background="none"
      cardStyle="solid"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="Amigo"
          navItems={[
            { name: "Shop", id: "products" },
            { name: "About", id: "about" },
            { name: "Testimonials", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
          button={{ text: "Order Now", href: "products" }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroCarouselLogo
          logoText="AMIGO"
          description="Exquisite floral arrangements crafted with passion and precision for every occasion"
          buttons={[
            { text: "Shop Now", href: "products" },
            { text: "Learn More", href: "about" }
          ]}
          slides={[
            { imageSrc: "https://img.b2bpic.net/free-photo/bouquet-pink-roses-with-green-leaves-inside-vase_114579-1439.jpg", imageAlt: "Premium luxury bouquet with red roses" },
            { imageSrc: "https://img.b2bpic.net/free-photo/wedding-roses-bouquet-stands-chair-around-are-scattered-petals-roses_8353-9798.jpg", imageAlt: "Elegant fresh tulip arrangement" },
            { imageSrc: "https://img.b2bpic.net/free-photo/bouquet-pink-roses-single-branch-rose-with-green-leaves-inside-vase_114579-1440.jpg", imageAlt: "Luxury orchid centerpiece arrangement" }
          ]}
          autoplayDelay={4000}
          showDimOverlay={true}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardOne
          title="Featured Collections"
          description="Discover our carefully curated selection of premium floral arrangements, perfect for any occasion"
          tag="Shop"
          products={[
            {
              id: "1",              name: "Romantic Rose Bouquet",              price: "$89.99",              imageSrc: "https://img.b2bpic.net/free-photo/floral-decor-woman-holding-bouquet-anthurium_140725-10842.jpg",              imageAlt: "Beautiful red roses arrangement"
            },
            {
              id: "2",              name: "Sunshine Sunflowers",              price: "$74.99",              imageSrc: "https://img.b2bpic.net/free-photo/minimal-floral-arrangement-red-surface_58702-17298.jpg",              imageAlt: "Bright yellow sunflower bouquet"
            },
            {
              id: "3",              name: "Garden Paradise Mix",              price: "$99.99",              imageSrc: "https://img.b2bpic.net/free-photo/pink-roses-glass-vase-with-water_114579-2258.jpg",              imageAlt: "Colorful mixed flower arrangement"
            }
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="about" data-section="about">
        <AboutMetric
          title="Amigo Flowers has been creating stunning arrangements since 1998, delivering joy through the artistry of floral design"
          metrics={[
            { icon: Flower, label: "Years of Experience", value: "26+" },
            { icon: Heart, label: "Happy Customers", value: "10K+" },
            { icon: MapPin, label: "Delivery Coverage", value: "50+ Cities" },
            { icon: Award, label: "Awards Won", value: "15" }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardTen
          title="Why Choose Amigo"
          description="We stand apart with our commitment to quality, freshness, and exceptional customer service"
          features={[
            {
              id: "1",              title: "Premium Quality Flowers",              description: "We source only the freshest, highest-quality flowers from trusted growers around the world to ensure every arrangement is absolutely stunning",              media: { imageSrc: "https://img.b2bpic.net/free-photo/romantic-bouquet-fresh-flowers-wedding-celebration-generated-by-ai_188544-45526.jpg" },
              items: [
                { icon: CheckCircle, text: "Freshness guaranteed" },
                { icon: CheckCircle, text: "Premium sourcing" },
                { icon: CheckCircle, text: "Expert curation" }
              ],
              reverse: false
            },
            {
              id: "2",              title: "Expert Florist Design",              description: "Our award-winning florists bring creativity and passion to every arrangement, creating unique designs that tell your story",              media: { imageSrc: "https://img.b2bpic.net/free-photo/romantic-bouquet-fresh-flowers-wedding-celebration-generated-by-ai_188544-45526.jpg" },
              items: [
                { icon: CheckCircle, text: "Professional florists" },
                { icon: CheckCircle, text: "Custom designs" },
                { icon: CheckCircle, text: "Same-day delivery" }
              ],
              reverse: true
            },
            {
              id: "3",              title: "Exceptional Service",              description: "From selection to delivery, we ensure every detail is perfect. Your satisfaction is our priority",              media: { imageSrc: "https://img.b2bpic.net/free-photo/romantic-bouquet-fresh-flowers-wedding-celebration-generated-by-ai_188544-45526.jpg" },
              items: [
                { icon: CheckCircle, text: "24/7 customer support" },
                { icon: CheckCircle, text: "Satisfaction guarantee" },
                { icon: CheckCircle, text: "Gift wrapping included" }
              ],
              reverse: false
            }
          ]}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFifteen
          testimonial="Amigo Flowers created the most beautiful arrangement for my wedding. The quality was exceptional, and the delivery was perfectly timed. I couldn't be happier with their service and attention to detail."
          rating={5}
          author="Sarah Mitchell, Wedding Coordinator"
          avatars={[
            { src: "https://img.b2bpic.net/free-photo/portrait-smiley-business-woman_23-2148603029.jpg", alt: "Sarah Mitchell" },
            { src: "https://img.b2bpic.net/free-photo/confident-middle-aged-businesswoman-looking-camera_74855-4120.jpg", alt: "Client testimonial" },
            { src: "https://img.b2bpic.net/free-photo/close-up-brunette-young-woman_1139-15.jpg", alt: "Client testimonial" },
            { src: "https://img.b2bpic.net/free-photo/portrait-young-smiling-woman-looking-camera_23-2148187139.jpg", alt: "Client testimonial" }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Newsletter"
          title="Stay Updated with Amigo"
          description="Subscribe to our newsletter for exclusive deals, seasonal collections, and floral inspiration delivered to your inbox"
          inputPlaceholder="Your email address"
          buttonText="Subscribe"
          termsText="We respect your privacy and will never share your information."
          useInvertedBackground="noInvert"
          imageSrc="https://img.b2bpic.net/free-photo/floral-decor-woman-holding-bouquet-anthurium_140725-10842.jpg"
          mediaPosition="right"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal
          columns={[
            {
              title: "Shop",              items: [
                { label: "Bouquets", href: "products" },
                { label: "Arrangements", href: "products" },
                { label: "Seasonal", href: "products" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "about" },
                { label: "Our Story", href: "about" },
                { label: "Contact", href: "contact" }
              ]
            },
            {
              title: "Support",              items: [
                { label: "FAQ", href: "#" },
                { label: "Shipping Info", href: "#" },
                { label: "Returns", href: "#" }
              ]
            }
          ]}
          copyrightText="© 2025 Amigo Flowers. All rights reserved. Crafted with love and passion for flowers."
        />
      </div>
    </ThemeProvider>
  );
}