"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import MetricCardOne from '@/components/sections/metrics/MetricCardOne';
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
import FooterBase from '@/components/sections/footer/FooterBase';
import Link from "next/link";
import { BookOpen, TrendingUp, Users, Award, 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 poems = [
  {
    id: "1",
    name: "Mu'allaqat (The Hanging Poems)",
    price: "Pre-Islamic Classic",
    variant: "Seven Odes of Genius",
    imageSrc: "http://img.b2bpic.net/free-photo/pirate-artifacts-arrangement-still-life_23-2150426415.jpg?_wi=7",
    imageAlt: "Mu'allaqat manuscripts",
  },
  {
    id: "2",
    name: "The Poetry of Hassan ibn Thabit",
    price: "Islamic Era",
    variant: "Elegies and Praises",
    imageSrc: "http://img.b2bpic.net/free-photo/view-ancient-paper-scroll-writing-documenting_23-2151751756.jpg?_wi=4",
    imageAlt: "Hassan ibn Thabit's verses",
  },
  {
    id: "3",
    name: "Diwan of Al-Mutanabbi",
    price: "Abbasid Treasury",
    variant: "Panegyrics and Elegies",
    imageSrc: "http://img.b2bpic.net/free-photo/pirate-artifacts-arrangement-still-life_23-2150426415.jpg?_wi=8",
    imageAlt: "Al-Mutanabbi's collection",
  },
  {
    id: "4",
    name: "The Wine Poetry of Abu Nuwas",
    price: "Abbasid Innovation",
    variant: "Bacchic and Amorous Verses",
    imageSrc: "http://img.b2bpic.net/free-photo/pirate-artifacts-arrangement-still-life_23-2150426415.jpg?_wi=9",
    imageAlt: "Abu Nuwas manuscripts",
  },
  {
    id: "5",
    name: "Poems of Andalusian Masters",
    price: "Golden Spain",
    variant: "Love and Homesickness",
    imageSrc: "http://img.b2bpic.net/free-photo/courtyard-myrtles-alhambra_1139-25.jpg?_wi=2",
    imageAlt: "Andalusian poetry collections",
  },
  {
    id: "6",
    name: "Ottoman Court Poetry",
    price: "Late Classical",
    variant: "Imperial and Mystical",
    imageSrc: "http://img.b2bpic.net/free-photo/drawings-roof-church_1122-1166.jpg?_wi=2",
    imageAlt: "Ottoman court verses",
  },
];

const poemMetrics = [
  {
    id: "1",
    value: "7",
    title: "Masterpieces",
    description: "Mu'allaqat Hanging Poems",
    icon: Award,
  },
  {
    id: "2",
    value: "1400",
    title: "Years",
    description: "of Documented Poetry",
    icon: TrendingUp,
  },
  {
    id: "3",
    value: "400",
    title: "Poets",
    description: "in Classical Records",
    icon: Users,
  },
  {
    id: "4",
    value: "∞",
    title: "Legacy",
    description: "Timeless Influence",
    icon: BookOpen,
  },
];

const poemTestimonials = [
  {
    id: "1",
    name: "Dr. Muhammad Al-Qadi",
    handle: "Professor of Arabic Literature",
    testimonial: "The curated selection of masterpiece poems here truly represents the finest achievements in Arabic literature. A treasure for scholars and enthusiasts.",
    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=3",
    imageAlt: "Dr. Muhammad Al-Qadi",
  },
  {
    id: "2",
    name: "Aisha Al-Rashid",
    handle: "University Librarian",
    testimonial: "Having these canonical texts organized and accessible in one place is invaluable. Students find exactly what they need for their research.",
    imageSrc: "http://img.b2bpic.net/free-photo/ancient-books-library-table_23-2147711433.jpg?_wi=3",
    imageAlt: "Aisha Al-Rashid",
  },
  {
    id: "3",
    name: "Hassan Abu Bakr",
    handle: "Cultural Heritage Director",
    testimonial: "This collection preserves not just the words, but the cultural significance and historical context of each masterpiece. Truly outstanding.",
    imageSrc: "http://img.b2bpic.net/free-photo/travelling-iran_8327-271.jpg?_wi=3",
    imageAlt: "Hassan Abu Bakr",
  },
  {
    id: "4",
    name: "Dr. Layla Mansour",
    handle: "Poetry Critic & Author",
    testimonial: "The quality of texts and translations here is exceptional. These are the poems every serious student of Arabic literature must encounter.",
    imageSrc: "http://img.b2bpic.net/free-photo/pirate-artifacts-arrangement-still-life_23-2150426415.jpg?_wi=10",
    imageAlt: "Dr. Layla Mansour",
  },
  {
    id: "5",
    name: "Omar Al-Aziz",
    handle: "Literary Researcher",
    testimonial: "These masterpiece collections represent the pinnacle of human artistic expression. Essential for anyone seeking to understand poetry itself.",
    imageSrc: "http://img.b2bpic.net/free-photo/view-ancient-paper-scroll-writing-documenting_23-2151751756.jpg?_wi=5",
    imageAlt: "Omar Al-Aziz",
  },
  {
    id: "6",
    name: "Dr. Noor Al-Hayyan",
    handle: "Islamic Studies Professor",
    testimonial: "The scholarly apparatus surrounding these texts enables deeper understanding. My students consistently cite how helpful these resources are.",
    imageSrc: "http://img.b2bpic.net/free-photo/medieval-historical-rendering-turkish-man_23-2151060340.jpg?_wi=4",
    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 PoemsPage() {
  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="poems" data-section="poems">
        <ProductCardFour
          title="Masterpiece Poems & Verses"
          description="Explore selections from the greatest poems in Arabic literature, each representing the pinnacle of expression and artistic mastery from their respective eras."
          tag="Poetic Collections"
          tagIcon={BookOpen}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          gridVariant="three-columns-all-equal-width"
          products={poems}
        />
      </div>

      <div id="timeline" data-section="timeline">
        <MetricCardOne
          title="The Significance of Masterpiece Poetry"
          description="Key metrics demonstrating the enduring value and historical importance of Arabic literature's greatest works."
          tag="Poetry Impact"
          tagIcon={TrendingUp}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={true}
          gridVariant="uniform-all-items-equal"
          metrics={poemMetrics}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardSix
          title="Academic Recognition"
          description="Scholars and educators affirm the importance of these masterpiece poems in understanding Arabic literary heritage."
          tag="Expert Voices"
          tagIcon={Star}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={true}
          testimonials={poemTestimonials}
        />
      </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>
  );
}