"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroSplitKpi from '@/components/sections/hero/HeroSplitKpi';
import SplitAbout from '@/components/sections/about/SplitAbout';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import TestimonialCardFifteen from '@/components/sections/testimonial/TestimonialCardFifteen';
import FaqBase from '@/components/sections/faq/FaqBase';
import ContactFaq from '@/components/sections/contact/ContactFaq';
import FooterCard from '@/components/sections/footer/FooterCard';
import { Leaf, Heart, Sprout, Flower2, Smile, Sparkles, HelpCircle, Mail, Instagram, Facebook } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="elastic-effect"
      defaultTextAnimation="entrance-slide"
      borderRadius="sharp"
      contentWidth="compact"
      sizing="largeSmallSizeMediumTitles"
      background="aurora"
      cardStyle="solid-accent-light"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="GoodTime"
          navItems={[
            { name: "Shop", id: "products" },
            { name: "About", id: "about" },
            { name: "FAQ", id: "faq" },
            { name: "Contact", id: "contact" }
          ]}
          button={{
            text: "Shop Now & Bloom",
            href: "#products"
          }}
        />
      </div>
      
      <div id="hero" data-section="hero">
        <HeroSplitKpi
          title="Bring GoodTime to Your Day with Fresh Flowers"
          description="Handpicked bouquets delivered with care, straight to your door—because life is better with flowers"
          tag="Seasonal & Locally Sourced"
          tagIcon={Leaf}
          buttons={[
            {
              text: "Shop Now & Bloom",
              href: "#products"
            },
            {
              text: "Learn More",
              href: "#about"
            }
          ]}
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=c4s30o"
          imageAlt="Beautiful fresh flower bouquet"
          imagePosition="right"
          kpis={[
            {
              value: "Same-Day",
              label: "Local Delivery"
            },
            {
              value: "100%",
              label: "Handpicked Quality"
            },
            {
              value: "Seasonal",
              label: "Fresh Blooms"
            }
          ]}
        />
      </div>
      
      <div id="about" data-section="about">
        <SplitAbout
          title="About GoodTime Flowers"
          description="We believe every moment deserves to be celebrated with beauty. Our mission is to bring joy through thoughtfully curated, seasonal flowers that connect people to nature and each other."
          tag="Our Story"
          tagIcon={Heart}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=clvpez"
          imageAlt="Florist carefully arranging fresh flowers"
          imagePosition="left"
          bulletPoints={[
            {
              title: "Locally Sourced",
              description: "We partner with local growers to ensure the freshest, most sustainable blooms for every arrangement.",
              icon: Sprout
            },
            {
              title: "Handcrafted Care",
              description: "Each bouquet is personally curated by our expert florists with attention to detail and beauty.",
              icon: Flower2
            },
            {
              title: "Eco-Conscious",
              description: "We're committed to environmentally friendly practices from sourcing to packaging and delivery.",
              icon: Leaf
            },
            {
              title: "Perfect for Any Occasion",
              description: "Birthdays, anniversaries, apologies, or just because—we have the perfect bouquet for your moment.",
              icon: Smile
            }
          ]}
          buttons={[
            {
              text: "Explore Our Philosophy",
              href: "#contact"
            },
            {
              text: "Shop Collection",
              href: "#products"
            }
          ]}
        />
      </div>
      
      <div id="products" data-section="products">
        <ProductCardFour
          title="Our Signature Collections"
          description="Handpicked bouquets designed to celebrate life's beautiful moments with fresh, seasonal blooms."
          tag="Featured"
          tagIcon={Sparkles}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          gridVariant="uniform-all-items-equal"
          products={[
            {
              id: "roses-elegance",
              name: "Red Elegance",
              price: "$65",
              variant: "12 Premium Red Roses",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=efs5zq",
              imageAlt: "Red Elegance bouquet with premium roses",
              isFavorited: false
            },
            {
              id: "tulip-spring",
              name: "Spring Awakening",
              price: "$55",
              variant: "Mixed Tulips · 10 Stems",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=5z4w8q",
              imageAlt: "Spring Awakening bouquet with mixed tulips",
              isFavorited: false
            },
            {
              id: "sunflower-joy",
              name: "Sunshine Joy",
              price: "$50",
              variant: "Sunflowers & Dahlias · 8 Stems",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=b5taqu",
              imageAlt: "Sunshine Joy bouquet with bright sunflowers",
              isFavorited: false
            },
            {
              id: "seasonal-premium",
              name: "Seasonal Luxury",
              price: "$85",
              variant: "Premium Mixed · 15 Stems",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=tizt5f",
              imageAlt: "Seasonal Luxury bouquet with premium mixed flowers",
              isFavorited: false
            }
          ]}
        />
      </div>
      
      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFifteen
          testimonial="GoodTime flowers completely transformed how I celebrate special moments. The quality is exceptional, the service is seamless, and every bouquet feels deeply personal. I can't imagine buying flowers anywhere else."
          rating={5}
          author="Sarah Martinez, Event Planner"
          useInvertedBackground="noInvert"
          avatars={[
            {
              src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=r4dw79",
              alt: "Sarah Martinez"
            },
            {
              src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=wu6hf8",
              alt: "Customer testimonial"
            },
            {
              src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=pnnq29",
              alt: "Customer testimonial"
            },
            {
              src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=ec1w69",
              alt: "Customer testimonial"
            },
            {
              src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=hooksk",
              alt: "Customer testimonial"
            },
            {
              src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=ourvg5",
              alt: "Customer testimonial"
            }
          ]}
        />
      </div>
      
      <div id="faq" data-section="faq">
        <FaqBase
          title="Frequently Asked Questions"
          description="Everything you need to know about our flowers, delivery, and service."
          tag="Help & Support"
          tagIcon={HelpCircle}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="smooth"
          showCard={true}
          faqs={[
            {
              id: "1",
              title: "How fresh are your flowers?",
              content: "All our flowers are hand-selected and arranged fresh daily. We use flowers at their peak bloom stage and deliver within 24 hours of arrangement to ensure maximum freshness and longevity."
            },
            {
              id: "2",
              title: "Do you offer same-day delivery?",
              content: "Yes! We offer same-day delivery for orders placed before 2 PM in our local service area. Simply select same-day delivery at checkout and we'll have your bouquet to your door by evening."
            },
            {
              id: "3",
              title: "Are your flowers environmentally friendly?",
              content: "Absolutely. We partner exclusively with local, sustainable growers. Our packaging is 100% recyclable and compostable, and we carbon-offset all local deliveries. No flowers are imported by air."
            },
            {
              id: "4",
              title: "Can I customize my bouquet?",
              content: "Yes! Contact us directly to create a custom arrangement. We can adjust colors, flowers, size, and even add special touches like hand-written notes or elegant wrapping."
            },
            {
              id: "5",
              title: "What's your return or satisfaction policy?",
              content: "We stand behind every bouquet. If you're not completely satisfied, we'll replace your flowers or provide a full refund within 7 days. Your happiness is our guarantee."
            },
            {
              id: "6",
              title: "How long will my flowers last?",
              content: "With proper care (fresh water, cool placement, removing lower leaves), most of our bouquets last 7-10 days. We include care instructions with every order to help extend their beauty."
            }
          ]}
        />
      </div>
      
      <div id="contact" data-section="contact">
        <ContactFaq
          ctaTitle="Get in Touch"
          ctaDescription="Have questions about our flowers or need a custom arrangement? We'd love to hear from you. Reach out anytime—we respond within 2 hours."
          ctaButton={{
            text: "Contact Us",
            href: "mailto:hello@goodtimeflowers.com"
          }}
          ctaIcon={Mail}
          useInvertedBackground="noInvert"
          animationType="slide-up"
          accordionAnimationType="smooth"
          showCard={true}
          faqs={[
            {
              id: "1",
              title: "What areas do you deliver to?",
              content: "We deliver within the greater metropolitan area. Check our delivery zone map on the shop page or enter your zip code during checkout to confirm service availability."
            },
            {
              id: "2",
              title: "Do you offer corporate/bulk orders?",
              content: "Yes! For corporate events, weddings, or bulk orders, we offer special pricing and personalized service. Contact our corporate team at corporate@goodtimeflowers.com or call us directly."
            },
            {
              id: "3",
              title: "Can I schedule recurring flower deliveries?",
              content: "Absolutely! Our subscription service delivers fresh seasonal bouquets weekly or bi-weekly. You can customize your preferences and pause or cancel anytime."
            }
          ]}
        />
      </div>
      
      <div id="footer" data-section="footer">
        <FooterCard
          logoText="GoodTime"
          copyrightText="© 2025 GoodTime Flowers. All rights reserved. Grown with love, delivered with care."
          socialLinks={[
            {
              icon: Instagram,
              href: "https://instagram.com/goodtimeflowers",
              ariaLabel: "Instagram"
            },
            {
              icon: Facebook,
              href: "https://facebook.com/goodtimeflowers",
              ariaLabel: "Facebook"
            },
            {
              icon: Mail,
              href: "mailto:hello@goodtimeflowers.com",
              ariaLabel: "Email"
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}