import React from 'react';
import { PublicHeader } from '@/Components/PublicHeader';
import { PublicFooter } from '@/Components/PublicFooter';
import { SEOHead } from '@/Components/SEOHead';
import { FaqAccordion } from '@/Components/FaqAccordion';

interface HelpCenterProps {
    faqCategories: any[];
}

export default function HelpCenter({ faqCategories }: HelpCenterProps) {
    return (
        <div className="min-h-screen bg-[#060B18] text-slate-100 flex flex-col font-sans">
            <SEOHead
                title="Help Center & Frequently Asked Questions | Tech in Soul"
                description="Find answers to common questions regarding Tech in Soul software development process, technologies, billing, and SLAs."
            />

            <PublicHeader />

            <main className="flex-grow pt-32 pb-20">
                <div className="max-w-[1600px] mx-auto px-4 sm:px-6 lg:px-12 text-center space-y-4 mb-16">
                    <span className="text-xs font-bold text-[#00F2FE] uppercase tracking-widest">
                        HELP CENTER
                    </span>
                    <h1 className="text-4xl sm:text-6xl font-extrabold text-white tracking-tight">
                        Frequently Asked <span className="text-gradient-aqua">Questions</span>
                    </h1>
                    <p className="text-slate-400 text-base sm:text-lg max-w-2xl mx-auto">
                        Everything you need to know about partnering with Tech in Soul for your digital engineering projects.
                    </p>
                </div>

                <div className="max-w-[1600px] mx-auto px-4 sm:px-6 lg:px-12 space-y-12">
                    {faqCategories.map((category) => (
                        <div key={category.id} className="space-y-4">
                            <h2 className="text-2xl font-bold text-white border-b border-slate-800 pb-2">
                                {category.name}
                            </h2>
                            <FaqAccordion items={category.faqs || []} />
                        </div>
                    ))}
                </div>
            </main>

            <PublicFooter />
        </div>
    );
}
