import Link from "next/link";

export function BrandLockup({
  href = "/",
  tone = "dark",
  compact = false,
}: {
  href?: string;
  tone?: "dark" | "light";
  compact?: boolean;
}) {
  const text = tone === "light" ? "text-white" : "text-navy";
  const sub = tone === "light" ? "text-white/70" : "text-muted";

  return (
    <Link href={href} className={`group inline-flex items-center gap-3.5 ${text}`}>
      <span className="relative grid place-items-center">
        <span className="absolute inset-[-18%] rounded-full bg-[radial-gradient(circle,rgb(26_165_166/0.22),transparent_70%)] opacity-0 transition group-hover:opacity-100" />
        <img
          src="/logo.png"
          alt=""
          className={`relative object-contain drop-shadow-sm transition duration-300 group-hover:scale-105 ${compact ? "h-12 w-12" : "h-14 w-14"}`}
        />
      </span>
      <span className="leading-none">
        <span className={`block font-extrabold tracking-tight ${compact ? "text-[1.12rem]" : "text-[1.25rem]"}`}>
          تصمیم‌سازان فردا
        </span>
        <span className={`mt-2 block font-medium tracking-wide ${compact ? "text-[0.78rem]" : "text-[0.84rem]"} ${sub}`}>
          توسعه فناوری · نوآوری · تأمین مالی تحقیق و توسعه
        </span>
      </span>
    </Link>
  );
}
