"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroBillboardCarousel from '@/components/sections/hero/HeroBillboardCarousel';
import TagAbout from '@/components/sections/about/TagAbout';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import MetricCardTwo from '@/components/sections/metrics/MetricCardTwo';
import TestimonialCardThirteen from '@/components/sections/testimonial/TestimonialCardThirteen';
import BlogCardFive from '@/components/sections/blog/BlogCardFive';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterBase from '@/components/sections/footer/FooterBase';
import { Mail, Pen, Sparkles, Star, TrendingUp } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="shift-hover"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="mediumSmall"
      sizing="largeSizeMediumTitles"
      background="radialGradient"
      cardStyle="outline-light"
      primaryButtonStyle="flat"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          brandName="San Diego Threads"
          navItems={[
            { name: "Home", id: "hero" },
            { name: "Collections", id: "products" },
            { name: "About", id: "about" },
            { name: "Stories", id: "blog" },
            { name: "Contact", id: "contact" }
          ]}
          button={{ text: "Shop Now", href: "products" }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardCarousel
          title="Elevated Casual Wear"
          description="Discover our latest collection of premium streetwear and essentials crafted for San Diego's vibrant lifestyle"
          tag="New Collection"
          tagIcon={Sparkles}
          mediaItems={[
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767711849298-nl4jhwm7.jpg",              imageAlt: "New collection showcase"
            },
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767711849868-b99382ev.jpg",              imageAlt: "Mens fashion collection"
            },
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767711850187-jkgqtj23.jpg",              imageAlt: "Womens fashion collection"
            },
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767711850529-2rbq1gfj.jpg",              imageAlt: "Seasonal collection"
            },
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767711850856-7685urha.jpg",              imageAlt: "Urban streetwear"
            }
          ]}
          buttons={[
            { text: "Shop Collection", href: "products" },
            { text: "Browse Trending", href: "blog" }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <TagAbout
          tag="Our Story"
          description="San Diego Threads is built on the foundation of authentic style and sustainable fashion. We believe clothing should tell a story—your story. Each piece in our collection is carefully curated to reflect the laid-back sophistication of San Diego culture while maintaining the highest standards of quality and ethical production."
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardTwo
          title="Featured Products"
          description="Hand-selected pieces from our latest collection"
          tag="Best Sellers"
          tagIcon={TrendingUp}
          products={[
            {
              id: "1",              brand: "San Diego Threads",              name: "Premium Organic Cotton Tee",              price: "$45.00",              rating: 5,
              reviewCount: "328",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767711851635-r6tf75wx.jpg",              imageAlt: "Premium organic cotton t-shirt in natural white"
            },
            {
              id: "2",              brand: "San Diego Threads",              name: "Vintage Denim Jacket",              price: "$125.00",              rating: 5,
              reviewCount: "256",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767711852089-gtun5sza.jpg",              imageAlt: "Classic vintage-style denim jacket"
            },
            {
              id: "3",              brand: "San Diego Threads",              name: "Comfort Hoodie",              price: "$65.00",              rating: 4,
              reviewCount: "189",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767711852543-782vb1ul.jpg",              imageAlt: "Comfortable everyday hoodie in earth tones"
            }
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardTwo
          title="Growing Community"
          description="Our impact by the numbers"
          metrics={[
            {
              id: "1",              value: "15K+",              description: "Happy Customers"
            },
            {
              id: "2",              value: "500+",              description: "Unique Pieces"
            },
            {
              id: "3",              value: "98%",              description: "Satisfaction Rate"
            },
            {
              id: "4",              value: "2 Years",              description: "In Business"
            }
          ]}
          gridVariant="four-items-2x2-equal-grid"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardThirteen
          title="What Our Customers Say"
          description="Real reviews from real San Diego Threads community members"
          tag="Reviews"
          tagIcon={Star}
          testimonials={[
            {
              id: "1",              name: "Maria Rodriguez",              handle: "@maria_style",              testimonial: "Finally found a brand that gets San Diego style. The quality is amazing and the fit is perfect. I've become a loyal customer!",              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767387355177-nx9mprtv.jpg",              imageAlt: "Maria Rodriguez portrait"
            },
            {
              id: "2",              name: "James Chen",              handle: "@james_casual",              testimonial: "Love supporting a local brand that cares about sustainability. Every piece feels premium and lasts forever.",              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767387356195-5bzvao2a.jpg",              imageAlt: "James Chen portrait"
            },
            {
              id: "3",              name: "Sarah Thompson",              handle: "@sarah_threads",              testimonial: "The customer service is exceptional. When I had a question about sizing, they responded within hours. This brand actually cares!",              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767387355491-oaqhmk1o.jpg",              imageAlt: "Sarah Thompson portrait"
            },
            {
              id: "4",              name: "David Martinez",              handle: "@david_san_diego",              testimonial: "Best investment in my wardrobe. These pieces are timeless and versatile. Worth every penny.",              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767387355784-wp7a3bzx.jpg",              imageAlt: "David Martinez portrait"
            }
          ]}
          showRating={true}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="blog" data-section="blog">
        <BlogCardFive
          title="Latest Stories"
          description="Insights, trends, and behind-the-scenes from San Diego Threads"
          tag="Blog"
          tagIcon={Pen}
          blogs={[
            {
              id: "1",              title: "Sustainable Fashion: Why We Chose Ethical Production",              items: ["Sustainability", "Jan 18, 2025", "6 min read"],
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767711849298-nl4jhwm7.jpg",              imageAlt: "Sustainable fabric production"
            },
            {
              id: "2",              title: "San Diego Style Guide: Mastering Casual Elegance",              items: ["Fashion Tips", "Jan 12, 2025", "5 min read"],
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767711850187-jkgqtj23.jpg",              imageAlt: "Fashion styling guide for casual wear"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="invertCard"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Newsletter"
          tagIcon={Mail}
          title="Join The Community"
          description="Get exclusive access to new collections, special discounts, and insider fashion tips delivered straight to your inbox."
          useInvertedBackground="noInvert"
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767711853553-8uiibws6.jpg"
          imageAlt="Community shopping experience"
          mediaPosition="right"
          inputPlaceholder="Enter your email"
          buttonText="Subscribe"
          termsText="We respect your privacy. Unsubscribe anytime. By subscribing, you agree to our Terms and Privacy Policy."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBase
          logoText="San Diego Threads"
          columns={[
            {
              title: "Shop",              items: [
                { label: "Collections", href: "products" },
                { label: "New Arrivals", href: "products" },
                { label: "Best Sellers", href: "products" }
              ]
            },
            {
              title: "About",              items: [
                { label: "Our Story", href: "about" },
                { label: "Sustainability", href: "about" },
                { label: "Blog", href: "blog" }
              ]
            },
            {
              title: "Support",              items: [
                { label: "Contact Us", href: "contact" },
                { label: "Shipping Info", href: "contact" },
                { label: "Returns", href: "contact" }
              ]
            }
          ]}
          copyrightText="© 2025 San Diego Threads. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}