'use client';
import HeroSection from '@/components/HeroSection/HeroSection';
import WhyChooseUs from '@/components/Programmers/WhyChooseUs';
import PricingCard from '@/components/SharedHosting/PricingCard';
import FeatureSection from '@/components/Programmers/FeactureSection';
import BenefitsSection from '@/components/Programmers/BenefitsSection';
import SSLSection from '@/components/Programmers/SSLSection';
import ImageSection from '@/components/Security/ImageSection';
import Asks from '@/components/DataCenter/Asks/Asks';
import { sharedHostingPlans, sharedHostingFeatures } from '@/constants/sharedHostingConsts';
import { useTranslator } from '@/contexts/TranslatorContext';

const ProgrammersPage = () => {
  const { translations } = useTranslator();
  return (
    <div className='overflow-x-hidden'>
      <HeroSection
        title={translations['programmers.hero.title'] || translations?.programmers?.heroTitle || ''}
        description={translations['programmers.hero.description'] || translations?.programmers?.heroDescription || ''}
        primaryButtonText={translations['programmers.hero.primaryButton'] || translations['startNow']}
        secondaryButtonText={translations['programmers.hero.secondaryButton'] || 'View Pricing'}
        imageLeft='/images/Hero/programmers/left-server.svg'
        imageLeftClass='[translate:-10px_-180px] z-[999]'
        imageCenter='/images/Hero/programmers/center-server.svg'
        imageCenterClass='[translate:-60px_-150px] z-[999]'
        imageRight='/images/Hero/programmers/right-server.svg'
        imageRightClass='[translate:-40px_15px] z-[999]'
        centerIconSrc='/images/Hero/programmers/center-icon.svg'
        centerIconX={680}
        centerIconY={595}
        centerIconWidth={140}
        centerIconHeight={140}
        centerIconSrcClass='z-[1000] animate-float'
        leftIconSrc='/images/Hero/programmers/left-icon.svg'
        leftIconX={420}
        leftIconY={595}
        leftIconWidth={80}
        leftIconHeight={86}
        leftIconSrcClass='z-[1000] animate-float animate-float-delay-2'
        rightIconSrc='/images/Hero/programmers/right-icon.svg'
        rightIconX={1022}
        rightIconY={595}
        rightIconWidth={80}
        rightIconHeight={86}
        rightIconSrcClass='z-[1000] animate-float animate-float-delay-1'
        mobileImage1Style={{ width: '40%' }}
      />
      <WhyChooseUs />
      <ImageSection />
      <PricingCard
        plans={sharedHostingPlans.slice(0, 3).map(p => ({
          ...p,
          id: p.id.replace('S', 'P'),
          name: p.name.replace('S', 'P'),
        }))}
        featuresByPlan={{
          P1: sharedHostingFeatures.S1,
          P2: sharedHostingFeatures.S2,
          P3: sharedHostingFeatures.S3,
        }}
      />
      <FeatureSection />
      <SSLSection />
      <BenefitsSection />
      {/* <BeastSection variant='programmers' /> */}
      <Asks faqsKey='programmers.faqs' />
    </div>
  );
};

export default ProgrammersPage;
