import { li } from 'framer-motion/client';
import { Download, Globe, PlayCircle } from 'lucide-react';

function DownloadSection() {
  const downloadOptions = [
    {
      icon: './images/cafe.png',
      title: "کافه بازار",
      description: "دانلود برای اندروید",
      link: "https://cafebazaar.ir/app/com.approagency.meditation",
      // badge: "پرطرفدار",
      gradient: "from-primary-500/10 to-primary-600/10",
      border: "border-primary-500/20",
      animation: "animate-slideInLeft delay-100"
    },
    {
      icon: './images/myket.png',
      title: "مایکت",
      link: "https://myket.ir/app/com.approagency.meditation",
      description: "دانلود برای اندروید",
      gradient: "from-primary-500/10 to-primary-600/10",
      border: "border-primary-500/20",
      animation: "animate-fadeInUp delay-200"
    },
    {
      icon: './images/appstore.png',
      title: "وب سایت",
      description: "نسخه وب برای تمام دستگاه‌ها",
      link: 'https://aaramland.ir/web/',
      badge: "",
      gradient: "from-primary-500/10 to-primary-600/10",
      animation: "animate-slideInRight delay-300",
      border: "border-primary-500/20",
    }
  ];

  return (
    <div className="relative rounded-3xl p-1 mb-10 animate-fadeInUp overflow-hidden">
      {/* Background pattern */}
      <div className="absolute inset-0 opacity-4">
        <div className="absolute inset-0"></div>
      </div>

      <div className="relative">
        <div className="text-center mb-12">
          <h2 className="text-3xl md:text-4xl font-bold text-gray-900 mb-4 mt-8">
            همین حالا <span className="text-primary-500">شروع کنید</span>
          </h2>
          <p className="text-xl text-gray-600 max-w-2xl mx-auto">
            آرام جان را روی دستگاه مورد علاقه‌تان نصب کنید
          </p>
        </div>

        <div className="grid md:grid-cols-3 gap-6 max-w-4xl mx-auto ">
          {downloadOptions.map((option, index) => (
            <a
              key={index}
              href={option.link}
              className={`relative flex flex-col items-center justify-center p-8 bg-gradient-to-br ${option.gradient} rounded-3xl hover:shadow-2xl transition-all duration-300 transform hover:-translate-y-2  group ${option.animation} overflow-hidden border ${option.border}`}
            >
              {/* Shine effect */}
              {/* <div className="absolute inset-0 bg-gradient-to-r from-transparent via-white/20 to-transparent -translate-x-full group-hover:translate-x-full transition-transform duration-1000"></div> */}

              {option.badge && (
                <div className="absolute -top-0 right-0 bg-primary-200  px-2 py-2 rounded text-xs font-bold">
                  {option.badge}
                </div>
              )}

              <div className="bg-white p-4 rounded-2xl mb-4 group-hover:scale-110 transition-transform duration-300">
                <img src={option.icon} alt="Download" className="w-20 h-20 border border-transparent rounded-xl " />
                {/* <option.icon className="w-8 h-8" /> */}
              </div>
              <h3 className="text-xl text-black font-bold mb-2">{option.title}</h3>
              <p className="text-sm text-black">{option.description}</p>
            </a>
          ))}
        </div>
      </div>
    </div>
  );
}
export default DownloadSection;