"use client";

import { Bell, ShieldCheck, Database } from "lucide-react";
import { useLanguage } from "@/components/language-provider";
import { Section, SectionHeading } from "@/components/ui/section";

const ICONS = [Bell, ShieldCheck, Database];

export function Safety() {
  const { t } = useLanguage();
  return (
    <Section id="safety">
      <div className="container-x">
        <SectionHeading
          eyebrow={t.safety.eyebrow}
          title={t.safety.title}
          subtitle={t.safety.subtitle}
        />
        <div className="grid gap-6 md:grid-cols-3">
          {t.safety.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-emerald-500/10 text-emerald-600 dark:text-emerald-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>
  );
}
