"use client";

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

export default function OrderTrackingPage() {
  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={[
              { name: "Home", id: "#home" },
              { name: "About", id: "#about" },
              { name: "Features", id: "#features" },
              { name: "Solutions", id: "#solutions" },
              { name: "Menu", id: "/menu" },
              { name: "Cart", id: "/cart" },
              { name: "Orders", id: "/order-tracking" },
              { name: "Pricing", id: "#pricing" },
              { name: "Testimonials", id: "#testimonials" },
              { name: "Contact", id: "#contact" },
            ]}
            brandName="ReservaFlow"
            button={{ text: "Start Free Trial", href: "#contact" }}
          />
        </div>

        <section className="py-20 text-center">
          <TextAnimation
            title="Track Your Order"
            type="entrance-slide"
            className="text-4xl font-bold mb-4"
          />
          <p className="text-lg text-foreground/80 mb-8">
            Enter your order number to check its status.
          </p>
          <div className="max-w-md mx-auto p-6 rounded-lg shadow-lg bg-card">
            <input
              type="text"
              placeholder="Enter Order ID"
              className="w-full p-3 mb-4 rounded-md bg-background-accent text-foreground border border-accent/20 focus:outline-none focus:ring-2 focus:ring-primary-cta"
            />
            <button className="px-6 py-3 bg-primary-cta text-white font-semibold rounded-md hover:opacity-90 transition-opacity">
              Track Order
            </button>
          </div>
          <p className="text-sm text-foreground/60 mt-8">
            Currently supporting pickup, delivery, and dine-in orders.
          </p>
        </section>

        <div id="footer" data-section="footer">
          <FooterBaseReveal
            logoText="ReservaFlow"
            columns={[
              {
                title: "Platform",                items: [
                  { label: "Reservation Management", href: "#features" },
                  { 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: "#" }
              ]
              }
            ]}
            copyrightText="© 2023 ReservaFlow. All rights reserved."
          />
        </div>
      </ReactLenis>
    </ThemeProvider>
  );
}