"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import ContactText from '@/components/sections/contact/ContactText';
import FaqBase from '@/components/sections/faq/FaqBase';
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
import FooterBase from '@/components/sections/footer/FooterBase';
import Link from "next/link";
import { Star, HelpCircle } from "lucide-react";

const navItems = [
  { name: "Home", id: "/" },
  { name: "Eras", id: "/eras" },
  { name: "Poets", id: "/poets" },
  { name: "Poems", id: "/poems" },
  { name: "Resources", id: "/contact" },
];

const contactFaqs = [
  {
    id: "1",
    title: "How can I contribute to the platform?",
    content: "We welcome contributions from scholars, poets, and enthusiasts. Please reach out through our contact form to discuss potential collaborations, translations, scholarly articles, or other contributions to the platform. We're particularly interested in original research, rare manuscript digitization, and expert annotations.",
  },
  {
    id: "2",
    title: "Is there a subscription model?",
    content: "Currently, our platform is free to access for all content. We believe Arabic poetry heritage should be accessible to everyone. We offer optional subscriptions for premium features like advanced search, downloadable texts, and exclusive scholarly content from our contributors.",
  },
  {
    id: "3",
    title: "How can I use these poems in my publication?",
    content: "Our content is available under Creative Commons licensing for non-commercial use. For commercial publications or adaptations, please contact us for permission. All reproductions should include proper attribution and link back to our platform.",
  },
  {
    id: "4",
    title: "Are there educational licensing options?",
    content: "Yes! Educational institutions can request special licensing for classroom use, research collections, and educational materials. Contact our education team to discuss institutional access, bulk downloads, and custom collections for your courses.",
  },
  {
    id: "5",
    title: "How do I suggest new poets or poems?",
    content: "We value suggestions from our community. You can submit poet or poem recommendations through our contact form. Please include detailed information about the poet/poem, why it should be included, and if possible, links to scholarly sources or published editions.",
  },
  {
    id: "6",
    title: "What's the best way to contact you?",
    content: "You can reach us through the contact form on this page, via email at info@arabicpoetry.com, or through social media. We aim to respond to all inquiries within 48 hours. For urgent matters, please note 'URGENT' in your subject line.",
  },
];

const contactTestimonials = [
  {
    id: "1",
    name: "Dr. Muhammad Al-Qadi",
    handle: "Professor of Arabic Literature",
    testimonial: "The team behind this platform is incredibly responsive and passionate about making Arabic poetry accessible. Excellent support for academic partnerships.",
    imageSrc: "http://img.b2bpic.net/free-photo/man-teacher-wearing-glasses-checking-class-register-looking-camera-happy-pleased-smiling-cheerfully-sitting-school-desk-front-blackboard-classroom_141793-131614.jpg?_wi=4",
    imageAlt: "Dr. Muhammad Al-Qadi",
  },
  {
    id: "2",
    name: "Aisha Al-Rashid",
    handle: "University Librarian",
    testimonial: "Our institution has partnered with them for educational access. The collaboration has been seamless and their commitment to scholars is evident.",
    imageSrc: "http://img.b2bpic.net/free-photo/ancient-books-library-table_23-2147711433.jpg?_wi=4",
    imageAlt: "Aisha Al-Rashid",
  },
  {
    id: "3",
    name: "Hassan Abu Bakr",
    handle: "Cultural Heritage Director",
    testimonial: "Working with them on content preservation initiatives has been a privilege. They genuinely care about cultural heritage and it shows in every aspect.",
    imageSrc: "http://img.b2bpic.net/free-photo/travelling-iran_8327-271.jpg?_wi=4",
    imageAlt: "Hassan Abu Bakr",
  },
  {
    id: "4",
    name: "Dr. Layla Mansour",
    handle: "Poetry Critic & Author",
    testimonial: "Their vision for making classical Arabic poetry accessible to modern audiences is inspiring. I'm proud to contribute my work to this mission.",
    imageSrc: "http://img.b2bpic.net/free-photo/pirate-artifacts-arrangement-still-life_23-2150426415.jpg?_wi=11",
    imageAlt: "Dr. Layla Mansour",
  },
  {
    id: "5",
    name: "Omar Al-Aziz",
    handle: "Literary Researcher",
    testimonial: "They've created something truly special here. Their openness to collaboration and community input makes this a platform built by and for poetry enthusiasts.",
    imageSrc: "http://img.b2bpic.net/free-photo/view-ancient-paper-scroll-writing-documenting_23-2151751756.jpg?_wi=6",
    imageAlt: "Omar Al-Aziz",
  },
  {
    id: "6",
    name: "Dr. Noor Al-Hayyan",
    handle: "Islamic Studies Professor",
    testimonial: "The educational support and resources they provide have enhanced my teaching significantly. Highly impressed by their dedication to excellence.",
    imageSrc: "http://img.b2bpic.net/free-photo/medieval-historical-rendering-turkish-man_23-2151060340.jpg?_wi=5",
    imageAlt: "Dr. Noor Al-Hayyan",
  },
];

const footerColumns = [
  {
    title: "Explore",
    items: [
      { label: "Home", href: "/" },
      { label: "Historical Eras", href: "/eras" },
      { label: "Greatest Poets", href: "/poets" },
      { label: "Masterpiece Poems", href: "/poems" },
    ],
  },
  {
    title: "Resources",
    items: [
      { label: "Poetry Insights", href: "/contact" },
      { label: "FAQ", href: "/contact" },
      { label: "Scholarly Articles", href: "#" },
      { label: "Research Tools", href: "#" },
    ],
  },
  {
    title: "Connect",
    items: [
      { label: "About Us", href: "/about" },
      { label: "Contact", href: "/contact" },
      { label: "Subscribe", href: "#" },
      { label: "Privacy Policy", href: "#" },
    ],
  },
];

export default function ContactPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="expand-hover"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="medium"
      sizing="largeSmallSizeLargeTitles"
      background="noise"
      cardStyle="gradient-bordered"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="Arabic Poetry"
          navItems={navItems.map(item => ({
            name: item.name,
            id: item.id.startsWith('/') ? item.id : `#${item.id}`,
          }))}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText
          text="Join our community of poets, scholars, and enthusiasts dedicated to preserving and celebrating Arabic literary heritage. Share your insights, contribute research, or simply deepen your appreciation for this timeless art form."
          animationType="reveal-blur"
          background={{ variant: "sparkles-gradient" }}
          useInvertedBackground={true}
          buttons={[
            { text: "Get In Touch", href: "#" },
            { text: "Subscribe to Updates", href: "#" },
          ]}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqBase
          title="Contact & Collaboration FAQ"
          description="Find answers to questions about partnerships, contributions, and how to engage with our platform."
          tag="Help & Support"
          tagIcon={HelpCircle}
          textboxLayout="default"
          useInvertedBackground={false}
          faqsAnimation="slide-up"
          faqs={contactFaqs}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardSix
          title="Voices of Our Partners"
          description="Hear from collaborators, contributors, and institutional partners about their experience working with us."
          tag="Community Voices"
          tagIcon={Star}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={true}
          testimonials={contactTestimonials}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBase
          logoText="Arabic Poetry"
          copyrightText="© 2025 Arabic Poetry Heritage. Preserving literary traditions since antiquity."
          columns={footerColumns}
        />
      </div>
    </ThemeProvider>
  );
}