"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from "@/components/navbar/NavbarStyleApple/NavbarStyleApple";
import FeatureBento from "@/components/sections/feature/FeatureBento";
import BlogCardThree from "@/components/sections/blog/BlogCardThree";
import FooterBase from "@/components/sections/footer/FooterBase";
import Link from "next/link";
import { BookOpen, Feather, Sparkles, Crown, Zap, Compass, BookMarked, Clock } from "lucide-react";

export default function ErasPage() {
  const navItems = [
    { name: "Home", id: "/" },
    { name: "Eras", id: "/eras" },
    { name: "Poets", id: "/poets" },
    { name: "Poems", id: "/poems" },
    { name: "Resources", id: "/contact" },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="expand-hover"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="medium"
      sizing="largeSmallSizeLargeTitles"
      background="circleGradient"
      cardStyle="gradient-bordered"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="light"
    >
      {/* Navbar */}
      <div id="nav" data-section="nav" className="sticky top-0 z-50">
        <NavbarStyleApple
          brandName="Arabic Poetry"
          navItems={navItems}
        />
      </div>

      {/* Era Details Section */}
      <div id="era-details" data-section="era-details">
        <FeatureBento
          title="Historical Eras of Arabic Poetry"
          description="Each era brought distinctive innovations, themes, and voices to Arabic literature. From tribal oral traditions to refined court poetry, explore the evolution of classical Arabic verse through time."
          tag="Historical Periods"
          tagIcon={Clock}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          features={[
            {
              title: "Pre-Islamic Era (Jahiliyyah) - 6th Century BCE",              description: "The age of tribal poets and oral tradition, celebrating courage, honor, and desert life. Mu'allaqat (hanging poems) represent the pinnacle of this era.",              bentoComponent: "reveal-icon",              icon: Feather,
            },
            {
              title: "Quranic and Early Islamic - 7th-8th Century",              description: "Poetry transformed by Islamic values, emphasizing spiritual themes and divine guidance. New poetic forms emerged alongside religious devotion.",              bentoComponent: "reveal-icon",              icon: Sparkles,
            },
            {
              title: "Umayyad Period - 661-750 CE",              description: "Court poetry flourished with sophisticated rhetoric and refined love themes. Poets served rulers and developed elaborate courtly traditions.",              bentoComponent: "reveal-icon",              icon: Crown,
            },
            {
              title: "Abbasid Golden Age - 750-1258 CE",              description: "The peak of Arabic poetry with unprecedented innovation, intellectual freedom, and cultural synthesis. Poets like Al-Mutanabbi achieved immortal fame.",              bentoComponent: "reveal-icon",              icon: Zap,
            },
            {
              title: "Andalusian Period - 711-1492 CE",              description: "Islamic Spain's unique poetic tradition blending Arabic, Berber, and European influences. Strophic poetry and new forms flourished.",              bentoComponent: "reveal-icon",              icon: Compass,
            },
            {
              title: "Mamluk and Ottoman Eras - 13th-19th Centuries",              description: "Poetry during the Mamluk Sultanate and Ottoman Empire, maintaining classical traditions while introducing new forms influenced by Persian and Turkish poetry.",              bentoComponent: "reveal-icon",              icon: BookMarked,
            },
          ]}
        />
      </div>

      {/* Era-Specific Articles */}
      <div id="era-resources" data-section="era-resources">
        <BlogCardThree
          title="Deep Dives into Each Era"
          description="Explore scholarly articles on the characteristics, major poets, and literary innovations that defined each historical period."
          tag="Educational Resources"
          tagIcon={BookMarked}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          blogs={[
            {
              id: "1",              category: "Pre-Islamic Studies",              title: "The Mu'allaqat: Hanging Poems of Arabia's Golden Age",              excerpt: "Discover the seven celebrated pre-Islamic poems that represent the apex of desert poetry and oral tradition.",              imageSrc: "http://img.b2bpic.net/free-photo/pirate-artifacts-arrangement-still-life_23-2150426415.jpg?_wi=6",              imageAlt: "Ancient Arabic manuscripts",              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: "2",              category: "Abbasid Era",              title: "The Abbasid Revolution: Poetry at the Peak of Islamic Civilization",              excerpt: "Learn how Baghdad became the intellectual heart of the Arab world and how poets thrived under patronage.",              imageSrc: "http://img.b2bpic.net/free-photo/view-ancient-paper-scroll-writing-documenting_23-2151751744.jpg?_wi=2",              imageAlt: "Abbasid manuscripts",              authorName: "Prof. Layla Hassan",              authorAvatar: "http://img.b2bpic.net/free-photo/ancient-books-library-table_23-2147711433.jpg",              date: "Jan 9, 2025"},
            {
              id: "3",              category: "Andalusian Studies",              title: "The Zajal Revolution: Colloquial Poetry in Islamic Spain",              excerpt: "Explore how Andalusian poets pioneered new poetic forms that blended courtly traditions with everyday language.",              imageSrc: "http://img.b2bpic.net/free-photo/courtyard-myrtles-alhambra_1139-25.jpg?_wi=3",              imageAlt: "Alhambra architectural details",              authorName: "Dr. Fatima Al-Cordobi",              authorAvatar: "http://img.b2bpic.net/free-photo/travelling-iran_8327-271.jpg",              date: "Jan 6, 2025"},
          ]}
        />
      </div>

      {/* Footer */}
      <div id="footer" data-section="footer">
        <FooterBase
          logoText="Arabic Poetry"
          copyrightText="© 2025 Arabic Poetry Heritage. Preserving literary traditions since antiquity."
          columns={[
            {
              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: "#blog" },
                { 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: "#" },
              ],
            },
          ]}
        />
      </div>
    </ThemeProvider>
  );
}