"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from "@/components/navbar/NavbarStyleApple/NavbarStyleApple";
import ContactText from "@/components/sections/contact/ContactText";
import FooterSimple from "@/components/sections/footer/FooterSimple";
import Link from "next/link";

export default function ContactPage() {
  const navItems = [
    { name: "Beranda", id: "home" },
    { name: "Tentang Kami", id: "about" },
    { name: "Program", id: "programs" },
    { name: "Donasi", id: "donation" },
    { name: "Kontak", id: "contact" },
  ];

  const footerColumns = [
    {
      title: "Tentang",
      items: [
        { label: "Tentang Masjid", href: "/about" },
        { label: "Program & Kegiatan", href: "/programs" },
        { label: "Struktur Pengurus", href: "/about" },
      ],
    },
    {
      title: "Layanan",
      items: [
        { label: "Jadwal Sholat", href: "#" },
        { label: "Donasi", href: "/donation" },
        { label: "Galeri Kegiatan", href: "#gallery" },
      ],
    },
    {
      title: "Hubungi",
      items: [
        { label: "WhatsApp", href: "https://wa.me/628123456789" },
        { label: "Telepon", href: "tel:+628123456789" },
        { label: "Email", href: "mailto:info@masjidwisatanr.com" },
      ],
    },
    {
      title: "Komunitas",
      items: [
        { label: "Jadilah Relawan", href: "/contact" },
        { label: "Testimonial", href: "#testimonials" },
        { label: "FAQ", href: "#faq" },
      ],
    },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="mediumLarge"
      sizing="large"
      background="floatingGradient"
      cardStyle="glass-depth"
      primaryButtonStyle="double-inset"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple brandName="Masjid Wisata NR" navItems={navItems} />
      </div>

      <div id="contact" data-section="contact">
        <ContactText
          text="Hubungi Kami - Kami siap melayani pertanyaan, menerima donasi, dan mendengarkan masukan Anda. Silakan hubungi melalui WhatsApp, telepon, atau kunjungi langsung masjid kami."
          animationType="entrance-slide"
          buttons={[
            {
              text: "Chat WhatsApp",
              href: "https://wa.me/628123456789",
            },
            {
              text: "Telepon Kami",
              href: "tel:+628123456789",
            },
            {
              text: "Kembali ke Beranda",
              href: "/",
            },
          ]}
          background={{
            variant: "radial-gradient",
          }}
          useInvertedBackground={true}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterSimple
          columns={footerColumns}
          bottomLeftText="© 2024 Masjid Wisata NR. Semua hak dilindungi."
          bottomRightText="Kelola oleh Pengurus dengan Amanah dan Transparansi"
        />
      </div>
    </ThemeProvider>
  );
}