"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FaqSplitText from '@/components/sections/faq/FaqSplitText';
import FeatureCardSix from '@/components/sections/feature/FeatureCardSix';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import HeroOverlayTestimonial from '@/components/sections/hero/HeroOverlayTestimonial';
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import PricingCardOne from '@/components/sections/pricing/PricingCardOne';
import TestimonialCardSixteen from '@/components/sections/testimonial/TestimonialCardSixteen';
import TextAbout from '@/components/sections/about/TextAbout';
import { useState } from 'react';

export default function LandingPage() {
  const [requests] = useState([
    { id: 'REQ-001', name: 'John Doe', status: 'Pending', date: '2025-05-15' },
    { id: 'REQ-002', name: 'Jane Smith', status: 'In Review', date: '2025-05-16' },
    { id: 'REQ-003', name: 'Bob Johnson', status: 'Completed', date: '2025-05-17' },
  ]);

  return (
    <ThemeProvider
        defaultButtonVariant="bounce-effect"
        defaultTextAnimation="entrance-slide"
        borderRadius="pill"
        contentWidth="medium"
        sizing="medium"
        background="circleGradient"
        cardStyle="glass-elevated"
        primaryButtonStyle="gradient"
        secondaryButtonStyle="glass"
        headingFontWeight="normal"
    >
      <ReactLenis root>
        <div id="nav" data-section="nav">
            <NavbarStyleFullscreen
              navItems={[
                { name: "Home", id: "hero" },
                { name: "Dashboard", id: "admin" },
                { name: "Tarief", id: "pricing" },
                { name: "Contact", id: "contact" },
              ]}
              brandName="VSO Controle"
            />
        </div>

        <div id="admin" data-section="admin" className="py-20 px-8">
            <div className="max-w-6xl mx-auto">
                <h2 className="text-3xl font-bold mb-8">VSO Intake Requests</h2>
                <div className="overflow-x-auto shadow-md rounded-lg">
                    <table className="w-full text-left">
                        <thead className="bg-accent text-foreground">
                            <tr>
                                <th className="p-4">Request ID</th>
                                <th className="p-4">Name</th>
                                <th className="p-4">Date</th>
                                <th className="p-4">Status</th>
                                <th className="p-4">Actions</th>
                            </tr>
                        </thead>
                        <tbody>
                            {requests.map((req) => (
                                <tr key={req.id} className="border-b border-accent">
                                    <td className="p-4">{req.id}</td>
                                    <td className="p-4">{req.name}</td>
                                    <td className="p-4">{req.date}</td>
                                    <td className="p-4 font-semibold text-primary-cta">{req.status}</td>
                                    <td className="p-4 flex gap-2">
                                        <button className="px-3 py-1 bg-primary-cta text-white rounded text-sm">View</button>
                                        <button className="px-3 py-1 bg-background-accent text-white rounded text-sm">Edit</button>
                                    </td>
                                </tr>
                            ))}
                        </tbody>
                    </table>
                </div>
            </div>
        </div>

        <div id="hero" data-section="hero">
            <HeroOverlayTestimonial
              title="Laat je VSO controleren door arbeidsrecht juristen"
              description="Een VSO kan grote gevolgen hebben voor je WW-rechten, vergoeding en toekomst. Voor €399,99 weet je binnen 24 uur waar je op moet letten en waar mogelijk nog winst te behalen valt. Voorkom dat je te snel tekent."
              testimonials={[]}
              buttons={[{ text: "Start mijn VSO-controle", href: "/vso-upload" }]}
            />
        </div>
        <div id="about" data-section="about"><TextAbout title="Juridische expertise bij jouw ontslag" /></div>
        <div id="features" data-section="features"><FeatureCardSix textboxLayout="default" title="Waarom kiezen voor VSO Controle?" description="Voorkom dat je te snel tekent." features={[]} /></div>
        <div id="pricing" data-section="pricing"><PricingCardOne animationType="depth-3d" textboxLayout="default" plans={[]} title="VSO Controle" description="Kies je pakket." /></div>
        <div id="testimonials" data-section="testimonials"><TestimonialCardSixteen animationType="slide-up" textboxLayout="default" useInvertedBackground={false} title="Klantverhalen" description="Wat anderen zeggen." testimonials={[]} kpiItems={[{value:"100%", label:"Success"},{value:"24u", label:"Snelheid"},{value:"Expert", label:"Kennis"}]} /></div>
        <div id="faq" data-section="faq"><FaqSplitText useInvertedBackground={false} faqs={[]} sideTitle="Veelgestelde vragen" faqsAnimation="slide-up" /></div>
        <div id="contact" data-section="contact"><ContactSplitForm title="Direct contact" description="Stel hier je vraag." inputs={[{name:"name", type:"text", placeholder:"Naam"},{name:"email", type:"email", placeholder:"E-mail"}]} /></div>
        <div id="footer" data-section="footer"><FooterBaseCard logoText="VSO Controle" columns={[]} /></div>
      </ReactLenis>
    </ThemeProvider>
  );
}