"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import TeamCardOne from '@/components/sections/team/TeamCardOne';
import BlogCardThree from '@/components/sections/blog/BlogCardThree';
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
import FooterBase from '@/components/sections/footer/FooterBase';
import Link from "next/link";
import { Award, BookMarked as BookMark, Star } 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 poetMembers = [
  {
    id: "1",
    name: "Imru' al-Qais",
    role: "Pre-Islamic Era",
    imageSrc: "http://img.b2bpic.net/free-photo/medieval-historical-rendering-turkish-man_23-2151060340.jpg",
    imageAlt: "Imru' al-Qais, King of Poets",
  },
  {
    id: "2",
    name: "Al-Mutanabbi",
    role: "Abbasid Era",
    imageSrc: "http://img.b2bpic.net/free-photo/woman-religious-pilgrimage-church_23-2150582318.jpg",
    imageAlt: "Al-Mutanabbi, Master of Verse",
  },
  {
    id: "3",
    name: "Ibn Arabi",
    role: "Andalusian-Mamluk Era",
    imageSrc: "http://img.b2bpic.net/free-photo/pirate-artifacts-arrangement-still-life_23-2150426415.jpg",
    imageAlt: "Ibn Arabi, Sufi Poet",
  },
  {
    id: "4",
    name: "Hassan ibn Thabit",
    role: "Islamic Era",
    imageSrc: "http://img.b2bpic.net/free-photo/view-ancient-paper-scroll-writing-documenting_23-2151751756.jpg",
    imageAlt: "Hassan ibn Thabit, Poet of the Prophet",
  },
  {
    id: "5",
    name: "Abu Nuwas",
    role: "Abbasid Era",
    imageSrc: "http://img.b2bpic.net/free-photo/pirate-artifacts-arrangement-still-life_23-2150426415.jpg",
    imageAlt: "Abu Nuwas, Innovative Poet",
  },
  {
    id: "6",
    name: "Ibn Quzman",
    role: "Andalusian Era",
    imageSrc: "http://img.b2bpic.net/free-photo/gothic-vaults-with-bas-reliefs-stone-church-decor-historic-cathedral-art_169016-68761.jpg",
    imageAlt: "Ibn Quzman, Zajal Pioneer",
  },
];

const poetBlogs = [
  {
    id: "1",
    category: "Poet Biography",
    title: "Al-Mutanabbi: The Self-Proclaimed Prophet of Poetry",
    excerpt: "Discover the life, works, and controversial reputation of one of Arabic literature's most celebrated poets.",
    imageSrc: "http://img.b2bpic.net/free-photo/pirate-artifacts-arrangement-still-life_23-2150426415.jpg",
    imageAlt: "Al-Mutanabbi's era",
    authorName: "Prof. Layla Hassan",
    authorAvatar: "http://img.b2bpic.net/free-photo/ancient-books-library-table_23-2147711433.jpg",
    date: "Jan 8, 2025",
  },
  {
    id: "2",
    category: "Literary Analysis",
    title: "The King of Poets: Imru' al-Qais and Pre-Islamic Mastery",
    excerpt: "Explore the legendary Imru' al-Qais and his profound influence on the development of Arabic poetic forms.",
    imageSrc: "http://img.b2bpic.net/free-photo/shallow-focus-shot-arabian-male-traveling-horse-desert_181624-45408.jpg",
    imageAlt: "Desert and Bedouin heritage",
    authorName: "Dr. Ahmad Al-Mansuri",
    authorAvatar: "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",
    date: "Jan 12, 2025",
  },
  {
    id: "3",
    category: "Literary Tradition",
    title: "Abu Nuwas: Innovation and Controversy in Abbasid Poetry",
    excerpt: "Learn about Abu Nuwas, the poet who broke classical conventions and pioneered new themes and forms.",
    imageSrc: "http://img.b2bpic.net/free-photo/view-ancient-paper-scroll-writing-documenting_23-2151751744.jpg",
    imageAlt: "Manuscript collection",
    authorName: "Dr. Fatima Al-Cordobi",
    authorAvatar: "http://img.b2bpic.net/free-photo/travelling-iran_8327-271.jpg",
    date: "Jan 3, 2025",
  },
];

const poetTestimonials = [
  {
    id: "1",
    name: "Dr. Muhammad Al-Qadi",
    handle: "Professor of Arabic Literature",
    testimonial: "The poet profiles on this platform showcase the historical complexity and literary genius of Arabic poets across centuries. Essential reading for understanding the tradition.",
    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",
    imageAlt: "Dr. Muhammad Al-Qadi",
  },
  {
    id: "2",
    name: "Aisha Al-Rashid",
    handle: "University Librarian",
    testimonial: "Students consistently use these poet profiles to understand the context and significance of classical Arabic poetry. Invaluable for academic research.",
    imageSrc: "http://img.b2bpic.net/free-photo/ancient-books-library-table_23-2147711433.jpg",
    imageAlt: "Aisha Al-Rashid",
  },
  {
    id: "3",
    name: "Hassan Abu Bakr",
    handle: "Cultural Heritage Director",
    testimonial: "The way these poets are presented honors their individual contributions while contextualizing them within the broader literary heritage. Beautifully done.",
    imageSrc: "http://img.b2bpic.net/free-photo/travelling-iran_8327-271.jpg",
    imageAlt: "Hassan Abu Bakr",
  },
  {
    id: "4",
    name: "Dr. Layla Mansour",
    handle: "Poetry Critic & Author",
    testimonial: "The biographical and analytical depth here is impressive. Each poet's unique voice and contribution is properly recognized and celebrated.",
    imageSrc: "http://img.b2bpic.net/free-photo/pirate-artifacts-arrangement-still-life_23-2150426415.jpg",
    imageAlt: "Dr. Layla Mansour",
  },
  {
    id: "5",
    name: "Omar Al-Aziz",
    handle: "Literary Researcher",
    testimonial: "A comprehensive resource for anyone studying classical Arabic poets. The information is accurate, well-researched, and beautifully presented.",
    imageSrc: "http://img.b2bpic.net/free-photo/view-ancient-paper-scroll-writing-documenting_23-2151751756.jpg",
    imageAlt: "Omar Al-Aziz",
  },
  {
    id: "6",
    name: "Dr. Noor Al-Hayyan",
    handle: "Islamic Studies Professor",
    testimonial: "My students appreciate the biographical context provided for each poet. It helps them understand poetry not just as literature but as personal and cultural expression.",
    imageSrc: "http://img.b2bpic.net/free-photo/medieval-historical-rendering-turkish-man_23-2151060340.jpg",
    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: "/" },
      { 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 PoetsPage() {
  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="poets" data-section="poets">
        <TeamCardOne
          title="The Greatest Arabic Poets"
          description="Meet the legendary voices who shaped the Arabic literary tradition across centuries and left an indelible mark on world literature."
          tag="Master Poets"
          tagIcon={Award}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={true}
          gridVariant="three-columns-all-equal-width"
          members={poetMembers}
        />
      </div>

      <div id="blog" data-section="blog">
        <BlogCardThree
          blogs={poetBlogs}
          title="Poet Biographies & Analysis"
          description="Detailed studies of individual poets, their works, and their lasting influence on Arabic literary tradition."
          tag="Educational Resources"
          tagIcon={BookMark}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardSix
          title="Scholar Recognition"
          description="Leading academics and researchers discuss the importance of these great poets in understanding Arabic literature."
          tag="Expert Voices"
          tagIcon={Star}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={true}
          testimonials={poetTestimonials}
        />
      </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>
  );
}