import{R as o,d,j as s,c as m,C as x,L as g}from"./index-BH-cN4KT.js";import{u as p,B as h,A as c,N as j,a as i}from"./AdSlot-BkL_EZbh.js";import{S as u,a as b}from"./SiteFooter-QgwBtC-h.js";import"./useQuery-C5OEng6p.js";import"./use-auth-wvxHCDzg.js";import"./upload-9grwbX0d.js";function C(){const{slug:a}=o.useParams(),{data:l}=p(d(a)),r=l.items,[t,...n]=r;return s.jsxs("div",{className:"min-h-screen bg-background text-foreground",children:[s.jsx(h,{}),s.jsx(u,{}),s.jsxs("main",{className:"container mx-auto px-4 py-10",children:[s.jsxs("div",{className:"border-b-4 border-brand pb-4 mb-10",children:[s.jsx("p",{className:"text-[11px] uppercase tracking-widest text-brand-accent font-bold mb-2",children:"Section"}),s.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-black italic",children:m(a)})]}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-12",children:[s.jsxs("div",{className:"lg:col-span-2 space-y-10",children:[r.length===0?s.jsx("p",{className:"text-muted-foreground py-12 text-center",children:"No stories in this section yet. Check back soon."}):s.jsxs(s.Fragment,{children:[t&&s.jsx(c,{article:t}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-10",children:n.map(e=>s.jsx(c,{article:e},e.slug))})]}),s.jsx("div",{className:"py-8",children:s.jsx(j,{})})]}),s.jsxs("aside",{className:"space-y-8",children:[s.jsx(i,{height:"h-80"}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-serif text-xl font-black italic mb-6",children:"More Sections"}),s.jsx("ul",{className:"space-y-2",children:x.filter(e=>e.slug!==a).map(e=>s.jsx("li",{className:"border-b border-border pb-2 text-sm font-bold uppercase tracking-wide hover:text-brand-accent",children:s.jsx(g,{to:"/category/$slug",params:{slug:e.slug},children:e.name})},e.slug))})]}),s.jsx(i,{height:"h-64"})]})]})]}),s.jsx(b,{})]})}export{C as component};
