"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import TextAbout from '@/components/sections/about/TextAbout';
import FaqDouble from '@/components/sections/faq/FaqDouble';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import Link from 'next/link';
import { HelpCircle } from 'lucide-react';

export default function FAQPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="small"
      sizing="largeSmallSizeMediumTitles"
      background="circleGradient"
      cardStyle="inset"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen 
          navItems={[
            { name: "Home", id: "/" },
            { name: "For Students", id: "/student/verification" },
            { name: "For Employers", id: "/employer/listings" },
            { name: "About", id: "#about" },
            { name: "Contact", id: "#contact" }
          ]}
          brandName="KNBA SIB Co-op"
          bottomLeftText="High School Co-op Placements"
          bottomRightText="hello@knbasibcoop.ca"
        />
      </div>

      <div id="about" data-section="about">
        <TextAbout 
          tag="Questions?"
          tagIcon={HelpCircle}
          tagAnimation="slide-up"
          title="Find Answers to Common Questions About the KNBA SIB Platform"
          useInvertedBackground={false}
          buttons={[]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqDouble 
          title="Frequently Asked Questions"
          description="Everything you need to know about the KNBA SIB Co-op Platform"
          tag="FAQ"
          tagIcon={HelpCircle}
          tagAnimation="slide-up"
          faqs={[
            {
              id: "faq-1",              title: "What makes this platform different from other job boards?",              content: "The KNBA SIB platform is specifically designed for high school students in Kanata seeking co-op placements. We enforce mandatory verification including resume review, parent consent, teacher verification, and professional conduct agreements. This ensures employers are only working with serious, accountable candidates. We're not a general job board—we're a vetted marketplace built for quality placements."
            },
            {
              id: "faq-2",              title: "How do I become a verified student?",              content: "<p>Complete these steps in order:</p><ul><li>Upload your resume (PDF)</li><li>Obtain parent/guardian consent (if under 18)</li><li>Verify your email with your school domain</li><li>Sign the professional conduct agreement</li><li>Complete training modules and earn certificates</li></ul><p>Once submitted, our admin team reviews your application and approves your Verified badge within 3-5 business days.</p>"
            },
            {
              id: "faq-3",              title: "What is the Verified Student badge?",              content: "The Verified Student badge is a mark of accountability. It means you've completed all mandatory requirements and been approved by our team. Employers see this badge and know they're working with a serious, professional student who meets our standards. The badge is your ticket to job applications and employer visibility."
            },
            {
              id: "faq-4",              title: "Can I apply for placements before getting verified?",              content: "No. The Verified badge is required to apply for co-op placements. This protects both students and employers by ensuring everyone meets professional standards. Start your verification today—it typically takes 3-5 business days once you submit all materials."
            },
            {
              id: "faq-5",              title: "What are skill badges and why do they matter?",              content: "Skill badges prove you've completed training in specific areas: Excel Basics, Google Workspace Proficiency, Marketing Fundamentals, and Financial Literacy Basics. These badges are visible on your profile and help employers quickly assess your technical capabilities. Students with more badges typically receive more quality applications."
            },
            {
              id: "faq-6",              title: "How do employers use the platform?",              content: "Employers post co-op opportunities, set requirements (skill badges, availability, school), and use our comparison tools to view student profiles side-by-side. They can review resumes, watch video introductions, check endorsements, and assess professionalism through our structured assessment system. Our admin team manually approves all employer accounts to ensure quality."
            },
            {
              id: "faq-7",              title: "Is the platform free for students and employers?",              content: "Yes. The KNBA SIB platform is free for students and employers. Our mission is to connect Kanata high school students with real opportunities. We operate as a community resource with no payment processing or premium features."
            },
            {
              id: "faq-8",              title: "How long does a typical co-op placement last?",              content: "Co-op placement duration varies by employer and school requirements. Most placements range from 2-6 months during school terms or summers. Employers and students negotiate the specific timeline when making the match."
            },
            {
              id: "faq-9",              title: "What if I don't pass the assessment?",              content: "You can retake assessments as many times as you need. The assessments are designed to help employers understand your professionalism, accountability, and technical skills. Treat them as a learning opportunity. Most students improve on retakes."
            },
            {
              id: "faq-10",              title: "How is student data protected?",              content: "We take privacy seriously. Student data is encrypted, stored securely, and never sold. Only employers viewing your profile can see your information. Admin manual review ensures inappropriate content is removed. Parent/guardian consent is required for students under 18, protecting their privacy."
            },
            {
              id: "faq-11",              title: "Can I update my profile after verification?",              content: "Absolutely. Once verified, you can update your profile at any time: add new skill badges, update availability, upload a new professional photo, or add endorsements. Changes don't require re-verification—you stay verified."
            },
            {
              id: "faq-12",              title: "What happens after I'm matched with an employer?",              content: "Congrats! The employer will contact you directly to discuss placement details: start date, hours, expectations, and logistics. You'll coordinate directly. The platform facilitates the match; the rest is between you and the employer."
            }
          ]}
          faqsAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          animationType="smooth"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal 
          columns={[
            {
              title: "For Students",              items: [
                { label: "Start Verification", href: "/student/verification" },
                { label: "Browse Placements", href: "/jobs" },
                { label: "Student Dashboard", href: "/student/dashboard" },
                { label: "FAQ", href: "/faq" }
              ]
            },
            {
              title: "For Employers",              items: [
                { label: "Post an Opportunity", href: "/employer/listings" },
                { label: "Employer Dashboard", href: "/employer/dashboard" },
                { label: "Browse Candidates", href: "/employer/dashboard" },
                { label: "Contact Sales", href: "#contact" }
              ]
            },
            {
              title: "Platform",              items: [
                { label: "About KNBA SIB", href: "#about" },
                { label: "How It Works", href: "#how-it-works" },
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" }
              ]
            }
          ]}
          copyrightText="© 2025 KNBA SIB Co-op Platform. Connecting Kanata high school students with real co-op opportunities."
        />
      </div>
    </ThemeProvider>
  );
}