"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, Users2 } from "lucide-react";

export default function CommunitiesPage() {
  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="Join Local Running Clubs & Fitness Communities"
          description="Connect with like-minded fitness enthusiasts in your neighborhood. Find your local running club, training group, or wellness community and stay motivated together."
          background={{ variant: "radial-gradient" }}
          kpis={[
            { value: "50+", label: "Active Clubs" },
            { value: "8K+", label: "Community Members" },
            { value: "200+", label: "Weekly Meetups" },
          ]}
          enableKpiAnimation={true}
          tag="JOIN YOUR TRIBE"
          tagIcon={Heart}
          tagAnimation="slide-up"
          buttons={[
            { text: "Browse Communities", href: "#communities" },
            { text: "Start a Club", href: "#" },
          ]}
          buttonAnimation="slide-up"
          imageSrc="http://img.b2bpic.net/free-photo/group-active-people-zumba-class_23-2149074929.jpg?_wi=3"
          imageAlt="Fitness community group"
          mediaAnimation="blur-reveal"
          imagePosition="right"
          marqueeItems={[
            { type: "text-icon", text: "Running Clubs", icon: Activity },
            { type: "text-icon", text: "Yoga Groups", icon: Heart },
            { type: "text-icon", text: "Training Squads", icon: Flame },
            { type: "text-icon", text: "Wellness Circles", icon: Zap },
            { type: "text-icon", text: "Social Fitness", icon: Users },
          ]}
          marqueeSpeed={35}
          showMarqueeCard={true}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureHoverPattern
          title="Why Join a FitMumbai Community"
          description="Build lasting friendships, stay accountable, and achieve fitness goals together. Every community is verified and active."
          tag="COMMUNITY BENEFITS"
          tagIcon={CheckCircle}
          tagAnimation="slide-up"
          features={[
            {
              icon: Users2,
              title: "Local Connections",
              description: "Meet fitness enthusiasts in your area. Regular meetups, group runs, and training sessions throughout Mumbai.",
            },
            {
              icon: Activity,
              title: "Structured Training",
              description: "Experienced leaders guide group activities at different pace levels. Perfect for beginners to advanced athletes.",
            },
            {
              icon: Heart,
              title: "Accountability & Support",
              description: "Get motivated by your community. Share wins, support each other, and celebrate fitness milestones together.",
            },
          ]}
          animationType="scale-rotate"
          textboxLayout="default"
          useInvertedBackground={false}
          buttons={[{ text: "Learn More", href: "#" }]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="communities-products" data-section="communities-products">
        <ProductCardThree
          title="Popular Communities Near You"
          description="Join active communities in your neighborhood. Each group has regular meetups and structured training sessions."
          tag="DISCOVER CLUBS"
          tagIcon={MapPin}
          tagAnimation="slide-up"
          products={[
            {
              id: "community-marine-drive",
              name: "Marine Drive Running Club",
              price: "Free",
              imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-latin-people-training-outdoors_23-2151039416.jpg?_wi=3",
              imageAlt: "Marine Drive Running Club",
              priceButtonProps: { text: "Join" },
            },
            {
              id: "community-yoga-circle",
              name: "Bandra Yoga & Wellness Circle",
              price: "Free",
              imageSrc: "http://img.b2bpic.net/free-photo/pretty-woman-meditating-park_23-2147791890.jpg?_wi=2",
              imageAlt: "Bandra Yoga Circle",
              priceButtonProps: { text: "Join" },
            },
            {
              id: "community-fitness-squad",
              name: "Indiranagar Fitness Squad",
              price: "Free",
              imageSrc: "http://img.b2bpic.net/free-photo/side-view-people-training-together-gym_23-2150289979.jpg?_wi=2",
              imageAlt: "Indiranagar Fitness Squad",
              priceButtonProps: { text: "Join" },
            },
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          carouselMode="buttons"
          buttons={[{ text: "See More Communities", 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>
  );
}