"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import Link from "next/link";
import NavbarStyleFullscreen from "@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen";
import HeroSplitKpi from "@/components/sections/hero/HeroSplitKpi";
import FeatureHoverPattern from "@/components/sections/feature/featureHoverPattern/FeatureHoverPattern";
import ProductCardThree from "@/components/sections/product/ProductCardThree";
import FooterSimple from "@/components/sections/footer/FooterSimple";
import { Zap, Heart, Activity, Flame, Users, CheckCircle, MapPin, Calendar } from "lucide-react";

export default function EventsPage() {
  const navItems = [
    { name: "Home", id: "home" },
    { name: "Trainers", id: "trainers" },
    { name: "Events", id: "events" },
    { name: "Communities", id: "communities" },
    { name: "Pricing", id: "pricing" },
    { name: "Dashboard", id: "dashboard" },
  ];

  const footerColumns = [
    {
      title: "Platform",
      items: [
        { label: "Find Trainers", href: "/trainers" },
        { label: "Discover Events", href: "/events" },
        { label: "Join Communities", href: "/communities" },
        { label: "Pricing", href: "/" },
      ],
    },
    {
      title: "Community",
      items: [
        { label: "Success Stories", href: "/" },
        { label: "Trainer Directory", href: "/trainers" },
        { label: "Events Calendar", href: "/events" },
        { label: "Member Forum", href: "/" },
      ],
    },
    {
      title: "Company",
      items: [
        { label: "About FitMumbai", href: "/" },
        { label: "Our Mission", href: "/" },
        { label: "Careers", href: "/" },
        { label: "Press", href: "/" },
      ],
    },
    {
      title: "Support",
      items: [
        { label: "Help Center", href: "/" },
        { label: "Contact Us", href: "/" },
        { label: "Privacy Policy", href: "/" },
        { label: "Terms of Service", href: "/" },
      ],
    },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="entrance-slide"
      borderRadius="rounded"
      contentWidth="small"
      sizing="mediumSizeLargeTitles"
      background="circleGradient"
      cardStyle="gradient-radial"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="solid"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={navItems}
          brandName="FitMumbai"
          bottomLeftText="Mumbai's Fitness Hub"
          bottomRightText="hello@fitmumbai.com"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitKpi
          title="Discover Fitness Events & Workshops"
          description="Explore curated marathons, yoga retreats, CrossFit competitions, and wellness workshops across Mumbai. Connect with thousands of fitness enthusiasts and transform your journey."
          background={{ variant: "radial-gradient" }}
          kpis={[
            { value: "150+", label: "Monthly Events" },
            { value: "50K+", label: "Active Participants" },
            { value: "12K+", label: "Community Members" },
          ]}
          enableKpiAnimation={true}
          tag="PREMIUM EVENTS"
          tagIcon={Zap}
          tagAnimation="slide-up"
          buttons={[
            { text: "Browse All Events", href: "#events" },
            { text: "Create Event", href: "#" },
          ]}
          buttonAnimation="slide-up"
          imageSrc="http://img.b2bpic.net/free-photo/medium-shot-latin-people-training-outdoors_23-2151039416.jpg?_wi=1"
          imageAlt="Marathon running event"
          mediaAnimation="blur-reveal"
          imagePosition="right"
          marqueeItems={[
            { type: "text-icon", text: "Marathons", icon: Activity },
            { type: "text-icon", text: "Yoga Retreats", icon: Heart },
            { type: "text-icon", text: "Workshops", icon: Zap },
            { type: "text-icon", text: "CrossFit", icon: Flame },
            { type: "text-icon", text: "Competitions", icon: Users },
          ]}
          marqueeSpeed={35}
          showMarqueeCard={true}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureHoverPattern
          title="Why Attend FitMumbai Events"
          description="Every event is carefully curated for quality, community impact, and fitness excellence. Join verified organizers and connect with like-minded enthusiasts."
          tag="EVENT HIGHLIGHTS"
          tagIcon={CheckCircle}
          tagAnimation="slide-up"
          features={[
            {
              icon: Calendar,
              title: "Curated Events",
              description: "Marathons, yoga retreats, workshops, and competitions selected by fitness experts for quality and community alignment.",
            },
            {
              icon: MapPin,
              title: "Local Locations",
              description: "All events happen across Mumbai neighborhoods. Easy access to Marine Drive, Bandra, Indiranagar, and more.",
            },
            {
              icon: Users,
              title: "Community Focus",
              description: "Meet fitness enthusiasts, make friends, and be part of Mumbai's vibrant fitness community.",
            },
          ]}
          animationType="scale-rotate"
          textboxLayout="default"
          useInvertedBackground={false}
          buttons={[{ text: "View All Features", href: "#" }]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="events-products" data-section="events-products">
        <ProductCardThree
          title="Upcoming Events in Mumbai"
          description="Browse verified fitness events happening this month. Register directly and connect with the community."
          tag="FEATURED EVENTS"
          tagIcon={Flame}
          tagAnimation="slide-up"
          products={[
            {
              id: "event-marathon-oct",
              name: "Mumbai Half Marathon 2024",
              price: "₹800",
              imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-latin-people-training-outdoors_23-2151039416.jpg?_wi=2",
              imageAlt: "Mumbai Half Marathon",
              priceButtonProps: { text: "Register" },
            },
            {
              id: "event-yoga-retreat-oct",
              name: "Sunrise Yoga Retreat",
              price: "₹600",
              imageSrc: "http://img.b2bpic.net/free-photo/pretty-woman-meditating-park_23-2147791890.jpg?_wi=1",
              imageAlt: "Sunrise Yoga Retreat",
              priceButtonProps: { text: "Join" },
            },
            {
              id: "event-crossfit-oct",
              name: "CrossFit Championship",
              price: "₹1,200",
              imageSrc: "http://img.b2bpic.net/free-photo/side-view-people-training-together-gym_23-2150289979.jpg?_wi=1",
              imageAlt: "CrossFit Championship",
              priceButtonProps: { text: "Compete" },
            },
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          carouselMode="buttons"
          buttons={[{ text: "Explore More Events", href: "#" }]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterSimple
          columns={footerColumns}
          bottomLeftText="© 2024 FitMumbai. All rights reserved."
          bottomRightText="hello@fitmumbai.com | +91 98765 43210"
        />
      </div>
    </ThemeProvider>
  );
}