import { cn } from "@/lib/utils";

/** Three-line terrace motif (teal / sage / amber). */
export function TerraceMark({ className }: { className?: string }) {
  return (
    <svg viewBox="0 0 32 32" className={cn("h-7 w-7", className)} aria-hidden="true">
      <path
        d="M3 24 Q16 14 29 24"
        fill="none"
        stroke="var(--primary)"
        strokeWidth="3.2"
        strokeLinecap="round"
      />
      <path
        d="M6 18 Q16 10 26 18"
        fill="none"
        stroke="var(--sage)"
        strokeWidth="3.2"
        strokeLinecap="round"
      />
      <path
        d="M10 12 Q16 7 22 12"
        fill="none"
        stroke="var(--amber)"
        strokeWidth="3.2"
        strokeLinecap="round"
      />
    </svg>
  );
}
export function Wordmark({
  collapsed = false,
  sub = true,
}: {
  collapsed?: boolean;
  sub?: boolean;
}) {
  return (
    <div className="flex items-center gap-2.5">
      <TerraceMark className="shrink-0" />
      {!collapsed && (
        <div className="min-w-0 leading-tight">
          <div className="font-display text-[15px] font-bold tracking-tight">PBPS MIS</div>
          {sub && (
            <div className="text-[11px] text-muted-foreground">Monitoring &amp; Verification</div>
          )}
        </div>
      )}
    </div>
  );
}
