{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "profile-card",
  "type": "registry:component",
  "title": "Profile Card",
  "description": "Compact profile card displaying user details with quick actions.",
  "dependencies": [
    "lucide-react",
    "motion",
    "react-icons"
  ],
  "files": [
    {
      "path": "components/watermelon/profile-card.tsx",
      "type": "registry:component",
      "content": "'use client';\n\nimport React, { useState } from 'react';\nimport { motion, AnimatePresence } from 'motion/react';\nimport {\n  ChevronUp,\n  Globe,\n  MousePointer2,\n  Flame,\n  MapPin,\n  Tag,\n  Users,\n  DollarSign,\n  Flag,\n  Link as LinkIcon,\n} from 'lucide-react';\nimport { RiClaudeFill } from 'react-icons/ri';\nimport { RxArrowTopRight } from 'react-icons/rx';\n\ninterface ProfileCardProps {\n  logo?: string;\n  name: string;\n  website: string;\n  visits: string;\n  heatScore: number;\n  location: string;\n  categories: string[];\n  employees: string;\n  arr: string;\n  founders: { name: string; avatar: string }[];\n  extraFounders?: number;\n}\n\nexport const ProfileCard: React.FC<ProfileCardProps> = ({\n  name,\n  website,\n  visits,\n  heatScore,\n  location,\n  categories,\n  employees,\n  arr,\n  founders,\n  extraFounders = 5,\n}) => {\n  const [isExpanded, setIsExpanded] = useState(false);\n  const springConfig = { type: 'spring', stiffness: 300, damping: 30 } as const;\n\n  return (\n    <div className=\"flex min-h-[500px] w-full items-center justify-center p-4\">\n      <motion.div\n        layout\n        transition={springConfig}\n        className=\"w-xs overflow-hidden rounded-xl border border-[#E5E5E5] bg-[#F5F5F7] shadow-lg transition-colors duration-500 md:w-sm dark:border-white/10 dark:bg-[#161616]\"\n      >\n        {/* Header Section */}\n        <div\n          className=\"flex cursor-pointer items-center justify-between bg-[#F5F5F7] p-3.5 transition-colors dark:bg-[#161616]\"\n          onClick={() => setIsExpanded(!isExpanded)}\n        >\n          <div className=\"flex min-w-0 items-center gap-3\">\n            <div className=\"flex h-10 w-10 shrink-0 items-center justify-center rounded-[10px] bg-[#D8775A] text-[#EFE3DE] shadow-inner\">\n              <RiClaudeFill size={26} />\n            </div>\n            <span className=\"truncate text-[15px] font-semibold text-[#1A1A1A] transition-colors dark:text-[#ededed]\">\n              {name}\n            </span>\n          </div>\n\n          <div className=\"flex shrink-0 items-center gap-3\">\n            {/* Responsive SVG Graph Fixed */}\n            <div className=\"w-15 sm:w-20\">\n              <svg viewBox=\"0 0 80 20\" fill=\"none\" className=\"h-auto w-full\">\n                <path\n                  d=\"M2 18C15 15 25 5 45 8C65 11 70 2 78 2\"\n                  stroke=\"#32BE3E\"\n                  strokeWidth=\"2\"\n                  strokeLinecap=\"round\"\n                />\n              </svg>\n            </div>\n\n            <motion.div\n              animate={{ rotate: isExpanded ? 0 : 180 }}\n              className=\"flex h-8 w-8 shrink-0 items-center justify-center rounded-lg border border-[#A9A9AB]/40 bg-[#F5F5F7] text-[#A9A9AB] transition-colors duration-200 hover:text-[#7f7f81] dark:bg-[#1c1c1c]\"\n            >\n              <ChevronUp size={22} />\n            </motion.div>\n          </div>\n        </div>\n\n        {/* Expanded Content */}\n        <AnimatePresence>\n          {isExpanded && (\n            <motion.div\n              initial={{ height: 0, opacity: 0 }}\n              animate={{ height: 'auto', opacity: 1 }}\n              exit={{ height: 0, opacity: 0 }}\n              transition={springConfig}\n              className=\"shadow-3xl rounded-t-3xl border-t-[1.4px] border-[#E9E8EF] bg-white transition-colors duration-500 dark:border-white/5 dark:bg-[#1c1c1c]\"\n            >\n              <div className=\"space-y-4 p-5\">\n                <DataRow icon={<Globe size={16} />} label=\"Website\">\n                  <div className=\"flex items-center gap-1.5 truncate rounded-full border-[1.5px] border-[#e3e2e8] px-2 py-1 text-[11px] font-medium text-[#666] sm:text-[12px] dark:border-white/10 dark:text-gray-400\">\n                    <LinkIcon size={12} className=\"shrink-0\" />{' '}\n                    <span className=\"truncate\">{website}</span>\n                  </div>\n                </DataRow>\n\n                <DataRow\n                  icon={<MousePointer2 size={16} />}\n                  label=\"Monthly visits\"\n                >\n                  <span className=\"text-[14px] font-semibold text-[#464646] dark:text-[#d4d4d4]\">\n                    {visits}\n                  </span>\n                </DataRow>\n\n                <DataRow icon={<Flame size={16} />} label=\"Heat Score\">\n                  <div className=\"flex items-center gap-1 rounded-full border border-[#D1F0DB] bg-[#EBF9EC] px-2 py-0.5 text-[12px] font-bold text-[#107F3E] dark:border-green-500/20 dark:bg-green-500/10 dark:text-green-400\">\n                    {heatScore} <RxArrowTopRight size={14} strokeWidth={0.5} />\n                  </div>\n                </DataRow>\n\n                <DataRow icon={<MapPin size={16} />} label=\"Location\">\n                  <span className=\"ml-2 truncate text-right text-[14px] font-semibold text-[#464646] dark:text-[#d4d4d4]\">\n                    {location}\n                  </span>\n                </DataRow>\n\n                <DataRow icon={<Tag size={16} />} label=\"Categories\">\n                  <div className=\"flex flex-wrap justify-end gap-2\">\n                    {categories.map((cat) => (\n                      <span\n                        key={cat}\n                        className=\"rounded-full border border-[#E1D8F5] bg-[#F6EFFF] px-2.5 py-0.5 text-[11px] font-bold whitespace-nowrap text-[#7C3AED] dark:border-purple-500/20 dark:bg-purple-500/10 dark:text-purple-400\"\n                      >\n                        {cat}\n                      </span>\n                    ))}\n                  </div>\n                </DataRow>\n\n                <DataRow icon={<Users size={16} />} label=\"Employees\">\n                  <span className=\"text-[14px] font-semibold text-[#464646] dark:text-[#d4d4d4]\">\n                    {employees}\n                  </span>\n                </DataRow>\n\n                <DataRow icon={<DollarSign size={16} />} label=\"Estimated ARR\">\n                  <span className=\"rounded-full border border-[#D1F0DB] bg-[#E8F9EE] px-2 py-0.5 text-[12px] font-bold text-[#107F3E] dark:border-green-500/20 dark:bg-green-500/10 dark:text-green-400\">\n                    {arr}\n                  </span>\n                </DataRow>\n\n                <DataRow icon={<Flag size={16} />} label=\"Founders\">\n                  <div className=\"flex flex-wrap items-center justify-end gap-2\">\n                    {founders.map((f, i) => (\n                      <div\n                        key={i}\n                        className=\"flex shrink-0 items-center gap-2 rounded-full border border-[#E5E5E5] bg-[#F7F7F8] py-1 pr-3 pl-1 dark:border-white/10 dark:bg-white/5\"\n                      >\n                        <img\n                          src={f.avatar}\n                          className=\"h-5 w-5 rounded-full object-cover\"\n                          alt=\"\"\n                        />\n                        <span className=\"text-[12px] font-medium text-[#1A1A1A] dark:text-[#d4d4d4]\">\n                          {f.name}\n                        </span>\n                      </div>\n                    ))}\n                    <div className=\"flex h-6 w-8 shrink-0 items-center justify-center rounded-full border border-[#E5E5E5] bg-[#F1F1F2] text-[11px] font-bold text-[#666] dark:border-white/10 dark:bg-[#2a2a2a] dark:text-gray-400\">\n                      +{extraFounders}\n                    </div>\n                  </div>\n                </DataRow>\n              </div>\n            </motion.div>\n          )}\n        </AnimatePresence>\n      </motion.div>\n    </div>\n  );\n};\n\nconst DataRow = ({\n  icon,\n  label,\n  children,\n}: {\n  icon: any;\n  label: string;\n  children: React.ReactNode;\n}) => (\n  <div className=\"flex items-center justify-between gap-4 py-0.5\">\n    <div className=\"flex shrink-0 items-center gap-3 text-[#A1A1A1]\">\n      {icon}\n      <span className=\"text-[13px] font-medium whitespace-nowrap text-[#71717A] dark:text-gray-400\">\n        {label}\n      </span>\n    </div>\n    <div className=\"flex min-w-0 flex-1 justify-end\">{children}</div>\n  </div>\n);\n"
    }
  ]
}
