"use client";

import Link from "next/link";

export default function HeroSection() {
  return (
    <section className="relative overflow-hidden">
      <div className="absolute inset-0 bg-gradient-to-b from-orange-50/70 via-white to-[#fafafa] dark:from-gray-950 dark:via-gray-900 dark:to-gray-950" />
      <div
        className="absolute top-0 right-0 w-[500px] h-[500px] -translate-y-1/3 translate-x-1/4 opacity-40 rounded-full"
        style={{
          background:
            "radial-gradient(circle, rgba(249,115,22,0.25) 0%, transparent 70%)",
        }}
      />

      <div className="relative max-w-[1400px] mx-auto px-5 sm:px-10 py-10 sm:py-14 md:py-20">
        <div className="flex flex-col lg:flex-row lg:items-start lg:gap-10 xl:gap-16">
          <div className="flex-1 min-w-0">
            <span className="inline-flex items-center gap-1.5 text-xs font-semibold text-orange-700 dark:text-orange-400 bg-orange-100 dark:bg-orange-900/30 px-3 py-1.5 rounded-full mb-5">
              📍 北京周末
            </span>

            <h1 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold tracking-tight leading-tight mb-5">
              <span className="hero-gradient-text">认识新朋友</span>
              <br />
              <span className="text-gray-900 dark:text-gray-100">不尬聊，不乱收费</span>
            </h1>

            <p className="text-base sm:text-lg text-gray-500 dark:text-gray-400 max-w-2xl mb-7 leading-relaxed">
              公开场地，小组活动，规则透明。先看场次，再决定要不要报名
            </p>

            <div className="space-y-2.5 mb-8">
              {[
                { icon: "📍", text: "公开场地，地址提前告知" },
                { icon: "👥", text: "小组活动，人数可控" },
                { icon: "📋", text: "规则透明，先了解再报名" },
                { icon: "✍️", text: "填个简单表单即可，无需注册登录" },
                { icon: "🌸", text: "女生友好的表达方式" },
              ].map((f) => (
                <div key={f.icon} className="flex items-start gap-2.5">
                  <span className="text-base sm:text-lg shrink-0 mt-0.5">{f.icon}</span>
                  <span className="text-sm sm:text-base text-gray-600 dark:text-gray-400 underline decoration-gray-300 dark:decoration-gray-600 underline-offset-2">
                    {f.text}
                  </span>
                </div>
              ))}
            </div>

            <Link
              href="/join"
              className="inline-flex items-center gap-2 bg-[#ff4d4f] hover:bg-[#ff3333] dark:hover:bg-[#ff5c5e] text-white px-6 py-3 rounded-lg text-sm font-semibold transition-colors active:scale-[0.98]"
            >
              查看本周场次，去报名 →
            </Link>
          </div>

          <div className="lg:w-[360px] xl:w-[400px] shrink-0 mt-10 lg:mt-4">
            <div className="bg-white dark:bg-gray-900 rounded-2xl shadow-xl overflow-hidden border border-gray-100 dark:border-gray-800">
              <div className="relative h-48 sm:h-56 bg-gradient-to-br from-emerald-400 via-teal-500 to-cyan-600 flex items-center justify-center overflow-hidden">
                <div className="text-center text-white px-6">
                  <p className="text-lg sm:text-xl font-semibold mb-2">轻报名</p>
                  <p className="text-sm opacity-90">不先登录，不先付款</p>
                </div>
              </div>

              <div className="p-4 sm:p-5">
                <p className="text-sm text-gray-600 dark:text-gray-400 mb-4">
                  选好场次，填个简单表单即可参与
                </p>
                <Link
                  href="/join"
                  className="block w-full text-center bg-[#ff4d4f] hover:bg-[#ff3333] dark:hover:bg-[#ff5c5e] text-white py-3 rounded-lg text-sm font-semibold transition-colors active:scale-[0.98]"
                >
                  去报名 →
                </Link>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
  );
}
