'use client'

import { useTranslations, useLocale } from 'next-intl'
import Link from 'next/link'
import { Home } from 'lucide-react'
import { Button } from '@/components/ui/button'

export default function NotFound() {
  const t = useTranslations('errors')
  const locale = useLocale()
  
  return (
    <div className="min-h-screen flex items-center justify-center bg-gradient-to-b from-[#1E1E2E] via-[#002647] to-[#1E1E2E]">
      <div className="text-center">
        <h1 className="text-6xl font-bold text-white mb-4">404</h1>
        <p className="text-xl text-gray-300 mb-8">{t('notFound')}</p>
        <Link href={`/${locale}`}>
          <Button className="bg-[#0087FF] hover:bg-[#0072d1] text-white px-6 py-2 rounded-xl">
            <Home className="w-4 h-4 mr-2" />
            {t('backToHome')}
          </Button>
        </Link>
      </div>
    </div>
  )
}

