"use client";
import type { CSSProperties } from "react";
import "./loader.css";
export type BrandLoaderProps = { loading:boolean; fullscreen?:boolean; logoSrc:string; label?:string; className?:string };
/** Three discovery dots take turns along a gentle trail. Uses actual application readiness. */
export function BrandLoader({loading,fullscreen=true,logoSrc,label="Loading ExploreWithPihu",className=""}:BrandLoaderProps){
 if(!loading)return null;
 const style={"--brand-loader-primary":"#F43F5E","--brand-loader-secondary":"#F59E0B","--brand-loader-ink":"#392140","--brand-loader-paper":"#FFF7F9","--brand-loader-mark-size":"70px","--brand-loader-mark-pos":"65.0px"} as CSSProperties;
 return <div className={["brand-loader",fullscreen?"brand-loader--fullscreen":"brand-loader--inline",className].join(" ")} style={style} role="status" aria-live="polite" aria-busy="true" data-brand={"ExploreWithPihu"}>
 <span className="brand-loader__stage" aria-hidden="true"><span className="brand-loader__scene" dangerouslySetInnerHTML={{__html:"<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"200\" height=\"200\" viewBox=\"0 0 1000 1000\" data-motion-profile=\"explorewithpihu\" aria-hidden=\"true\"><defs><clipPath id=\"clear-explorewithpihu\"><path clip-rule=\"evenodd\" d=\"M0 0H1000V1000H0Z M275 275V725H725V275Z\"/></clipPath></defs><g clip-path=\"url(#clear-explorewithpihu)\"><g class=\"identity-grammar\"><path d=\"M160 260Q270 110 350 220Q330 350 160 260\" stroke=\"#F59E0B\" fill=\"none\" stroke-width=\"18\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"nature-leaf\" class=\"identity-stroke\" style=\"--phase:0.000s\"/><path d=\"M100 730C80 420 470 870 420 500S840 70 900 390\" stroke=\"#F43F5E\" fill=\"none\" stroke-width=\"20\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"curiosity-trail\" class=\"identity-stroke\" style=\"--phase:0.095s\"/><rect x=\"500\" y=\"620\" width=\"220\" height=\"170\" stroke=\"#392140\" fill=\"none\" stroke-width=\"14\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"story-window\" class=\"identity-stroke\" style=\"--phase:0.190s\"/><path d=\"M800 150V300M725 225H875M750 175L850 275M850 175L750 275\" stroke=\"#F59E0B\" fill=\"none\" stroke-width=\"14\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"making-spark\" class=\"identity-stroke\" style=\"--phase:0.285s\"/><circle class=\"identity-traveller\" r=\"19\" fill=\"#F59E0B\" stroke=\"#FFF7F9\" stroke-width=\"6\"><animateMotion dur=\"1.46s\" repeatCount=\"indefinite\" path=\"M100 730C80 420 470 870 420 500S840 70 900 390\" calcMode=\"paced\"/></circle></g></g></svg>"}}/><img className="brand-loader__mark" src={logoSrc} width={70} height={70} alt=""/></span><span className="brand-loader__label">{label}</span></div>;
}
export default BrandLoader;
