import{r as a,j as e,t as r}from"./index-x-IbNx01.js";import{l as y}from"./playsxo-logo-Cf2TvipV.js";import{H as b,L as v}from"./AppContent-OZvJ19iO.js";import{I as k}from"./instagram-DnthNtzU.js";import{T as A,F as C}from"./twitter-BB0bokfK.js";import{Y as S}from"./youtube-C14lm4Cw.js";import{C as T}from"./circle-check-big-DxR8sVtr.js";import{M as P}from"./mail-DFT4n5sK.js";function W({onGetStarted:f,onLogin:w,onNavigate:t,onNavigateToRelationships:F,onNavigateToSex:O,onNavigateToSensualWellness:E,onNavigateToHealth:I,onNavigateToSexualHealth:L,onNavigateToMembership:_,onNavigateToArt:H,onNavigateToShop:M,onNavigateToXOSutra:R,onNavigateToEncyclopedia:X}){const g=new Date().getFullYear(),[o,d]=a.useState(""),[n,h]=a.useState(""),[i,m]=a.useState(""),[l,u]=a.useState(!1),[j,N]=a.useState(!1),p=async()=>{if(!o.trim()){r.error("Please enter your first name");return}if(!n.trim()){r.error("Please enter your last name");return}if(!i.trim()){r.error("Please enter your email address");return}if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(i)){r.error("Please enter a valid email address");return}u(!0);try{const c=await fetch("/api/newsletter/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({firstName:o.trim(),lastName:n.trim(),email:i,source:"website_footer"})}),x=await c.json();c.ok&&x.success?(N(!0),d(""),h(""),m(""),r.success(x.message||"Thank you for subscribing!")):r.error(x.error||"Failed to subscribe. Please try again.")}catch{r.error("Something went wrong. Please try again.")}finally{u(!1)}};return e.jsxs("footer",{className:"relative mt-32 border-t border-white/10",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent via-[#A00008]/10 to-black/60 pointer-events-none"}),e.jsx("div",{className:"relative backdrop-blur-xl bg-black/50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-12 py-16 lg:py-20",children:[e.jsxs("div",{className:"text-center mb-16",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 backdrop-blur-sm bg-gradient-to-r from-[#A00008]/20 to-pink-600/20 border border-[#A00008]/30 rounded-full px-4 py-2 mb-6",children:[e.jsx(b,{className:"w-4 h-4 text-[#A00008]"}),e.jsx("span",{className:"text-white/80 text-sm",children:"Join thousands discovering intimate wellness"})]}),e.jsx("h2",{className:"text-white text-4xl lg:text-5xl mb-6",children:"Ready to explore?"}),e.jsx("p",{className:"text-white/60 text-lg mb-8 max-w-2xl mx-auto",children:"Start your journey to better intimacy and connection. No credit card required."}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[e.jsxs("button",{onClick:f,className:"group relative px-8 py-4 rounded-full overflow-hidden transition-all duration-300 hover:scale-105",children:[e.jsx("div",{className:"absolute inset-0 backdrop-blur-xl bg-gradient-to-r from-[#A00008] to-pink-600"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-white/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),e.jsx("div",{className:"absolute inset-0 rounded-full bg-gradient-to-r from-[#A00008] to-pink-600 opacity-50 blur-xl group-hover:opacity-100 transition-opacity"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-transparent via-white/30 to-transparent -translate-x-full group-hover:translate-x-full transition-transform duration-1000"}),e.jsx("div",{className:"relative z-10 flex items-center gap-2 text-white text-lg",children:e.jsx("span",{children:"Get Started Free"})})]}),e.jsx("button",{onClick:w,className:"px-8 py-4 backdrop-blur-sm bg-white/5 hover:bg-white/10 border border-white/10 hover:border-white/20 rounded-full text-white transition-all",children:"Sign In"})]}),e.jsx("p",{className:"text-white/40 text-sm mt-6",children:"18+ only • Cancel anytime • Privacy guaranteed"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-16 md:gap-8 lg:gap-12 mb-12 pt-12 border-t border-white/10 lg:justify-items-start",children:[e.jsxs("div",{className:"lg:col-span-1 text-center md:text-left flex flex-col items-center md:items-start space-y-4 md:space-y-0",children:[e.jsx("div",{className:"mb-6",children:e.jsx("img",{src:y,alt:"PlaysXO Logo",className:"w-[140px] h-auto drop-shadow-[0_0_12px_rgba(160,0,8,0.6)]"})}),e.jsx("p",{className:"text-white/50 text-sm leading-relaxed mb-6",children:"Your trusted companion for intimacy and sexual wellness education."}),e.jsxs("div",{className:"flex items-center justify-center md:justify-start gap-3",children:[e.jsx("a",{href:"https://www.instagram.com/playsxo",target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 rounded-full backdrop-blur-sm bg-white/5 hover:bg-white/10 border border-white/10 hover:border-[#A00008]/50 flex items-center justify-center transition-all group","aria-label":"Instagram",children:e.jsx(k,{className:"w-5 h-5 text-white/60 group-hover:text-[#A00008] transition-colors"})}),e.jsx("a",{href:"#",className:"w-10 h-10 rounded-full backdrop-blur-sm bg-white/5 hover:bg-white/10 border border-white/10 hover:border-[#A00008]/50 flex items-center justify-center transition-all group","aria-label":"Twitter",children:e.jsx(A,{className:"w-5 h-5 text-white/60 group-hover:text-[#A00008] transition-colors"})}),e.jsx("a",{href:"#",className:"w-10 h-10 rounded-full backdrop-blur-sm bg-white/5 hover:bg-white/10 border border-white/10 hover:border-[#A00008]/50 flex items-center justify-center transition-all group","aria-label":"Facebook",children:e.jsx(C,{className:"w-5 h-5 text-white/60 group-hover:text-[#A00008] transition-colors"})}),e.jsx("a",{href:"https://youtube.com/@playsxo-intimacy",target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 rounded-full backdrop-blur-sm bg-white/5 hover:bg-white/10 border border-white/10 hover:border-[#A00008]/50 flex items-center justify-center transition-all group","aria-label":"YouTube",children:e.jsx(S,{className:"w-5 h-5 text-white/60 group-hover:text-[#A00008] transition-colors"})})]})]}),e.jsxs("div",{className:"flex flex-col items-start max-lg:items-center max-lg:text-center",children:[e.jsx("h3",{className:"text-white mb-6 md:mb-4",children:"Explore"}),e.jsxs("ul",{className:"space-y-4 md:space-y-3 text-left",children:[e.jsx("li",{children:e.jsx("button",{onClick:()=>t?.("naked-truth-info"),className:"text-white/50 hover:text-[#A00008] text-sm transition-colors text-left",children:"The Naked Truth"})}),e.jsx("li",{children:e.jsx("button",{onClick:()=>t?.("relationships"),className:"text-white/50 hover:text-[#A00008] text-sm transition-colors text-left",children:"The Art of Intimacy"})}),e.jsx("li",{children:e.jsx("button",{onClick:()=>t?.("xo-sutra-info"),className:"text-white/50 hover:text-[#A00008] text-sm transition-colors text-left",children:"XO Sutra"})}),e.jsx("li",{children:e.jsx("button",{onClick:()=>t?.("encyclopedia-info"),className:"text-white/50 hover:text-[#A00008] text-sm transition-colors text-left",children:"XO Encyclopedia"})}),e.jsx("li",{children:e.jsx("a",{href:"https://www.leceleste.com",target:"_blank",rel:"noopener noreferrer",className:"text-white/50 hover:text-[#A00008] text-sm transition-colors text-left",children:"Le Celeste"})})]})]}),e.jsxs("div",{className:"flex flex-col items-start max-lg:items-center max-lg:text-center",children:[e.jsx("h3",{className:"text-white mb-6 md:mb-4",children:"Learn"}),e.jsxs("ul",{className:"space-y-4 md:space-y-3 text-left",children:[e.jsx("li",{children:e.jsx("button",{onClick:()=>t?.("relationships"),className:"text-white/50 hover:text-[#A00008] text-sm transition-colors text-left",children:"Relationships"})}),e.jsx("li",{children:e.jsx("button",{onClick:()=>t?.("sex"),className:"text-white/50 hover:text-[#A00008] text-sm transition-colors text-left",children:"Sex Education"})}),e.jsx("li",{children:e.jsx("button",{onClick:()=>t?.("sensual-wellness-info"),className:"text-white/50 hover:text-[#A00008] text-sm transition-colors text-left",children:"Wellness"})}),e.jsx("li",{children:e.jsx("button",{onClick:()=>t?.("sexual-health-info"),className:"text-white/50 hover:text-[#A00008] text-sm transition-colors text-left",children:"Sexual Health"})}),e.jsx("li",{children:e.jsx("button",{onClick:()=>t?.("membership-info"),className:"text-white/50 hover:text-[#A00008] text-sm transition-colors text-left",children:"Membership"})})]})]}),e.jsxs("div",{className:"flex flex-col items-start max-lg:items-center max-lg:text-center",children:[e.jsx("h3",{className:"text-white mb-6 md:mb-4",children:"Company"}),e.jsxs("ul",{className:"space-y-4 md:space-y-3 text-left",children:[e.jsx("li",{children:e.jsx("button",{onClick:()=>t?.("about-us"),className:"text-white/50 hover:text-[#A00008] text-sm transition-colors text-left",children:"About Us"})}),e.jsx("li",{children:e.jsx("button",{onClick:()=>t?.("contact-us"),className:"text-white/50 hover:text-[#A00008] text-sm transition-colors text-left",children:"Contact Us"})}),e.jsx("li",{children:e.jsx("button",{onClick:()=>t?.("press-kit"),className:"text-white/50 hover:text-[#A00008] text-sm transition-colors text-left",children:"Press Kit"})}),e.jsx("li",{children:e.jsx("button",{onClick:()=>t?.("help-support"),className:"text-white/50 hover:text-[#A00008] text-sm transition-colors text-left",children:"Help Centre"})}),e.jsx("li",{children:e.jsx("button",{onClick:()=>t?.("csam"),className:"text-white/50 hover:text-[#A00008] text-sm transition-colors text-left",children:"CSAM"})})]})]})]}),e.jsx("div",{className:"backdrop-blur-xl bg-gradient-to-r from-[#A00008]/10 to-pink-600/10 border-[3px] border-white rounded-2xl p-6 lg:p-8 mb-12",children:e.jsxs("div",{className:"grid md:grid-cols-2 gap-6 items-center",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-white mb-2",children:"Stay Updated, Subscribe To Our Newsletter"}),e.jsx("p",{className:"text-white/50 text-sm",children:"Get wellness tips, exclusive content, and updates delivered to your inbox."})]}),j?e.jsxs("div",{className:"flex items-center gap-3 text-green-400",children:[e.jsx(T,{className:"w-6 h-6"}),e.jsx("span",{children:"Thank you for subscribing!"})]}):e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[e.jsx("input",{type:"text",placeholder:"First Name",value:o,onChange:s=>d(s.target.value),disabled:l,className:"w-full px-4 py-3 backdrop-blur-sm bg-white/5 border border-white/10 rounded-xl text-white placeholder:text-white/40 focus:outline-none focus:border-[#A00008]/50 transition-colors disabled:opacity-50"}),e.jsx("input",{type:"text",placeholder:"Last Name",value:n,onChange:s=>h(s.target.value),disabled:l,className:"w-full px-4 py-3 backdrop-blur-sm bg-white/5 border border-white/10 rounded-xl text-white placeholder:text-white/40 focus:outline-none focus:border-[#A00008]/50 transition-colors disabled:opacity-50"})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[e.jsxs("div",{className:"relative flex-1",children:[e.jsx(P,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-5 h-5 text-white/40"}),e.jsx("input",{type:"email",placeholder:"Enter your email",value:i,onChange:s=>m(s.target.value),onKeyDown:s=>s.key==="Enter"&&p(),disabled:l,className:"w-full pl-12 pr-4 py-3 backdrop-blur-sm bg-white/5 border border-white/10 rounded-xl text-white placeholder:text-white/40 focus:outline-none focus:border-[#A00008]/50 transition-colors disabled:opacity-50"})]}),e.jsx("button",{onClick:p,disabled:l,className:"w-full sm:w-auto px-6 py-3 bg-gradient-to-r from-[#A00008] to-pink-600 hover:from-[#8a0007] hover:to-pink-700 text-white rounded-xl transition-all whitespace-nowrap disabled:opacity-50 flex items-center justify-center gap-2",children:l?e.jsxs(e.Fragment,{children:[e.jsx(v,{className:"w-4 h-4 animate-spin"}),e.jsx("span",{children:"Subscribing..."})]}):"Subscribe"})]})]})]})}),e.jsx("div",{className:"pt-8 border-t border-white/10",children:e.jsxs("div",{className:"flex flex-col lg:flex-row justify-between items-center gap-6",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-center lg:justify-start gap-2 text-white/40 text-sm order-2 lg:order-1",children:[e.jsxs("span",{children:["© ",g," PlaysXO. All rights reserved."]}),e.jsx("span",{children:"•"}),e.jsxs("span",{className:"flex items-center gap-1 whitespace-nowrap",children:["Made with ",e.jsx(b,{className:"w-4 h-4 text-[#A00008] fill-[#A00008]"})," for intimate wellness"]})]}),e.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-4 lg:gap-6 text-sm order-1 lg:order-2",children:[e.jsx("button",{onClick:()=>t?.("terms"),className:"text-white/50 hover:text-[#A00008] transition-colors",children:"Terms & Conditions"}),e.jsx("span",{className:"text-white/20",children:"•"}),e.jsx("a",{href:"#",className:"text-white/50 hover:text-[#A00008] transition-colors",children:"Privacy Policy"}),e.jsx("span",{className:"text-white/20",children:"•"}),e.jsx("a",{href:"#",className:"text-white/50 hover:text-[#A00008] transition-colors",children:"Cookie Policy"})]})]})}),e.jsx("div",{className:"mt-8 text-center",children:e.jsx("p",{className:"text-white/30 text-xs",children:"🔞 This platform is intended for adults 18 years and older. By using PlaysXO, you confirm that you meet the age requirement."})})]})})]})}export{W as LoggedOutFooter};