"use client";

import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroSplitLarge from '@/components/sections/hero/HeroSplitLarge';
import MediaAbout from '@/components/sections/about/MediaAbout';
import FeatureCardEight from '@/components/sections/feature/FeatureCardEight';
import ProductCardSeven from '@/components/sections/product/ProductCardSeven';
import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive';
import FaqSplitMedia from '@/components/sections/faq/FaqSplitMedia';
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FooterBase from '@/components/sections/footer/FooterBase';
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import { Flower, Sparkles, Leaf, Heart, Mail } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-shift"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="small"
      sizing="largeSmallSizeLargeTitles"
      background="floatingGradient"
      cardStyle="glass-elevated"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="solid"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          brandName="GoodTime"
          navItems={[
            { name: "Shop", id: "products" },
            { name: "About", id: "about" },
            { name: "How It Works", id: "features" },
            { name: "Testimonials", id: "testimonials" },
            { name: "FAQ", id: "faq" }
          ]}
          button={{ text: "Order Now", href: "products" }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitLarge
          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="Fresh & Seasonal"
          tagIcon={Flower}
          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=sfbor5"
          imageAlt="Fresh vibrant flowers arrangement"
          containerClassName="py-20 md:py-32"
          titleClassName="text-5xl md:text-6xl font-light leading-tight"
          descriptionClassName="text-lg md:text-xl font-light text-opacity-90"
          tagClassName="inline-flex items-center gap-2"
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardSeven
          title="Featured Bouquets"
          description="Discover our handpicked collection of fresh, seasonal flowers arranged with care"
          tag="Shop Now"
          tagIcon={Sparkles}
          products={[
            {
              id: "1",
              name: "Premium Rose Bouquet",
              price: "$65",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=wejmb6",
              imageAlt: "Red roses premium bouquet"
            },
            {
              id: "2",
              name: "Spring Tulip Mix",
              price: "$55",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=slea7e",
              imageAlt: "Colorful tulips bouquet"
            },
            {
              id: "3",
              name: "Seasonal Signature",
              price: "$75",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=3cwfkj",
              imageAlt: "Mixed seasonal flowers arrangement"
            }
          ]}
          gridVariant="uniform-all-items-equal"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          containerClassName="py-20"
        />
      </div>

      <div id="about" data-section="about">
        <MediaAbout
          title="Fresh Flowers, Thoughtfully Sourced"
          description="At GoodTime, we believe that fresh flowers bring joy to everyday moments. We partner with local growers to bring you seasonal, sustainably-sourced blooms that celebrate nature's beauty. Every bouquet is handcrafted with care and delivered fresh to make your day brighter."
          tag="Our Story"
          tagIcon={Leaf}
          buttons={[
            { text: "Explore Our Values", href: "features" }
          ]}
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=a7elle"
          imageAlt="Beautiful field of fresh flowers"
          useInvertedBackground="noInvert"
          titleClassName="text-5xl md:text-6xl font-light leading-tight"
          descriptionClassName="text-lg md:text-xl font-light text-opacity-90"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardEight
          title="How GoodTime Blooms"
          description="From garden to doorstep, we ensure every flower is fresh, beautiful, and handled with care"
          tag="Our Process"
          textboxLayout="split"
          useInvertedBackground="noInvert"
          features={[
            {
              id: 1,
              title: "Local Sourcing",
              description: "We partner with trusted local farmers to hand-select the freshest, most vibrant flowers in season",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=kjvk3h"
            },
            {
              id: 2,
              title: "Expert Arrangement",
              description: "Our skilled florists carefully arrange each bouquet with attention to color, texture, and balance",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=cslazx"
            },
            {
              id: 3,
              title: "Premium Packaging",
              description: "Every arrangement is wrapped with care in eco-friendly materials to ensure safe delivery",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=bblcic"
            },
            {
              id: 4,
              title: "Same-Day Delivery",
              description: "We deliver your flowers fresh within hours, maintaining their beauty and fragrance",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=gzedzm"
            }
          ]}
          containerClassName="py-20"
          textBoxTitleClassName="text-5xl md:text-5xl font-light"
          textBoxDescriptionClassName="text-lg font-light"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFive
          title="What Our Customers Say"
          description="Real stories from people who've experienced the joy of GoodTime flowers"
          tag="Customer Love"
          tagIcon={Heart}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          testimonials={[
            {
              id: "1",
              name: "Sarah Mitchell, Marketing Director",
              date: "Date: 15 January 2025",
              title: "They made my office bloom!",
              quote: "I ordered flowers for my office and they arrived looking absolutely stunning. The arrangement was creative and the freshness lasted over two weeks. GoodTime has become my go-to for all occasions.",
              tag: "Premium Customer",
              avatarSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=gjwpcl",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=gjwpcl"
            },
            {
              id: "2",
              name: "James Chen, Small Business Owner",
              date: "Date: 10 January 2025",
              title: "Perfect for every occasion",
              quote: "Whether it's a birthday, anniversary, or just because—GoodTime flowers never disappoint. Their seasonal selections are thoughtful and the delivery is always on time.",
              tag: "Regular Customer",
              avatarSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=7g9und",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=7g9und"
            },
            {
              id: "3",
              name: "Emma Rodriguez, Corporate Executive",
              date: "Date: 28 December 2024",
              title: "Exceeded my expectations",
              quote: "I needed flowers for a client meeting and wanted something special. GoodTime delivered exactly that—beautiful, professional, and it impressed everyone. Will definitely order again.",
              tag: "Business Client",
              avatarSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=ayn5vd",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=ayn5vd"
            },
            {
              id: "4",
              name: "David Park, Consultant",
              date: "Date: 22 December 2024",
              title: "Fresh and thoughtfully arranged",
              quote: "As someone who appreciates quality, GoodTime stands out. The flowers are genuinely fresh, the arrangements are beautiful, and their commitment to sustainability resonates with me.",
              tag: "Eco-Conscious",
              avatarSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=vz14m6",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=vz14m6"
            },
            {
              id: "5",
              name: "Jessica Williams, Design Professional",
              date: "Date: 18 December 2024",
              title: "A joy to support local",
              quote: "I love that GoodTime sources locally and sustainably. It feels good to support a business that cares about the environment while delivering gorgeous flowers.",
              tag: "Local Supporter",
              avatarSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=m5su7i",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=m5su7i"
            }
          ]}
          containerClassName="py-20"
          textBoxTitleClassName="text-5xl md:text-5xl font-light"
          textBoxDescriptionClassName="text-lg font-light"
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitMedia
          title="Frequently Asked Questions"
          description="Everything you need to know about ordering fresh flowers from GoodTime"
          tag="Help & Support"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=2sa7cn"
          imageAlt="Customer support with fresh flowers"
          mediaPosition="right"
          animationType="smooth"
          faqs={[
            {
              id: "1",
              title: "How long do the flowers last?",
              content: "Our fresh flowers typically last 7-14 days when properly cared for. We include care instructions with every delivery. Keep them in cool water, trim the stems, and change the water every 2-3 days for maximum freshness."
            },
            {
              id: "2",
              title: "Can I customize my bouquet?",
              content: "Absolutely! We offer custom arrangements for most occasions. You can specify your color preferences, flower types, and budget. Contact us directly or select the custom arrangement option when ordering online."
            },
            {
              id: "3",
              title: "How fast is your delivery?",
              content: "We offer same-day delivery for orders placed before 2 PM in our service area. Standard delivery typically arrives within 24 hours. You'll receive a tracking notification with the exact delivery time."
            },
            {
              id: "4",
              title: "Are your flowers sustainably sourced?",
              content: "Yes! We partner exclusively with local, sustainable growers who practice environmentally responsible farming. We're committed to reducing carbon footprint through local sourcing and using eco-friendly packaging."
            },
            {
              id: "5",
              title: "What if I'm not satisfied with my order?",
              content: "Your satisfaction is our priority. If you're not completely happy, contact us within 24 hours of delivery and we'll make it right with a replacement or full refund. No questions asked."
            },
            {
              id: "6",
              title: "Do you deliver on weekends and holidays?",
              content: "Yes, we deliver 7 days a week, including most holidays. Delivery fees may be higher on holidays. Check availability when placing your order to confirm delivery for your specific date."
            }
          ]}
          containerClassName="py-20"
          textBoxTitleClassName="text-5xl md:text-5xl font-light"
          textBoxDescriptionClassName="text-lg font-light"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCenter
          tag="Newsletter"
          tagIcon={Mail}
          title="Join the GoodTime Community"
          description="Subscribe to our newsletter for weekly flower inspiration, seasonal specials, and exclusive offers delivered straight to your inbox"
          inputPlaceholder="your@email.com"
          buttonText="Subscribe & Bloom"
          termsText="We respect your inbox. Unsubscribe anytime. You'll receive our weekly flower tips and exclusive offers."
          useInvertedBackground="noInvert"
          containerClassName="py-20"
          titleClassName="text-4xl md:text-5xl font-light"
          descriptionClassName="text-lg font-light text-opacity-90"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBase
          logoText="GoodTime"
          copyrightText="© 2025 GoodTime Flowers. Fresh blooms, fresh joy."
          columns={[
            {
              title: "Shop",
              items: [
                { label: "Featured Bouquets", href: "products" },
                { label: "Seasonal Collection", href: "products" },
                { label: "Custom Arrangements", href: "products" },
                { label: "Gift Cards", href: "products" }
              ]
            },
            {
              title: "Company",
              items: [
                { label: "About Us", href: "about" },
                { label: "Our Process", href: "features" },
                { label: "Sustainability", href: "about" },
                { label: "Contact", href: "contact" }
              ]
            },
            {
              title: "Support",
              items: [
                { label: "FAQ", href: "faq" },
                { label: "Delivery Info", href: "faq" },
                { label: "Care Guide", href: "faq" },
                { label: "Privacy Policy", href: "contact" }
              ]
            }
          ]}
          containerClassName="py-16 md:py-20"
          logoTextClassName="text-2xl font-light text-primary-cta"
          columnTitleClassName="text-sm font-semibold uppercase tracking-wide"
          columnItemClassName="text-sm hover:text-primary-cta transition-colors"
        />
      </div>
    </ThemeProvider>
  );
}