"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroBillboard from '@/components/sections/hero/HeroBillboard';
import FeatureCardNineteen from '@/components/sections/feature/FeatureCardNineteen';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FooterCard from '@/components/sections/footer/FooterCard';
import Link from 'next/link';
import { Sparkles, Zap, Github, Twitter, Linkedin } from 'lucide-react';

export default function LearnPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="shift-hover"
      defaultTextAnimation="reveal-blur"
      borderRadius="pill"
      contentWidth="small"
      sizing="medium"
      background="blurBottom"
      cardStyle="gradient-mesh"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="PyLearn"
          navItems={[
            { name: "Home", id: "home" },
            { name: "Learn Python", id: "learn" },
            { name: "Practice", id: "practice" },
            { name: "Interpreter", id: "interpreter" }
          ]}
          button={{
            text: "Get Started",
            href: "/learn"
          }}
        />
      </div>

      <div id="learn-hero" data-section="learn-hero">
        <HeroBillboard
          title="Python Tutorials & Lessons"
          description="Master Python from the ground up with our comprehensive, beginner-friendly tutorials. Learn variables, loops, functions, data structures, and more through clear explanations and hands-on examples."
          background={{ variant: "sparkles-gradient" }}
          tag="Structured Learning Path"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          buttons={[
            { text: "Start First Lesson", href: "/learn" },
            { text: "View All Topics", href: "/learn" }
          ]}
          buttonAnimation="blur-reveal"
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3B6sh1xZKNJYDe63NCnshCWKiPL/an-educational-lesson-interface-showing--1773824099800-8c0e260b.png?_wi=2"
          imageAlt="Python learning lessons"
          mediaAnimation="slide-up"
        />
      </div>

      <div id="learn-curriculum" data-section="learn-curriculum">
        <FeatureCardNineteen
          tag="Curriculum"
          tagIcon={Zap}
          tagAnimation="slide-up"
          title="Comprehensive Python Learning Tracks"
          description="Our structured curriculum takes you from complete beginner to intermediate Python developer. Each module builds upon the previous one with practical examples and real-world applications."
          textboxLayout="split"
          useInvertedBackground={false}
          features={[
            {
              id: 1,
              tag: "Fundamentals",
              title: "Python Basics Module",
              subtitle: "Variables, Data Types, and Operations",
              description: "Start your Python journey with the fundamentals. Learn about variables, different data types (strings, integers, floats), basic operations, and how Python interprets your code. Perfect foundation for beginners.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3B6sh1xZKNJYDe63NCnshCWKiPL/a-welcoming-introduction-scene-to-python-1773824099453-712f97b3.png?_wi=2",
              imageAlt: "Python basics introduction"
            },
            {
              id: 2,
              tag: "Control Flow",
              title: "Loops and Conditionals",
              subtitle: "Decision Making and Iteration",
              description: "Master if-else statements for decision making and loops for iteration. Learn about for loops, while loops, and how to control program flow. Build the logic skills needed for real programs.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3B6sh1xZKNJYDe63NCnshCWKiPL/an-intermediate-python-programmer-workin-1773824099739-6f478f46.png?_wi=2",
              imageAlt: "Python control flow"
            },
            {
              id: 3,
              tag: "Functions & Structures",
              title: "Functions and Data Structures",
              subtitle: "Lists, Dictionaries, and Reusable Code",
              description: "Learn to write reusable functions, organize your code efficiently, and manage complex data with lists and dictionaries. Understand how to structure Python programs professionally.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3B6sh1xZKNJYDe63NCnshCWKiPL/a-coding-challenges-platform-showing-beg-1773824100597-aef15a40.png?_wi=2",
              imageAlt: "Python functions and structures"
            }
          ]}
        />
      </div>

      <div id="learn-contact" data-section="learn-contact">
        <ContactSplitForm
          title="Ready to Learn Python?"
          description="Get started with PyLearn today. Access all our tutorials, challenges, and the interactive interpreter. Join thousands of beginners learning to code."
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3B6sh1xZKNJYDe63NCnshCWKiPL/a-modern-code-editor-interface-displayin-1773824099697-e11e3078.png?_wi=2"
          imageAlt="Python learning interface"
          mediaAnimation="slide-up"
          mediaPosition="right"
          useInvertedBackground={true}
          inputs={[
            { name: "name", type: "text", placeholder: "Your Name" },
            { name: "email", type: "email", placeholder: "your@email.com" }
          ]}
          textarea={{
            name: "message",
            placeholder: "What do you want to learn first?"
          }}
          buttonText="Get Started Now"
        />
      </div>

      <div id="learn-footer" data-section="learn-footer">
        <FooterCard
          logoText="PyLearn"
          copyrightText="© 2024 PyLearn | Making Python Education Accessible"
          socialLinks={[
            { icon: Github, href: "https://github.com", ariaLabel: "GitHub" },
            { icon: Twitter, href: "https://twitter.com", ariaLabel: "Twitter" },
            { icon: Linkedin, href: "https://linkedin.com", ariaLabel: "LinkedIn" }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}