"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroSplitLarge from '@/components/sections/hero/HeroSplitLarge';
import ProductCardFive from '@/components/sections/product/ProductCardFive';
import FeatureCardFourteen from '@/components/sections/feature/FeatureCardFourteen';
import MetricCardOne from '@/components/sections/metrics/MetricCardOne';
import AboutMetric from '@/components/sections/about/AboutMetric';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import ContactFaq from '@/components/sections/contact/ContactFaq';
import FooterLogoReveal from '@/components/sections/footer/FooterLogoReveal';
import { Zap, TrendingUp, BarChart3, Users, Clock, Target, Shield, DollarSign, ArrowRight } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="expand-hover"
      defaultTextAnimation="background-highlight"
      borderRadius="pill"
      contentWidth="small"
      sizing="small"
      background="noiseDiagonalGradient"
      cardStyle="glass-outline-light"
      primaryButtonStyle="neon-glow-border"
      secondaryButtonStyle="solid"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          logoSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766242507065-3x0rfkp1.png"
          logoAlt="OddsPlay"
          brandName="OddsPlay"
          navItems={[
            { name: "Live Odds", id: "live-odds" },
            { name: "How It Works", id: "how-it-works" },
            { name: "Featured Bets", id: "featured-bets" },
            { name: "About", id: "about" },
            { name: "Contact", id: "contact" }
          ]}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitLarge
          title="Live NBA Odds at Your Fingertips"
          description="Get real-time team and player odds with instant updates. Experience the fastest, cleanest odds platform built for serious NBA bettors."
          tag="Live Now"
          tagIcon={Zap}
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766169056621-4rew1u3x.jpg"
          imageAlt="NBA Basketball Court"
          buttons={[
            { text: "Start Betting Free", href: "contact" },
            { text: "View Live Odds", href: "live-odds" }
          ]}
          titleClassName="text-4xl md:text-5xl font-bold"
          descriptionClassName="text-lg md:text-xl opacity-90"
        />
      </div>

      <div id="live-odds" data-section="live-odds">
        <ProductCardFive
          title="Live NBA Odds"
          description="Real-time team and player odds updated instantly. Team moneylines, spreads, totals, and player props all in one place."
          textboxLayout="default"
          products={[
            {
              id: "team-odds-1",
              button: { text: "Place Bet", href: "contact" },
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766162774833-py59m1uo.jpg",
              imageAlt: "Team Odds Display"
            },
            {
              id: "player-props-1",
              button: { text: "View Props", href: "contact" },
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766162774833-py59m1uo.jpg",
              imageAlt: "Player Props"
            },
            {
              id: "live-lines-1",
              button: { text: "Quick Bet", href: "contact" },
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766242509936-5sra46kr.jpg",
              imageAlt: "Live Lines"
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          containerStyle="default"
          useInvertedBackground="noInvert"
          containerClassName="py-16 md:py-24"
        />
      </div>

      <div id="how-it-works" data-section="how-it-works">
        <FeatureCardFourteen
          title="How OddsPlay is Different"
          description="Built for speed, accuracy, and simplicity. No complex interfaces, just pure odds data and smart betting tools."
          textboxLayout="default"
          features={[
            {
              id: "1",
              title: "Fastest Odds Updates",
              description: "Millisecond-accurate odds that update faster than any competitor. See line movements before anyone else.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766162774833-py59m1uo.jpg",
              imageAlt: "Fast Odds Updates"
            },
            {
              id: "2",
              title: "Player Props Focused",
              description: "Deep dive into individual player performance metrics. Find edges in player totals, assists, and rebounds.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766162774833-py59m1uo.jpg",
              imageAlt: "Player Props"
            },
            {
              id: "3",
              title: "Clean Interface",
              description: "No cluttered dashboards. Just the data you need, organized how you want it. Fast decision-making guaranteed.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766242509936-5sra46kr.jpg",
              imageAlt: "Clean Interface"
            }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="featured-bets" data-section="featured-bets">
        <MetricCardOne
          title="Featured Opportunities"
          description="Our analysts pick the best value bets updated daily. Get actionable insights from experienced basketball experts."
          textboxLayout="default"
          metrics={[
            {
              id: "1",
              value: "89%",
              title: "Win Rate",
              description: "On featured team total picks this season",
              icon: TrendingUp
            },
            {
              id: "2",
              value: "2.45",
              title: "Avg Odds",
              description: "Value picks consistently found on featured bets",
              icon: BarChart3
            },
            {
              id: "3",
              value: "500K+",
              title: "Daily Users",
              description: "Checking OddsPlay for live odds and picks",
              icon: Users
            },
            {
              id: "4",
              value: "24/7",
              title: "Live Updates",
              description: "Real-time odds and injury reports all season",
              icon: Clock
            }
          ]}
          gridVariant="four-items-2x2-equal-grid"
          animationType="slide-up"
          containerStyle="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="about" data-section="about">
        <AboutMetric
          title="Why OddsPlay Stands Out from Bet365, PrizePicks, and the Rest"
          metrics={[
            {
              icon: Zap,
              label: "Speed",
              value: "50ms"
            },
            {
              icon: Target,
              label: "Accuracy",
              value: "99.9%"
            },
            {
              icon: Shield,
              label: "Security",
              value: "Military Grade"
            },
            {
              icon: DollarSign,
              label: "Best Lines",
              value: "Guaranteed"
            }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="social-proof" data-section="social-proof">
        <SocialProofOne
          title="Trusted by NBA Bettors Worldwide"
          description="Join thousands of serious bettors who trust OddsPlay for accurate odds and smart insights."
          textboxLayout="default"
          useInvertedBackground="noInvert"
          logos={[
            "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766242508840-z1z7pij1.jpg",
            "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766242509936-5sra46kr.jpg",
            "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766162774833-py59m1uo.jpg",
            "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766162774833-py59m1uo.jpg",
            "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766169056621-4rew1u3x.jpg",
            "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766242507065-3x0rfkp1.png",
            "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766242508840-z1z7pij1.jpg",
            "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766242509936-5sra46kr.jpg"
          ]}
          showCard={true}
          speed={40}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactFaq
          ctaTitle="Ready to Beat the Books?"
          ctaDescription="Join OddsPlay today and get instant access to live NBA odds, player props, and expert picks."
          ctaButton={{
            text: "Create Free Account",
            href: "https://example.com/signup"
          }}
          ctaIcon={ArrowRight}
          faqs={[
            {
              id: "1",
              title: "How is OddsPlay different from Bet365 and PrizePicks?",
              content: "OddsPlay specializes exclusively in NBA betting with faster odds updates, better player prop coverage, and a cleaner interface. We focus on quality over quantity with real-time line movements you won't see elsewhere."
            },
            {
              id: "2",
              title: "Are the odds really updated in real-time?",
              content: "Yes. Our odds update every 50 milliseconds across all sportsbooks. You'll see market movements before most platforms, giving you a genuine edge on line value."
            },
            {
              id: "3",
              title: "How do I place a bet on OddsPlay?",
              content: "OddsPlay displays live odds from major sportsbooks. You browse our odds, find your selection, click through to your preferred sportsbook, and place your bet there. We handle the odds; you control where you bet."
            },
            {
              id: "4",
              title: "Is my information secure?",
              content: "Completely. We use military-grade encryption and never store payment information. OddsPlay is a read-only odds platform with no financial data on our servers."
            }
          ]}
          animationType="slide-up"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoReveal
          logoText="OddsPlay"
          logoAlt="OddsPlay Logo"
        />
      </div>
    </ThemeProvider>
  );
}