"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleMinimal from '@/components/navbar/NavbarStyleMinimal';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterMedia from '@/components/sections/footer/FooterMedia';

export default function ContactPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="background-highlight"
      borderRadius="rounded"
      contentWidth="compact"
      sizing="medium"
      background="none"
      cardStyle="solid"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleMinimal
          brandName="Tutorly"
          button={{
            text: "Get Started",
            href: "/contact"
          }}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Newsletter"
          title="Stay in the Loop"
          description="Get tips, tutor spotlights, student success stories, and exclusive offers delivered to your inbox. Join our community and never miss out on new tutors or platform updates."
          useInvertedBackground="noInvert"
          imageSrc="https://img.b2bpic.net/free-photo/e-mail-global-communications-connection-social-networking-concept_53876-134026.jpg"
          imageAlt="Newsletter subscription illustration"
          mediaPosition="right"
          inputPlaceholder="Enter your email address"
          buttonText="Subscribe"
          termsText="We respect your privacy. Unsubscribe at any time."
          onSubmit={(email) => {
            console.log('Newsletter subscription:', email);
            alert('Thank you for subscribing to our newsletter!');
          }}
        />
      </div>

      <FooterMedia
        imageSrc="https://img.b2bpic.net/free-photo/online-education-homepage-e-learning-technology-concept_53876-133853.jpg"
        imageAlt="Learning community illustration"
        logoText="Tutorly"
        copyrightText="© 2025 Tutorly. All rights reserved."
        columns={[
          {
            title: "Platform",
            items: [
              { label: "For Students", href: "/" },
              { label: "For Tutors", href: "/about" },
              { label: "How It Works", href: "/services" },
              { label: "Pricing", href: "/services" }
            ]
          },
          {
            title: "Company",
            items: [
              { label: "About Us", href: "/about" },
              { label: "Blog", href: "/about" },
              { label: "Careers", href: "/about" },
              { label: "Contact", href: "/contact" }
            ]
          },
          {
            title: "Legal",
            items: [
              { label: "Privacy Policy", href: "/contact" },
              { label: "Terms of Service", href: "/contact" },
              { label: "Safety Guidelines", href: "/contact" },
              { label: "Trust Center", href: "/contact" }
            ]
          }
        ]}
      />
    </ThemeProvider>
  );
}