"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroCarouselLogo from '@/components/sections/hero/heroCarouselLogo/HeroCarouselLogo';
import MetricSplitMediaAbout from '@/components/sections/about/MetricSplitMediaAbout';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import MetricCardThree from '@/components/sections/metrics/MetricCardThree';
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
import FaqSplitMedia from '@/components/sections/faq/FaqSplitMedia';
import ContactCTA from '@/components/sections/contact/ContactCTA';
import FooterLogoReveal from '@/components/sections/footer/FooterLogoReveal';
import { Zap, Flame, TrendingUp, Star, HelpCircle, Download, Heart, Award } from "lucide-react";

export default function FitnessLandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="elastic-effect"
      defaultTextAnimation="reveal-blur"
      borderRadius="rounded"
      contentWidth="mediumLarge"
      sizing="large"
      background="floatingGradient"
      cardStyle="subtle-shadow"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="solid"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          brandName="FitFlow"
          navItems={[
            { name: "Workouts", id: "workouts" },
            { name: "Plans", id: "plans" },
            { name: "Testimonials", id: "testimonials" },
            { name: "FAQ", id: "faq" },
            { name: "Download", id: "download" }
          ]}
          button={{
            text: "Get Started",            href: "download"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroCarouselLogo
          logoText="FITFLOW"
          description="Transform your fitness journey with personalized workouts, real-time progress tracking, and a supportive community. Download FitFlow today and unlock your potential."
          buttons={[
            { text: "Download App", href: "download" },
            { text: "Learn More", href: "about" }
          ]}
          slides={[
            {
              imageSrc: "https://img.b2bpic.net/free-photo/low-angle-view-muscular-build-man-doing-deadlift-while-exercising-with-barbell-gym_637285-2489.jpg",              imageAlt: "Dynamic workout training session"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-athletic-woman-exercising-rowing-machine-while-having-sports-training-fitness-center_637285-516.jpg",              imageAlt: "Athlete running outdoors"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-hands-with-dumbbells-two-fitness-girls-sportswear-doing-lunges-with-dumbbells-modern-gym-health-diet-sport_613910-20774.jpg",              imageAlt: "Yoga and flexibility training"
            }
          ]}
          autoplayDelay={4000}
          showDimOverlay={true}
        />
      </div>

      <div id="about" data-section="about">
        <MetricSplitMediaAbout
          tag="About FitFlow"
          tagIcon={Zap}
          title="Your Personal Fitness Coach in Your Pocket"
          description="FitFlow is a comprehensive fitness app designed to help you achieve your goals with intelligent workout plans, nutrition tracking, and community support. Whether you're a beginner or an advanced athlete, our adaptive algorithms personalize your experience to match your fitness level and objectives."
          metrics={[
            { value: "500K+", title: "Active Users Worldwide" },
            { value: "10M+", title: "Workouts Completed" }
          ]}
          imageSrc="https://img.b2bpic.net/free-vector/gradient-fitness-app-template_23-2151069851.jpg"
          imageAlt="FitFlow app interface showing personalized workout dashboard"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="workouts" data-section="workouts">
        <ProductCardOne
          title="Workout Plans"
          description="Choose from our comprehensive library of expertly-designed workout plans tailored to your fitness level and goals."
          tag="Featured"
          tagIcon={Flame}
          buttons={[
            { text: "Explore All Plans", href: "download" }
          ]}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          products={[
            {
              id: "1",              name: "Strength Builder",              price: "4 Weeks",              imageSrc: "https://img.b2bpic.net/free-photo/woman-lifting-weights-doing-chest-work-gym_169016-57291.jpg",              imageAlt: "Strength training workout plan with weights and resistance exercises"
            },
            {
              id: "2",              name: "Cardio Blast",              price: "6 Weeks",              imageSrc: "https://img.b2bpic.net/free-photo/sportswoman-doing-hyperextension-exercise_651396-754.jpg",              imageAlt: "High-intensity cardio workout plan for endurance and stamina"
            },
            {
              id: "3",              name: "Flexibility Flow",              price: "8 Weeks",              imageSrc: "https://img.b2bpic.net/free-photo/young-athletic-woman-exercising-strength-gymnastic-rings-cross-training-fitness-center_637285-447.jpg",              imageAlt: "Stretching and flexibility program to improve range of motion"
            }
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardThree
          title="Track Your Progress"
          description="Monitor your fitness journey with detailed analytics and performance metrics."
          tag="Results"
          tagIcon={TrendingUp}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          metrics={[
            { id: "1", icon: Flame, title: "Calories Burned", value: "2,450/day" },
            { id: "2", icon: Heart, title: "Heart Health", value: "Excellent" },
            { id: "3", icon: Zap, title: "Strength Gains", value: "25% Increase" },
            { id: "4", icon: Award, title: "Consistency", value: "45-Day Streak" }
          ]}
          animationType="slide-up"
          carouselMode="buttons"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardSix
          title="Real Results from Real Users"
          description="Discover how FitFlow has transformed the fitness journeys of thousands of people."
          tag="Testimonials"
          tagIcon={Star}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          speed={40}
          topMarqueeDirection="left"
          testimonials={[
            {
              id: "1",              name: "Sarah Johnson",              handle: "@sarahfitness",              testimonial: "FitFlow completely transformed my fitness routine. The personalized workouts keep me motivated and the progress tracking shows real results!",              imageSrc: "https://img.b2bpic.net/free-photo/blonde-businesswoman-portrait-with-copy-space_1194-633470.jpg",              imageAlt: "Sarah Johnson - Fitness enthusiast"
            },
            {
              id: "2",              name: "Michael Chen",              handle: "@miketrains",              testimonial: "As a busy professional, FitFlow fits perfectly into my schedule. The AI-powered recommendations are spot-on for my fitness level.",              imageSrc: "https://img.b2bpic.net/free-photo/portrait-happy-woman-black-jacket-happy-short-haired-girl-dark-suit-widely-sincerely-smiles-isolated-background_197531-18508.jpg",              imageAlt: "Michael Chen - Professional athlete"
            },
            {
              id: "3",              name: "Emily Rodriguez",              handle: "@emilyhealth",              testimonial: "Lost 30 pounds in 6 months using FitFlow. The community support and structured plans made it so much easier than going solo.",              imageSrc: "https://img.b2bpic.net/free-photo/happy-professional_1098-12931.jpg",              imageAlt: "Emily Rodriguez - Weight loss success story"
            },
            {
              id: "4",              name: "David Kim",              handle: "@davidstrong",              testimonial: "The strength training plans are incredibly detailed. I've seen gains I never thought possible. FitFlow is worth every penny.",              imageSrc: "https://img.b2bpic.net/free-photo/closeup-young-female-professional-making-eye-contact-against-colored-background_662251-651.jpg",              imageAlt: "David Kim - Strength training specialist"
            },
            {
              id: "5",              name: "Jessica Martinez",              handle: "@jessicayogi",              testimonial: "FitFlow's flexibility and yoga programs helped me recover from an injury. The modifications were exactly what I needed.",              imageSrc: "https://img.b2bpic.net/free-photo/attractive-european-girl-with-charming-smile-keeps-arms-folded-wears-round-spectacles_273609-18493.jpg",              imageAlt: "Jessica Martinez - Yoga instructor"
            },
            {
              id: "6",              name: "Alex Thompson",              handle: "@alexmarathon",              testimonial: "Been using FitFlow for 2 years. The cardio programs have helped me run my fastest marathons yet. Highly recommend!",              imageSrc: "https://img.b2bpic.net/free-photo/beautiful-young-businesswoman-smiling-camera_74855-3966.jpg",              imageAlt: "Alex Thompson - Marathon runner"
            }
          ]}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitMedia
          title="Frequently Asked Questions"
          description="Everything you need to know about FitFlow and how to get started."
          tag="Help & Support"
          tagIcon={HelpCircle}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          imageSrc="https://img.b2bpic.net/free-photo/muscular-build-man-resting-after-cross-training-with-barbell-health-club_637285-2493.jpg"
          imageAlt="Customer support and FAQ resources"
          mediaPosition="right"
          animationType="smooth"
          faqs={[
            {
              id: "1",              title: "How much does FitFlow cost?",              content: "FitFlow offers a free tier with basic workouts and a premium subscription starting at $9.99/month. Premium includes personalized plans, advanced analytics, and community access."
            },
            {
              id: "2",              title: "Can I use FitFlow as a beginner?",              content: "Absolutely! FitFlow has beginner-friendly workout plans with modifications for all fitness levels. Our app adapts to your progress and adjusts difficulty accordingly."
            },
            {
              id: "3",              title: "Does FitFlow work offline?",              content: "Yes, you can download workouts to use offline. This is perfect for gym sessions or traveling without reliable internet connection."
            },
            {
              id: "4",              title: "How do I track my progress?",              content: "FitFlow automatically tracks all your workouts, calories burned, and strength gains. View detailed analytics and progress charts in your dashboard."
            },
            {
              id: "5",              title: "Can I sync with other fitness apps?",              content: "Yes, FitFlow integrates with Apple Health, Google Fit, and other popular fitness trackers to give you a complete picture of your health data."
            }
          ]}
        />
      </div>

      <div id="download" data-section="download">
        <ContactCTA
          tag="Download Now"
          tagIcon={Download}
          title="Ready to Start Your Fitness Transformation?"
          description="Join 500,000+ users already achieving their fitness goals with FitFlow. Download the app today and get a free 7-day trial of premium features."
          buttons={[
            { text: "Download on App Store", href: "https://apps.apple.com" },
            { text: "Get on Google Play", href: "https://play.google.com" }
          ]}
          background={{ variant: "gradient-bars" }}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoReveal
          logoText="FitFlow"
          leftLink={{ text: "Privacy Policy", href: "https://example.com/privacy" }}
          rightLink={{ text: "Terms of Service", href: "https://example.com/terms" }}
        />
      </div>
    </ThemeProvider>
  );
}