"use client";

import Link from "next/link";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import FeatureCardTwentyTwo from '@/components/sections/feature/FeatureCardTwentyTwo';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import FaqBase from '@/components/sections/faq/FaqBase';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";

export default function EpisodesPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="directional-hover"
      defaultTextAnimation="entrance-slide"
      borderRadius="sharp"
      contentWidth="medium"
      sizing="largeSmallSizeLargeTitles"
      background="circleGradient"
      cardStyle="glass-depth"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple 
          brandName="Futurama" 
          navItems={[
            { name: "Home", id: "/" },
            { name: "About", id: "/about" },
            { name: "Characters", id: "/characters" },
            { name: "Episodes", id: "/episodes" },
            { name: "Contact", id: "/contact" }
          ]}
        />
      </div>

      <div id="episodes" data-section="episodes">
        <FeatureCardTwentyTwo 
          title="Iconic Episodes"
          description="Explore the most memorable and hilarious episodes from across the series"
          features={[
            {
              id: "1",
              category: ["Comedy", "Romance", "Season 1"],
              title: "Love's Labors Lost in Space",
              imageSrc: "https://img.b2bpic.net/free-vector/city-space-scene_1308-31586.jpg",
              imageAlt: "Love's Labors Lost in Space Episode"
            },
            {
              id: "2",
              category: ["Adventure", "Action", "Season 3"],
              title: "War Is the H-Word",
              imageSrc: "https://img.b2bpic.net/free-vector/aliens-space-scene-background_1308-31992.jpg",
              imageAlt: "War Is the H-Word Episode"
            },
            {
              id: "3",
              category: ["Comedy", "Sci-Fi", "Season 4"],
              title: "Time Keeps on Slippin'",
              imageSrc: "https://img.b2bpic.net/free-photo/futuristic-moon-background_23-2150930868.jpg",
              imageAlt: "Time Keeps on Slippin' Episode"
            },
            {
              id: "4",
              category: ["Drama", "Finale", "Season 5"],
              title: "The Devil's Hands Are Idle Playthings",
              imageSrc: "https://img.b2bpic.net/free-vector/city-space-scene_1308-31586.jpg",
              imageAlt: "The Devil's Hands Are Idle Playthings"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="socialproof" data-section="socialproof">
        <SocialProofOne 
          title="Watch on Your Favorite Platform"
          description="Futurama episodes are available across major streaming services worldwide"
          textboxLayout="default"
          useInvertedBackground={false}
          names={["Hulu", "Adult Swim", "Netflix", "Disney+", "Amazon Prime Video", "Comedy Central", "Fox Entertainment", "Paramount+"]}
          showCard={true}
          speed={40}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqBase 
          title="Episode Information"
          description="Common questions about watching Futurama episodes"
          faqs={[
            {
              id: "1",
              title: "What order should I watch Futurama episodes?",
              content: "While most episodes can be enjoyed standalone, watching from Season 1 is recommended for character development. Key story arcs and relationships build throughout the series."
            },
            {
              id: "2",
              title: "Are there special movies and episodes?",
              content: "Yes! There are 4 feature-length movies: Bender's Big Score, The Beast with a Billion Backs, Bender's Game, and Into the Wild Green Yonder. These bridge the original series and revival."
            },
            {
              id: "3",
              title: "Which episodes are considered the best?",
              content: "Fan favorites include 'The Luck of the Fryrish', 'Jurassic Bark', 'The Devil's Hands Are Idle Playthings', and 'Meanwhile'. These showcase the series' perfect blend of humor and heart."
            }
          ]}
          textboxLayout="default"
          useInvertedBackground={false}
          faqsAnimation="slide-up"
          animationType="smooth"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal 
          columns={[
            {
              title: "Watch",
              items: [
                { label: "Hulu", href: "https://www.hulu.com" },
                { label: "Disney+", href: "https://www.disneyplus.com" },
                { label: "Netflix", href: "https://www.netflix.com" },
                { label: "Amazon Prime", href: "https://www.primevideo.com" }
              ]
            },
            {
              title: "Community",
              items: [
                { label: "Fan Forum", href: "https://www.reddit.com/r/futurama" },
                { label: "Social Media", href: "https://www.twitter.com" },
                { label: "News", href: "/news" },
                { label: "Events", href: "/events" }
              ]
            },
            {
              title: "About",
              items: [
                { label: "The Show", href: "/about" },
                { label: "Merchandise", href: "/merchandise" },
                { label: "Credits", href: "/credits" },
                { label: "Contact", href: "/contact" }
              ]
            }
          ]}
          copyrightText="© 2025 Futurama. All rights reserved. A creation of Matt Groening."
        />
      </div>
    </ThemeProvider>
  );
}