1import{t as e}from"./jsx-runtime-B5yqYJvp.js";import{t}from"./router-compat-DU3dVgJZ.js";import{t as n}from"./useQuery-CRYycAQa.js";import{t as r}from"./arrow-up-right-CG3gCRaX.js";import{t as i}from"./clock-3CWMb3nY.js";import{n as a,t as o}from"./Footer-BFNpSL-7.js";import{n as s}from"./client-CWB2AO3t.js";import{t as c}from"./SEOHead-BHyyPak0.js";import{t as l}from"./skeleton-CPUI0Use.js";var u=e();function d(){let{data:e,isLoading:d}=n({queryKey:[`blog-posts`],queryFn:async()=>{let{data:e,error:t}=await s.from(`blog_posts`).select(`id, title, slug, excerpt, category, featured_image, published_at, author_name`).eq(`status`,`published`).order(`published_at`,{ascending:!1});if(t)throw t;return e}});return(0,u.jsxs)(`div`,{className:`min-h-screen bg-background`,children:[(0,u.jsx)(c,{title:`AI SEO Blog â Insights & Intelligence`,description:`Cutting-edge insights on AI search, visibility, and digital authority for B2B SaaS companies.`,canonical:`/blog`,breadcrumbs:[{name:`Home`,url:`/`},{name:`Blog`,url:`/blog`}]}),(0,u.jsx)(a,{}),(0,u.jsx)(`main`,{className:`pt-24 pb-16`,children:(0,u.jsxs)(`div`,{className:`container mx-auto px-4 md:px-8`,children:[(0,u.jsxs)(`div`,{className:`text-center mb-16`,children:[(0,u.jsx)(`span`,{className:`text-sm font-semibold uppercase tracking-widest text-primary mb-4 block`,children:`Blog`}),(0,u.jsxs)(`h1`,{className:`text-4xl md:text-6xl font-serif font-bold mb-4`,children:[`AI SEO `,(0,u.jsx)(`span`,{className:`text-gradient-gold italic`,children:`Intelligence`})]}),(0,u.jsx)(`p`,{className:`text-muted-foreground text-lg max-w-xl mx-auto`,children:`Cutting-edge insights on AI search, visibility, and digital authority.`})]}),d?(0,u.jsx)(`div`,{className:`grid md:grid-cols-2 lg:grid-cols-3 gap-6 max-w-6xl mx-auto`,children:[...[,,,,,,]].map((e,t)=>(0,u.jsxs)(`div`,{className:`bg-card border border-border rounded-2xl p-6 space-y-3`,children:[(0,u.jsx)(l,{className:`h-48 w-full rounded-xl`}),(0,u.jsx)(l,{className:`h-4 w-24`}),(0,u.jsx)(l,{className:`h-6 w-full`}),(0,u.jsx)(l,{className:`h-4 w-full`}),(0,u.jsx)(l,{className:`h-4 w-2/3`})]},t))}):e&&e.length>0?(0,u.jsx)(`div`,{className:`grid md:grid-cols-2 lg:grid-cols-3 gap-6 max-w-6xl mx-auto`,children:e.map(e=>(0,u.jsxs)(t,{to:`/blog/${e.slug}`,className:`group bg-card border border-border rounded-2xl overflow-hidden hover:border-primary/30 hover:glow-gold-sm transition-all duration-300`,children:[e.featured_image&&(0,u.jsx)(`div`,{className:`aspect-video overflow-hidden`,children:(0,u.jsx)(`img`,{src:e.featured_image,alt:e.title,className:`w-full h-full object-cover group-hover:scale-105 transition-transform duration-500`,loading:`lazy`})}),(0,u.jsxs)(`div`,{className:`p-6`,children:[(0,u.jsxs)(`div`,{className:`flex items-center gap-3 mb-3`,children:[e.category&&(0,u.jsx)(`span`,{className:`text-xs font-semibold uppercase tracking-wider text-primary bg-primary/10 px-2 py-1 rounded`,children:e.category}),(0,u.jsxs)(`span`,{className:`flex items-center gap-1 text-xs text-muted-foreground`,children:[(0,u.jsx)(i,{className:`w-3 h-3`}),`5 min read`]})]}),(0,u.jsx)(`h2`,{className:`text-lg font-serif font-bold mb-2 group-hover:text-primary transition-colors`,children:e.title}),e.excerpt&&(0,u.jsx)(`p`,{className:`text-sm text-muted-foreground leading-relaxed mb-4 line-clamp-3`,children:e.excerpt}),(0,u.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-sm font-medium text-primary group-hover:gap-2 transition-all`,children:[`Read more `,(0,u.jsx)(r,{className:`w-4 h-4`})]})]})]},e.id))}):(0,u.jsx)(`div`,{className:`text-center py-20`,children:(0,u.jsx)(`p`,{className:`text-muted-foreground text-lg`,children:`No posts yet. Check back soon!`})})]})}),(0,u.jsx)(o,{})]})}var f=d;export{f as component};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.