"use client";

import { Link2, UserCircle2, SlidersHorizontal } from "lucide-react";
import { useLanguage } from "@/components/language-provider";
import { Section, SectionHeading } from "@/components/ui/section";

const ICONS = [Link2, UserCircle2, SlidersHorizontal];

export function Benefits() {
  const { t } = useLanguage();
  return (
    <Section id="benefits">
      <div className="container-x">
        <SectionHeading
          eyebrow={t.benefits.eyebrow}
          title={t.benefits.title}
          subtitle={t.benefits.subtitle}
        />
        <div className="grid gap-6 md:grid-cols-3">
          {t.benefits.points.map((p, i) => {
            const Icon = ICONS[i];
            return (
              <div key={p.title} className="card card-hover">
                <div className="flex h-11 w-11 items-center justify-center rounded-xl bg-brand-500/10 text-brand-600 dark:text-brand-300">
                  <Icon className="h-5 w-5" />
                </div>
                <h3 className="mt-4 text-lg font-semibold text-slate-900 dark:text-white">{p.title}</h3>
                <p className="mt-2 text-sm leading-relaxed text-slate-600 dark:text-slate-400">{p.body}</p>
              </div>
            );
          })}
        </div>
      </div>
    </Section>
  );
}
