"use client";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import PricingCardNine from '@/components/sections/pricing/PricingCardNine';
import FaqBase from '@/components/sections/faq/FaqBase';
import FooterBase from '@/components/sections/footer/FooterBase';
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";

export default function PricingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="slide-background"
      defaultTextAnimation="background-highlight"
      borderRadius="sharp"
      contentWidth="mediumLarge"
      sizing="mediumLargeSizeMediumTitles"
      background="circleGradient"
      cardStyle="outline"
      primaryButtonStyle="inset-glow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="GoGoToMe"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Fleet", id: "/fleet" },
            { name: "Pricing", id: "/pricing" },
            { name: "About", id: "/about" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{
            text: "Book Now",
            href: "/booking"
          }}
        />
      </div>

      <div id="pricing-plans" data-section="pricing-plans">
        <PricingCardNine
          title="Transparent Pricing Plans"
          description="Choose the perfect rental plan for your budget and travel style. No hidden fees, no surprises."
          tag="Pricing Plans"
          plans={[
            {
              id: "economy",
              title: "Economy",
              price: "$45",
              period: "/day",
              imageSrc: "https://img.b2bpic.net/free-photo/car-model-calculator-coins-white-table_1387-493.jpg",
              imageAlt: "Economy car rental",
              button: {
                text: "Book Economy",
                href: "/booking?type=economy"
              },
              features: [
                "Unlimited mileage",
                "Basic insurance included",
                "Free cancellation (48h)",
                "Airport pickup available"
              ]
            },
            {
              id: "comfort",
              title: "Comfort",
              price: "$85",
              period: "/day",
              imageSrc: "https://img.b2bpic.net/free-photo/car-model-calculator-coins-white-table_1387-583.jpg",
              imageAlt: "Comfort car rental",
              button: {
                text: "Book Comfort",
                href: "/booking?type=comfort"
              },
              features: [
                "Unlimited mileage",
                "Premium insurance",
                "Free cancellation (72h)",
                "Premium support 24/7",
                "GPS system included"
              ]
            },
            {
              id: "premium",
              title: "Premium",
              price: "$150",
              period: "/day",
              imageSrc: "https://img.b2bpic.net/free-photo/car-model-calculator-coins-white-table_1387-584.jpg",
              imageAlt: "Premium car rental",
              button: {
                text: "Book Premium",
                href: "/booking?type=premium"
              },
              features: [
                "Unlimited mileage",
                "Full coverage insurance",
                "Free cancellation",
                "Concierge service",
                "Valet parking included"
              ]
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="pricing-faq" data-section="pricing-faq">
        <FaqBase
          title="Pricing Questions"
          description="Common questions about our pricing structure and rental policies."
          tag="Pricing FAQ"
          faqs={[
            {
              id: "1",
              title: "Are there any hidden fees?",
              content: "No hidden fees ever. Our pricing is completely transparent with all costs clearly displayed upfront. The only additional charges would be optional add-ons you specifically select."
            },
            {
              id: "2",
              title: "What payment methods do you accept?",
              content: "We accept all major credit cards including Visa, Mastercard, American Express, and Discover. Debit cards are accepted for most bookings with proper verification."
            },
            {
              id: "3",
              title: "Can I get a refund if I cancel?",
              content: "Yes! Economy plans offer free cancellation up to 48 hours, Comfort plans up to 72 hours, and Premium plans offer flexible cancellation anytime before pickup."
            }
          ]}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          animationType="smooth"
          showCard={true}
        />
      </div>

      <FooterBase
        logoText="GoGoToMe"
        copyrightText="© 2025 GoGoToMe Car Rentals. All rights reserved."
        columns={[
          {
            title: "Product",
            items: [
              { label: "Browse Fleet", href: "/fleet" },
              { label: "Pricing Plans", href: "/pricing" },
              { label: "Insurance Options", href: "#" },
              { label: "Book Now", href: "/booking" }
            ]
          },
          {
            title: "Company",
            items: [
              { label: "About Us", href: "/about" },
              { label: "Careers", href: "#" },
              { label: "Blog", href: "#" },
              { label: "Contact", href: "/contact" }
            ]
          },
          {
            title: "Support",
            items: [
              { label: "Help Center", href: "#" },
              { label: "FAQs", href: "/faq" },
              { label: "Track Rental", href: "#" },
              { label: "Support 24/7", href: "#" }
            ]
          }
        ]}
      />
    </ThemeProvider>
  );
}