import{u as x,l as b,q as v,s as w,v as y,j as e,z as j,B as i,G as N,a as n,a4 as l,o as f,K as T,M as C,Q as I}from"./index-CHXls9zu.js";import{C as $}from"./card-DujlUpbI.js";import{W as k}from"./wrench-CQWc3GNJ.js";import"./analytics-Bu8LxldC.js";const _=()=>{const{t,i18n:c}=x("game"),o=b(),{currentLanguage:g}=v(),r=c.language,a=r==="en"?"":`/${r}`;w({pageName:"games"}),y({pageName:"games"});const m=[{id:"guest-chaos",title:t("games.guestChaos.title"),description:t("games.guestChaos.description"),tag:t("games.guestChaos.tag"),tagType:"guest",status:"live",route:`${a}/#game-section`},{id:"inbox-triage",title:t("games.inboxTriage.title"),description:t("games.inboxTriage.description"),tag:t("games.inboxTriage.tag"),tagType:"guest",status:"coming-soon",route:`${a}/games/inbox-triage`},{id:"ops-dispatch",title:t("games.opsDispatch.title"),description:t("games.opsDispatch.description"),tag:t("games.opsDispatch.tag"),tagType:"ops",status:"coming-soon",route:`${a}/games/ops-dispatch`},{id:"upsell-optimiser",title:t("games.upsellOptimiser.title"),description:t("games.upsellOptimiser.description"),tag:t("games.upsellOptimiser.tag"),tagType:"revenue",status:"coming-soon",route:`${a}/games/upsell-optimiser`},{id:"policy-guardian",title:t("games.policyGuardian.title"),description:t("games.policyGuardian.description"),tag:t("games.policyGuardian.tag"),tagType:"guest",status:"coming-soon",route:`${a}/games/policy-guardian`},{id:"multi-property-chaos",title:t("games.multiPropertyChaos.title"),description:t("games.multiPropertyChaos.description"),tag:t("games.multiPropertyChaos.tag"),tagType:"ops",status:"coming-soon",route:`${a}/games/multi-property-chaos`}],p={guest:C,ops:k,revenue:I},d={guest:"bg-info-500/20 text-info-500 border-info-500/30",ops:"bg-warning-600/20 text-warning-600 border-warning-600/30",revenue:"bg-success-600/20 text-success-600 border-success-600/30"},u=()=>{document.getElementById("game-grid")?.scrollIntoView({behavior:"smooth"})};return e.jsxs("div",{className:"min-h-screen bg-primary-700",children:[e.jsx(j,{noindex:g!=="en",title:"Interactive Demos | Cendra",description:"Experience hospitality chaos through interactive games. See how Cendra's AI handles guest communication, operations, and revenue optimization.",canonicalPath:"/games"}),e.jsxs("section",{className:"relative min-h-[60vh] flex items-center justify-center overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 opacity-[0.03]",style:{backgroundImage:`linear-gradient(to right, white 1px, transparent 1px),
                              linear-gradient(to bottom, white 1px, transparent 1px)`,backgroundSize:"60px 60px"}}),e.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_at_center,transparent_0%,hsl(210_50%_15%/0.4)_100%)]"}),e.jsxs("div",{className:"relative z-10 container mx-auto px-6 text-center pt-20",children:[e.jsx("h1",{className:"text-4xl md:text-6xl lg:text-7xl font-bold text-white mb-6 tracking-tight",children:t("hub.title")}),e.jsx("p",{className:"text-lg md:text-xl text-white/70 max-w-2xl mx-auto mb-10",children:t("hub.subtitle")}),e.jsxs(i,{size:"lg",variant:"outline",className:"h-14 px-8 text-lg border-white/30 bg-white/10 text-white hover:bg-white hover:text-primary-700",onClick:u,children:[e.jsx(N,{className:"mr-2 h-5 w-5"}),t("hub.startPlaying")]})]})]}),e.jsx("section",{id:"game-grid",className:"py-20 md:py-28 bg-primary-700/90 content-auto-xl",children:e.jsx("div",{className:"container mx-auto px-6",children:e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:m.map(s=>{const h=p[s.tagType];return e.jsxs($,{className:n("group relative overflow-hidden transition-all duration-300","bg-white/5 backdrop-blur-sm border border-white/10","hover:border-white/30 hover:shadow-xl hover:shadow-black/20","flex flex-col"),children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-white/5 to-transparent opacity-0 group-hover:opacity-100 transition-opacity"}),e.jsxs("div",{className:"relative p-6 flex flex-col flex-1",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs(l,{variant:"outline",className:n("flex items-center gap-1.5",d[s.tagType]),children:[e.jsx(h,{className:"h-3 w-3"}),s.tag]}),s.status==="coming-soon"&&e.jsx(l,{variant:"outline",className:"bg-accent-500/20 text-accent-400 border-accent-500/30",children:t("hub.comingSoon")})]}),e.jsx("h3",{className:"text-xl font-semibold text-white mb-2 group-hover:text-accent-400 transition-colors",children:s.title}),e.jsx("p",{className:"text-white/60 text-sm mb-6 flex-1",children:s.description}),s.status==="live"?e.jsxs(i,{onClick:()=>{window.location.pathname==="/"||window.location.pathname===`${a}/`?document.getElementById("game-section")?.scrollIntoView({behavior:"smooth"}):o(`${a}/#game-section`)},className:"w-full bg-accent-500 hover:bg-accent-400 text-white",children:[t("hub.playNow"),e.jsx(f,{className:"ml-2 h-4 w-4"})]}):e.jsx(i,{onClick:()=>o(s.route),variant:"outline",className:"w-full border-white/30 text-white hover:bg-white/10",children:t("hub.requestEarlyAccess")})]})]},s.id)})})})}),e.jsx(T,{})]})};export{_ as default};