"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { Zap } from 'lucide-react';

export default function ContactPage() {
  const navItems = [
    { name: "Home", id: "/" },
    { name: "Features", id: "/features" },
    { name: "About", id: "/about" },
    { name: "Contact", id: "/contact" },
    { name: "Sign In", id: "https://tutorly.example.com/signin" }
  ];

  const footerColumns = [
    {
      title: "Product",
      items: [
        { label: "Find Tutors", href: "/" },
        { label: "Become a Tutor", href: "/features" },
        { label: "Pricing", href: "/features" },
        { label: "How It Works", href: "/about" }
      ]
    },
    {
      title: "Company", 
      items: [
        { label: "About Us", href: "/about" },
        { label: "Blog", href: "/" },
        { label: "Careers", href: "/" },
        { label: "Press", href: "/" }
      ]
    },
    {
      title: "Support",
      items: [
        { label: "Help Center", href: "/contact" },
        { label: "Contact Us", href: "/contact" },
        { label: "Terms of Service", href: "/" },
        { label: "Privacy Policy", href: "/" }
      ]
    }
  ];

  const handleSubmit = (email: string) => {
    console.log("Email submitted:", email);
  };

  return (
    <ThemeProvider
      defaultButtonVariant="elastic-effect"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="mediumSmall"
      sizing="medium"
      background="radialGradient"
      cardStyle="gradient-bordered"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="layered"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen 
          navItems={navItems}
          brandName="Tutorly"
          bottomLeftText="Join our learning community"
          bottomRightText="hello@tutorly.com"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Get Started"
          title="Join Tutorly Today"
          description="Whether you're looking for a tutor or ready to share your expertise, sign up now to get started on your learning journey."
          tagIcon={Zap}
          useInvertedBackground="noInvert"
          imageSrc="https://img.b2bpic.net/free-photo/cheerful-mature-call-center-operator-looking-laptop-screen_74855-4013.jpg"
          imageAlt="Join our learning community"
          mediaPosition="right"
          inputPlaceholder="Enter your email"
          buttonText="Sign Up"
          termsText="By signing up, you agree to our Terms of Service and Privacy Policy."
          onSubmit={handleSubmit}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal
          columns={footerColumns}
          copyrightText="© 2025 Tutorly. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}