import{l as g,j as e,r as h,a as u,P as b,N as j,H as f,S as x,L as v,aR as y,e as N}from"./index-Bt7ohjT1.js";import{h as k}from"./bubble-collision-haM0DbbX.js";import{u as w,B as m}from"./useBlogPosts-DVou2Wnk.js";import{S as r}from"./skeleton-f2GsyDr_.js";import"./file-text-Bg8xNIjU.js";import"./clock-Dim94Qys.js";/**
* @license lucide-react v0.462.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=g("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]),P=[{id:"all",label:"All Posts"},{id:"tips",label:"Tips & Guides"},{id:"news",label:"Company News"}];function B({activeCategory:t,onCategoryChange:l}){return e.jsx("div",{className:"flex flex-wrap items-center justify-center gap-3",children:P.map(s=>{const d=t===s.id;return e.jsx("button",{onClick:()=>l(s.id),className:`px-5 py-2.5 rounded-sm text-xs font-black uppercase tracking-widest transition-all duration-200 border-2 ${d?"bg-primary text-primary-foreground border-primary shadow-lg shadow-primary/20":"bg-transparent text-foreground border-border hover:border-primary hover:text-primary"}`,children:s.label},s.id)})})}function A(){const[t,l]=h.useState("all"),{data:s,isLoading:d,error:p}=w(t==="all"?void 0:t),{data:a}=u("blog"),i=t==="all"&&s&&s.length>0?s[0]:null,o=i?s.slice(1):s;return e.jsxs("div",{className:"page-dark min-h-screen bg-background",children:[e.jsx(b,{title:"Inside Spartacus | Tips, Guides & Stories — UK's #1 Bubble Football",description:"Inside Spartacus — insider tips, expert guides and stories from the UK's #1 rated bubble football team.",canonicalPath:"/blog/"}),e.jsx(j,{}),e.jsxs("section",{className:"relative min-h-[60vh] flex items-center justify-center text-center overflow-hidden",children:[e.jsx(f,{image:(a==null?void 0:a.imageUrl)||k,overlayVariant:"foreground",overlayOpacity:50,desktopPosition:a==null?void 0:a.desktopPosition,mobilePosition:a==null?void 0:a.mobilePosition}),e.jsx("div",{className:"relative z-10 container-wide py-32 md:py-40",children:e.jsxs(x,{children:[e.jsxs("div",{className:"inline-flex items-center gap-2 bg-primary/20 border border-primary/40 rounded-sm px-4 py-2 mb-6 backdrop-blur-sm",children:[e.jsx(S,{className:"w-4 h-4 text-primary"}),e.jsx("span",{className:"text-xs font-black uppercase tracking-widest text-primary",children:"Inside Spartacus"})]}),e.jsxs("h1",{className:"font-display text-5xl md:text-7xl lg:text-8xl font-bold italic text-white uppercase tracking-tight leading-[0.9]",children:["Inside",e.jsx("br",{}),e.jsx("span",{className:"text-primary",children:"Spartacus"})]}),e.jsx("p",{className:"mt-6 text-lg md:text-xl text-white/80 max-w-2xl mx-auto leading-relaxed",children:"Insider tips, expert guides, and stories from the UK's #1 rated bubble football team."})]})})]}),e.jsx(v,{dark:!0}),e.jsx("section",{className:"py-10 md:py-12 bg-background border-b border-border",children:e.jsx("div",{className:"container mx-auto max-w-6xl px-4",children:e.jsx(B,{activeCategory:t,onCategoryChange:l})})}),e.jsxs("section",{className:"relative py-16 md:py-24 px-4 overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 pointer-events-none opacity-[0.03]",style:{backgroundImage:`url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><path d='M0 60L60 0M-15 15L15 -15M45 75L75 45' stroke='black' stroke-width='1'/></svg>")`,backgroundSize:"60px 60px"}}),e.jsx("div",{className:"container mx-auto max-w-6xl relative",children:d?e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:[...Array(6)].map((n,c)=>e.jsxs("div",{className:"space-y-4",children:[e.jsx(r,{className:"h-48 w-full rounded-sm"}),e.jsx(r,{className:"h-4 w-20"}),e.jsx(r,{className:"h-6 w-3/4"}),e.jsx(r,{className:"h-4 w-full"}),e.jsx(r,{className:"h-4 w-2/3"})]},c))}):p?e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-muted-foreground",children:"Unable to load blog posts. Please try again later."})}):s&&s.length>0?e.jsxs(e.Fragment,{children:[i&&e.jsxs("div",{className:"mb-16 md:mb-20",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[e.jsx(y,{className:"w-4 h-4 text-primary"}),e.jsx("span",{className:"text-xs font-black uppercase tracking-widest text-primary",children:"Inside Spartacus · Featured"}),e.jsx("div",{className:"flex-1 h-px bg-border"})]}),e.jsx(x,{children:e.jsx(m,{post:i,featured:!0})})]}),o&&o.length>0&&e.jsxs(e.Fragment,{children:[i&&e.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[e.jsx("span",{className:"text-xs font-black uppercase tracking-widest text-foreground",children:"More from Inside Spartacus"}),e.jsx("div",{className:"flex-1 h-px bg-border"})]}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8",children:o.map((n,c)=>e.jsx(x,{delay:c*.08,children:e.jsx(m,{post:n})},n.id))})]})]}):e.jsxs("div",{className:"text-center py-12",children:[e.jsx("p",{className:"text-muted-foreground",children:"No blog posts found."}),e.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:"Check back soon for tips and updates!"})]})})]}),e.jsx(N,{})]})}export{A as default};