"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import MetricCardOne from '@/components/sections/metrics/MetricCardOne';
import HeroBillboard from '@/components/sections/hero/HeroBillboard';
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';
import Link from "next/link";
import { Zap, Sparkles } from "lucide-react";

const navItems = [
  { name: "Home", id: "/" },
  { name: "Services", id: "/services" },
  { name: "Membership", id: "/membership" },
  { name: "Assessment", id: "/#fitness-assessment" },
  { name: "Contact", id: "/contact" },
];

const footerColumns = [
  {
    items: [
      { label: "Home", href: "/" },
      { label: "Services", href: "/services" },
      { label: "About Us", href: "/about" },
      { label: "Contact", href: "/contact" },
    ],
  },
  {
    items: [
      { label: "Membership Plans", href: "/membership" },
      { label: "Personal Training", href: "/services" },
      { label: "Nutrition", href: "/services" },
      { label: "Testimonials", href: "/" },
    ],
  },
  {
    items: [
      { label: "📍 Location", href: "https://maps.google.com/?q=90+Feet+Road+Dharavi+Mumbai+400017" },
      { label: "📞 +91-XXXX-XXXXX", href: "tel:+919876543210" },
      { label: "📧 info@ignitefitness.com", href: "mailto:info@ignitefitness.com" },
      { label: "Open Till 12 AM", href: "/" },
    ],
  },
  {
    items: [
      { label: "Privacy Policy", href: "/" },
      { label: "Terms & Conditions", href: "/" },
      { label: "Membership Agreement", href: "/" },
      { label: "FAQs", href: "/" },
    ],
  },
];

export default function MembershipPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-stagger"
      defaultTextAnimation="entrance-slide"
      borderRadius="rounded"
      contentWidth="mediumSmall"
      sizing="mediumLargeSizeLargeTitles"
      background="circleGradient"
      cardStyle="outline"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="glass"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          navItems={navItems.map((item) => ({
            name: item.name,
            id: item.id,
          }))}
          button={{ text: "Book Free Trial", href: "/contact" }}
          brandName="Ignite Fitness Club"
        />
      </div>

      <div id="membership-hero" data-section="membership-hero" className="w-full py-20">
        <HeroBillboard
          title="Flexible Membership Plans for Every Goal"
          description="Choose the membership that fits your fitness journey. From casual gym-goers to serious athletes, we have the perfect plan. Discounts available for group bookings and annual commitments."
          background={{ variant: "radial-gradient" }}
          tag="Affordable Premium Fitness"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          buttons={[
            { text: "Book Free Trial", href: "/contact" },
            { text: "Call for Offers", href: "tel:+919876543210" },
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="membership-options" data-section="membership-options" className="w-full py-16">
        <MetricCardOne
          title="Our Membership Plans"
          description="Select the plan that aligns with your fitness goals and schedule"
          tag="Pricing Options"
          tagIcon={Zap}
          tagAnimation="slide-up"
          metrics={[
            {
              id: "1",              value: "₹999",              title: "Monthly",              description: "Unlimited access, flexible commitment",              icon: Zap,
            },
            {
              id: "2",              value: "₹4999",              title: "6-Month",              description: "Save 15% with semi-annual plan",              icon: Sparkles,
            },
            {
              id: "3",              value: "₹8999",              title: "Annual",              description: "Best value - Save 25% yearly",              icon: Zap,
            },
            {
              id: "4",              value: "💰",              title: "Premium",              description: "Personal training included",              icon: Zap,
            },
          ]}
          gridVariant="uniform-all-items-equal"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="membership-cta" data-section="membership-cta" className="w-full py-20">
        <HeroBillboard
          title="Join 500+ Members Transforming Their Lives"
          description="Start your free trial today. No credit card required. Experience our premium facility, expert trainers, and motivating community. Limited slots available this month—secure yours now!"
          background={{ variant: "animated-grid" }}
          tag="Limited Time Offer"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          buttons={[
            { text: "🔥 Start Free Trial", href: "/contact" },
            { text: "📞 Schedule Visit", href: "tel:+919876543210" },
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="footer" data-section="footer" className="w-full py-12">
        <FooterLogoEmphasis
          columns={footerColumns}
          logoText="Ignite Fitness Club"
        />
      </div>
    </ThemeProvider>
  );
}
