import { cn } from "@/lib/utils";
import { LogoStrip } from "@/components/brand/logo-strip";

type SlideChromeProps = {
  number: number;
  total: number;
  inverse?: boolean;
  className?: string;
};

export function SlideChrome({ number, total, inverse = false, className }: SlideChromeProps) {
  const pad = (n: number) => String(n).padStart(2, "0");
  return (
    <div
      className={cn(
        "pointer-events-none absolute inset-x-[clamp(24px,6vw,128px)] bottom-6 z-10 flex items-center justify-between",
        "font-mono text-[11px] tracking-wide sm:text-[13px]",
        inverse ? "text-white/55" : "text-ink-400",
        className,
      )}
    >
      <div className="pointer-events-auto">
        <LogoStrip inverse={inverse} />
      </div>
      <span className="mono">
        {pad(number)} / {pad(total)}
      </span>
    </div>
  );
}
