import { Skeleton } from "@/components/shared/skeleton"

export default function Loading() {
  return (
    <div className="max-w-5xl mx-auto space-y-6">
      <div className="space-y-1">
        <Skeleton className="h-5 w-28" />
        <Skeleton className="h-3.5 w-52" />
      </div>
      <div className="grid grid-cols-1 lg:grid-cols-3 gap-4">
        <div className="lg:col-span-2 rounded-2xl border border-white/[0.06] bg-[#16161f] overflow-hidden">
          <div className="border-b border-white/[0.06] px-5 py-4 flex items-center justify-between">
            <Skeleton className="h-4 w-8 rounded" />
            <Skeleton className="h-4 w-36" />
            <Skeleton className="h-4 w-8 rounded" />
          </div>
          <div className="grid grid-cols-7 border-b border-white/[0.04]">
            {Array.from({ length: 7 }).map((_, i) => (
              <Skeleton key={i} className="h-8 m-1 rounded" />
            ))}
          </div>
          <div className="grid grid-cols-7">
            {Array.from({ length: 35 }).map((_, i) => (
              <Skeleton key={i} className="h-[72px] m-0.5 rounded" />
            ))}
          </div>
        </div>
        <div className="rounded-2xl border border-white/[0.06] bg-[#16161f] p-5 space-y-3">
          <Skeleton className="h-4 w-32" />
          <Skeleton className="h-20 w-full rounded-xl" />
          <Skeleton className="h-20 w-full rounded-xl" />
        </div>
      </div>
    </div>
  )
}
