(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{3998:(e,t,r)=>{"use strict";r.d(t,{$:()=>o});var a=r(95155);r(12115);var s=r(32467),l=r(83101),n=r(64269);let i=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function o(e){let{className:t,variant:r,size:l,asChild:o=!1,...c}=e,d=o?s.DX:"button";return(0,a.jsx)(d,{"data-slot":"button",className:(0,n.cn)(i({variant:r,size:l,className:t})),...c})}},54356:(e,t,r)=>{Promise.resolve().then(r.bind(r,57952))},57952:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>O});var a=r(95155),s=r(36489),l=r(52619),n=r.n(l),i=r(3998),o=r(99550),c=r(20508),d=r(84926),x=r(66091);function h(){var e;let{data:t}=(0,s.useSession)(),r=async()=>{localStorage.removeItem("installPromptDismissed"),await (0,s.signOut)({callbackUrl:"/"})};return(0,a.jsx)("header",{className:"bg-white/80 backdrop-blur-md border-b border-gray-200 sticky top-0 z-50 transition-all duration-300",children:(0,a.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,a.jsxs)("div",{className:"flex justify-between items-center h-16",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-4 space-x-reverse",children:[(0,a.jsx)(o.A,{className:"h-8 w-8 text-playmo-purple-600"}),(0,a.jsx)("h1",{className:"text-2xl font-bold text-gray-900",children:"Playmo"})]}),(0,a.jsxs)("nav",{className:"hidden md:flex space-x-8 space-x-reverse",children:[(0,a.jsx)(n(),{href:"/events",className:"text-gray-700 hover:text-playmo-purple-600 font-medium transition-colors",children:"رویدادها"}),(0,a.jsx)(n(),{href:"/cafes",className:"text-gray-700 hover:text-playmo-purple-600 font-medium transition-colors",children:"کافه‌گیم‌ها"}),(0,a.jsx)(n(),{href:"/contact",className:"text-gray-700 hover:text-playmo-purple-600 font-medium transition-colors",children:"تماس با ما"}),(0,a.jsx)(n(),{href:"/terms",className:"text-gray-700 hover:text-playmo-purple-600 font-medium transition-colors",children:"قوانین سایت"})]}),(0,a.jsx)("div",{className:"hidden md:flex items-center space-x-4 space-x-reverse",children:(null==t?void 0:t.user)?(0,a.jsxs)("div",{className:"flex items-center space-x-3 space-x-reverse",children:[(0,a.jsxs)("span",{className:"text-gray-700",children:["سلام ",t.user.name||(null==(e=t.user.email)?void 0:e.split("@")[0])]}),(0,a.jsx)(i.$,{variant:"ghost",className:"text-playmo-purple-600 hover:text-playmo-purple-700",asChild:!0,children:(0,a.jsxs)(n(),{href:(()=>{var e;if(!(null==t?void 0:t.user))return"/auth/customer/signin";switch(null==(e=t.user)?void 0:e.role){case"ADMIN":case"SUPER_ADMIN":return"/admin-dashboard";case"CAFE_OWNER":return"/business-dashboard";default:return"/dashboard"}})(),children:[(0,a.jsx)(c.A,{className:"mr-1 h-4 w-4"}),"داشبورد"]})}),(0,a.jsxs)(i.$,{variant:"ghost",className:"text-red-600 hover:text-red-700",onClick:r,children:[(0,a.jsx)(d.A,{className:"mr-1 h-4 w-4"}),"خروج"]})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.$,{variant:"ghost",className:"text-playmo-blue-600 hover:text-playmo-blue-700",asChild:!0,children:(0,a.jsx)(n(),{href:(0,x.kk)(),children:"ورود بازیکن"})}),(0,a.jsx)(i.$,{className:"bg-gradient-to-r from-playmo-purple-600 to-playmo-purple-700 text-white shadow-md hover:shadow-lg transition-all",asChild:!0,children:(0,a.jsx)(n(),{href:(0,x.Ku)(),children:"ثبت‌نام بازیکن"})}),(0,a.jsx)(i.$,{variant:"outline",className:"border-emerald-600 text-emerald-600 hover:bg-emerald-50",asChild:!0,children:(0,a.jsx)(n(),{href:(0,x.aC)(),children:"ورود کسب‌وکار"})})]})})]})})})}function p(){return(0,a.jsx)("footer",{className:"bg-gray-900 text-white py-12 border-t border-gray-800",children:(0,a.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[(0,a.jsxs)("div",{className:"col-span-1 md:col-span-2",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-4 space-x-reverse mb-4",children:[(0,a.jsx)(o.A,{className:"h-8 w-8 text-playmo-purple-400"}),(0,a.jsx)("h3",{className:"text-2xl font-bold",children:"Playmo"})]}),(0,a.jsx)("p",{className:"text-gray-400 mb-4 text-sm leading-6 max-w-sm",children:"مرجع کامل بازی فکری. جایی که گیمرها دور هم جمع می‌شوند، تیم تشکیل می‌دهند و در رویدادهای هیجان‌انگیز شرکت می‌کنند."}),(0,a.jsx)("a",{href:"https://trustseal.enamad.ir/?id=670080&Code=hNN4AQsFOtncJgevE0tXqtkOWeaSQ7ip",target:"_blank",rel:"noopener noreferrer",className:"inline-block hover:opacity-80 transition-opacity",children:(0,a.jsx)("img",{src:"/images/enamad.png",alt:"اینماد",style:{cursor:"pointer",width:"80px",height:"80px"},loading:"lazy",className:"bg-white rounded-xl p-1"})})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"font-bold text-lg mb-4 text-purple-400",children:"لینک‌های مفید"}),(0,a.jsxs)("ul",{className:"space-y-3 text-gray-400",children:[(0,a.jsx)("li",{children:(0,a.jsx)(n(),{href:"/events",className:"hover:text-white transition-colors",children:"رویدادها"})}),(0,a.jsx)("li",{children:(0,a.jsx)(n(),{href:"/cafes",className:"hover:text-white transition-colors",children:"کافه‌گیم‌ها"})}),(0,a.jsx)("li",{children:(0,a.jsx)(n(),{href:"/contact",className:"hover:text-white transition-colors",children:"تماس با ما"})}),(0,a.jsx)("li",{children:(0,a.jsx)(n(),{href:"/terms",className:"hover:text-white transition-colors",children:"قوانین سایت"})})]})]})]}),(0,a.jsx)("div",{className:"border-t border-gray-800 mt-12 pt-8 text-center",children:(0,a.jsx)("p",{className:"text-gray-500 text-sm",children:"\xa9 ۱۴۰۳ Playmo. تمامی حقوق برای تیم توسعه پلی‌مو محفوظ است."})})]})})}var m=r(78598),u=r(39347),g=r(12115),b=r(18344);function f(){let[e,t]=(0,g.useState)(!1),r=(0,b.s)(),s=(0,b.s)(),l={1:{x:0,y:0},6:{x:180,y:0},3:{x:0,y:-90},4:{x:0,y:90},2:{x:-90,y:0},5:{x:90,y:0}},[n,i]=(0,g.useState)({x:0,y:0}),o=async()=>{if(e)return;t(!0);let a=l[Math.floor(6*Math.random())+1],o=n.x+3+Math.floor(2*Math.random()),c=n.y+3+Math.floor(2*Math.random()),d=a.x+360*o,x=a.y+360*c;i({x:o,y:c}),s.start({y:[0,-120,0,-80,0,-50,0,-30,0,-15,0,-5,0,-2,0],transition:{duration:3,times:[0,.14,.28,.42,.54,.64,.72,.79,.85,.9,.94,.97,.985,.995,1],ease:["easeOut","easeIn","easeOut","easeIn","easeOut","easeIn","easeOut","easeIn","easeOut","easeIn","easeOut","easeIn","easeOut","easeIn"]}}),await r.start({rotateX:d,rotateY:x,transition:{duration:3,ease:"circOut"}}),t(!1)};return(0,a.jsx)(m.P.div,{className:"w-full h-full flex items-center justify-center cursor-grab active:cursor-grabbing group touch-none",onPanEnd:(e,t)=>{t.offset.y<-20&&t.velocity.y<0&&o()},children:(0,a.jsx)("div",{className:"relative w-12 h-12",style:{perspective:"1000px"},children:(0,a.jsx)(m.P.div,{className:"w-full h-full relative",animate:s,children:(0,a.jsx)("div",{className:"w-full h-full relative",style:{transformStyle:"preserve-3d",transform:"rotateX(-30deg) rotateY(-45deg)"},children:(0,a.jsxs)(m.P.div,{className:"w-full h-full relative",style:{transformStyle:"preserve-3d"},animate:r,initial:{rotateX:0,rotateY:0},children:[(0,a.jsx)(v,{side:"front",number:1}),(0,a.jsx)(v,{side:"back",number:6}),(0,a.jsx)(v,{side:"right",number:3}),(0,a.jsx)(v,{side:"left",number:4}),(0,a.jsx)(v,{side:"top",number:2}),(0,a.jsx)(v,{side:"bottom",number:5})]})})})})})}function v(e){let{side:t,number:r}=e;return(0,a.jsx)("div",{className:"absolute inset-0 w-12 h-12 bg-gradient-to-br from-white/10 to-white/5 backdrop-blur-md border-2 border-emerald-500/90 rounded-xl flex items-center justify-center",style:{transform:{front:"rotateY(0deg) translateZ(24px)",back:"rotateY(180deg) translateZ(24px)",right:"rotateY(90deg) translateZ(24px)",left:"rotateY(-90deg) translateZ(24px)",top:"rotateX(90deg) translateZ(24px)",bottom:"rotateX(-90deg) translateZ(24px)"}[t],boxShadow:"0 0 15px rgba(16, 185, 129, 0.2), inset 0 0 20px rgba(16, 185, 129, 0.1)"},children:(0,a.jsx)("div",{className:"grid grid-cols-3 grid-rows-3 gap-0.5 w-8 h-8 p-0.5",children:(function(e){let t=Array(9).fill(!1);return({1:[4],2:[0,8],3:[0,4,8],4:[0,2,6,8],5:[0,2,4,6,8],6:[0,2,3,5,6,8]})[e].forEach(e=>t[e]=!0),t})(r).map((e,t)=>(0,a.jsx)("div",{className:"rounded-full w-full h-full transition-all duration-300 ".concat(e?"bg-emerald-400 shadow-[0_0_8px_rgba(52,211,153,0.8)] scale-100":"bg-transparent scale-0")},t))})})}function j(){let[e,t]=(0,g.useState)(!1),r=(0,b.s)(),s=(0,b.s)(),[l,n]=(0,g.useState)(0),i=async()=>{if(e)return;t(!0);let a=l+360*(3+Math.floor(3*Math.random()))+180*(.5>Math.random()?0:1);n(a),r.start({y:[0,-150,0,-90,0,-50,0,-25,0,-10,0],transition:{duration:2.5,times:[0,.12,.24,.38,.5,.6,.7,.78,.86,.93,1],ease:["easeOut","easeIn","easeOut","easeIn","easeOut","easeIn","easeOut","easeIn","easeOut","easeIn"]}}),await s.start({rotateX:a,transition:{duration:2.5,ease:[.25,.1,.25,1]}}),t(!1)};return(0,a.jsx)(m.P.div,{className:"w-full h-full flex items-center justify-center cursor-grab active:cursor-grabbing touch-none select-none",onPanEnd:(e,t)=>{t.offset.y<-20&&t.velocity.y<0&&i()},children:(0,a.jsx)("div",{className:"relative",style:{perspective:"800px",width:"100px",height:"100px"},children:(0,a.jsx)(m.P.div,{className:"w-full h-full",animate:r,children:(0,a.jsxs)(m.P.div,{className:"w-full h-full relative",style:{transformStyle:"preserve-3d"},animate:s,initial:{rotateX:0},children:[(0,a.jsx)(y,{side:"heads"}),(0,a.jsx)(y,{side:"tails"}),(0,a.jsx)(w,{})]})})})})}function y(e){let{side:t}=e,r="heads"===t;return(0,a.jsx)("div",{className:"absolute inset-0 w-[100px] h-[100px] rounded-full flex items-center justify-center",style:{transform:r?"translateZ(4px)":"rotateX(180deg) translateZ(4px)",backfaceVisibility:"hidden",background:"linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05))",backdropFilter:"blur(10px)",boxShadow:"\n                    0 0 25px rgba(234,179,8,0.4),\n                    0 0 50px rgba(234,179,8,0.2),\n                    inset 0 0 20px rgba(234,179,8,0.1),\n                    inset 0 2px 10px rgba(255,255,255,0.2)\n                ",border:"2px solid rgba(234,179,8,0.7)"},children:(0,a.jsx)("div",{className:"w-[84px] h-[84px] rounded-full flex items-center justify-center relative",style:{background:"linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02))",border:"1px solid rgba(234,179,8,0.5)",boxShadow:"inset 0 0 15px rgba(234,179,8,0.15)"},children:r?(0,a.jsxs)("svg",{viewBox:"0 0 64 64",className:"w-12 h-12",fill:"none",children:[(0,a.jsx)("path",{d:"M12 44 L52 44 L52 40 L12 40 Z",fill:"rgba(234,179,8,0.3)",stroke:"rgba(234,179,8,0.9)",strokeWidth:"1.5",style:{filter:"drop-shadow(0 0 4px rgba(234,179,8,0.6))"}}),(0,a.jsx)("path",{d:"M14 40 L8 22 L20 30 L32 16 L44 30 L56 22 L50 40 Z",fill:"rgba(234,179,8,0.2)",stroke:"rgba(234,179,8,0.9)",strokeWidth:"1.5",style:{filter:"drop-shadow(0 0 6px rgba(234,179,8,0.5))"}}),(0,a.jsx)("circle",{cx:"32",cy:"26",r:"4",fill:"rgba(220,20,60,0.4)",stroke:"rgba(220,20,60,0.9)",strokeWidth:"1",style:{filter:"drop-shadow(0 0 5px rgba(220,20,60,0.7))"}}),(0,a.jsx)("circle",{cx:"20",cy:"32",r:"2.5",fill:"rgba(30,144,255,0.4)",stroke:"rgba(30,144,255,0.9)",strokeWidth:"0.5",style:{filter:"drop-shadow(0 0 4px rgba(30,144,255,0.7))"}}),(0,a.jsx)("circle",{cx:"44",cy:"32",r:"2.5",fill:"rgba(30,144,255,0.4)",stroke:"rgba(30,144,255,0.9)",strokeWidth:"0.5",style:{filter:"drop-shadow(0 0 4px rgba(30,144,255,0.7))"}}),(0,a.jsx)("circle",{cx:"8",cy:"22",r:"2",fill:"rgba(234,179,8,0.6)",stroke:"rgba(234,179,8,0.9)",style:{filter:"drop-shadow(0 0 4px rgba(234,179,8,0.8))"}}),(0,a.jsx)("circle",{cx:"32",cy:"16",r:"2.5",fill:"rgba(234,179,8,0.6)",stroke:"rgba(234,179,8,0.9)",style:{filter:"drop-shadow(0 0 4px rgba(234,179,8,0.8))"}}),(0,a.jsx)("circle",{cx:"56",cy:"22",r:"2",fill:"rgba(234,179,8,0.6)",stroke:"rgba(234,179,8,0.9)",style:{filter:"drop-shadow(0 0 4px rgba(234,179,8,0.8))"}})]}):(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center text-center mt-2",children:[(0,a.jsx)("span",{className:"font-black text-lg leading-none",style:{color:"rgba(234,179,8,0.95)",textShadow:"0 0 10px rgba(234,179,8,0.7), 0 0 20px rgba(234,179,8,0.4)"},children:"Playmo"}),(0,a.jsx)("span",{className:"text-[6px] font-medium leading-tight mt-0.5",style:{color:"rgba(234,179,8,0.7)",textShadow:"0 0 5px rgba(234,179,8,0.5)"},children:"gaming platform"})]})})})}function w(){let e=[];for(let t=0;t<24;t++){let r=t/24*360;e.push((0,a.jsx)("div",{className:"absolute",style:{width:"8px",height:"4px",background:t%2==0?"linear-gradient(to bottom, rgba(234,179,8,0.6), rgba(234,179,8,0.3))":"linear-gradient(to bottom, rgba(234,179,8,0.3), rgba(234,179,8,0.15))",left:"50%",top:"50%",transformOrigin:"center center",transform:"\n                        translate(-50%, -50%)\n                        rotate(".concat(r,"deg)\n                        translateX(48px)\n                        rotateY(90deg)\n                    "),boxShadow:t%2==0?"0 0 3px rgba(234,179,8,0.2), inset 0 1px 1px rgba(255,255,255,0.1)":"0 0 2px rgba(234,179,8,0.1)"}},t))}return(0,a.jsx)(a.Fragment,{children:e})}function N(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,[t,r]=(0,g.useState)(!1),[a,s]=(0,g.useState)(1),l=(0,g.useCallback)(()=>{let e=Math.floor(4*Math.random())+1,t=0,a=()=>{t<2*e?(s(t%2==0?.3*Math.random()+.2:.3*Math.random()+.7),r(t%2==0),t++,setTimeout(a,70*Math.random()+30)):(r(!1),s(1))};a()},[]);return(0,g.useEffect)(()=>{let t=()=>setTimeout(()=>{Math.random()>.3&&l();let e=t();return()=>clearTimeout(e)},e+5e3*Math.random()),r=t();return()=>clearTimeout(r)},[e,l]),{isFlickering:t,flickerIntensity:a}}let k={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1}}},_={hidden:{y:20,opacity:0},visible:{y:0,opacity:1,transition:{type:"spring",stiffness:100,damping:15}}};function I(){let e=N(2500),t=N(4e3);return(0,a.jsxs)("section",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-10 lg:py-16 relative overflow-hidden",children:[(0,a.jsxs)("div",{className:"absolute inset-0 z-0 hidden lg:block",children:[(0,a.jsx)("img",{src:"/images/bento-bg-desktop1.webp",alt:"Bento Background",className:"w-full h-full object-cover opacity-90"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-black/60"})]}),(0,a.jsxs)("div",{className:"absolute inset-0 z-0 lg:hidden",children:[(0,a.jsx)("img",{src:"/images/bento-bg-desktop1.webp",alt:"Board Game Cafe Atmosphere",className:"w-full h-full object-cover opacity-95"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-black/80 via-black/80 to-black/80"})]}),(0,a.jsx)("div",{className:"w-full lg:max-w-5xl lg:mx-auto",children:(0,a.jsxs)(m.P.div,{className:"grid grid-cols-2 lg:grid-cols-3 auto-rows-min gap-3 lg:gap-4 relative z-10",variants:k,initial:"hidden",animate:"visible",children:[(0,a.jsx)(n(),{href:"/events",children:(0,a.jsxs)(m.P.div,{className:"col-span-1 lg:col-span-1 lg:row-span-1 bg-emerald-600/[0.1] backdrop-blur-[5px] border-2 border-emerald-400/50 rounded-xl p-4 sm:p-6 text-white flex items-center justify-center overflow-hidden relative h-[160px] sm:h-[260px] transition-all duration-75 cursor-pointer hover:scale-[1.02]",variants:_,style:{boxShadow:e.isFlickering?"0 0 ".concat(8*e.flickerIntensity,"px rgba(52,211,153,").concat(.15*e.flickerIntensity,")"):"0 0 25px rgba(52,211,153,0.4), 0 0 50px rgba(52,211,153,0.2), inset 0 0 15px rgba(52,211,153,0.1)",opacity:e.isFlickering?.4+.3*e.flickerIntensity:1},children:[(0,a.jsx)("div",{className:"absolute top-0 left-0 w-32 h-32 bg-emerald-400 rounded-full blur-2xl -ml-10 -mt-10 transition-opacity duration-75",style:{opacity:e.isFlickering?.05*e.flickerIntensity:.15}}),(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center text-center transition-all duration-75 relative",style:{opacity:e.isFlickering?.3+.4*e.flickerIntensity:1},children:[(0,a.jsx)("span",{className:"relative z-10 text-3xl sm:text-6xl leading-none",style:{fontFamily:"'Lalezar', 'Vazirmatn', cursive",fontWeight:400,color:e.isFlickering?"rgba(180, 255, 220, ".concat(.6+.3*e.flickerIntensity,")"):"#e0fff0",textShadow:e.isFlickering?"0 0 ".concat(2*e.flickerIntensity,"px #34d399, 0 0 ").concat(4*e.flickerIntensity,"px #10b981"):"0 0 1px rgba(255,255,255,0.8),\n                                           0 0 3px rgba(255,255,255,0.5),\n                                           0 0 8px rgba(52,211,153,0.6),\n                                           0 0 15px rgba(52,211,153,0.4),\n                                           0 0 25px rgba(16,185,129,0.3),\n                                           0 0 35px rgba(16,185,129,0.2)",WebkitTextStroke:"0.5px rgba(52, 211, 153, 0.3)"},children:"مشاهده"}),(0,a.jsx)("span",{className:"relative z-10 text-4xl sm:text-5xl leading-none -mt-1 sm:-mt-2",style:{fontFamily:"'Lalezar', 'Vazirmatn', cursive",fontWeight:400,color:e.isFlickering?"rgba(180, 255, 220, ".concat(.6+.3*e.flickerIntensity,")"):"#e0fff0",textShadow:e.isFlickering?"0 0 ".concat(2*e.flickerIntensity,"px #34d399, 0 0 ").concat(4*e.flickerIntensity,"px #10b981"):"0 0 1px rgba(255,255,255,0.8),\n                                           0 0 3px rgba(255,255,255,0.5),\n                                           0 0 8px rgba(52,211,153,0.6),\n                                           0 0 15px rgba(52,211,153,0.4),\n                                           0 0 25px rgba(16,185,129,0.3),\n                                           0 0 35px rgba(16,185,129,0.2)",WebkitTextStroke:"0.5px rgba(52, 211, 153, 0.3)"},children:"رویدادها"}),(0,a.jsx)("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-24 h-6 blur-xl rounded-full transition-opacity duration-75",style:{background:"radial-gradient(ellipse, rgba(52, 211, 153, 0.3) 0%, transparent 70%)",opacity:e.isFlickering?.15*e.flickerIntensity:.4}})]})]})}),(0,a.jsx)(m.P.div,{className:"col-span-1 row-span-2 relative rounded-xl overflow-hidden shadow-lg group h-[330px] sm:h-[530px] lg:h-full",variants:_,children:(0,a.jsx)("img",{src:"/images/bento-card2.webp",alt:"Tournament Event",className:"absolute inset-0 w-full h-full object-fill group-hover:scale-105 transition-transform duration-500"})}),(0,a.jsx)(m.P.div,{className:"col-span-1 lg:hidden lg:row-span-1 h-[160px] sm:h-[260px] relative z-20",variants:_,children:(0,a.jsx)(f,{})}),(0,a.jsx)(m.P.div,{className:"col-span-1 lg:col-span-1 lg:row-span-1 relative rounded-xl overflow-hidden shadow-lg group h-[160px] sm:h-[260px]",variants:_,layoutId:"image-3",children:(0,a.jsx)("img",{src:"/images/bento-card3.webp",alt:"Playmo Event",className:"absolute inset-0 w-full h-full object-fill group-hover:scale-105 transition-transform duration-500"})}),(0,a.jsx)(n(),{href:"/cafes",children:(0,a.jsxs)(m.P.div,{className:"col-span-1 lg:col-span-1 lg:row-span-1 bg-gray-600/[0.1] backdrop-blur-[5px] border-2 border-red-400/50 rounded-xl p-4 sm:p-6 text-white flex items-center justify-center relative overflow-hidden h-[160px] sm:h-[260px] transition-all duration-75 cursor-pointer hover:scale-[1.02]",variants:_,style:{boxShadow:t.isFlickering?"0 0 ".concat(8*t.flickerIntensity,"px rgba(239,68,68,").concat(.15*t.flickerIntensity,")"):"0 0 25px rgba(239,68,68,0.4), 0 0 50px rgba(239,68,68,0.2), inset 0 0 15px rgba(239,68,68,0.1)",opacity:t.isFlickering?.4+.3*t.flickerIntensity:1},children:[(0,a.jsx)("div",{className:"absolute bottom-[-20%] right-[-20%] w-32 h-32 bg-red-400 rounded-full blur-2xl transition-opacity duration-75",style:{opacity:t.isFlickering?.05*t.flickerIntensity:.15}}),(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center text-center transition-all duration-75 relative",style:{opacity:t.isFlickering?.3+.4*t.flickerIntensity:1},children:[(0,a.jsx)("span",{className:"relative z-10 text-3xl sm:text-6xl leading-none",style:{fontFamily:"'Lalezar', 'Vazirmatn', cursive",fontWeight:400,color:t.isFlickering?"rgba(255, 220, 220, ".concat(.6+.3*t.flickerIntensity,")"):"#ffe6e6",textShadow:t.isFlickering?"0 0 ".concat(2*t.flickerIntensity,"px #ef4444, 0 0 ").concat(4*t.flickerIntensity,"px #dc2626"):"0 0 1px rgba(255,255,255,0.8),\n                                               0 0 3px rgba(255,255,255,0.5),\n                                               0 0 8px rgba(239,68,68,0.6),\n                                               0 0 15px rgba(239,68,68,0.4),\n                                               0 0 25px rgba(220,38,38,0.3),\n                                               0 0 35px rgba(220,38,38,0.2)",WebkitTextStroke:"0.5px rgba(239, 68, 68, 0.3)"},children:"مشاهده"}),(0,a.jsx)("span",{className:"relative z-10 text-4xl sm:text-5xl leading-none -mt-1 sm:-mt-2",style:{fontFamily:"'Lalezar', 'Vazirmatn', cursive",fontWeight:400,color:t.isFlickering?"rgba(255, 220, 220, ".concat(.6+.3*t.flickerIntensity,")"):"#ffe6e6",textShadow:t.isFlickering?"0 0 ".concat(2*t.flickerIntensity,"px #ef4444, 0 0 ").concat(4*t.flickerIntensity,"px #dc2626"):"0 0 1px rgba(255,255,255,0.8),\n                                               0 0 3px rgba(255,255,255,0.5),\n                                               0 0 8px rgba(239,68,68,0.6),\n                                               0 0 15px rgba(239,68,68,0.4),\n                                               0 0 25px rgba(220,38,38,0.3),\n                                               0 0 35px rgba(220,38,38,0.2)",WebkitTextStroke:"0.5px rgba(239, 68, 68, 0.3)"},children:"کافه‌گیم‌ها"}),(0,a.jsx)("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-24 h-6 blur-xl rounded-full transition-opacity duration-75",style:{background:"radial-gradient(ellipse, rgba(239, 68, 68, 0.3) 0%, transparent 70%)",opacity:t.isFlickering?.15*t.flickerIntensity:.4}})]})]})}),(0,a.jsx)(m.P.div,{className:"col-span-1 lg:hidden h-[160px] sm:h-[260px] relative z-20 flex items-center justify-center",variants:_,children:(0,a.jsx)(j,{})}),(0,a.jsx)(m.P.div,{className:"col-span-1 lg:col-span-1 lg:row-span-1 relative rounded-xl overflow-hidden shadow-lg group h-[160px] sm:h-[260px]",variants:_,layoutId:"image-1",children:(0,a.jsx)("img",{src:"/images/bento-card1.webp",alt:"Playmo Event",className:"absolute inset-0 w-full h-full object-fill group-hover:scale-105 transition-transform duration-500"})}),(0,a.jsx)(m.P.div,{className:"col-span-2 lg:col-span-3 lg:row-span-1 bg-gray-600/[0.1] backdrop-blur-[5px] border border-emerald-500/30 relative rounded-xl overflow-hidden shadow-2xl h-[120px] sm:h-[140px] group isolate",variants:_,children:(0,a.jsxs)("div",{className:"relative z-10 flex flex-col sm:flex-row items-center justify-center gap-4 sm:gap-8 w-full h-full px-6 py-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)("div",{className:"flex items-center justify-center w-12 h-12 rounded-full bg-white/10 backdrop-blur-md shadow-[0_0_15px_rgba(255,255,255,0.3)] border border-white/20",children:(0,a.jsx)(u.A,{className:"h-6 w-6 text-yellow-300 fill-yellow-300 drop-shadow-[0_0_8px_rgba(253,224,71,0.5)]"})}),(0,a.jsxs)("div",{className:"flex flex-col relative text-right sm:text-right",children:[(0,a.jsx)("h3",{className:"text-lg sm:text-2xl font-black mb-2 sm:mb-1 bg-gradient-to-r from-white via-blue-100 to-white bg-clip-text text-transparent drop-shadow-sm",children:"شروع یک ماجراجویی جدید!"}),(0,a.jsx)("p",{className:"text-blue-100/90 text-xs sm:text-sm font-medium leading-relaxed max-w-xl",children:"رویدادهای جذاب را پیدا کن، در کافه‌های شهر بازی کن و با جامعه گیمرها همراه شو"})]})]}),(0,a.jsx)(i.$,{variant:"secondary",size:"sm",className:"hidden sm:inline-flex bg-white/90 hover:bg-white text-gray-900 font-bold rounded-xl px-8 shadow-[0_0_20px_rgba(255,255,255,0.3)] border border-white/50 backdrop-blur-md transition-all duration-300 hover:scale-105",children:"ثبت نام رایگان"})]})})]})})]})}var z=r(86948),F=r(52987),M=r(16485),P=r(21873),S=r(58779);function Y(){let[e,t]=(0,g.useState)([]),[r,s]=(0,g.useState)(!0);return(0,g.useEffect)(()=>{(async()=>{try{var e;let r=await fetch("/api/events"),a=await r.json();a.success&&(null==(e=a.data)?void 0:e.events)&&t(a.data.events.slice(0,3))}catch(e){console.error("Error fetching events:",e),t([])}finally{s(!1)}})()},[]),(0,a.jsxs)("section",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-20 relative overflow-hidden",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-[url('/images/land-bg2-light.webp')] bg-[length:100%_auto] md:bg-cover bg-top bg-no-repeat z-0 lg:hidden"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-[linear-gradient(to_bottom,rgba(0,0,0,0.1)_10%,rgba(0,0,0,0.1)_10%,transparent_100%,transparent_100%)] z-0 lg:hidden"}),(0,a.jsxs)("div",{className:"relative z-10",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center mb-16 space-y-6 mt-12",children:[(0,a.jsxs)("div",{className:"inline-flex items-center space-x-2 space-x-reverse bg-purple-50 px-4 py-1.5 rounded-full text-purple-600 font-bold text-sm border border-purple-100 shadow-sm",children:[(0,a.jsx)("span",{className:"w-2 h-2 rounded-full bg-purple-600 animate-pulse"}),(0,a.jsx)("span",{children:"رویدادهای برگزیده"})]}),(0,a.jsxs)("h2",{className:"text-4xl lg:text-5xl font-black text-center leading-tight",children:[(0,a.jsx)("span",{className:"text-gray-900",children:"همین حالا "}),(0,a.jsx)("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-purple-600 to-blue-600",children:"رزرو کن!"})]}),(0,a.jsx)("p",{className:"text-gray-600 text-center max-w-lg text-lg",children:"تجربه هیجان، رقابت و دوستی در بهترین کافه‌گیم‌های شهر"}),(0,a.jsx)(i.$,{asChild:!0,variant:"outline",className:"border-2 border-purple-100 hover:border-purple-200 hover:bg-purple-50 text-purple-700 rounded-xl px-8 h-12",children:(0,a.jsxs)(n(),{href:"/events",className:"flex items-center gap-2",children:["مشاهده همه رویدادها",(0,a.jsx)(F.A,{className:"h-4 w-4"})]})})]}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 px-6 md:px-0",children:r?[,,,].fill(0).map((e,t)=>(0,a.jsxs)(z.Zp,{className:"border-0 shadow-sm bg-white",children:[(0,a.jsxs)(z.aR,{children:[(0,a.jsx)("div",{className:"h-4 bg-gray-100 rounded w-1/3 mb-4 animate-pulse"}),(0,a.jsx)("div",{className:"h-6 bg-gray-100 rounded w-2/3 mb-2 animate-pulse"})]}),(0,a.jsxs)(z.Wu,{children:[(0,a.jsx)("div",{className:"h-32 bg-gray-100 rounded mb-4 animate-pulse"}),(0,a.jsx)("div",{className:"h-10 bg-gray-100 rounded animate-pulse"})]})]},t)):e.length>0?e.map((e,t)=>{var r;let s,l,o=(e=>{let t=[{shadow:"shadow-[0_10px_30px_-5px_rgba(124,58,237,0.2)] hover:shadow-[0_20px_40px_-5px_rgba(124,58,237,0.3)]",border:"border-purple-100",badge:"bg-purple-100 text-purple-800",buttonHover:"hover:bg-purple-600",shapes:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"absolute top-0 right-0 w-32 h-32 bg-purple-500/10 rounded-bl-[100px] -mr-8 -mt-8 z-0 pointer-events-none"}),(0,a.jsx)("div",{className:"absolute bottom-0 left-0 w-24 h-24 bg-purple-500/10 rounded-tr-[80px] -ml-6 -mb-6 z-0 pointer-events-none"}),(0,a.jsx)("div",{className:"absolute top-[20%] left-[10%] w-12 h-12 bg-fuchsia-400/10 rounded-full blur-xl z-0 pointer-events-none"})]})},{shadow:"shadow-[0_10px_30px_-5px_rgba(59,130,246,0.2)] hover:shadow-[0_20px_40px_-5px_rgba(59,130,246,0.3)]",border:"border-blue-100",badge:"bg-blue-100 text-blue-800",buttonHover:"hover:bg-blue-600",shapes:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"absolute top-0 left-0 w-40 h-40 bg-blue-500/10 rounded-br-[120px] -ml-10 -mt-10 z-0 pointer-events-none"}),(0,a.jsx)("div",{className:"absolute bottom-[20%] right-[-10%] w-28 h-28 bg-cyan-400/10 rounded-full blur-2xl z-0 pointer-events-none"}),(0,a.jsx)("div",{className:"absolute bottom-0 right-0 w-20 h-20 bg-blue-600/5 rounded-tl-[60px] z-0 pointer-events-none"})]})},{shadow:"shadow-[0_10px_30px_-5px_rgba(244,63,94,0.2)] hover:shadow-[0_20px_40px_-5px_rgba(244,63,94,0.3)]",border:"border-rose-100",badge:"bg-rose-100 text-rose-800",buttonHover:"hover:bg-rose-600",shapes:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"absolute top-[-20px] left-[50%] -translate-x-1/2 w-48 h-24 bg-rose-500/10 rounded-b-[100px] z-0 pointer-events-none"}),(0,a.jsx)("div",{className:"absolute bottom-0 left-0 w-32 h-32 bg-orange-400/10 rounded-tr-full -ml-10 -mb-10 blur-lg z-0 pointer-events-none"}),(0,a.jsx)("div",{className:"absolute top-1/2 right-0 w-16 h-32 bg-rose-600/5 rounded-l-full z-0 pointer-events-none"})]})}];return t[e%t.length]})(t);return(0,a.jsx)(m.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1*t},children:(0,a.jsxs)(z.Zp,{className:"h-full border shadow-sm ".concat(o.shadow," ").concat(o.border," hover:-translate-y-1 transition-all duration-300 group overflow-hidden bg-white/80 backdrop-blur-sm relative z-10"),children:[o.shapes,(0,a.jsxs)(z.aR,{className:"pb-3 relative z-20",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,a.jsx)("div",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium ".concat(o.badge),children:e.game}),(0,a.jsxs)("div",{className:"flex items-center text-yellow-500 bg-yellow-50 px-2 py-0.5 rounded-full border border-yellow-100",children:[(0,a.jsx)(u.A,{className:"h-3.5 w-3.5 fill-current"}),(0,a.jsx)("span",{className:"text-xs text-yellow-700 mr-1 font-bold",children:"4.8"})]})]}),(0,a.jsx)(z.ZB,{className:"text-xl font-bold text-gray-900 group-hover:text-purple-600 transition-colors line-clamp-1",children:e.title}),(0,a.jsx)(z.BT,{className:"line-clamp-2 text-sm mt-1 text-gray-500",children:e.description||"توضیحات رویداد ..."})]}),(0,a.jsxs)(z.Wu,{className:"relative z-20",children:[(0,a.jsxs)("div",{className:"space-y-3 mb-6",children:[(0,a.jsxs)("div",{className:"flex items-center text-gray-500 text-sm",children:[(0,a.jsx)(M.A,{className:"h-4 w-4 ml-2 text-gray-400"}),(s=e.date,(0,S.pJ)(s,{dateFormat:"dddd jYYYY/jMM/jDD",separator:""}))]}),(0,a.jsxs)("div",{className:"flex items-center text-gray-500 text-sm",children:[(0,a.jsx)(P.A,{className:"h-4 w-4 ml-2 text-gray-400"}),(null==(r=e.cafe)?void 0:r.name)||"کافه گیم"]})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between pt-4 border-t border-gray-100/50",children:[(0,a.jsx)("div",{className:"text-lg font-black text-gray-900",children:(l=e.price,new Intl.NumberFormat("fa-IR").format(l)+" تومان")}),(0,a.jsx)(i.$,{asChild:!0,size:"sm",className:"bg-gray-900 text-white ".concat(o.buttonHover," transition-colors rounded-lg shadow-md"),children:(0,a.jsx)(n(),{href:"/events/".concat(e.id),children:"ثبت نام"})})]})]})]})},e.id)}):(0,a.jsxs)("div",{className:"col-span-full py-12 text-center bg-white rounded-2xl shadow-sm border border-dashed border-gray-300",children:[(0,a.jsx)(o.A,{className:"h-12 w-12 text-gray-300 mx-auto mb-3"}),(0,a.jsx)("p",{className:"text-gray-500 font-medium",children:" فعلاً رویدادی موجود نیست."})]})})]})]})}function O(){return(0,a.jsxs)("div",{className:"min-h-screen bg-gray-50 font-iranian-sans",children:[(0,a.jsx)(h,{}),(0,a.jsxs)("main",{children:[(0,a.jsx)(I,{}),(0,a.jsx)(Y,{})]}),(0,a.jsx)(p,{})]})}},58779:(e,t,r)=>{"use strict";r.d(t,{Fi:()=>x,Mk:()=>o,NP:()=>d,Or:()=>l,WV:()=>i,aR:()=>c,oC:()=>h,pJ:()=>n});var a=r(4368),s=r.n(a);function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"jYYYY/jMM/jDD";try{return s()(e).format(t)}catch(e){return"تاریخ نامشخص"}}function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{dateFormat:r="jYYYY/jMM/jDD",timeFormat:a="HH:mm",separator:l=" - "}=t;try{let t=s()(e),n=t.format(r),i=t.format(a);return"".concat(n).concat(l).concat(i)}catch(e){return"تاریخ نامشخص"}}function i(e){let t=s()(e);return{year:t.jYear(),month:t.jMonth()+1,day:t.jDate()}}function o(e,t,r){let a=s()();return a.jYear(e),a.jMonth(t-1),a.jDate(r),a.toDate()}function c(e){return["فروردین","اردیبهشت","خرداد","تیر","مرداد","شهریور","مهر","آبان","آذر","دی","بهمن","اسفند"][e-1]||""}function d(){return["ش","ی","د","س","چ","پ","ج"]}function x(e,t){let r=s()();r.jYear(e),r.jMonth(t-1),r.jDate(1);let a=s()(r);return 12===t?(a.jYear(e+1),a.jMonth(0)):a.jMonth(t),a.jDate(1),a.diff(r,"days")}function h(e,t){let r=s()();return r.jYear(e),r.jMonth(t-1),r.jDate(1),(r.day()+1)%7}},64269:(e,t,r)=>{"use strict";r.d(t,{cn:()=>l});var a=r(2821),s=r(75889);function l(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.QP)((0,a.$)(t))}},66091:(e,t,r)=>{"use strict";r.d(t,{Ku:()=>n,O$:()=>c,aC:()=>i,al:()=>o,kk:()=>l});var a=r(95704);function s(){return"true"===a.env.NEXT_PUBLIC_FEATURE_OTP_AUTH}function l(){return"/auth/customer/signin"}function n(){return s()?"/auth/customer/signup/phone":"/auth/customer/signup"}function i(){return"/auth/business/signin"}function o(){return s()?"/auth/business/signup/phone":"/auth/business/signup"}function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"customer";return"business"===e?"/auth/business/forgot-password":"/auth/customer/forgot-password"}},86948:(e,t,r)=>{"use strict";r.d(t,{BT:()=>o,Wu:()=>c,ZB:()=>i,Zp:()=>l,aR:()=>n});var a=r(95155);r(12115);var s=r(64269);function l(e){let{className:t,...r}=e;return(0,a.jsx)("div",{"data-slot":"card",className:(0,s.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t),...r})}function n(e){let{className:t,...r}=e;return(0,a.jsx)("div",{"data-slot":"card-header",className:(0,s.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...r})}function i(e){let{className:t,...r}=e;return(0,a.jsx)("div",{"data-slot":"card-title",className:(0,s.cn)("leading-none font-semibold",t),...r})}function o(e){let{className:t,...r}=e;return(0,a.jsx)("div",{"data-slot":"card-description",className:(0,s.cn)("text-muted-foreground text-sm",t),...r})}function c(e){let{className:t,...r}=e;return(0,a.jsx)("div",{"data-slot":"card-content",className:(0,s.cn)("px-6",t),...r})}}},e=>{e.O(0,[4909,7055,6489,6524,1408,4623,7358],()=>e(e.s=54356)),_N_E=e.O()}]);