"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import PricingCardThree from '@/components/sections/pricing/PricingCardThree';
import ContactCTA from '@/components/sections/contact/ContactCTA';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import { DollarSign, Mail, Sparkles } from 'lucide-react';
import Link from 'next/link';

export default function PricingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="background-highlight"
      borderRadius="rounded"
      contentWidth="medium"
      sizing="medium"
      background="none"
      cardStyle="gradient-bordered"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="layered"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={[
            { name: "Home", id: "/" },
            { name: "Pricing", id: "/pricing" },
            { name: "About", id: "/about" },
            { name: "Contact", id: "/contact" }
          ]}
          brandName="LogiAI"
          bottomLeftText="Global E-commerce Solutions"
          bottomRightText="hello@logiai.com"
          logoOnClick={() => window.location.href = "/"}
          logoHref="/"
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardThree
          title="Flexible Pricing for Every Scale"
          description="Start small and grow. Pay only for what you use, with volume discounts and enterprise options available."
          tag="Pricing"
          tagIcon={DollarSign}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          animationType="scale-rotate"
          plans={[
            {
              id: "starter",
              price: "Custom",
              name: "Starter",
              buttons: [
                { text: "Get Started", href: "https://app.logiai.com/signup" },
                { text: "Contact Sales", href: "#" }
              ],
              features: [
                "Up to 5,000 shipments/month",
                "Basic route optimization",
                "Single carrier integration",
                "Email support",
                "Standard API access"
              ]
            },
            {
              id: "professional",
              badge: "Most Popular",
              badgeIcon: Sparkles,
              price: "Custom",
              name: "Professional",
              buttons: [
                { text: "Get Started", href: "https://app.logiai.com/signup" },
                { text: "Contact Sales", href: "#" }
              ],
              features: [
                "Up to 50,000 shipments/month",
                "Advanced AI optimization",
                "Multi-carrier management",
                "Priority 24/7 support",
                "Advanced API & webhooks",
                "Custom integrations"
              ]
            },
            {
              id: "enterprise",
              price: "Custom",
              name: "Enterprise",
              buttons: [
                { text: "Schedule Demo", href: "#" },
                { text: "Contact Sales", href: "#" }
              ],
              features: [
                "Unlimited shipments",
                "Custom AI models",
                "White-label options",
                "Dedicated success team",
                "SLA guarantees",
                "On-premises deployment",
                "Custom compliance solutions"
              ]
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCTA
          tag="Get Started"
          tagIcon={Mail}
          title="Ready to Transform Your Logistics?"
          description="Join thousands of e-commerce companies optimizing their supply chains with AI. Book a demo or start your free trial today."
          buttons={[
            { text: "Start Free Trial", href: "https://app.logiai.com/signup" },
            { text: "Book a Demo", href: "#" }
          ]}
          background={{ variant: "gradient-bars" }}
          useInvertedBackground="invertDefault"
        />
      </div>

      <FooterBaseCard
        logoText="LogiAI"
        columns={[
          {
            title: "Product",
            items: [
              { label: "Features", href: "#features" },
              { label: "Pricing", href: "/pricing" },
              { label: "Security", href: "#" },
              { label: "API Docs", href: "#" }
            ]
          },
          {
            title: "Company",
            items: [
              { label: "About", href: "/about" },
              { label: "Blog", href: "#" },
              { label: "Careers", href: "#" },
              { label: "Press", href: "#" }
            ]
          },
          {
            title: "Resources",
            items: [
              { label: "Documentation", href: "#" },
              { label: "Case Studies", href: "#" },
              { label: "Guides", href: "#" },
              { label: "Community", href: "#" }
            ]
          },
          {
            title: "Legal",
            items: [
              { label: "Privacy", href: "#" },
              { label: "Terms", href: "#" },
              { label: "Compliance", href: "#" },
              { label: "Contact", href: "/contact" }
            ]
          }
        ]}
        copyrightText="© 2025 LogiAI. AI-Powered Logistics for E-commerce."
      />
    </ThemeProvider>
  );
}