"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from "@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen";
import ProductCardOne from "@/components/sections/product/ProductCardOne";
import TextAbout from "@/components/sections/about/TextAbout";
import ContactText from "@/components/sections/contact/ContactText";
import FooterSimple from "@/components/sections/footer/FooterSimple";
import Link from "next/link";
import { Flame, Zap } from "lucide-react";

export default function ModelsPage() {
  const navItems = [
    { name: "Models", id: "models" },
    { name: "Performance", id: "performance" },
    { name: "Racing", id: "racing" },
    { name: "Technology", id: "technology" },
    { name: "Contact", id: "contact" },
  ];

  const footerColumns = [
    {
      title: "Models",      items: [
        { label: "Motocross", href: "/models" },
        { label: "Adventure", href: "/models" },
        { label: "Street", href: "/models" },
        { label: "Electric", href: "/models" },
      ],
    },
    {
      title: "Racing",      items: [
        { label: "MotoGP", href: "/racing" },
        { label: "Motocross", href: "/racing" },
        { label: "Enduro", href: "/racing" },
        { label: "Rally", href: "/racing" },
      ],
    },
    {
      title: "Company",      items: [
        { label: "About KTM", href: "https://www.ktmgroup.com" },
        { label: "Careers", href: "https://jobs.ktm.com" },
        { label: "Press", href: "https://press.ktm.com" },
        { label: "Contact", href: "/contact" },
      ],
    },
    {
      title: "Legal",      items: [
        { label: "Privacy Policy", href: "#" },
        { label: "Terms of Use", href: "#" },
        { label: "Impressum", href: "#" },
        { label: "Cookie Settings", href: "#" },
      ],
    },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="reveal-blur"
      borderRadius="rounded"
      contentWidth="mediumSmall"
      sizing="largeSmallSizeLargeTitles"
      background="grid"
      cardStyle="gradient-bordered"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={navItems}
          brandName="KTM"
          bottomLeftText="Ready to Race"
          bottomRightText="Made for Champions"
        />
      </div>

      <div id="models" data-section="models">
        <ProductCardOne
          title="2026 Complete Model Range"
          description="Explore KTM's full lineup of high-performance motorcycles engineered for every riding style and discipline"
          tag="Latest Models"
          tagIcon={Flame}
          tagAnimation="slide-up"
          buttons={[
            { text: "Configure Your KTM", href: "https://configurator.ktm.com" },
            { text: "Compare Models", href: "#" },
          ]}
          buttonAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          products={[
            {
              id: "450sx",              name: "2026 KTM 450 SX-F",              price: "€7,999",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APbw46PUyaxpRcSS3bOWIP0kw9/a-stunning-2026-ktm-450-sx-f-motocross-b-1772497657472-fe8ae8a8.png",              imageAlt: "2026 KTM 450 SX-F Motocross"},
            {
              id: "1390adv",              name: "2026 KTM 1390 Super Adventure R",              price: "€16,499",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APbw46PUyaxpRcSS3bOWIP0kw9/a-premium-2026-ktm-1390-super-adventure--1772497658095-4aa40b33.png",              imageAlt: "2026 KTM 1390 Adventure"},
            {
              id: "690smc",              name: "2026 KTM 690 SMC R",              price: "€8,799",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APbw46PUyaxpRcSS3bOWIP0kw9/a-sleek-2026-ktm-690-smc-r-supermoto-bik-1772497658051-1d88b870.png",              imageAlt: "2026 KTM 690 SMC R Supermoto"},
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          carouselMode="buttons"
        />
      </div>

      <div id="specifications" data-section="specifications">
        <TextAbout
          tag="Technical Excellence"
          title="Each model is engineered with precision components and cutting-edge technology to deliver uncompromising performance on every terrain."
          buttons={[
            { text: "View Specifications", href: "#" },
            { text: "Find a Dealer", href: "/contact" },
          ]}
          buttonAnimation="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="cta-models" data-section="cta-models">
        <ContactText
          text="Ready to find your perfect KTM? Test ride one of our 2026 models at an authorized dealer near you."
          animationType="reveal-blur"
          buttons={[
            { text: "Book Test Ride", href: "https://testride.ktm.com" },
            { text: "Locate Dealer", href: "/contact" },
          ]}
          background={{ variant: "sparkles-gradient" }}
          useInvertedBackground={false}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterSimple
          columns={footerColumns}
          bottomLeftText="© 2025 KTM AG. All rights reserved."
          bottomRightText="Ready to Race"
        />
      </div>
    </ThemeProvider>
  );
}