{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "showcase2",
  "title": "Split Hotspot Feature Section",
  "description": "Two-column layout with text content, CTA buttons, and interactive image with clickable hotspot popovers. Perfect for SaaS feature pages with reversible layout option.",
  "dependencies": [
    "clsx",
    "tailwind-merge",
    "lucide-react"
  ],
  "registryDependencies": [
    "badge",
    "button",
    "popover"
  ],
  "files": [
    {
      "path": "registry/showcase2/showcase2.tsx",
      "content": "\"use client\";\n\nimport { ArrowRight, Shield, Sparkles, Zap } from \"lucide-react\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"@/components/ui/popover\";\n\nimport { Badge } from \"@/components/ui/badge\";\nimport { Button } from \"@/components/ui/button\";\nimport Link from \"next/link\";\nimport { cn } from \"@/lib/utils\";\n\ninterface Hotspot {\n  id: string;\n  x: number;\n  y: number;\n  icon?: React.ReactNode;\n  title: string;\n  description: string;\n  link?: {\n    href: string;\n    label?: string;\n  };\n  size?: \"sm\" | \"md\" | \"lg\";\n  appearance?: \"light\" | \"dark\";\n}\n\ninterface ButtonItem {\n  id: string;\n  label: string;\n  href?: string;\n  variant?: \"default\" | \"secondary\" | \"outline\" | \"ghost\" | \"link\" | \"destructive\";\n}\n\ninterface Showcase2Props {\n  badge?: {\n    label: string;\n    variant?: \"default\" | \"secondary\" | \"outline\";\n  };\n  heading?: string;\n  description?: string;\n  buttons?: ButtonItem[];\n  image?: {\n    src: string;\n    alt: string;\n  };\n  hotspots?: Hotspot[];\n  reversed?: boolean;\n  className?: string;\n}\n\nexport const showcase2Demo: Showcase2Props = {\n  badge: { label: \"Features\", variant: \"secondary\" },\n  heading: \"Powerful analytics at your fingertips\",\n  description:\n    \"Explore the interactive dashboard and discover how our platform can transform your data into actionable insights.\",\n  buttons: [\n    {\n      id: \"btn-1\",\n      label: \"Get started\",\n      href: \"https://beste.co\",\n      variant: \"default\",\n    },\n    {\n      id: \"btn-2\",\n      label: \"Watch demo\",\n      href: \"https://beste.co\",\n      variant: \"outline\",\n    },\n  ],\n  image: {\n    src: \"https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=1200&h=675&fit=crop&q=80\",\n    alt: \"Analytics dashboard\",\n  },\n  hotspots: [\n    {\n      id: \"hotspot-1\",\n      x: 20,\n      y: 35,\n      icon: <Zap className=\"size-4\" />,\n      title: \"Quick Actions\",\n      description: \"Access frequently used features with one click from the sidebar.\",\n      size: \"lg\",\n      appearance: \"light\",\n    },\n    {\n      id: \"hotspot-2\",\n      x: 55,\n      y: 50,\n      icon: <Shield className=\"size-4\" />,\n      title: \"Data Protection\",\n      description: \"Your data is encrypted end-to-end and stored in secure servers.\",\n      size: \"lg\",\n      appearance: \"light\",\n    },\n    {\n      id: \"hotspot-3\",\n      x: 75,\n      y: 25,\n      icon: <Sparkles className=\"size-4\" />,\n      title: \"Smart Reports\",\n      description: \"AI-generated reports that highlight the most important metrics.\",\n      size: \"lg\",\n      appearance: \"light\",\n    },\n  ],\n  reversed: false,\n};\n\nfunction HotspotButton({ hotspot }: { hotspot: Hotspot }) {\n  const size = hotspot.size || \"lg\";\n  const appearance = hotspot.appearance || \"light\";\n\n  const sizeClasses = {\n    sm: \"w-6 h-6\",\n    md: \"w-8 h-8\",\n    lg: \"w-10 h-10\",\n  };\n\n  const pulseSizeClasses = {\n    sm: \"w-10 h-10\",\n    md: \"w-14 h-14\",\n    lg: \"w-18 h-18\",\n  };\n\n  const appearanceClasses = {\n    light: \"bg-background text-foreground border-foreground\",\n    dark: \"bg-foreground text-background border-background\",\n  };\n\n  const pulseClasses = {\n    light: \"bg-background/40\",\n    dark: \"bg-foreground/40\",\n  };\n\n  return (\n    <Popover>\n      <PopoverTrigger asChild>\n        <button\n          type=\"button\"\n          className={cn(\n            \"cursor-pointer absolute transform -translate-x-1/2 -translate-y-1/2 z-20\",\n            \"focus:outline-none focus:ring-2 focus:ring-primary/50 focus:ring-offset-2 rounded-full\"\n          )}\n          style={{ left: `${hotspot.x}%`, top: `${hotspot.y}%` }}\n          aria-label={`View details: ${hotspot.title}`}\n        >\n          {/* Pulse animation ring */}\n          <span\n            className={cn(\n              \"absolute inset-0 transform -translate-x-1/2 -translate-y-1/2\",\n              \"left-1/2 top-1/2\",\n              pulseSizeClasses[size],\n              \"rounded-full animate-ping\",\n              pulseClasses[appearance]\n            )}\n          />\n          {/* Main hotspot button */}\n          <span\n            className={cn(\n              sizeClasses[size],\n              \"relative flex items-center justify-center rounded-full\",\n              \"border-2 shadow-lg\",\n              \"transition-all duration-200\",\n              \"hover:scale-110 hover:shadow-xl\",\n              appearanceClasses[appearance]\n            )}\n          >\n            {hotspot.icon || <span className=\"text-xs font-bold\">{hotspot.id}</span>}\n          </span>\n        </button>\n      </PopoverTrigger>\n      <PopoverContent\n        side=\"bottom\"\n        align=\"center\"\n        sideOffset={12}\n        className={cn(\"w-72 p-4 rounded-lg\", \"bg-background/95 backdrop-blur-md border shadow-2xl\")}\n      >\n        <div className=\"space-y-2\">\n          <div className=\"flex items-center gap-2\">\n            {hotspot.icon && (\n              <span className=\"p-2 rounded-lg bg-primary/10 text-primary\">{hotspot.icon}</span>\n            )}\n            <h4 className=\"font-semibold text-base\">{hotspot.title}</h4>\n          </div>\n          <p className=\"text-sm leading-relaxed text-muted-foreground\">{hotspot.description}</p>\n          {hotspot.link && (\n            <Link\n              href={hotspot.link.href}\n              className={cn(\n                \"inline-flex items-center gap-1 text-sm font-medium\",\n                \"text-primary hover:underline mt-2\"\n              )}\n            >\n              {hotspot.link.label || \"Learn more\"}\n              <ArrowRight className=\"size-4\" />\n            </Link>\n          )}\n        </div>\n      </PopoverContent>\n    </Popover>\n  );\n}\n\nexport function Showcase2({\n  badge,\n  heading,\n  description,\n  buttons = [],\n  image,\n  hotspots = [],\n  reversed = false,\n  className,\n}: Showcase2Props) {\n  return (\n    <section className={cn(\"py-16 md:py-24 w-full\", className)}>\n      <div className=\"mx-auto max-w-6xl px-4 md:px-6\">\n        <div\n          className={cn(\n            \"grid grid-cols-1 lg:grid-cols-2 gap-8 lg:gap-12 items-center\",\n            reversed && \"lg:[&>*:first-child]:order-2 lg:[&>*:last-child]:order-1\"\n          )}\n        >\n          {/* Content */}\n          <div className=\"flex flex-col gap-6 justify-center\">\n            {badge && (\n              <div>\n                <Badge variant={badge.variant ?? \"default\"}>{badge.label}</Badge>\n              </div>\n            )}\n\n            {heading && (\n              <h2 className=\"text-3xl md:text-4xl lg:text-5xl font-semibold\">{heading}</h2>\n            )}\n\n            {description && (\n              <p className=\"text-base md:text-lg text-muted-foreground\">{description}</p>\n            )}\n\n            {buttons.length > 0 && (\n              <div className=\"flex flex-wrap gap-3 mt-2\">\n                {buttons.map((button) => (\n                  <Button key={button.id} variant={button.variant ?? \"default\"} size=\"lg\" asChild>\n                    <Link href={button.href ?? \"#\"}>{button.label}</Link>\n                  </Button>\n                ))}\n              </div>\n            )}\n          </div>\n\n          {/* Media with Hotspots */}\n          <div className=\"relative w-full\">\n            <div className=\"relative rounded-lg overflow-hidden shadow-2xl border aspect-video\">\n              {image?.src ? (\n                <img\n                  className=\"absolute inset-0 size-full object-cover\"\n                  src={image.src}\n                  alt={image.alt}\n                />\n              ) : (\n                <div className=\"w-full h-full bg-muted flex items-center justify-center\">\n                  <span className=\"text-muted-foreground\">Showcase image</span>\n                </div>\n              )}\n\n              {/* Overlay for better hotspot visibility */}\n              <div className=\"absolute inset-0 bg-gradient-to-t from-black/20 via-transparent to-transparent pointer-events-none\" />\n\n              {/* Hotspots with Popovers */}\n              {hotspots.map((hotspot) => (\n                <HotspotButton key={hotspot.id} hotspot={hotspot} />\n              ))}\n            </div>\n          </div>\n        </div>\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/beste/block/showcase2.tsx"
    }
  ],
  "type": "registry:block"
}