"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import ContactText from '@/components/sections/contact/ContactText';

export default function ReservationPage() {
  const navItems = [
    { name: "Home", id: "#home" },
    { name: "About", id: "#about" },
    { name: "Features", id: "#features" },
    { name: "Solutions", id: "#solutions" },
    { name: "Reservation", id: "/reservation" },
    { name: "Pricing", id: "#pricing" },
    { name: "Testimonials", id: "#testimonials" },
    { name: "Contact", id: "#contact" },
  ];

  const footerColumns = [
    {
      title: "Platform",      items: [
        { label: "Reservation Management", href: "/reservation" },
        { label: "Online Ordering", href: "#features" },
        { label: "Loyalty Programs", href: "#features" },
        { label: "Admin Analytics", href: "#features" },
      ],
    },
    {
      title: "Solutions",      items: [
        { label: "Fine Dining", href: "#solutions" },
        { label: "Hotels & Resorts", href: "#solutions" },
        { label: "Cafés & Casual", href: "#solutions" },
      ],
    },
    {
      title: "Company",      items: [
        { label: "About Us", href: "#about" },
        { label: "Pricing", href: "#pricing" },
        { label: "Testimonials", href: "#testimonials" },
        { label: "Contact", href: "#contact" },
      ],
    },
    {
      title: "Legal",      items: [
        { label: "Privacy Policy", href: "#" },
        { label: "Terms of Service", href: "#" },
        { label: "Cookie Policy", href: "#" },
      ],
    },
  ];

  return (
    <ThemeProvider
        defaultButtonVariant="expand-hover"
        defaultTextAnimation="background-highlight"
        borderRadius="rounded"
        contentWidth="compact"
        sizing="mediumLargeSizeLargeTitles"
        background="blurBottom"
        cardStyle="gradient-radial"
        primaryButtonStyle="gradient"
        secondaryButtonStyle="layered"
        headingFontWeight="normal"
    >
      <ReactLenis root>
        <div id="nav" data-section="nav">
          <NavbarLayoutFloatingOverlay
            navItems={navItems}
            brandName="ReservaFlow"
            button={{ text: "Start Free Trial", href: "#contact" }}
          />
        </div>

        <div id="reservation" data-section="reservation">
          <ContactText
            useInvertedBackground={false}
            background={{ variant: "rotated-rays-static" }}
            text="Experience our Smart Availability Calendar: Effortlessly book with real-time Firebase updates, color-coded availability (Green: Available, Yellow: Limited, Red: Booked, Grey: Unavailable), intuitive date selection, and clear time slot display with instant status updates."
            buttons={[
              { text: "Select Your Date", href: "#" },
              { text: "View Available Slots", href: "#" },
            ]}
          />
        </div>

        <div id="footer" data-section="footer">
          <FooterBaseReveal
            logoText="ReservaFlow"
            columns={footerColumns}
            copyrightText="© 2023 ReservaFlow. All rights reserved."
          />
        </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
