"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import HeroLogoCarousel from '@/components/sections/hero/HeroLogoCarousel';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import FeatureCardEighteen from '@/components/sections/feature/FeatureCardEighteen';
import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive';
import PricingCardOne from '@/components/sections/pricing/PricingCardOne';
import FaqSplitMedia from '@/components/sections/faq/FaqSplitMedia';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterCard from '@/components/sections/footer/FooterCard';
import { Crown, Sparkles, Zap, Twitter, Youtube, Instagram } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-stagger"
      defaultTextAnimation="background-highlight"
      borderRadius="sharp"
      contentWidth="medium"
      sizing="mediumLargeSizeLargeTitles"
      background="fluid"
      cardStyle="neon-glow"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="minimal"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen 
          navItems={[
            { name: "Shop", id: "products" },
            { name: "About", id: "features" },
            { name: "Reviews", id: "testimonials" },
            { name: "FAQ", id: "faq" },
            { name: "Contact", id: "contact" }
          ]}
          brandName="GamingGear"
          bottomLeftText="Your Gaming Partner"
          bottomRightText="support@gaminggear.com"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogoCarousel 
          logoText="GamingGear"
          description="Discover top-rated accessories that bring out the best in your game—fast shipping and guaranteed quality"
          mediaItems={[
            { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766162985210-1ppue3uz.jpg", imageAlt: "Premium mechanical gaming keyboard with RGB lighting" },
            { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767008465759-83vlk2nd.jpg", imageAlt: "High-precision gaming mouse for competitive play" },
            { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767008467028-12cax78m.jpg", imageAlt: "Surround sound gaming headset for immersive experience" },
            { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766162986247-k8pnj4cd.jpg", imageAlt: "High refresh rate gaming monitor for smooth gameplay" },
            { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767008467896-k3rs2mds.jpg", imageAlt: "Smooth gaming mousepad for precision control" }
          ]}
          logoLineHeight={1.1}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardTwo 
          title="Shop Premium Gaming Accessories"
          description="Browse our carefully curated collection of high-quality gaming gear trusted by competitive and casual players alike"
          products={[
            {
              id: "1",
              brand: "TechPro",
              name: "Mechanical Gaming Keyboard RGB",
              price: "$149.99",
              rating: 5,
              reviewCount: "4.2k",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767008468748-8wuzqkxb.jpg",
              imageAlt: "TechPro mechanical keyboard with RGB backlighting"
            },
            {
              id: "2",
              brand: "CursorMax",
              name: "Ultra-Responsive Gaming Mouse",
              price: "$79.99",
              rating: 5,
              reviewCount: "3.8k",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767008469530-p1soz5c7.jpg",
              imageAlt: "CursorMax wireless gaming mouse with 16000 DPI"
            },
            {
              id: "3",
              brand: "ComfortGaming",
              name: "Pro Ergonomic Gaming Chair",
              price: "$299.99",
              rating: 4,
              reviewCount: "2.9k",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767008470344-vf2a7s8x.jpg",
              imageAlt: "ComfortGaming premium ergonomic gaming chair"
            }
          ]}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          gridVariant="three-columns-all-equal-width"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardEighteen 
          title="Why Choose GamingGear"
          description="Experience the difference between average setups and pro-level gaming equipment"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          negativeCard={{
            title: "Settling for Less",
            imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766158631222-b4add55v.jpg",
            items: [
              "Low-quality unresponsive peripherals",
              "Slow shipping and poor support",
              "Unreliable performance under pressure",
              "Limited product selection"
            ]
          }}
          positiveCard={{
            title: "Level Up with GamingGear",
            imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767008471140-vcogrrbp.jpg",
            items: [
              "Premium, tournament-grade equipment",
              "Fast shipping with guaranteed delivery",
              "Professional-grade performance",
              "Thousands of quality products"
            ]
          }}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFive 
          title="What Our Players Say"
          description="Join thousands of satisfied gamers who trust GamingGear for their setup"
          testimonials={[
            {
              id: "1",
              name: "Marcus Chen, Esports Pro",
              date: "Date: 15 November 2024",
              title: "Changed my competitive game completely",
              quote: "The responsiveness and build quality are unmatched. I've won three tournaments since switching to GamingGear equipment. The support team is incredibly helpful with setup questions.",
              tag: "Competitive Player",
              avatarSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767008472257-1keubkjd.jpg",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767008472257-1keubkjd.jpg"
            },
            {
              id: "2",
              name: "Sarah Rodriguez, Content Creator",
              date: "Date: 22 October 2024",
              title: "Professional gear at fair prices",
              quote: "I stream 40 hours a week and need reliable equipment. GamingGear delivers premium quality without breaking the bank. My viewers love my setup and audio quality.",
              tag: "Streamer",
              avatarSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767008473151-ztq3ugqq.jpg",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767008473151-ztq3ugqq.jpg"
            },
            {
              id: "3",
              name: "James Wilson, Casual Gamer",
              date: "Date: 10 October 2024",
              title: "Amazing value and delivery",
              quote: "First time ordering gaming peripherals and I'm blown away. The keyboard feels incredible and arrived in two days. Customer service was fantastic when I had questions.",
              tag: "New Customer",
              avatarSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767008473920-m5gkh2as.jpg",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767008473920-m5gkh2as.jpg"
            },
            {
              id: "4",
              name: "Alex Kim, Console Gamer",
              date: "Date: 28 September 2024",
              title: "Works perfectly with my setup",
              quote: "Compatibility was my biggest concern, but GamingGear has clear documentation. Their mouse and headset work flawlessly with my PlayStation and PC. Highly recommend.",
              tag: "Multi-Platform",
              avatarSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767008474904-03ppuk1k.jpg",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767008474904-03ppuk1k.jpg"
            },
            {
              id: "5",
              name: "David Thompson, PC Builder",
              date: "Date: 15 September 2024",
              title: "Perfect for custom builds",
              quote: "Built my first gaming PC and needed quality peripherals. GamingGear's product descriptions are detailed and honest. Everything integrates seamlessly with my custom rig.",
              tag: "Custom Builder",
              avatarSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766158635120-y4gwwb01.jpg",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766158635120-y4gwwb01.jpg"
            },
            {
              id: "6",
              name: "Elena Martinez, Gaming Community Manager",
              date: "Date: 5 September 2024",
              title: "Our team's go-to gaming store",
              quote: "We've outfitted our entire gaming club with GamingGear products. Bulk ordering is smooth, delivery is reliable, and we get consistent quality across every order.",
              tag: "Team Manager",
              avatarSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767008475695-0i2q7722.jpg",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767008475695-0i2q7722.jpg"
            }
          ]}
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardOne 
          title="Choose Your Gaming Setup"
          description="Flexible options for every budget and gaming style, from casual to competitive"
          plans={[
            {
              id: "starter",
              badge: "Getting Started",
              badgeIcon: Zap,
              price: "$79-149",
              subtitle: "Essential gear for casual gaming",
              features: [
                "Quality gaming mouse or keyboard",
                "Basic RGB lighting",
                "Standard 1-year warranty",
                "Free standard shipping"
              ]
            },
            {
              id: "pro",
              badge: "Most Popular",
              badgeIcon: Sparkles,
              price: "$200-499",
              subtitle: "Professional-grade equipment setup",
              features: [
                "Complete peripheral combo",
                "Advanced RGB customization",
                "Premium 2-year warranty",
                "Priority support & fast shipping"
              ]
            },
            {
              id: "elite",
              badge: "Tournament Ready",
              badgeIcon: Crown,
              price: "$500+",
              subtitle: "Championship-grade full setup",
              features: [
                "Top-tier peripherals with custom configs",
                "Advanced features and settings",
                "Lifetime premium support",
                "Free upgrades and exclusive access"
              ]
            }
          ]}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitMedia 
          title="Frequently Asked Questions"
          description="Find answers about our products, compatibility, shipping, and support"
          faqs={[
            {
              id: "1",
              title: "What systems are your peripherals compatible with?",
              content: "Our gaming accessories work with PC, PlayStation, Xbox, and Nintendo Switch. Each product page clearly lists compatible systems. Most USB peripherals are plug-and-play, though some advanced features may require driver installation."
            },
            {
              id: "2",
              title: "How long does shipping take?",
              content: "Standard shipping takes 5-7 business days. We offer Express shipping (2-3 days) and Overnight shipping options at checkout. All orders include tracking information and arrive with our GamingGear protection guarantee."
            },
            {
              id: "3",
              title: "What's your return policy?",
              content: "We offer a 30-day money-back guarantee on all products. If you're not completely satisfied, simply initiate a return through your account. We cover return shipping for defective items."
            },
            {
              id: "4",
              title: "Do you offer bulk ordering for teams or events?",
              content: "Yes! Contact our bulk sales team at bulk@gaminggear.com for team packages and custom quotes. We provide competitive pricing and dedicated support for large orders."
            },
            {
              id: "5",
              title: "Are your products covered by warranty?",
              content: "All products come with at least a 1-year manufacturer's warranty. Pro and Elite packages include extended 2-year and lifetime warranties. Warranty covers manufacturing defects and hardware failures."
            },
            {
              id: "6",
              title: "How do I set up RGB lighting and customization?",
              content: "Each product includes detailed setup guides and video tutorials on our website. RGB customization software is free to download, and our support team can help via live chat if you need assistance."
            }
          ]}
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767008477647-xju4354s.jpg"
          imageAlt="Gaming setup with technical support"
          mediaPosition="right"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="smooth"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit 
          tag="Stay Connected"
          title="Get Exclusive Deals & Product Launches"
          description="Subscribe to our newsletter for early access to new gaming gear, special promotions, and expert setup tips"
          useInvertedBackground="noInvert"
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767008476711-jolrx2aa.jpg"
          imageAlt="Gaming community and support"
          mediaPosition="right"
          inputPlaceholder="Enter your email"
          buttonText="Subscribe"
          termsText="We respect your privacy. Unsubscribe anytime from your account settings."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterCard 
          logoText="GamingGear"
          copyrightText="© 2025 GamingGear | Level Up Your Setup"
          socialLinks={[
            { icon: Twitter, href: "https://twitter.com/gaminggear", ariaLabel: "Follow GamingGear on Twitter" },
            { icon: Youtube, href: "https://youtube.com/gaminggear", ariaLabel: "Watch GamingGear on YouTube" },
            { icon: Instagram, href: "https://instagram.com/gaminggear", ariaLabel: "Follow GamingGear on Instagram" }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}