"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FeatureCardMedia from '@/components/sections/feature/FeatureCardMedia';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import Link from "next/link";

export default function ContactPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="elastic-effect"
      defaultTextAnimation="entrance-slide"
      borderRadius="rounded"
      contentWidth="medium"
      sizing="medium"
      background="noise"
      cardStyle="gradient-mesh"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="Brew Haven"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Menu", id: "/menu" },
            { name: "About", id: "/about" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{
            text: "Order Now",
            href: "/menu"
          }}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCenter
          tag="Stay Connected"
          title="Join Our Coffee Community"
          description="Subscribe to receive exclusive brew recommendations, seasonal specials, and invitations to our tasting events."
          background={{ variant: "rotated-rays-animated" }}
          useInvertedBackground={false}
          inputPlaceholder="Enter your email address"
          buttonText="Subscribe"
          termsText="We respect your privacy. Unsubscribe anytime with one click."
        />
      </div>

      <div id="location-info" data-section="location-info">
        <FeatureCardMedia
          title="Visit Our Cafe"
          description="Find us in the heart of downtown, where every detail has been designed to create the perfect coffee experience."
          features={[
            {
              id: "1",
              title: "Main Location",
              description: "123 Coffee Street, Downtown District. Open daily from 6:30 AM to 8:00 PM. Free WiFi, comfortable seating, and a welcoming atmosphere for work or relaxation.",
              tag: "Location",
              imageSrc: "https://img.b2bpic.net/free-photo/empty-wood-chair-restaurant_1339-5949.jpg",
              imageAlt: "Cozy cafe interior with wooden furniture"
            },
            {
              id: "2",
              title: "Private Events",
              description: "Host your next meeting, celebration, or coffee cupping session in our private event space. We can accommodate groups of 10-50 people.",
              tag: "Events",
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-hands-barista-make-latte-coffee-art-paint_1150-12161.jpg",
              imageAlt: "Barista preparing coffee for events"
            },
            {
              id: "3",
              title: "Coffee Education",
              description: "Join our monthly coffee workshops to learn about brewing techniques, bean origins, and tasting notes. Perfect for coffee enthusiasts of all levels.",
              tag: "Learning",
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-roasted-brown-coffee-beans_23-2148254977.jpg",
              imageAlt: "Coffee beans for educational tasting"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="contact-methods" data-section="contact-methods">
        <FeatureCardMedia
          title="Get In Touch"
          description="We'd love to hear from you. Reach out through any of these convenient channels."
          features={[
            {
              id: "1",
              title: "Phone & Email",
              description: "Call us at (555) 123-BREW or email hello@brewhaven.com for questions, catering inquiries, or feedback.",
              tag: "Direct",
              imageSrc: "https://img.b2bpic.net/free-photo/male-barista-coffee-shop-holding-cup-by-counter_1303-29321.jpg",
              imageAlt: "Friendly barista ready to help"
            },
            {
              id: "2",
              title: "Social Media",
              description: "Follow @brewhaven on Instagram and Facebook for daily coffee inspiration, behind-the-scenes content, and community highlights.",
              tag: "Social",
              imageSrc: "https://img.b2bpic.net/free-photo/white-ceramic-mug-with-coffee_209848-35.jpg",
              imageAlt: "Beautiful coffee perfect for social media"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <FooterBaseReveal
        columns={[
          {
            title: "Company",
            items: [
              { label: "About Us", href: "/about" },
              { label: "Our Mission", href: "/about" },
              { label: "Careers", href: "#" }
            ]
          },
          {
            title: "Menu",
            items: [
              { label: "Coffee", href: "/menu" },
              { label: "Tea & Alternatives", href: "/menu" },
              { label: "Pastries", href: "/menu" }
            ]
          },
          {
            title: "Connect",
            items: [
              { label: "Contact Us", href: "/contact" },
              { label: "Instagram", href: "https://instagram.com" },
              { label: "Privacy Policy", href: "#" }
            ]
          }
        ]}
        copyrightText="© 2025 Brew Haven | Crafted with care"
      />
    </ThemeProvider>
  );
}