"use client";

import Link from "next/link";
import NavbarStyleMinimal from '@/components/navbar/NavbarStyleMinimal';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';
import { ThemeProvider } from '@/providers/themeProvider/ThemeProvider';

export default function ContactPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="medium"
      sizing="medium"
      background="aurora"
      cardStyle="glass-elevated"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="glass"
      showBlurBottom={false}
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleMinimal
          brandName="Bloom & Petals"
          button={{
            text: "Shop Now",            href: "/products"
          }}
        />
        <div style={{ position: 'absolute', top: '20px', right: '200px', zIndex: 1000 }}>
          <Link href="/" style={{ marginRight: '15px', color: 'var(--foreground)' }}>Home</Link>
          <Link href="/about" style={{ marginRight: '15px', color: 'var(--foreground)' }}>About</Link>
          <Link href="/products" style={{ marginRight: '15px', color: 'var(--foreground)' }}>Products</Link>
          <Link href="/contact" style={{ color: 'var(--foreground)' }}>Contact</Link>
        </div>
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Newsletter"
          title="Stay Updated with Fresh Collections"
          description="Subscribe to our newsletter for exclusive floral designs, seasonal offers, and arrangement inspiration delivered to your inbox."
          useInvertedBackground="noInvert"
          imageSrc="https://img.b2bpic.net/free-photo/woman-with-bouquet-white-tulips-uses-smartphone-closeup_169016-50692.jpg"
          imageAlt="Beautiful flower arrangement"
          mediaPosition="right"
          inputPlaceholder="Enter your email"
          buttonText="Subscribe"
          termsText="We respect your privacy. Unsubscribe anytime."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoEmphasis
          logoText="Bloom & Petals"
          columns={[
            {
              items: [
                { label: "Shop", href: "/products" },
                { label: "Arrangements", href: "#" },
                { label: "Custom Orders", href: "#" },
                { label: "Subscriptions", href: "#" }
              ]
            },
            {
              items: [
                { label: "About Us", href: "/about" },
                { label: "Our Team", href: "#" },
                { label: "Story", href: "#" },
                { label: "Blog", href: "#" }
              ]
            },
            {
              items: [
                { label: "Contact", href: "/contact" },
                { label: "Support", href: "#" },
                { label: "Delivery Info", href: "#" },
                { label: "FAQ", href: "#" }
              ]
            },
            {
              items: [
                { label: "Privacy", href: "#" },
                { label: "Terms", href: "#" },
                { label: "Sitemap", href: "#" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}