"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroCentered from '@/components/sections/hero/HeroCentered';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import MediaAbout from '@/components/sections/about/MediaAbout';
import FeatureCardTen from '@/components/sections/feature/FeatureCardTen';
import MetricCardEleven from '@/components/sections/metrics/MetricCardEleven';
import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive';
import FaqBase from '@/components/sections/faq/FaqBase';
import ContactText from '@/components/sections/contact/ContactText';
import FooterMedia from '@/components/sections/footer/FooterMedia';
import { Award, CheckCircle, HelpCircle, Sparkles, Star, TrendingUp, Zap } from 'lucide-react';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="medium"
      sizing="largeSizeMediumTitles"
      background="noiseDiagonalGradient"
      cardStyle="inset"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="Free Run"
          navItems={[
            { name: "Products", id: "products" },
            { name: "About", id: "about" },
            { name: "Features", id: "features" },
            { name: "Reviews", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroCentered
          title="Run Faster, Stronger, Smarter"
          description="Premium running equipment designed for athletes who demand excellence. From high-performance shoes to cutting-edge wearables, Free Run empowers every stride."
          background={{ variant: "downward-rays-static" }}
          avatars={[
            { src: "http://img.b2bpic.net/free-photo/sportswoman-posing-with-hands-waist_23-2147600452.jpg", alt: "Runner 1" },
            { src: "http://img.b2bpic.net/free-photo/portrait-smiling-fitness-woman-earphones_171337-11727.jpg", alt: "Runner 2" },
            { src: "http://img.b2bpic.net/free-photo/friends-play-basketball-young-men-play-basketball-street_1321-3127.jpg", alt: "Runner 3" }
          ]}
          avatarText="Trusted by 10,000+ runners"
          buttons={[
            { text: "Shop Now", href: "#products" },
            { text: "Learn More", href: "#about" }
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardFour
          title="Featured Products"
          description="Explore our curated collection of premium running equipment engineered for performance and comfort."
          tag="New Arrivals"
          tagIcon={Sparkles}
          products={[
            {
              id: "1",              name: "SpeedForce Pro Running Shoes",              price: "$149.99",              variant: "Black & Blue  4 Sizes",              imageSrc: "http://img.b2bpic.net/free-photo/close-up-runner-shoes-with-red-laces_23-2148381975.jpg",              imageAlt: "SpeedForce Pro Running Shoes"
            },
            {
              id: "2",              name: "AthleteGPS Running Watch",              price: "$299.99",              variant: "Titanium  3 Colors",              imageSrc: "http://img.b2bpic.net/free-photo/young-adult-exercising-home_23-2150164763.jpg",              imageAlt: "AthleteGPS Running Watch"
            },
            {
              id: "3",              name: "Performance Running Socks Set",              price: "$39.99",              variant: "Multi-Pack  6 Pairs",              imageSrc: "http://img.b2bpic.net/free-photo/close-up-green-belt-texture-background_23-2149341338.jpg",              imageAlt: "Performance Running Socks Set"
            }
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="about" data-section="about">
        <MediaAbout
          title="Built for Champions"
          description="Free Run was founded on a simple mission: to provide runners with equipment that matches their ambition. Our commitment to innovation, quality, and community drives every product we create."
          tag="Our Story"
          tagIcon={Award}
          imageSrc="http://img.b2bpic.net/free-photo/group-diverse-female-friends-working-out-empty-hall_181624-22960.jpg"
          imageAlt="Our running community"
          buttons={[
            { text: "Discover Our Journey", href: "#features" }
          ]}
          useInvertedBackground={true}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardTen
          title="Why Runners Choose Free Run"
          description="Engineered excellence meets real-world performance. Here's what sets us apart."
          tag="Features"
          tagIcon={Zap}
          features={[
            {
              id: "1",              title: "Premium Materials",              description: "Every product is crafted with the finest materials, ensuring durability and comfort mile after mile. We source sustainable, high-performance fabrics that keep you moving.",              media: {
                imageSrc: "http://img.b2bpic.net/free-photo/close-up-astronaut-using-tablet-view-spacecraft-analytics_482257-126242.jpg"
              },
              items: [
                { icon: CheckCircle, text: "Grade-A materials sourced globally" },
                { icon: CheckCircle, text: "Rigorous durability testing" },
                { icon: CheckCircle, text: "Eco-friendly manufacturing" }
              ],
              reverse: false
            },
            {
              id: "2",              title: "Performance Analytics",              description: "Track every aspect of your running with integrated smart technology. Get real-time insights to optimize your training and achieve your goals.",              media: {
                imageSrc: "http://img.b2bpic.net/free-photo/overhead-view-male-athlete-sitting-race-track-using-mobile-phone_23-2148162102.jpg"
              },
              items: [
                { icon: CheckCircle, text: "Real-time performance metrics" },
                { icon: CheckCircle, text: "AI-powered training insights" },
                { icon: CheckCircle, text: "Community leaderboards" }
              ],
              reverse: true
            },
            {
              id: "3",              title: "Expert Support",              description: "Our team of experienced runners and coaches is here to help. Get personalized recommendations and guidance to maximize your performance.",              media: {
                imageSrc: "http://img.b2bpic.net/free-photo/young-woman-with-microphone-studio_1303-26316.jpg"
              },
              items: [
                { icon: CheckCircle, text: "24/7 customer support" },
                { icon: CheckCircle, text: "Personalized fitting service" },
                { icon: CheckCircle, text: "Training program assistance" }
              ],
              reverse: false
            }
          ]}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardEleven
          title="Our Impact"
          description="Real results from real runners around the world."
          tag="Results"
          tagIcon={TrendingUp}
          metrics={[
            {
              id: "1",              value: "10M+",              title: "Miles Run",              description: "Cumulative distance logged by our community",              imageSrc: "http://img.b2bpic.net/free-photo/joyful-young-blonde-handsome-man-sits-armchair-keeping-fists-looking-up_141793-70767.jpg",              imageAlt: "success celebration achievement victory happy"
            },
            {
              id: "2",              value: "50K+",              title: "Active Runners",              description: "Global athletes trusting Free Run daily",              imageSrc: "http://img.b2bpic.net/free-photo/close-up-people-getting-stronger-together_23-2149125886.jpg",              imageAlt: "global community worldwide network connection"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFive
          title="What Our Runners Say"
          description="Hear from athletes who've transformed their performance with Free Run gear."
          tag="Reviews"
          tagIcon={Star}
          testimonials={[
            {
              id: "1",              name: "Marcus Johnson, Ultra Marathoner",              date: "Date: 15 Nov 2024",              title: "Game-changing equipment for serious runners",              quote: "I've tried every brand out there, and Free Run's shoes genuinely make a difference. The support and comfort during my 50-mile races is unmatched. These aren't just shoes—they're my competitive advantage.",              tag: "Pro Athlete",              avatarSrc: "http://img.b2bpic.net/free-photo/sportswoman-posing-with-hands-waist_23-2147600452.jpg",              avatarAlt: "Marcus Johnson",              imageSrc: "http://img.b2bpic.net/free-photo/joyful-young-blonde-handsome-man-sits-armchair-keeping-fists-looking-up_141793-70767.jpg",              imageAlt: "success celebration achievement victory happy"
            },
            {
              id: "2",              name: "Sarah Chen, Fitness Coach",              date: "Date: 22 Oct 2024",              title: "Incredible quality and customer support",              quote: "I recommend Free Run to all my clients. The GPS watch is intuitive, and the running shoes provide the stability my trainees need. Best investment for my business.",              tag: "Coach",              avatarSrc: "http://img.b2bpic.net/free-photo/portrait-smiling-fitness-woman-earphones_171337-11727.jpg",              avatarAlt: "Sarah Chen",              imageSrc: "http://img.b2bpic.net/free-photo/close-up-people-getting-stronger-together_23-2149125886.jpg",              imageAlt: "global community worldwide network connection"
            },
            {
              id: "3",              name: "David Rodriguez, Weekend Runner",              date: "Date: 08 Oct 2024",              title: "Perfect for beginners and pros alike",              quote: "Started running 6 months ago with Free Run gear. The comfort is incredible, and I've already improved my pace by 2 minutes per mile. Highly recommended!",              tag: "Beginner",              avatarSrc: "http://img.b2bpic.net/free-photo/friends-play-basketball-young-men-play-basketball-street_1321-3127.jpg",              avatarAlt: "David Rodriguez",              imageSrc: "http://img.b2bpic.net/free-photo/joyful-young-blonde-handsome-man-sits-armchair-keeping-fists-looking-up_141793-70767.jpg",              imageAlt: "success celebration achievement victory happy"
            },
            {
              id: "4",              name: "Emma Williams, Marathon Runner",              date: "Date: 25 Sep 2024",              title: "Worth every penny for marathon training",              quote: "My marathon experience was transformed with Free Run shoes and the training watch. The analytics helped me optimize my training perfectly. Finished with a personal best!",              tag: "Marathon",              avatarSrc: "http://img.b2bpic.net/free-photo/side-view-people-chatting-gym_23-2149744652.jpg",              avatarAlt: "Emma Williams",              imageSrc: "http://img.b2bpic.net/free-photo/close-up-people-getting-stronger-together_23-2149125886.jpg",              imageAlt: "global community worldwide network connection"
            },
            {
              id: "5",              name: "Thomas Park, Track Athlete",              date: "Date: 10 Sep 2024",              title: "Premium quality at the right price",              quote: "As a track athlete, I need reliable gear I can trust. Free Run delivers on performance without breaking the bank. Their customer service is exceptional too.",              tag: "Athlete",              avatarSrc: "http://img.b2bpic.net/free-photo/beautiful-sportive-girl-posing-with-crossed-arms-dark-wall_176420-622.jpg",              avatarAlt: "Thomas Park",              imageSrc: "http://img.b2bpic.net/free-photo/joyful-young-blonde-handsome-man-sits-armchair-keeping-fists-looking-up_141793-70767.jpg",              imageAlt: "success celebration achievement victory happy"
            }
          ]}
          textboxLayout="default"
          useInvertedBackground={true}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqBase
          title="Frequently Asked Questions"
          description="Find answers to common questions about Free Run products and services."
          tag="Help"
          tagIcon={HelpCircle}
          faqs={[
            {
              id: "1",              title: "How do I choose the right shoe size?",              content: "We recommend measuring your foot in the evening when it's slightly swollen. Our size guide is available on the product pages. You can also use our in-store fitting service or contact our customer support team for personalized recommendations."
            },
            {
              id: "2",              title: "What is your return policy?",              content: "We offer a 30-day money-back guarantee on all products. If you're not satisfied with your purchase, simply return it in original condition with proof of purchase for a full refund or exchange."
            },
            {
              id: "3",              title: "Do you offer international shipping?",              content: "Yes! We ship to over 100 countries worldwide. Standard shipping typically takes 7-14 business days. Expedited options are available at checkout. Shipping costs and delivery times vary by location."
            },
            {
              id: "4",              title: "How long do your products typically last?",              content: "Our running shoes are engineered to last 300-500 miles with proper care. The GPS watch battery lasts up to 7 days on a single charge. We provide care guides with all products to maximize longevity."
            },
            {
              id: "5",              title: "Can I get a warranty on my purchase?",              content: "All Free Run products come with a 1-year manufacturer's warranty covering defects in materials and workmanship. Extended warranties are available for selected items at checkout."
            },
            {
              id: "6",              title: "How do I sync the GPS watch with my phone?",              content: "Simply download the Free Run app, create an account, and follow the on-screen pairing instructions. The watch will automatically sync your workouts and display real-time analytics on your mobile device."
            }
          ]}
          textboxLayout="default"
          faqsAnimation="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText
          text="Ready to elevate your running game? Let's help you find the perfect equipment for your journey."
          animationType="entrance-slide"
          buttons={[
            { text: "Get in Touch", href: "#" },
            { text: "Shop Now", href: "#products" }
          ]}
          background={{ variant: "plain" }}
          useInvertedBackground={false}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterMedia
          imageSrc="http://img.b2bpic.net/free-photo/stadium-lights_1308-39967.jpg"
          imageAlt="Running track at sunset"
          logoText="Free Run"
          copyrightText="© 2025 Free Run. All rights reserved."
          columns={[
            {
              title: "Products",              items: [
                { label: "Running Shoes", href: "#products" },
                { label: "GPS Watches", href: "#products" },
                { label: "Accessories", href: "#products" },
                { label: "Sale Items", href: "#products" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "#about" },
                { label: "Blog", href: "#" },
                { label: "Careers", href: "#" },
                { label: "Contact", href: "#contact" }
              ]
            },
            {
              title: "Support",              items: [
                { label: "FAQ", href: "#faq" },
                { label: "Returns", href: "#" },
                { label: "Shipping Info", href: "#" },
                { label: "Privacy Policy", href: "#" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}