import{e as o,f as m,j as e,L as c,c as x,b as g,a as p,C as h}from"./index-BH-cN4KT.js";import{u as b,B as u,N as j,A as f,a as l}from"./AdSlot-BkL_EZbh.js";import{S as N,a as y}from"./SiteFooter-QgwBtC-h.js";import{c as d}from"./use-auth-wvxHCDzg.js";import"./useQuery-C5OEng6p.js";import"./upload-9grwbX0d.js";const v=[["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"}]],k=d("heart",v);const w=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],A=d("message-circle",w);function _(){const{slug:i}=o.useParams(),{data:t}=b(m(i)),s=t.article,r=t.related;return e.jsxs("div",{className:"min-h-screen bg-background text-foreground",children:[e.jsx(u,{}),e.jsx(N,{}),e.jsxs("article",{className:"container mx-auto px-4 py-10 grid grid-cols-1 lg:grid-cols-12 gap-12",children:[e.jsxs("div",{className:"lg:col-span-8 lg:col-start-2 max-w-3xl",children:[e.jsx(c,{to:"/category/$slug",params:{slug:s.category},className:"text-brand-accent font-bold text-xs uppercase tracking-widest",children:x(s.category)}),e.jsx("h1",{className:"font-serif text-3xl md:text-5xl font-black leading-[1.1] mt-3 mb-4",children:s.title}),e.jsx("p",{className:"text-lg md:text-xl text-muted-foreground leading-relaxed mb-6",children:s.dek}),e.jsxs("div",{className:"flex items-center justify-between border-y border-border py-4 mb-8 flex-wrap gap-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-secondary grid place-items-center font-bold",children:s.author.charAt(0)}),e.jsxs("div",{className:"text-sm",children:[e.jsxs("p",{className:"font-bold",children:["By ",s.author]}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:[g(s.publishedAt)," • ",s.readMinutes," min read"]})]})]}),e.jsx("div",{className:"flex gap-2",children:["WhatsApp","Facebook","X"].map(a=>e.jsx("button",{className:"border border-border px-3 py-1.5 text-[11px] font-bold uppercase tracking-widest hover:bg-brand hover:text-primary-foreground transition-colors",children:a},a))})]}),s.image&&e.jsxs(e.Fragment,{children:[e.jsx("img",{src:p(s.image),alt:s.imageAlt,width:1600,height:900,className:"w-full aspect-[16/9] object-cover rounded-sm bg-muted mb-3"}),e.jsx("p",{className:"text-xs text-muted-foreground mb-8 italic",children:s.imageAlt})]}),s.aiSummary&&e.jsxs("div",{className:"bg-muted p-5 border-l-4 border-brand-accent mb-10",children:[e.jsx("span",{className:"text-[10px] font-black uppercase text-brand-accent bg-brand-accent/10 px-1.5 py-0.5 inline-block mb-2",children:"AI Summary"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s.aiSummary})]}),e.jsx("div",{className:"prose-article space-y-6 text-lg leading-[1.75] text-foreground",children:s.body.map((a,n)=>e.jsx("p",{children:a},n))}),s.tags.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2 mt-10",children:s.tags.map(a=>e.jsxs("span",{className:"text-xs font-bold uppercase tracking-widest border border-border px-3 py-1 hover:bg-muted cursor-pointer",children:["#",a]},a))}),e.jsxs("div",{className:"flex items-center gap-6 mt-8 border-t border-border pt-6",children:[e.jsxs("button",{className:"flex items-center gap-2 text-sm font-bold hover:text-brand-accent",children:[e.jsx(k,{className:"w-4 h-4"})," Reactions"]}),e.jsxs("button",{className:"flex items-center gap-2 text-sm font-bold hover:text-brand-accent",children:[e.jsx(A,{className:"w-4 h-4"})," Comments"]})]}),e.jsx("div",{className:"mt-12",children:e.jsx(j,{})}),r.length>0&&e.jsxs("section",{className:"mt-16",children:[e.jsx("h2",{className:"font-serif text-2xl font-black italic mb-8",children:"Related Stories"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:r.map(a=>e.jsx(f,{article:a},a.slug))})]})]}),e.jsxs("aside",{className:"lg:col-span-3 space-y-8",children:[e.jsx(l,{height:"h-80"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-serif text-xl font-black italic mb-6",children:"More Sections"}),e.jsx("ul",{className:"space-y-2",children:h.slice(0,8).map(a=>e.jsx("li",{className:"border-b border-border pb-2 text-sm font-bold uppercase tracking-wide hover:text-brand-accent",children:e.jsx(c,{to:"/category/$slug",params:{slug:a.slug},children:a.name})},a.slug))})]}),e.jsx(l,{height:"h-64"})]})]}),e.jsx(y,{})]})}export{_ as component};
