import { Skeleton } from '@/components/ui/skeleton';

export default function BlogsLoading() {
  return (
    <main className="min-h-screen bg-[#0F0F12]">
      <div className="container mx-auto px-4 py-8 md:py-12">
        {/* Breadcrumb Skeleton */}
        <div className="mb-6">
          <Skeleton className="h-4 w-48 bg-[#202026]" />
        </div>

        {/* Title Skeleton */}
        <Skeleton className="h-12 w-64 mb-2 bg-[#202026]" />
        <Skeleton className="h-6 w-32 mb-8 bg-[#202026]" />

        {/* Filters Skeleton */}
        <div className="mb-8 flex flex-col md:flex-row gap-4">
          <Skeleton className="flex-1 h-11 bg-[#202026]" />
          <Skeleton className="h-11 w-[200px] bg-[#202026]" />
          <Skeleton className="h-11 w-[150px] bg-[#202026]" />
        </div>

        {/* Article Grid Skeleton - 2 columns */}
        <div className="grid grid-cols-1 md:grid-cols-2 gap-6 mb-12">
          {Array.from({ length: 12 }).map((_, index) => (
            <div key={index} className="rounded-lg border border-[#2A2A33] bg-[#202026] overflow-hidden shadow-sm">
              {/* Image Skeleton */}
              <Skeleton className="aspect-video w-full bg-[#202026]" />
              
              {/* Content Skeleton */}
              <div className="p-4 space-y-3">
                <Skeleton className="h-6 w-20 bg-[#202026]" />
                <Skeleton className="h-6 w-full bg-[#202026]" />
                <Skeleton className="h-6 w-3/4 bg-[#202026]" />
                <Skeleton className="h-4 w-full bg-[#202026]" />
                <Skeleton className="h-4 w-5/6 bg-[#202026]" />
                <div className="flex gap-4 pt-2">
                  <Skeleton className="h-4 w-24 bg-[#202026]" />
                  <Skeleton className="h-4 w-20 bg-[#202026]" />
                </div>
              </div>
            </div>
          ))}
        </div>

        {/* Pagination Skeleton */}
        <div className="flex justify-center gap-2">
          <Skeleton className="h-10 w-10 bg-[#202026]" />
          <Skeleton className="h-10 w-10 bg-[#202026]" />
          <Skeleton className="h-10 w-10 bg-[#202026]" />
        </div>
      </div>
    </main>
  );
}
