"use client";

export function CorpusLoadingSkeleton() {
  return (
    <div className="space-y-4 animate-pulse">
      {/* Filter skeleton */}
      <div className="flex gap-4">
        <div className="h-10 w-64 bg-muted rounded-md" />
        <div className="h-10 w-32 bg-muted rounded-md" />
      </div>

      {/* Pattern cards skeleton */}
      <div className="grid gap-4 md:grid-cols-2 lg:grid-cols-3">
        {[1, 2, 3, 4, 5, 6].map((i) => (
          <div key={i} className="rounded-lg border border-border bg-card p-4">
            <div className="space-y-3">
              <div className="h-5 w-3/4 bg-muted rounded" />
              <div className="h-4 w-1/2 bg-muted rounded" />
              <div className="flex gap-2 mt-4">
                <div className="h-6 w-20 bg-muted rounded-full" />
                <div className="h-6 w-20 bg-muted rounded-full" />
              </div>
            </div>
          </div>
        ))}
      </div>
    </div>
  );
}
