"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import Link from "next/link";
import { Sparkles, CheckCircle, Award } from 'lucide-react';
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import PricingCardTwo from '@/components/sections/pricing/PricingCardTwo';
import FaqSplitMedia from '@/components/sections/faq/FaqSplitMedia';
import MetricCardFourteen from '@/components/sections/metrics/MetricCardFourteen';
import FooterSimple from '@/components/sections/footer/FooterSimple';

export default function PricingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="expand-hover"
      defaultTextAnimation="entrance-slide"
      borderRadius="rounded"
      contentWidth="mediumSmall"
      sizing="largeSmallSizeMediumTitles"
      background="circleGradient"
      cardStyle="gradient-bordered"
      primaryButtonStyle="flat"
      secondaryButtonStyle="layered"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay 
          brandName="SmartYourMoney"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Services", id: "/services" },
            { name: "Pricing", id: "/pricing" },
            { name: "About", id: "/about" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{
            text: "Get Started",
            href: "https://app.smartyourmoney.com"
          }}
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardTwo
          title="Choose Your Investment Plan"
          description="Transparent pricing designed for investors at every stage. Scale your investment as your portfolio grows."
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          plans={[
            {
              id: "1",
              badge: "Starter",
              badgeIcon: Sparkles,
              price: "$0",
              subtitle: "Perfect for beginning your investment journey",
              buttons: [
                {
                  text: "Get Started Free",
                  href: "https://app.smartyourmoney.com/signup"
                },
                {
                  text: "Learn More",
                  href: "/pricing"
                }
              ],
              features: [
                "Unlimited portfolio tracking",
                "Basic market data and research",
                "Mobile app access",
                "Community support forum",
                "Annual performance reports"
              ]
            },
            {
              id: "2",
              badge: "Professional",
              badgeIcon: CheckCircle,
              price: "$99/mo",
              subtitle: "For serious investors managing significant portfolios",
              buttons: [
                {
                  text: "Start 30-Day Trial",
                  href: "https://app.smartyourmoney.com/trial"
                },
                {
                  text: "Contact Sales",
                  href: "/contact"
                }
              ],
              features: [
                "Advanced portfolio optimization",
                "Real-time market analytics",
                "AI-powered recommendations",
                "Priority customer support",
                "Advanced reporting and tax tools",
                "Institutional research access"
              ]
            },
            {
              id: "3",
              badge: "Elite",
              badgeIcon: Award,
              price: "Custom",
              subtitle: "White-glove service for high-net-worth investors",
              buttons: [
                {
                  text: "Schedule Consultation",
                  href: "/contact"
                },
                {
                  text: "Dedicated Manager",
                  href: "https://app.smartyourmoney.com/elite"
                }
              ],
              features: [
                "All Professional features included",
                "Dedicated investment advisor",
                "Custom portfolio strategy",
                "24/7 concierge support",
                "Estate planning assistance",
                "Tax optimization strategies",
                "Exclusive investment opportunities"
              ]
            }
          ]}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitMedia
          title="Pricing Questions"
          description="Everything you need to know about our investment plans and pricing structure."
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          imageSrc="https://img.b2bpic.net/free-photo/people-working-call-center_23-2149288192.jpg"
          imageAlt="Customer support team"
          mediaPosition="left"
          faqs={[
            {
              id: "1",
              title: "Are there any hidden fees or charges?",
              content: "Absolutely not. We believe in complete transparency. Our Starter plan is completely free with no hidden costs. Professional plans are $99/month flat fee with no additional trading fees or commissions. Elite plans are custom-priced based on your assets under management with no monthly fee."
            },
            {
              id: "2",
              title: "Can I switch between plans anytime?",
              content: "Yes, you can upgrade or downgrade your plan at any time. When you upgrade, you'll be charged the prorated amount for the current billing cycle. When you downgrade, the change takes effect at the end of your current billing period."
            },
            {
              id: "3",
              title: "Is there a minimum investment required?",
              content: "For Starter plans, you can begin with as little as $100. Professional plans typically work best with portfolios of $10,000 or more to take advantage of advanced features. Elite plans are designed for investors with $1M+ in investable assets."
            },
            {
              id: "4",
              title: "What's included in the 30-day trial?",
              content: "The Professional plan trial includes full access to all features: advanced portfolio optimization, real-time analytics, AI recommendations, priority support, and institutional research. No credit card required to start."
            }
          ]}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardFourteen
          title="Join thousands of investors who have already discovered the value of professional-grade investment management at a fraction of traditional costs."
          tag="Value"
          metrics={[
            {
              id: "1",
              value: "89%",
              description: "Cost savings compared to traditional wealth management fees"
            },
            {
              id: "2",
              value: "15min",
              description: "Average time to set up and start investing with our platform"
            },
            {
              id: "3",
              value: "$2.1M",
              description: "Average portfolio value growth for our Professional plan users over 3 years"
            }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <FooterSimple
        columns={[
          {
            title: "Platform",
            items: [
              { label: "Dashboard", href: "https://app.smartyourmoney.com" },
              { label: "Pricing", href: "/pricing" },
              { label: "Features", href: "/services" },
              { label: "Mobile App", href: "https://app.smartyourmoney.com/mobile" }
            ]
          },
          {
            title: "Company",
            items: [
              { label: "About Us", href: "/about" },
              { label: "Blog", href: "https://blog.smartyourmoney.com" },
              { label: "Careers", href: "https://careers.smartyourmoney.com" },
              { label: "Contact", href: "/contact" }
            ]
          },
          {
            title: "Resources",
            items: [
              { label: "Learning Center", href: "https://learn.smartyourmoney.com" },
              { label: "Market Research", href: "https://research.smartyourmoney.com" },
              { label: "FAQ", href: "/faq" },
              { label: "Support", href: "https://support.smartyourmoney.com" }
            ]
          },
          {
            title: "Legal",
            items: [
              { label: "Privacy Policy", href: "https://smartyourmoney.com/privacy" },
              { label: "Terms of Service", href: "https://smartyourmoney.com/terms" },
              { label: "Disclaimer", href: "https://smartyourmoney.com/disclaimer" },
              { label: "Compliance", href: "https://smartyourmoney.com/compliance" }
            ]
          }
        ]}
        bottomLeftText="© 2025 SmartYourMoney. All rights reserved."
        bottomRightText="Invest Smarter, Grow Faster"
      />
    </ThemeProvider>
  );
}