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

export default function ArchivesPage() {
  const navItems = [
    { name: "Home", id: "/" },
    { name: "Search", id: "/search" },
    { name: "Archives", id: "/archives" },
    { 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" },
  ];

  const footerColumns = [
    {
      title: "Navigate",      items: [
        { label: "Home", href: "/" },
        { label: "Search", href: "/search" },
        { label: "Archives", href: "/archives" },
        { label: "Matches", href: "/#matches" },
        { label: "Stats", href: "/#stats" }
      ],
    },
    {
      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" },
      ],
    },
  ];

  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="archives-section" data-section="archives-section">
          <MetricCardSeven
            animationType="slide-up"
            textboxLayout="default"
            useInvertedBackground={true}
            metrics={[
              { id: "2022", value: "2022", title: "Qatar", items: ["Argentina wins", "Historic tournament", "Middle East debut"] },
              { id: "2018", value: "2018", title: "Russia", items: ["France lifts trophy", "VAR introduced", "Host nation excels"] },
              { id: "2014", value: "2014", title: "Brazil", items: ["Germany triumphs", "Brazil's home setback", "Goal-filled tournament"] },
              { id: "2010", value: "2010", title: "South Africa", items: ["Spain's first title", "Vuvuzelas debut", "African continent hosts"] },
              { id: "2006", value: "2006", title: "Germany", items: ["Italy takes cup", "Zidane's headbutt", "Tense final"] },
              { id: "2002", value: "2002", title: "Korea/Japan", items: ["Brazil's fifth star", "First Asian hosts", "Ronaldo's redemption"] },
              { id: "1998", value: "1998", title: "France", items: ["France wins at home", "Zidane's masterclass", "New format debut"] },
              { id: "1994", value: "1994", title: "USA", items: ["Brazil wins thriller", "First penalty shootout final", "High attendance"] }
            ]}
            title="World Cup Archives by Year"
            description="Explore historical FIFA World Cup tournaments, year by year. Dive into the past and relive the glory of each iconic event and its champions."
          />
        </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>
  );
}
