"use client";

import Link from "next/link";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroBillboardScroll from '@/components/sections/hero/HeroBillboardScroll';
import AboutMetric from '@/components/sections/about/AboutMetric';
import FeatureCardTwentyTwo from '@/components/sections/feature/FeatureCardTwentyTwo';
import TestimonialCardThirteen from '@/components/sections/testimonial/TestimonialCardThirteen';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import { Zap, Star, Users, Award, Heart, Mail } from 'lucide-react';

export default function HomePage() {
  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" }
          ].map(item => ({
            name: item.name,
            id: item.id.startsWith('/') ? item.id : `#${item.id}`
          }))}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardScroll 
          title="Enter a World of Sci-Fi Comedy"
          description="Follow Fry, Leela, and Bender on their extraordinary adventures in the year 3000. Experience the timeless humor and heart that made Futurama a cult classic."
          tag="Welcome to the Future"
          tagIcon={Zap}
          background={{ variant: "canvas-reveal" }}
          imageSrc="https://img.b2bpic.net/free-vector/city-space-scene_1308-31586.jpg"
          imageAlt="Futurama Hero Banner"
          buttons={[
            { text: "Watch Now", href: "https://www.hulu.com" },
            { text: "Learn More", href: "/about" }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <AboutMetric 
          title="Futurama: A Legacy of Laughter and Heart. Seven unforgettable seasons spanning from 1999 to 2009, with multiple movies and specials that continue to captivate audiences worldwide."
          metrics={[
            { icon: Star, label: "Seasons Released", value: "7" },
            { icon: Users, label: "Global Fans", value: "10M+" },
            { icon: Award, label: "Emmy Nominations", value: "30+" },
            { icon: Heart, label: "Spinoff Movies", value: "4" }
          ]}
          metricsAnimation="slide-up"
          useInvertedBackground={false}
        />
      </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="testimonials" data-section="testimonials">
        <TestimonialCardThirteen 
          title="What Fans Say"
          description="Discover why Futurama has captured hearts across generations"
          testimonials={[
            {
              id: "1",
              name: "Alex Chen",
              handle: "@alexcodes",
              testimonial: "Futurama is pure genius! The blend of humor, heart, and sci-fi storytelling is unmatched. I've watched every episode multiple times and still laugh!",
              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/smiling-young-handsome-guy-wearing-green-shirt_141793-122624.jpg",
              imageAlt: "Alex Chen"
            },
            {
              id: "2",
              name: "Jordan Rivera",
              handle: "@jrivera_fan",
              testimonial: "The character development in Futurama is incredible. Fry and Leela's relationship had me emotionally invested from day one. Absolute masterpiece!",
              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/smiling-millennial-man-looking-camera-cafe-headshot-portrait_1163-5163.jpg",
              imageAlt: "Jordan Rivera"
            },
            {
              id: "3",
              name: "Casey Morgan",
              handle: "@caseywatch",
              testimonial: "I grew up with Futurama and it's even better as an adult. The jokes hit different now. Why isn't there more content?! We need Futurama forever!",
              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/pleased-young-brunette-caucasian-girl-looks-camera_141793-103873.jpg",
              imageAlt: "Casey Morgan"
            },
            {
              id: "4",
              name: "Morgan Taylor",
              handle: "@taylorm_fan",
              testimonial: "The writing, the animation, the voice acting—everything about Futurama is top-notch. Bender steals every scene he's in. Comedy gold!",
              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-portrait-serious-man-with-curly-hair_176532-7988.jpg",
              imageAlt: "Morgan Taylor"
            }
          ]}
          showRating={true}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="socialproof" data-section="socialproof">
        <SocialProofOne 
          title="Featured Across Major Platforms"
          description="Futurama's legacy continues across streaming services and entertainment networks 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="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>
  );
}