"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import HeroBillboard from "@/components/sections/hero/HeroBillboard";
import MetricCardOne from "@/components/sections/metrics/MetricCardOne";
import SplitAbout from "@/components/sections/about/SplitAbout";
import ContactSplitForm from "@/components/sections/contact/ContactSplitForm";
import FooterBaseSocial from "@/components/sections/footer/FooterBaseSocial";
import PlainBackground from "@/components/background/PlainBackground";
import CircleGradientBackground from "@/components/background/CircleGradientBackground";
import { TrendingUp, Users, Zap, Star, Twitter, Linkedin, Globe } from "lucide-react";

export default function StarWarsPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="bounce-effect"
      defaultTextAnimation="reveal-blur"
      borderRadius="pill"
      contentWidth="medium"
      sizing="mediumLarge"
      background="plain"
      cardStyle="shadow-colored"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="extrabold"
    >
      <PlainBackground />
      
      <div id="hero" data-section="hero">
        <HeroBillboard
          title="STAR WARS"
          description="Join millions of fans exploring the galaxy's greatest saga. Discover exclusive content, connect with the community, and celebrate the Force."
          tag="Welcome to the Galaxy"
          buttons={[
            { text: "Enter the Galaxy", href: "community" },
            { text: "Join Community", href: "about" }
          ]}
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766502905270-5whkj6nu.jpg"
          imageAlt="Star Wars galaxy"
          frameStyle="card"
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardOne
          title="Our Galactic Impact"
          description="Witness the scale of the Star Wars universe and its influence across generations"
          gridVariant="four-items-2x2-equal-grid"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          metrics={[
            {
              id: "1",
              value: "40+",
              title: "Years",
              description: "Of Star Wars storytelling",
              icon: TrendingUp
            },
            {
              id: "2",
              value: "11",
              title: "Films",
              description: "Complete Skywalker saga",
              icon: Star
            },
            {
              id: "3",
              value: "100M+",
              title: "Fans",
              description: "Worldwide united by Force",
              icon: Users
            },
            {
              id: "4",
              value: "∞",
              title: "Stories",
              description: "In expanding galaxy",
              icon: Zap
            }
          ]}
        />
      </div>

      <CircleGradientBackground diagonal="primary" />

      <div id="about" data-section="about">
        <SplitAbout
          title="About the Universe"
          description="Experience the epic saga spanning decades of storytelling across multiple eras and universes"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          imagePosition="right"
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766502905270-5whkj6nu.jpg"
          imageAlt="Star Wars universe"
          bulletPoints={[
            {
              title: "The Saga",
              description: "From Episode I through IX, experience the epic story of the Skywalker family and the eternal battle between light and dark sides of the Force."
            },
            {
              title: "Expanded Universe",
              description: "Venture into incredible stories beyond the main saga. Explore the Old Republic, High Republic era, and countless tales of heroes and villains."
            },
            {
              title: "Iconic Characters",
              description: "Meet legendary heroes like Luke Skywalker, Princess Leia, Han Solo, and Darth Vader who define the Star Wars legacy."
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplitForm
          tag="Newsletter"
          title="Join the Force"
          description="Subscribe for exclusive Star Wars news, community updates, and behind-the-scenes content."
          useInvertedBackground="noInvert"
          inputPlaceholder="Your email address"
          buttonText="Send email"
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766502905270-5whkj6nu.jpg"
          imageAlt="Star Wars contact"
          onSubmit={(email) => console.log("Subscribed:", email)}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseSocial
          logoText="STAR WARS"
          description="Join millions of Star Wars fans worldwide. Discover exclusive content, connect with the community, and celebrate the epic saga."
          columns={[
            {
              title: "Explore",
              items: [
                { label: "Movies", href: "#movies" },
                { label: "Series", href: "#series" },
                { label: "Characters", href: "#characters" }
              ]
            },
            {
              title: "Community",
              items: [
                { label: "Forums", href: "#forums" },
                { label: "Events", href: "#events" },
                { label: "Merch", href: "#merch" }
              ]
            },
            {
              title: "More",
              items: [
                { label: "About Us", href: "about" },
                { label: "Blog", href: "#blog" },
                { label: "Contact", href: "contact" }
              ]
            }
          ]}
          socialLinks={[
            { icon: Twitter, href: "https://twitter.com", ariaLabel: "Twitter" },
            { icon: Linkedin, href: "https://linkedin.com", ariaLabel: "LinkedIn" },
            { icon: Globe, href: "https://example.com", ariaLabel: "Website" }
          ]}
          copyrightText="© 2025 Star Wars Community. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}