"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import FeatureCardSeven from '@/components/sections/feature/FeatureCardSeven';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { Star } from 'lucide-react';

export default function FeaturesPage() {
  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 features = [
    {
      id: 1,
      title: "Easy Matching Algorithm",
      description: "Our intelligent system matches students with tutors based on subjects, schedules, learning styles, and goals for optimal compatibility.",
      imageSrc: "https://img.b2bpic.net/free-photo/virtual-classroom-study-space_23-2149178644.jpg"
    },
    {
      id: 2,
      title: "Secure Payments & Scheduling", 
      description: "Book sessions with ease, manage payments securely, and access your calendar all in one place. Transparent pricing with no hidden fees.",
      imageSrc: "https://img.b2bpic.net/free-photo/virtual-classroom-study-space_23-2149178644.jpg"
    },
    {
      id: 3,
      title: "Live Tutoring Sessions",
      description: "Conduct interactive lessons with integrated video, screen sharing, and whiteboard tools. Record sessions for future reference.",
      imageSrc: "https://img.b2bpic.net/free-photo/virtual-classroom-study-space_23-2149178644.jpg"
    },
    {
      id: 4,
      title: "Progress Tracking",
      description: "Monitor learning progress with detailed analytics, performance reports, and personalized recommendations for improvement.",
      imageSrc: "https://img.b2bpic.net/free-photo/virtual-classroom-study-space_23-2149178644.jpg"
    }
  ];

  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: "/" }
      ]
    }
  ];

  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="features" data-section="features">
        <FeatureCardSeven
          title="Why Choose Tutorly"
          description="Our platform provides everything you need for successful learning and teaching connections."
          tag="Features"
          tagIcon={Star}
          features={features}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
        />
      </div>

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