"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from "@/components/navbar/NavbarLayoutFloatingInline";
import HeroBillboardScroll from "@/components/sections/hero/HeroBillboardScroll";
import MetricCardOne from "@/components/sections/metrics/MetricCardOne";
import ProductCardOne from "@/components/sections/product/ProductCardOne";
import InlineImageSplitTextAbout from "@/components/sections/about/InlineImageSplitTextAbout";
import ContactCenter from "@/components/sections/contact/ContactCenter";
import FooterBase from "@/components/sections/footer/FooterBase";
import Link from "next/link";
import { Sparkles, Layers, RotateCcw, Mail, Star } from "lucide-react";

export default function HomePage() {
  const navItems = [
    { name: "Shop", id: "shop" },
    { name: "Sets", id: "sets" },
    { name: "Hoodies", id: "hoodies" },
    { name: "Sweatpants", id: "sweatpants" },
    { name: "About", id: "about" },
  ];

  const footerColumns = [
    {
      title: "Shop",      items: [
        { label: "Hoodies", href: "/shop/hoodies" },
        { label: "Sweatpants", href: "/shop/sweatpants" },
        { label: "Sets", href: "/shop/sets" },
        { label: "All Products", href: "/shop" },
      ],
    },
    {
      title: "Information",      items: [
        { label: "About ARCT", href: "/about" },
        { label: "Craft & Materials", href: "/craft-materials" },
        { label: "Sustainability", href: "/sustainability" },
        { label: "FAQ", href: "/faq" },
      ],
    },
    {
      title: "Support",      items: [
        { label: "Shipping & Returns", href: "/shipping-returns" },
        { label: "Contact", href: "/contact" },
        { label: "Size Guide", href: "#" },
        { label: "Terms & Privacy", href: "#" },
      ],
    },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="shift-hover"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="mediumSmall"
      sizing="largeSizeMediumTitles"
      background="floatingGradient"
      cardStyle="layered-gradient"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="ARCT Amsterdam"
          navItems={navItems}
          button={{ text: "Cart", href: "#" }}
          animateOnLoad={true}
        />
      </div>

      <div id="hero" data-section="hero" className="min-h-screen flex flex-col items-center justify-center">
        <HeroBillboardScroll
          title="Heavyweight essentials, quietly designed."
          description="ARCT Amsterdam delivers structured cotton sets with refined embroidery and a clean silhouette, built for years of wear."
          tag="Premium Streetwear"
          tagIcon={Sparkles}
          background={{ variant: "plain" }}
          imageSrc="http://img.b2bpic.net/free-photo/shallow-focus-two-black-men-standing-against-red-wall_181624-56204.jpg"
          imageAlt="Editorial fashion lifestyle photography"
          buttons={[
            { text: "Shop Hoodies", href: "/shop/hoodies" },
            { text: "Shop Sets", href: "/shop/sets" },
          ]}
          buttonAnimation="blur-reveal"
        />
      </div>

      <div id="trust-tiles" data-section="trust-tiles" className="py-20 mx-auto px-4 md:px-6">
        <MetricCardOne
          title="Why ARCT"
          description="What sets us apart."
          metrics={[
            {
              id: "1",              value: "700",              title: "GSM",              description: "Dense fleece, structured drape, premium handfeel.",              icon: Layers,
            },
            {
              id: "2",              value: "100%",              title: "Embroidered",              description: "Clean stitchwork, minimal placement, designed to last.",              icon: Sparkles,
            },
            {
              id: "3",              value: "14",              title: "Day Returns",              description: "Clear policies, fast support, no friction.",              icon: RotateCcw,
            },
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          uniformGridCustomHeightClasses="min-h-80"
        />
      </div>

      <div id="featured-products" data-section="featured-products" className="py-20 mx-auto px-4 md:px-6">
        <ProductCardOne
          title="Featured Collection"
          description="Explore our core essentials, crafted for everyday wear."
          tag="Core Essentials"
          tagIcon={Star}
          tagAnimation="slide-up"
          products={[
            {
              id: "hoodie-grey",              name: "Heavyweight Hoodie — Heather Grey",              price: "€149",              imageSrc: "http://img.b2bpic.net/free-photo/man-carrying-laptop-lake_23-2148573104.jpg?_wi=1",              imageAlt: "ARCT Heavyweight Hoodie in Heather Grey"},
            {
              id: "hoodie-navy",              name: "Heavyweight Hoodie — Deep Navy",              price: "€149",              imageSrc: "http://img.b2bpic.net/free-photo/man-isolated-showing-emotions-end-gestures_1303-30107.jpg?_wi=1",              imageAlt: "ARCT Heavyweight Hoodie in Deep Navy"},
            {
              id: "sweatpants-grey",              name: "Heavyweight Sweatpants — Heather Grey",              price: "€129",              imageSrc: "http://img.b2bpic.net/free-photo/full-view-male-man-street-look-camera_197531-33432.jpg?_wi=1",              imageAlt: "ARCT Heavyweight Sweatpants in Heather Grey"},
            {
              id: "sweatpants-navy",              name: "Heavyweight Sweatpants — Deep Navy",              price: "€129",              imageSrc: "http://img.b2bpic.net/free-photo/man-casual-outfits-going-up-stairs_114579-11469.jpg?_wi=1",              imageAlt: "ARCT Heavyweight Sweatpants in Deep Navy"},
          ]}
          gridVariant="four-items-2x2-equal-grid"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="about-arct" data-section="about-arct" className="py-20 mx-auto px-4 md:px-6">
        <InlineImageSplitTextAbout
          heading={[
            { type: "text", content: "Built for" },
            { type: "image", src: "http://img.b2bpic.net/free-photo/shallow-focus-two-black-men-standing-against-red-wall_181624-56204.jpg", alt: "ARCT brand aesthetic" },
            { type: "text", content: "calm confidence." },
          ]}
          useInvertedBackground={false}
          buttons={[
            { text: "Read Our Story", href: "/about" },
          ]}
          buttonAnimation="blur-reveal"
        />
      </div>

      <div id="email-capture" data-section="email-capture" className="py-16 max-w-2xl mx-auto text-center px-4 md:px-6">
        <ContactCenter
          tag="Early Access"
          title="Get First Access to New Drops"
          description="Subscribe for early releases, limited runs, and restock updates. No hype. No spam."
          tagIcon={Mail}
          background={{ variant: "plain" }}
          useInvertedBackground={false}
          inputPlaceholder="your@email.com"
          buttonText="Join ARCT"
          termsText="We respect your inbox. Unsubscribe anytime."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBase
          logoText="ARCT Amsterdam"
          copyrightText="© 2025 ARCT Amsterdam. All rights reserved."
          columns={footerColumns}
        />
      </div>
    </ThemeProvider>
  );
}
