"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 HeroBillboardCarousel from '@/components/sections/hero/HeroBillboardCarousel';

const navItems = [
  { name: "Home", id: "/" },
  { name: "Archives", id: "/archives" },
  { name: "Search", id: "/search" },
  { name: "Top Scorers", id: "/top-scorers" },
  { name: "About", id: "/#about" },
  { name: "Matches", id: "/#matches" },
  { name: "Stats", id: "/#stats" },
  { name: "Fans Say", id: "/#testimonials" },
  { name: "FAQ", id: "/#faq" },
  { name: "Contact", id: "/#contact" },
  { name: "Theme", id: "/theme" }
];

const footerColumns = [
  {
    title: "Navigate",    items: [
      { label: "Home", href: "/" },
      { label: "Matches", href: "/#matches" },
      { label: "Stats", href: "/#stats" },
      { label: "Archives", href: "/archives" },
    ],
  },
  {
    title: "Resources",    items: [
      { label: "FAQ", href: "/#faq" },
      { label: "About Us", href: "/#about" },
      { label: "Contact", href: "/#contact" },
    ],
  },
  {
    title: "Legal",    items: [
      { label: "Privacy Policy", href: "/privacy" },      { label: "Terms of Service", href: "/terms" },
    ],
  },
];

export default function ArchivesPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="elastic-effect"
        defaultTextAnimation="entrance-slide"
        borderRadius="rounded"
        contentWidth="small"
        sizing="largeSizeMediumTitles"
        background="none"
        cardStyle="outline"
        primaryButtonStyle="diagonal-gradient"
        secondaryButtonStyle="solid"
        headingFontWeight="extrabold"
    >
      <ReactLenis root>
        <div id="nav" data-section="nav">
          <NavbarLayoutFloatingOverlay
            navItems={navItems}
            logoSrc="http://img.b2bpic.net/free-vector/hand-drawn-football-soccer-club-logo_23-2149313711.jpg"
            logoAlt="World Cup Hub Logo"
            brandName="World Cup Hub"
          />
        </div>

        <div id="hero-archives" data-section="hero-archives">
          <HeroBillboardCarousel
            background={{ variant: "radial-gradient" }}
            title="World Cup Archives"
            description="Explore the rich history of the FIFA World Cup. Relive every tournament, match, and iconic moment."
            mediaItems={[
              { imageSrc: "http://img.b2bpic.net/free-photo/soccer-fans-cheering-their-team-stadium_23-2151536119.jpg", imageAlt: "Football stadium with cheering crowd" },
            ]}
          />
        </div>

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