import{j as e,H as b,a as j,B as t,L as l,A as m}from"./index-CdG8kR3s.js";import{F as f}from"./Footer-Dk4ZFtbI.js";import{u as v,a as N,b as y}from"./useBlogArticles-DCXVoj4d.js";import{L as w,E as A}from"./loader-circle-DdalTZYf.js";import{C as x}from"./calendar-BUuw8VQz.js";import{U as B}from"./user-BtiG8vtA.js";import{C as p}from"./clock-CMT4KK2C.js";import"./map-pin-7Jd8nbT_.js";import"./useQuery-C67zgcbK.js";import"./client-hnwrjGz7.js";const h=a=>new Date(a).toLocaleDateString("pt-BR",{day:"numeric",month:"long",year:"numeric"}),C=a=>a>=1e3?`${(a/1e3).toFixed(1)}k`:a.toString(),L=({article:a})=>{var i,s;return e.jsxs("article",{className:"bg-card rounded-xl shadow-lg overflow-hidden hover:shadow-xl transition-all duration-300 transform hover:-translate-y-1",children:[e.jsxs("div",{className:"relative h-48 bg-gradient-to-br from-primary/20 to-primary/5",children:[a.image_url?e.jsx("img",{src:a.image_url,alt:a.title,className:"w-full h-full object-cover",loading:"lazy"}):e.jsx("div",{className:"w-full h-full flex items-center justify-center",children:e.jsx("span",{className:"text-4xl font-bold text-primary/30",children:((s=(i=a.category)==null?void 0:i.name)==null?void 0:s.charAt(0))||"A"})}),a.category&&e.jsx("div",{className:"absolute top-3 left-3",children:e.jsx("span",{className:"bg-primary text-primary-foreground px-2 py-1 rounded text-xs font-medium",children:a.category.name})})]}),e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"flex items-center space-x-3 text-xs text-muted-foreground mb-3",children:[e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx(x,{className:"w-3 h-3"}),e.jsx("span",{children:h(a.published_at)})]}),e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx(p,{className:"w-3 h-3"}),e.jsxs("span",{children:[a.read_time_minutes," min"]})]}),e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx(A,{className:"w-3 h-3"}),e.jsx("span",{children:C(a.views)})]})]}),e.jsx("h3",{className:"text-lg font-bold text-card-foreground mb-3 line-clamp-2",children:a.title}),e.jsx("p",{className:"text-muted-foreground text-sm mb-4 line-clamp-3",children:a.excerpt}),e.jsx(t,{asChild:!0,variant:"outline",size:"sm",className:"w-full border-primary text-primary hover:bg-primary hover:text-primary-foreground",children:e.jsxs(l,{to:`/blog/${a.slug}`,children:["Ler Mais",e.jsx(m,{className:"w-3 h-3 ml-2"})]})})]})]})},I=()=>{var d,c;const{data:a,isLoading:i}=v(),{data:s}=N(),{data:o}=y(),n=(a==null?void 0:a.filter(r=>r.id!==(s==null?void 0:s.id)).slice(0,6))||[],g={"@context":"https://schema.org","@type":"Blog",name:"Blog Jurídico - Dra. Nathalia Brito",description:"Artigos especializados em Direito Previdenciário. Tire suas dúvidas sobre aposentadoria, auxílio-doença, BPC/LOAS, revisão de benefícios e mais.",url:"https://nathaliabrito.adv.br/blog",inLanguage:"pt-BR",publisher:{"@type":"Organization",name:"Dra. Nathalia Brito - Advogada Previdenciária",url:"https://nathaliabrito.adv.br",logo:{"@type":"ImageObject",url:"https://nathaliabrito.adv.br/lovable-uploads/24fb34b9-953e-4d4f-ad12-600d39278a4d.png"}},blogPost:(a==null?void 0:a.slice(0,10).map(r=>({"@type":"BlogPosting",headline:r.title,description:r.excerpt,url:`https://nathaliabrito.adv.br/blog/${r.slug}`,datePublished:r.published_at,author:{"@type":"Person",name:r.author}})))||[]},u={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://nathaliabrito.adv.br"},{"@type":"ListItem",position:2,name:"Blog",item:"https://nathaliabrito.adv.br/blog"}]};return e.jsxs(e.Fragment,{children:[e.jsxs(b,{children:[e.jsx("title",{children:"Blog Jurídico | Dra. Nathalia Brito - Advogada Previdenciária"}),e.jsx("meta",{name:"description",content:"Artigos especializados em Direito Previdenciário. Tire suas dúvidas sobre aposentadoria, auxílio-doença, BPC/LOAS, revisão de benefícios e mais."}),e.jsx("meta",{name:"keywords",content:"blog previdenciário, artigos INSS, aposentadoria, auxílio-doença, BPC LOAS, revisão benefícios"}),e.jsx("link",{rel:"canonical",href:"https://nathaliabrito.adv.br/blog"}),e.jsx("meta",{property:"og:title",content:"Blog Jurídico | Dra. Nathalia Brito"}),e.jsx("meta",{property:"og:description",content:"Artigos especializados em Direito Previdenciário para te manter sempre atualizado."}),e.jsx("meta",{property:"og:type",content:"website"}),e.jsx("meta",{property:"og:url",content:"https://nathaliabrito.adv.br/blog"}),e.jsx("meta",{property:"og:image",content:"https://nathaliabrito.adv.br/lovable-uploads/24fb34b9-953e-4d4f-ad12-600d39278a4d.png"}),e.jsx("meta",{property:"og:locale",content:"pt_BR"}),e.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),e.jsx("meta",{name:"twitter:title",content:"Blog Jurídico | Dra. Nathalia Brito"}),e.jsx("meta",{name:"twitter:description",content:"Artigos especializados em Direito Previdenciário para te manter sempre atualizado."}),e.jsx("meta",{name:"twitter:image",content:"https://nathaliabrito.adv.br/lovable-uploads/24fb34b9-953e-4d4f-ad12-600d39278a4d.png"}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(g)}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(u)})]}),e.jsxs("div",{className:"min-h-screen bg-muted",children:[e.jsx(j,{}),e.jsx("section",{className:"bg-gradient-to-br from-primary via-primary/90 to-primary text-primary-foreground py-16",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsx("h1",{className:"text-4xl lg:text-5xl font-bold mb-6",children:"Blog Jurídico"}),e.jsx("p",{className:"text-xl text-primary-foreground/80 mb-8",children:"Artigos especializados em Direito Previdenciário para te manter sempre atualizado"})]})}),e.jsx("section",{className:"py-16",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:i?e.jsxs("div",{className:"flex justify-center items-center py-20",children:[e.jsx(w,{className:"w-8 h-8 animate-spin text-primary"}),e.jsx("span",{className:"ml-2 text-muted-foreground",children:"Carregando artigos..."})]}):e.jsxs(e.Fragment,{children:[s&&e.jsxs("div",{className:"mb-16",children:[e.jsx("h2",{className:"text-2xl font-bold text-foreground mb-8",children:"Artigo em Destaque"}),e.jsx("div",{className:"bg-card rounded-2xl shadow-xl overflow-hidden hover:shadow-2xl transition-all duration-300",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-0",children:[e.jsxs("div",{className:"relative h-64 lg:h-auto bg-gradient-to-br from-primary/20 to-primary/5",children:[s.image_url?e.jsx("img",{src:s.image_url,alt:s.title,className:"w-full h-full object-cover"}):e.jsx("div",{className:"w-full h-full flex items-center justify-center",children:e.jsx("span",{className:"text-6xl font-bold text-primary/20",children:((c=(d=s.category)==null?void 0:d.name)==null?void 0:c.charAt(0))||"A"})}),e.jsx("div",{className:"absolute top-4 left-4",children:e.jsx("span",{className:"bg-accent text-accent-foreground px-3 py-1 rounded-full text-sm font-medium",children:"Destaque"})})]}),e.jsxs("div",{className:"p-8 flex flex-col justify-between",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center space-x-4 text-sm text-muted-foreground mb-4",children:[e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx(x,{className:"w-4 h-4"}),e.jsx("span",{children:h(s.published_at)})]}),e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx(B,{className:"w-4 h-4"}),e.jsx("span",{children:s.author})]}),e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx(p,{className:"w-4 h-4"}),e.jsxs("span",{children:[s.read_time_minutes," min"]})]})]}),e.jsx("h3",{className:"text-2xl font-bold text-card-foreground mb-4",children:s.title}),e.jsx("p",{className:"text-muted-foreground mb-6 leading-relaxed",children:s.excerpt})]}),e.jsx(t,{asChild:!0,className:"self-start bg-primary hover:bg-primary/90 text-primary-foreground",children:e.jsxs(l,{to:`/blog/${s.slug}`,children:["Ler Artigo Completo",e.jsx(m,{className:"w-4 h-4 ml-2"})]})})]})]})})]}),e.jsxs("div",{className:"grid lg:grid-cols-4 gap-8",children:[e.jsxs("div",{className:"lg:col-span-3",children:[e.jsx("div",{className:"flex items-center justify-between mb-8",children:e.jsx("h2",{className:"text-2xl font-bold text-foreground",children:"Artigos Recentes"})}),n.length>0?e.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:n.map(r=>e.jsx(L,{article:r},r.id))}):e.jsx("div",{className:"text-center py-12 bg-card rounded-xl",children:e.jsx("p",{className:"text-muted-foreground",children:"Novos artigos serão publicados em breve!"})}),a&&a.length>7&&e.jsx("div",{className:"text-center mt-12",children:e.jsx(t,{variant:"outline",size:"lg",className:"border-primary text-primary hover:bg-primary hover:text-primary-foreground px-8 py-3",children:"Carregar Mais Artigos"})})]}),e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"bg-card rounded-xl shadow-lg p-6",children:[e.jsx("h3",{className:"text-lg font-bold text-card-foreground mb-4",children:"Newsletter Jurídica"}),e.jsx("p",{className:"text-muted-foreground text-sm mb-4",children:"Receba dicas e atualizações sobre direito previdenciário diretamente no seu e-mail."}),e.jsxs("div",{className:"space-y-3",children:[e.jsx("input",{type:"email",placeholder:"Seu e-mail",className:"w-full p-3 border border-border rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent bg-background text-foreground"}),e.jsx(t,{className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground",children:"Inscrever-se"})]})]}),o&&o.length>0&&e.jsxs("div",{className:"bg-card rounded-xl shadow-lg p-6",children:[e.jsx("h3",{className:"text-lg font-bold text-card-foreground mb-4",children:"Categorias"}),e.jsx("div",{className:"space-y-2",children:o.map(r=>e.jsx(l,{to:`/blog/categoria/${r.slug}`,className:"block py-2 px-3 text-muted-foreground hover:text-primary hover:bg-primary/5 rounded-lg transition-colors duration-200",children:r.name},r.id))})]}),e.jsxs("div",{className:"bg-gradient-to-br from-primary to-primary/80 rounded-xl p-6 text-primary-foreground",children:[e.jsx("h3",{className:"text-lg font-bold mb-4",children:"Precisa de Ajuda?"}),e.jsx("p",{className:"text-primary-foreground/80 text-sm mb-4",children:"Agende uma consulta gratuita e esclareça suas dúvidas com nossa especialista."}),e.jsx(t,{asChild:!0,className:"w-full bg-accent hover:bg-accent/90 text-accent-foreground",children:e.jsx(l,{to:"/consulta",children:"Consulta Gratuita"})})]})]})]})]})})}),e.jsx(f,{})]})]})};export{I as default};