"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroSplitAvatars from '@/components/sections/hero/HeroSplitAvatars';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import PricingCardSeven from '@/components/sections/pricing/PricingCardSeven';
import TestimonialCardThirteen from '@/components/sections/testimonial/TestimonialCardThirteen';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FooterBaseSocial from '@/components/sections/footer/FooterBaseSocial';
import { AlertCircle, Award, Instagram, Mail, Package, Sparkles, Twitter, Youtube } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="bounce-effect"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="small"
      sizing="largeSmallSizeMediumTitles"
      background="grid"
      cardStyle="neon-glow"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="layered"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Edgetabs"
          navItems={[
            { name: "Home", id: "hero" },
            { name: "Product", id: "product" },
            { name: "Pricing", id: "pricing" },
            { name: "Reviews", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
          button={{
            text: "Buy Now",
            href: "pricing"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitAvatars
          title="Pure Performance. Unstoppable Focus."
          description="Edgetabs delivers maximum cognitive clarity and sustained energy—the competitive edge your body deserves."
          tag="LOW ON STOCK"
          tagIcon={AlertCircle}
          imagePosition="right"
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548532849-0mdnzjwb.jpg"
          imageAlt="Edgetabs premium supplement tin"
          avatars={[
            { src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767391971052-5paod60c.jpg", alt: "Customer 1" },
            { src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548534823-ztfa8dh2.jpg", alt: "Customer 2" },
            { src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548535439-8vmz9ugi.jpg", alt: "Customer 3" },
            { src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548317270-xdwlmkra.jpg", alt: "Customer 4" },
            { src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548535728-9pyai3fp.jpg", alt: "Customer 5" }
          ]}
          avatarText="Trusted by 2,000+ customers • ★★★★★ 4.8/5"
          buttons={[
            { text: "Get Edge", href: "pricing" }
          ]}
        />
      </div>

      <div id="product" data-section="product">
        <ProductCardTwo
          title="The Edge You Need"
          description="Single-serving premium formula engineered for athletes, professionals, and anyone pushing limits."
          products={[
            {
              id: "1",
              brand: "Edgetabs",
              name: "Performance Tin (Single)",
              price: "$39.99",
              rating: 5,
              reviewCount: "2.1k",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548533309-93g8lao7.jpg",
              imageAlt: "Edgetabs single tin"
            },
            {
              id: "2",
              brand: "Edgetabs",
              name: "Performance Tin (Variety Pack)",
              price: "$99.99",
              rating: 5,
              reviewCount: "1.8k",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548533639-ylk8b95x.jpg",
              imageAlt: "Edgetabs variety pack"
            },
            {
              id: "3",
              brand: "Edgetabs",
              name: "Performance Tin (Bulk Bundle)",
              price: "$149.99",
              rating: 5,
              reviewCount: "1.5k",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548534082-pc4mhvrc.jpg",
              imageAlt: "Edgetabs bulk bundle"
            }
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardSeven
          title="Choose Your Bundle"
          description="Select the perfect quantity and save on every order. Lock in subscription savings for guaranteed monthly delivery."
          plans={[
            {
              id: "single",
              tag: "SINGLE",
              tagIcon: Package,
              pricingOptions: [
                {
                  value: "one-time",
                  label: "One-Time",
                  price: "$39.99",
                  subtitle: "Per Tin"
                },
                {
                  value: "subscription",
                  label: "Subscribe",
                  price: "$35.99",
                  subtitle: "Per Tin (Save 10%)"
                }
              ],
              defaultOption: "subscription",
              selectorNote: "Save 10% on subscription—cancel anytime",
              description: "1 Tin of pure performance formula.",
              buttons: [
                { text: "Add to Cart", href: "#" }
              ]
            },
            {
              id: "duo",
              tag: "RECOMMENDED",
              tagIcon: Sparkles,
              pricingOptions: [
                {
                  value: "one-time",
                  label: "One-Time",
                  price: "$75.98",
                  subtitle: "Save $3.98"
                },
                {
                  value: "subscription",
                  label: "Subscribe",
                  price: "$68.38",
                  subtitle: "Save $12.98 (Monthly)"
                }
              ],
              defaultOption: "subscription",
              selectorNote: "Save 18% with subscription",
              description: "2 Tins for maximum performance. Most popular choice.",
              buttons: [
                { text: "Add to Cart", href: "#" }
              ]
            },
            {
              id: "trio",
              tag: "BEST VALUE",
              tagIcon: Award,
              pricingOptions: [
                {
                  value: "one-time",
                  label: "One-Time",
                  price: "$107.97",
                  subtitle: "Save $11.99"
                },
                {
                  value: "subscription",
                  label: "Subscribe",
                  price: "$97.17",
                  subtitle: "Save $23.97 (Monthly)"
                }
              ],
              defaultOption: "subscription",
              selectorNote: "Save 30% with subscription",
              description: "3 Tins for serious competitors. Maximum savings.",
              buttons: [
                { text: "Add to Cart", href: "#" }
              ]
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardThirteen
          title="What Our Customers Say"
          description="Real results from real athletes, professionals, and performance-focused individuals."
          showRating={true}
          testimonials={[
            {
              id: "1",
              name: "Marcus Reid",
              handle: "@marcus_training",
              testimonial: "Edgetabs transformed my workouts. The focus and energy are unmatched. I've tried everything—this is the real deal.",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767391971052-5paod60c.jpg",
              imageAlt: "Marcus Reid"
            },
            {
              id: "2",
              name: "Sarah Chen",
              handle: "@sarah_performance",
              testimonial: "As an ultramarathoner, sustained energy is critical. Edgetabs delivers clean power without the crash. Absolutely game-changing.",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548534823-ztfa8dh2.jpg",
              imageAlt: "Sarah Chen"
            },
            {
              id: "3",
              name: "David Moretti",
              handle: "@david_hustle",
              testimonial: "Been taking Edgetabs for 6 months. My mental clarity at work is sharper, my gym sessions stronger. Worth every penny.",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548535439-8vmz9ugi.jpg",
              imageAlt: "David Moretti"
            },
            {
              id: "4",
              name: "Jessica Lopez",
              handle: "@jess_athlete",
              testimonial: "The 10% subscription discount sealed it for me. Quality product + convenience + savings. This is how supplements should be sold.",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548317270-xdwlmkra.jpg",
              imageAlt: "Jessica Lopez"
            },
            {
              id: "5",
              name: "Alex Thompson",
              handle: "@alex_peak",
              testimonial: "I recommend Edgetabs to every competitor I know. Better energy, zero jitters, pure focus. That's the promise, that's what I got.",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548535728-9pyai3fp.jpg",
              imageAlt: "Alex Thompson"
            },
            {
              id: "6",
              name: "Emma Wright",
              handle: "@emma_strong",
              testimonial: "Low on stock because people know what's up. Grabbed 3 tins with subscription and never looking back. Best decision for my training.",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767391971396-8z0vqol9.jpg",
              imageAlt: "Emma Wright"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplitForm
          title="Questions? We're Here."
          description="Have a question about Edgetabs or need something specific? Reach out—we respond within 24 hours. Your edge is our priority."
          inputs={[
            {
              name: "name",
              type: "text",
              placeholder: "Your Name",
              required: true
            },
            {
              name: "email",
              type: "email",
              placeholder: "Your Email",
              required: true
            },
            {
              name: "phone",
              type: "tel",
              placeholder: "Phone (Optional)",
              required: false
            }
          ]}
          textarea={{
            name: "message",
            placeholder: "What's on your mind? Questions about ingredients, shipping, or anything else...",
            rows: 5,
            required: true
          }}
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767548532849-0mdnzjwb.jpg"
          imageAlt="Edgetabs contact support"
          mediaPosition="right"
          buttonText="Send Message"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseSocial
          logoText="Edgetabs"
          description="Pure performance supplements for athletes, professionals, and anyone chasing their edge. Premium quality. Maximum results."
          copyrightText="© 2025 Edgetabs. All rights reserved."
          columns={[
            {
              title: "Product",
              items: [
                { label: "Shop", href: "product" },
                { label: "Pricing", href: "pricing" },
                { label: "Reviews", href: "testimonials" }
              ]
            },
            {
              title: "Company",
              items: [
                { label: "About", href: "#" },
                { label: "Contact", href: "contact" },
                { label: "Careers", href: "#" }
              ]
            },
            {
              title: "Legal",
              items: [
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" },
                { label: "Shipping Policy", href: "#" }
              ]
            }
          ]}
          socialLinks={[
            { icon: Instagram, href: "https://instagram.com", ariaLabel: "Instagram" },
            { icon: Twitter, href: "https://twitter.com", ariaLabel: "Twitter" },
            { icon: Youtube, href: "https://youtube.com", ariaLabel: "YouTube" },
            { icon: Mail, href: "mailto:support@edgetabs.com", ariaLabel: "Email" }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}