"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleMinimal from '@/components/navbar/NavbarStyleMinimal';
import HeroBillboardGallery from '@/components/sections/hero/HeroBillboardGallery';
import SplitAboutCards from '@/components/sections/about/SplitAboutCards';
import FeatureCardTwelve from '@/components/sections/feature/FeatureCardTwelve';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import PricingCardEight from '@/components/sections/pricing/PricingCardEight';
import TestimonialCardFifteen from '@/components/sections/testimonial/TestimonialCardFifteen';
import FaqSplitMedia from '@/components/sections/faq/FaqSplitMedia';
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FooterBase from '@/components/sections/footer/FooterBase';
import { Zap, Shield, Sparkles, Package, Gift, Crown, HelpCircle, Mail } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-shift"
      defaultTextAnimation="background-highlight"
      borderRadius="pill"
      contentWidth="mediumLarge"
      sizing="mediumLargeSizeMediumTitles"
      background="noise"
      cardStyle="neon-glow"
      primaryButtonStyle="outline"
      secondaryButtonStyle="solid"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleMinimal
          brandName="Edgetabs"
          button={{
            text: "Shop Now",            href: "products"
          }}
          buttonClassName="font-medium"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardGallery
          title="Unleash Pure Energy"
          description="Edgetabs delivers instant, sustained energy with our premium supplement strips. Perfect for athletes, professionals, and anyone demanding peak performance."
          tag="Revolutionary Energy"
          tagIcon={Zap}
          mediaItems={[
            {
              imageSrc: "https://img.b2bpic.net/free-vector/protein-bar-element-collection_23-2150130866.jpg",              imageAlt: "Edgetabs Energy Strip Product"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-vector/flat-design-tea-label-template-set_23-2150607486.jpg",              imageAlt: "Edgetabs Performance Formula"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-vector/protein-bar-element-collection_23-2150130863.jpg",              imageAlt: "Edgetabs Wellness Collection"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-vector/protein-bar-element-collection_23-2150066792.jpg",              imageAlt: "Edgetabs Natural Energy"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-vector/protein-bar-element-collection_23-2150072991.jpg",              imageAlt: "Edgetabs Boost Formula"
            }
          ]}
          buttons={[
            { text: "Shop Collections", href: "products" },
            { text: "Subscribe & Save", href: "pricing" }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <SplitAboutCards
          title="Why Choose Edgetabs"
          description="Experience the difference with our scientifically formulated energy strips designed for those who refuse to compromise."
          tag="Our Promise"
          tagIcon={Shield}
          features={[
            {
              id: "fast-acting",              title: "Lightning-Fast Absorption",              description: "Innovative strip technology dissolves on your tongue for rapid energy delivery. Feel the difference in minutes, not hours.",              label: "30 Seconds to Energy"
            },
            {
              id: "clean-formula",              title: "Clean Energy Formula",              description: "Premium ingredients with zero artificial additives. Natural caffeine, B-vitamins, and adaptogens for sustained focus without the crash.",              label: "100% Natural"
            }
          ]}
          buttons={[
            { text: "Learn More", href: "features" }
          ]}
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardTwelve
          title="Edgetabs Advantage"
          description="Discover what sets our energy strips apart from ordinary supplements"
          tag="Features"
          tagIcon={Sparkles}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          features={[
            {
              id: "precision",              label: "Precision",              title: "Exact Dosage Control",              items: [
                "Pre-measured strips for consistent energy",                "No guesswork, no overdosing",                "Perfect portioning every time",                "Travel-friendly and discreet"
              ],
              buttons: [{ text: "Explore", href: "products" }]
            },
            {
              id: "performance",              label: "Performance",              title: "Peak Athletic Results",              items: [
                "Endorsed by fitness professionals",                "Clinically tested formula",                "Zero sugar, zero crash",                "Enhanced focus and endurance"
              ],
              buttons: [{ text: "Shop Now", href: "products" }]
            },
            {
              id: "convenience",              label: "Convenience",              title: "Energy On Demand",              items: [
                "Works anywhere, anytime",                "No water needed",                "Pocket-sized packaging",                "Perfect for busy lifestyles"
              ],
              buttons: [{ text: "Get Started", href: "products" }]
            }
          ]}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardFour
          title="Edgetabs Collection"
          description="Choose your perfect energy solution from our premium lineup"
          tag="Shop Products"
          tagIcon={Package}
          textboxLayout="default"
          animationType="slide-up"
          gridVariant="uniform-all-items-equal"
          useInvertedBackground="invertCard"
          products={[
            {
              id: "standard-30",              name: "Edgetabs Standard",              price: "$19.99",              variant: "30 Strips | Classic Energy",              imageSrc: "https://img.b2bpic.net/free-photo/top-view-tampons_23-2148025774.jpg",              imageAlt: "Edgetabs Standard 30 Strip Pack"
            },
            {
              id: "bundle-90",              name: "Edgetabs Bundle Pro",              price: "$49.99",              variant: "90 Strips | 3-Pack Bundle",              imageSrc: "https://img.b2bpic.net/free-photo/colorful-composition-with-healthy-food_23-2147914115.jpg",              imageAlt: "Edgetabs Bundle Pro 90 Strip Pack"
            },
            {
              id: "subscription-monthly",              name: "Edgetabs Monthly Sub",              price: "$15.99/mo",              variant: "30 Strips | Auto-Renew",              imageSrc: "https://img.b2bpic.net/free-vector/protein-bar-element-collection_23-2150010868.jpg",              imageAlt: "Edgetabs Monthly Subscription"
            },
            {
              id: "premium-elite",              name: "Edgetabs Elite",              price: "$89.99",              variant: "180 Strips | Premium Blend",              imageSrc: "https://img.b2bpic.net/free-vector/protein-bar-element-collection_23-2150006110.jpg",              imageAlt: "Edgetabs Elite 180 Strip Pack"
            }
          ]}
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardEight
          title="Flexible Plans for Every Need"
          description="Whether you prefer one-time purchases or sustainable savings, we have the perfect plan for your energy lifestyle."
          tag="Pricing"
          tagIcon={Zap}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          plans={[
            {
              id: "starter",              badge: "Quick Try",              badgeIcon: Sparkles,
              price: "$19.99",              subtitle: "Perfect for first-time users",              buttons: [{ text: "Get Started", href: "shop" }],
              features: [
                "30 premium energy strips",                "Full potency formula",                "Free shipping on orders $25+",                "30-day quality guarantee"
              ]
            },
            {
              id: "bundle-value",              badge: "Best Value",              badgeIcon: Gift,
              price: "$49.99",              subtitle: "Save 17% with 3-pack bundle",              buttons: [{ text: "Save Now", href: "shop" }],
              features: [
                "90 premium energy strips (3×30)",                "Full potency formula",                "Free expedited shipping",                "Extended 60-day guarantee",                "Exclusive bundle packaging"
              ]
            },
            {
              id: "subscription-monthly",              badge: "Most Popular",              badgeIcon: Zap,
              price: "$15.99/mo",              subtitle: "Save 20% with automatic delivery",              buttons: [{ text: "Subscribe & Save", href: "shop" }],
              features: [
                "30 strips delivered monthly",                "20% discount vs. retail",                "Cancel anytime, no penalties",                "Free priority shipping",                "VIP early access to new flavors"
              ]
            },
            {
              id: "subscription-quarterly",              badge: "Maximum Savings",              badgeIcon: Crown,
              price: "$44.99/3mo",              subtitle: "Save 25% on quarterly shipments",              buttons: [{ text: "Get Elite Access", href: "shop" }],
              features: [
                "90 strips every 3 months",                "25% discount vs. retail",                "Exclusive premium blends",                "Free white-glove shipping",                "Personal energy consultant access"
              ]
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFifteen
          testimonial="Edgetabs completely transformed my workout routine. I feel the energy kick in within minutes, and there's zero crash afterward. The strips are so convenient—I literally throw them in my gym bag and forget about them until I need that perfect energy boost."
          rating={5}
          author="Marcus Chen, Fitness Coach"
          avatars={[
            {
              src: "https://img.b2bpic.net/free-photo/positive-confident-businesswoman-wearing-formal-suit-standing-with-arms-folded_74855-10328.jpg",              alt: "User Avatar 1"
            },
            {
              src: "https://img.b2bpic.net/free-photo/closeup-smiling-beautiful-adult-businesswoman_1262-1760.jpg",              alt: "User Avatar 2"
            },
            {
              src: "https://img.b2bpic.net/free-photo/portrait-smiley-business-woman_23-2148603029.jpg",              alt: "User Avatar 3"
            },
            {
              src: "https://img.b2bpic.net/free-photo/business-woman-banner-concept-with-copy-space_23-2149601533.jpg",              alt: "User Avatar 4"
            },
            {
              src: "https://img.b2bpic.net/free-photo/close-up-positive-businesswoman_1098-3531.jpg",              alt: "User Avatar 5"
            },
            {
              src: "https://img.b2bpic.net/free-photo/young-businesswoman-portrait-office_1262-1506.jpg",              alt: "User Avatar 6"
            }
          ]}
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitMedia
          title="Everything You Need to Know"
          description="Your questions answered about Edgetabs energy strips, usage, and our commitment to quality."
          tag="FAQ"
          tagIcon={HelpCircle}
          textboxLayout="default"
          mediaPosition="right"
          imageSrc="https://img.b2bpic.net/free-photo/woman-stretching-training-outdoors_23-2149676953.jpg"
          imageAlt="Fitness and wellness lifestyle"
          animationType="smooth"
          useInvertedBackground="noInvert"
          faqs={[
            {
              id: "1",              title: "How quickly do Edgetabs work?",              content: "Edgetabs are designed for rapid absorption. Most users feel the energy boost within 30 seconds to 2 minutes of placing a strip on their tongue. This is significantly faster than pills or powders that need digestion."
            },
            {
              id: "2",              title: "What's in Edgetabs?",              content: "Each Edgetab contains: Natural caffeine (80mg), B-complex vitamins, L-theanine for smooth energy, and natural flavor. Zero artificial sweeteners, zero sugar, and zero artificial colors. All ingredients are clinically researched and safe."
            },
            {
              id: "3",              title: "Is there a crash after?",              content: "No. The L-theanine in our formula promotes calm focus, preventing the jitters and crash associated with traditional energy drinks. Users report sustained energy for 4-6 hours without the afternoon slump."
            },
            {
              id: "4",              title: "Can I cancel my subscription?",              content: "Absolutely. Our monthly and quarterly subscriptions can be paused or cancelled anytime with no penalties, no questions asked. Simply manage your subscription from your account dashboard or contact our support team."
            },
            {
              id: "5",              title: "Is it safe for athletes?",              content: "Yes. Edgetabs are formulated to meet sports supplement standards and contain only banned-substance-free ingredients. Many professional athletes use Edgetabs pre-competition. Check with your sport's governing body for specific regulations."
            },
            {
              id: "6",              title: "How should I store Edgetabs?",              content: "Keep strips in a cool, dry place away from direct sunlight. The packaging is moisture-resistant to maintain freshness. Each strip is individually sealed, so you can take them anywhere without worrying about degradation."
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCenter
          tag="Stay Connected"
          title="Energy Tips & Exclusive Offers"
          description="Join thousands of energy enthusiasts who get weekly tips on peak performance, new product launches, and exclusive subscriber-only discounts delivered to your inbox."
          tagIcon={Mail}
          inputPlaceholder="your@email.com"
          buttonText="Get Energy Updates"
          termsText="We respect your inbox. Unsubscribe anytime. Your data is never shared with third parties."
          useInvertedBackground="invertCard"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBase
          logoText="Edgetabs"
          copyrightText="© 2025 Edgetabs Energy. All rights reserved."
          columns={[
            {
              title: "Shop",              items: [
                { label: "All Products", href: "products" },
                { label: "Bundle Deals", href: "products" },
                { label: "Subscriptions", href: "pricing" },
                { label: "New Arrivals", href: "products" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "about" },
                { label: "Why Edgetabs", href: "about" },
                { label: "Blog", href: "blog" },
                { label: "Careers", href: "careers" }
              ]
            },
            {
              title: "Support",              items: [
                { label: "FAQ", href: "faq" },
                { label: "Contact Us", href: "contact" },
                { label: "Shipping Info", href: "shipping" },
                { label: "Returns", href: "returns" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}