"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FaqDouble from '@/components/sections/faq/FaqDouble';
import FooterBase from '@/components/sections/footer/FooterBase';

export default function ContactPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="mediumSmall"
      sizing="largeSmall"
      background="floatingGradient"
      cardStyle="soft-shadow"
      primaryButtonStyle="inset-glow"
      secondaryButtonStyle="glass"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="MugCraft"
          navItems={[
            { name: "Shop", id: "/" },
            { name: "About", id: "/about" },
            { name: "Features", id: "/" },
            { name: "Contact", id: "/contact" }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Newsletter"
          title="Stay Connected"
          description="Subscribe to our newsletter for exclusive offers, new product launches, and design inspiration delivered to your inbox."
          useInvertedBackground="noInvert"
          imageSrc="https://img.b2bpic.net/free-photo/three-cups-coffee-wooden-board_114579-52730.jpg"
          imageAlt="Premium mug collection"
          mediaPosition="right"
          inputPlaceholder="your@email.com"
          buttonText="Subscribe"
          termsText="We respect your privacy. Unsubscribe anytime."
        />
      </div>

      <div id="support-faq" data-section="support-faq">
        <FaqDouble
          title="Support & Help"
          description="Get help with orders, shipping, returns, and product care instructions."
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          faqs={[
            {
              id: "1",
              title: "How do I track my order?",
              content: "Once your order ships, you'll receive a tracking number via email. You can use this to track your package on our website or the carrier's site."
            },
            {
              id: "2",
              title: "Can I customize my mug?",
              content: "Yes! We offer personalization services for bulk orders of 20+ mugs. Visit our custom shop or contact us to discuss your specific design needs."
            },
            {
              id: "3",
              title: "Are your mugs microwave safe?",
              content: "Yes, our mugs are microwave safe. However, we recommend allowing the mug to cool slightly before drinking, especially with very hot beverages."
            },
            {
              id: "4",
              title: "What if my mug arrives damaged?",
              content: "We package our mugs carefully, but if yours arrives damaged, please contact us immediately with photos. We'll send a replacement or full refund."
            }
          ]}
        />
      </div>

      <FooterBase
        logoText="MugCraft"
        copyrightText="© 2025 MugCraft. All rights reserved."
        columns={[
          {
            title: "Shop",
            items: [
              { label: "All Products", href: "/" },
              { label: "New Arrivals", href: "/" },
              { label: "Best Sellers", href: "/" },
              { label: "Custom Orders", href: "/contact" }
            ]
          },
          {
            title: "Company",
            items: [
              { label: "About Us", href: "/about" },
              { label: "Our Story", href: "/about" },
              { label: "Sustainability", href: "/about" },
              { label: "Careers", href: "#" }
            ]
          },
          {
            title: "Support",
            items: [
              { label: "FAQ", href: "/contact" },
              { label: "Contact Us", href: "/contact" },
              { label: "Shipping Info", href: "#" },
              { label: "Returns", href: "#" }
            ]
          }
        ]}
      />
    </ThemeProvider>
  );
}