const BLOCK: React.CSSProperties = { background: 'var(--color-surface-alt)' };
const CARD: React.CSSProperties = { background: 'var(--color-surface)', border: '1px solid var(--color-border)' };

export default function ReportSkeleton() {
  return (
    <div className="space-y-5 animate-pulse" aria-hidden="true">
      {[0, 1, 2].map((s) => (
        <div key={s} className="p-5 rounded-xl" style={CARD}>
          <div className="h-4 w-40 rounded mb-2" style={BLOCK} />
          <div className="h-3 w-64 rounded mb-5" style={BLOCK} />
          <div className="grid grid-cols-2 md:grid-cols-3 xl:grid-cols-4 gap-3">
            {Array.from({ length: s === 0 ? 8 : 4 }).map((_, i) => (
              <div key={i} className="h-20 rounded-lg" style={BLOCK} />
            ))}
          </div>
          {s === 1 && <div className="h-48 rounded-lg mt-5" style={BLOCK} />}
        </div>
      ))}
    </div>
  );
}
