"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from "@/components/navbar/NavbarLayoutFloatingInline";
import ContactCenter from "@/components/sections/contact/ContactCenter";
import MetricCardOne from "@/components/sections/metrics/MetricCardOne";
import InlineImageSplitTextAbout from "@/components/sections/about/InlineImageSplitTextAbout";
import FooterBase from "@/components/sections/footer/FooterBase";
import Link from "next/link";
import { Mail, MessageCircle, Phone } from "lucide-react";

export default function ContactPage() {
  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="contact-intro" data-section="contact-intro" className="py-20 mx-auto px-4 md:px-6">
        <InlineImageSplitTextAbout
          heading={[
            { type: "text", content: "We're here to help." },
          ]}
          useInvertedBackground={false}
          buttons={[
            { text: "Back to Shop", href: "/shop" },
          ]}
          buttonAnimation="blur-reveal"
        />
      </div>

      <div id="contact-channels" data-section="contact-channels" className="py-20 mx-auto px-4 md:px-6">
        <MetricCardOne
          title="Get in Touch"
          description="Multiple ways to reach our support team."
          metrics={[
            {
              id: "1",              value: "24",              title: "Hour Response",              description: "Email us and we'll respond within one business day.",              icon: Mail,
            },
            {
              id: "2",              value: "Live",              title: "Support",              description: "Chat with our team during business hours (Mon–Fri, 9am–5pm CET).",              icon: MessageCircle,
            },
            {
              id: "3",              value: "Direct",              title: "Line",              description: "Call us for urgent inquiries. Phone support available during business hours.",              icon: Phone,
            },
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          uniformGridCustomHeightClasses="min-h-80"
        />
      </div>

      <div id="contact-form" data-section="contact-form" className="py-16 max-w-2xl mx-auto text-center px-4 md:px-6">
        <ContactCenter
          tag="Newsletter"
          title="Stay updated with ARCT."
          description="Subscribe to our mailing list for product launches, restocks, and exclusive updates."
          tagIcon={Mail}
          background={{ variant: "plain" }}
          useInvertedBackground={false}
          inputPlaceholder="your@email.com"
          buttonText="Subscribe"
          termsText="We respect your inbox. Unsubscribe at any time."
        />
      </div>

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