import{c as p,s as j,r as n,j as e,L as s,S as g}from"./index-XAQEFxR0.js";import{A as m}from"./arrow-right-BBWeihko.js";import{L as y}from"./lock-riYib5_N.js";import{M as v}from"./mail-C4YbZpAk.js";/**
 * @license lucide-react v0.561.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const w=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],N=p("heart",w);/**
 * @license lucide-react v0.561.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const S=[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]],k=p("linkedin",S),P=({onContactClick:c})=>{const{openContact:d}=j(),[i,h]=n.useState(""),[r,a]=n.useState(""),[x,o]=n.useState(""),u=async t=>{if(t.preventDefault(),!i||!i.includes("@")){a("error"),o("Please enter a valid email");return}a("loading");try{const l=await fetch("/api/newsletter/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i})}),f=await l.json();l.ok?(a("success"),o("You're subscribed! 🎉"),h("")):(a("error"),o(f.message||"Subscription failed"))}catch{a("error"),o("Network error. Try again.")}},b=t=>{t.preventDefault(),c?c():d&&d()};return e.jsxs("footer",{className:"bg-[#0e0f11] border-t border-white/5 pt-10 pb-10 relative overflow-hidden",children:[e.jsx("div",{className:"absolute bottom-0 left-1/4 w-96 h-96 bg-infosec-accent/5 rounded-full blur-[128px] pointer-events-none"}),e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-12 mb-16 border-b border-white/5 pb-16",children:[e.jsxs("div",{children:[e.jsx(s,{to:"/",className:"flex items-center gap-2 mb-6",children:e.jsx("img",{className:"h-14 w-auto",src:"/logo.png",alt:"InfoSecLabs"})}),e.jsx("p",{className:"text-gray-500 text-sm leading-relaxed mb-8",children:"The ultimate SOC Analyst training platform. Practice with real-world alerts, master tools, and launch your cybersecurity career."}),e.jsx("div",{className:"flex gap-4",children:[{icon:k,href:"https://www.linkedin.com/company/infoseclabsio/"}].map((t,l)=>e.jsx("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 rounded-xl bg-white/5 border border-white/5 flex items-center justify-center text-gray-400 hover:text-white hover:bg-white/10 hover:border-purple-500/30 hover:scale-105 transition-all duration-300 shadow-xl",children:e.jsx(t.icon,{className:"w-5 h-5"})},l))})]}),e.jsxs("div",{children:[e.jsxs("h4",{className:"text-white font-bold mb-6 flex items-center gap-2",children:[e.jsx(g,{className:"w-4 h-4 text-purple-500"})," Platform"]}),e.jsxs("ul",{className:"space-y-4 text-sm text-gray-500",children:[e.jsx("li",{children:e.jsxs(s,{to:"/academy",className:"hover:text-purple-400 transition-colors flex items-center gap-2",children:[e.jsx(m,{className:"w-3 h-3 opacity-0 group-hover:opacity-100 -ml-5 transition-all"})," Academy"]})}),e.jsx("li",{children:e.jsx(s,{to:"/missions",className:"hover:text-purple-400 transition-colors",children:"Missions"})}),e.jsx("li",{children:e.jsx(s,{to:"/blog",className:"hover:text-purple-400 transition-colors",children:"Blog"})}),e.jsx("li",{children:e.jsx(s,{to:"/pricing",className:"hover:text-purple-400 transition-colors",children:"Pricing"})}),e.jsx("li",{children:e.jsx(s,{to:"/leaderboard",className:"hover:text-purple-400 transition-colors",children:"Leaderboard"})}),e.jsx("li",{children:e.jsx("a",{href:"https://discord.gg/G6AAV744Ux",target:"_blank",rel:"noopener noreferrer",className:"hover:text-purple-400 transition-colors",children:"Community"})})]})]}),e.jsxs("div",{children:[e.jsxs("h4",{className:"text-white font-bold mb-6 flex items-center gap-2",children:[e.jsx(y,{className:"w-4 h-4 text-blue-500"})," Support"]}),e.jsxs("ul",{className:"space-y-4 text-sm text-gray-500",children:[e.jsx("li",{children:e.jsx(s,{to:"/help",className:"hover:text-blue-400 transition-colors",children:"Help Center"})}),e.jsx("li",{children:e.jsx(s,{to:"/osint-tools",className:"hover:text-blue-400 transition-colors",children:"OSINT Tools"})}),e.jsx("li",{children:e.jsx(s,{to:"/faq",className:"hover:text-blue-400 transition-colors",children:"FAQ"})}),e.jsx("li",{children:e.jsx(s,{to:"/terms",className:"hover:text-blue-400 transition-colors",children:"Terms of Service"})}),e.jsx("li",{children:e.jsx(s,{to:"/privacy",className:"hover:text-blue-400 transition-colors",children:"Privacy Policy"})}),e.jsx("li",{children:e.jsx("button",{onClick:b,className:"hover:text-blue-400 transition-colors text-left",children:"Contact Us"})})]})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-white font-bold mb-6",children:"Stay Updated"}),e.jsx("p",{className:"text-gray-500 text-sm mb-6",children:"Join our newsletter for the latest security alerts, challenge releases, and tutorials."}),e.jsxs("form",{onSubmit:u,className:"space-y-4",children:[e.jsxs("div",{className:"relative",children:[e.jsx(v,{className:"absolute left-4 top-3.5 w-5 h-5 text-gray-500"}),e.jsx("input",{type:"email",value:i,onChange:t=>h(t.target.value),placeholder:"Enter your email",className:"w-full bg-white/5 border border-white/10 rounded-xl py-3 pl-12 pr-4 text-white text-sm focus:outline-none focus:border-purple-500/50 focus:bg-white/10 transition-all placeholder-gray-600"})]}),e.jsx("button",{type:"submit",disabled:r==="loading"||r==="success",className:"w-full bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-500 hover:to-purple-500 text-white font-bold py-3 px-4 rounded-xl flex items-center justify-center gap-2 transition-all disabled:opacity-50 disabled:cursor-not-allowed group",children:r==="loading"?"Subscribing...":r==="success"?"Subscribed!":e.jsxs(e.Fragment,{children:["Subscribe ",e.jsx(m,{className:"w-4 h-4 group-hover:translate-x-1 transition-transform"})]})}),x&&e.jsx("p",{className:`text-xs ${r==="error"?"text-red-400":"text-green-400"} animate-fadeIn`,children:x})]})]})]}),e.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center text-sm text-gray-600 font-medium",children:[e.jsxs("p",{children:["© ",new Date().getFullYear()," InfoSecLabs. All rights reserved."]}),e.jsxs("p",{className:"flex items-center gap-1 mt-4 md:mt-0",children:["Made with ",e.jsx(N,{className:"w-4 h-4 text-red-500 fill-red-500"})," by Cyber Security Enthusiasts."]})]})]})]})};export{P as F,k as L};
