"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import HeroBillboard from '@/components/sections/hero/HeroBillboard';
import ProductCardThree from '@/components/sections/product/ProductCardThree';
import TestimonialAboutCard from '@/components/sections/about/TestimonialAboutCard';
import FeatureCardSixteen from '@/components/sections/feature/FeatureCardSixteen';
import TestimonialCardEleven from '@/components/sections/testimonial/TestimonialCardEleven';
import FaqBase from '@/components/sections/faq/FaqBase';
import ContactInline from '@/components/sections/contact/ContactInline';
import FooterSplit from '@/components/sections/footer/FooterSplit';
import { Joystick, Sparkles, Heart, Shield, Star, HelpCircle, Phone, Mail, MapPin, Gamepad2 } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="background-highlight"
      borderRadius="rounded"
      contentWidth="small"
      sizing="mediumLargeSizeLargeTitles"
      background="circleGradient"
      cardStyle="solid-accent"
      primaryButtonStyle="flat"
      secondaryButtonStyle="solid"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen 
          navItems={[
            { name: "Home", id: "home" },
            { name: "Shop", id: "products" },
            { name: "Collections", id: "collections" },
            { name: "About", id: "about" },
            { name: "Contact", id: "contact" }
          ]}
          brandName="Retro Arcade"
          bottomLeftText="Gaming Culture Lives Here"
          bottomRightText="shop@retroarcade.com"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboard 
          title="Step Into Retro Gaming History"
          description="Discover authentic vintage game consoles, cartridges, and arcade cabinets. Your nostalgia starts here."
          tag="Classic Games Awaiting Discovery"
          tagIcon={Joystick}
          imageSrc="https://img.b2bpic.net/free-photo/retro-arcade-game-console-indoors_23-2150711818.jpg"
          imageAlt="Vintage arcade cabinet glowing in the dark"
          frameStyle="card"
          buttons={[
            { text: "Browse Shop", href: "products" },
            { text: "Learn More", href: "about" }
          ]}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardThree 
          products={[
            {
              id: "1",              name: "Nintendo NES Console with Games",              price: "$349.00",              imageSrc: "https://img.b2bpic.net/free-photo/top-view-old-device-desk_23-2150756336.jpg",              imageAlt: "Nintendo NES with controllers and cartridges",              initialQuantity: 1
            },
            {
              id: "2",              name: "Super Mario Bros. Cartridge (CIB)",              price: "$189.00",              imageSrc: "https://img.b2bpic.net/free-photo/vintage-vhs-packaging-high-angle_23-2149854264.jpg",              imageAlt: "Super Mario Bros complete in box cartridge",              initialQuantity: 1
            },
            {
              id: "3",              name: "Sega Genesis with Sonic Bundle",              price: "$279.00",              imageSrc: "https://img.b2bpic.net/free-vector/vintage-video-game-consoles-flat-design_23-2147571153.jpg",              imageAlt: "Sega Genesis console with Sonic game",              initialQuantity: 1
            },
            {
              id: "4",              name: "Premium Game Collection (10 Games)",              price: "$599.00",              imageSrc: "https://img.b2bpic.net/free-vector/hand-drawn-retro-gaming-poster-template_23-2150895153.jpg",              imageAlt: "Curated collection of 10 classic games",              initialQuantity: 1
            }
          ]}
          title="Featured Vintage Games"
          description="Hand-picked collection of classic games and consoles in excellent condition."
          tag="Limited Stock Available"
          tagIcon={Sparkles}
          gridVariant="two-columns-alternating-heights"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="about" data-section="about">
        <TestimonialAboutCard 
          tag="Our Story"
          tagIcon={Heart}
          title="Preserving Gaming Legacy, One Game at a Time"
          description="Founded in 2010"
          subdescription="Retro Arcade Shop - Est. 2010"
          icon={Gamepad2}
          imageSrc="https://img.b2bpic.net/free-photo/happy-women-playing-arcade-game_23-2148253129.jpg"
          imageAlt="Retro Arcade Shop interior with vintage games and consoles"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="collections" data-section="collections">
        <FeatureCardSixteen 
          negativeCard={{
            title: "Without Authenticity",            items: [
              "Counterfeit games and reproductions",              "Poor condition and defective hardware",              "No guarantee or return policy",              "Unreliable seller history"
            ]
          }}
          positiveCard={{
            title: "With Retro Arcade",            items: [
              "100% authentic verified games",              "Tested and certified condition",              "30-day satisfaction guarantee",              "Expert collector authentication"
            ]
          }}
          animationType="slide-up"
          title="Why Choose Retro Arcade"
          description="Experience the difference in quality, authenticity, and customer service."
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          tag="Our Commitment"
          tagIcon={Shield}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardEleven 
          testimonials={[
            {
              id: "1",              nameTitle: "Marcus Johnson, Game Collector",              quote: "Finally found the complete Nintendo collection I've been searching for. The quality and authentication are exceptional.",              imageSrc: "https://img.b2bpic.net/free-photo/displeased-man-against-gaming-doing-thumbs-down-gesture-studio-background_482257-94317.jpg",              imageAlt: "Marcus Johnson"
            },
            {
              id: "2",              nameTitle: "Sarah Chen, Retro Gaming Enthusiast",              quote: "The team's knowledge of vintage games is incredible. They helped me find the exact cartridge variant I needed.",              imageSrc: "https://img.b2bpic.net/free-photo/disgruntled-man-holding-handset-sitting-chair-high-quality-photo_114579-35586.jpg",              imageAlt: "Sarah Chen"
            },
            {
              id: "3",              nameTitle: "David Martinez, Museum Director",              quote: "We've sourced multiple pieces for our gaming exhibit. Professional, reliable, and deeply knowledgeable.",              imageSrc: "https://img.b2bpic.net/free-photo/young-friends-having-fun-together_23-2149560766.jpg",              imageAlt: "David Martinez"
            },
            {
              id: "4",              nameTitle: "Emma Williams, Arcade Enthusiast",              quote: "Best place to buy vintage games online. Fair pricing and they actually care about preservation.",              imageSrc: "https://img.b2bpic.net/free-photo/young-hispanic-man-streamer-playing-video-game-using-joystick-gaming-room_839833-8031.jpg",              imageAlt: "Emma Williams"
            },
            {
              id: "5",              nameTitle: "James Rodriguez, Console Collector",              quote: "The attention to detail in condition grading and packaging is unmatched. Highly recommended!",              imageSrc: "https://img.b2bpic.net/free-photo/gamer-having-fun-while-playing-videogames_23-2149142688.jpg",              imageAlt: "James Rodriguez"
            },
            {
              id: "6",              nameTitle: "Lisa Park, Gaming Historian",              quote: "Not just a shop, it's a sanctuary for gaming history. Every purchase feels like supporting preservation.",              imageSrc: "https://img.b2bpic.net/free-photo/young-friends-having-fun-together_23-2149560781.jpg",              imageAlt: "Lisa Park"
            }
          ]}
          title="Collectors Love Us"
          description="Hear from passionate gamers and collectors who've found their holy grails with us."
          tag="Customer Stories"
          tagIcon={Star}
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqBase 
          faqs={[
            {
              id: "1",              title: "How do you verify authenticity?",              content: "Every game and console is tested and authenticated by our expert team using official Nintendo, Sega, and Atari verification standards. We check for original manufacturing marks, cartridge internals, and functional testing."
            },
            {
              id: "2",              title: "What's your return policy?",              content: "We offer a 30-day satisfaction guarantee. If your purchase doesn't meet your expectations, we'll provide a full refund or exchange. Items must be in original condition."
            },
            {
              id: "3",              title: "Do you grade condition accurately?",              content: "Yes. We use industry-standard grading: Mint (never played), Near Mint (minimal signs of use), Excellent (light use), Good (moderate wear), and Fair (heavy wear). We provide detailed photos of each item."
            },
            {
              id: "4",              title: "How long does shipping take?",              content: "Standard shipping takes 5-7 business days. We also offer expedited 2-day shipping. All items are carefully packed with protective materials to ensure safe delivery."
            },
            {
              id: "5",              title: "Can I request specific games or consoles?",              content: "Absolutely! Contact our team with your wishlist. We actively search for hard-to-find games and can often source items you're looking for. We also offer pre-order on upcoming acquisitions."
            }
          ]}
          title="Frequently Asked Questions"
          description="Everything you need to know about our vintage games, authenticity guarantees, and services."
          tag="Help & Support"
          tagIcon={HelpCircle}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactInline 
          text="Stay Updated on New Game Arrivals"
          animationType="background-highlight"
          inputPlaceholder="Enter your email for exclusive offers"
          buttonText="Subscribe"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterSplit 
          logoText="Retro Arcade"
          title="Dedicated to preserving gaming history for collectors and enthusiasts worldwide."
          columns={[
            {
              title: "Shop",              items: [
                { label: "All Games", href: "#products" },
                { label: "Consoles", href: "#products" },
                { label: "Cartridges", href: "#products" },
                { label: "Accessories", href: "#products" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "#about" },
                { label: "Our Story", href: "#about" },
                { label: "Blog", href: "#" },
                { label: "Contact", href: "#contact" }
              ]
            },
            {
              title: "Support",              items: [
                { label: "FAQ", href: "#faq" },
                { label: "Shipping Info", href: "#" },
                { label: "Returns", href: "#" },
                { label: "Authentication", href: "#" }
              ]
            },
            {
              title: "Legal",              items: [
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" },
                { label: "Warranty", href: "#" },
                { label: "Cookie Policy", href: "#" }
              ]
            }
          ]}
          contactItems={[
            { icon: Phone, text: "(555) 123-4567" },
            { icon: Mail, text: "shop@retroarcade.com" },
            { icon: MapPin, text: "123 Arcade Way, Game City, GC 12345" }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}