import React from 'react';
import { BrainCircuit, Sparkles } from 'lucide-react';

interface AiAutoInferenceIconProps {
  size?: number;
  strokeWidth?: number;
}

export function AiAutoInferenceIcon({ size = 20, strokeWidth = 2 }: AiAutoInferenceIconProps) {
  const sparkleSize = Math.max(8, Math.round(size * 0.42));
  return (
    <span
      data-testid="ai-auto-inference-icon"
      className="relative inline-flex items-center justify-center"
      style={{ width: size, height: size }}
    >
      <BrainCircuit size={size} strokeWidth={strokeWidth} />
      <Sparkles
        size={sparkleSize}
        strokeWidth={Math.max(strokeWidth, 2.1)}
        className="absolute -right-1 -top-1 text-emerald-200 drop-shadow-[0_0_4px_rgba(110,231,183,0.75)]"
      />
    </span>
  );
}
