1import{r as n,j as e,d as b,I as j,L as h,B as N}from"./index-BGOvjOWv.js";import{P as v}from"./PageSEO-CfAplv0n.js";import{B as y}from"./BreadcrumbSchema-CetAfSTu.js";import{Q as w}from"./QuizSection-Cw46DlJn.js";import{g as k,a as A,b as C,i as l,c as B}from"./insights-NP3qr-hx.js";import{S}from"./search-BtdCIxPS.js";import{B as L}from"./book-open-DqcnNWjx.js";import{A as p}from"./arrow-right-CVEpAoSj.js";import{C as I}from"./clock-CoPbqIzR.js";import{C as R}from"./calendar-Dj7owvsq.js";import"./QuizEngine-BCgVIhWJ.js";import"./mail-QIPN1fal.js";import"./circle-check-Dp0JchXd.js";import"./shield-C0d3wz-q.js";import"./heart-CMfufDAG.js";import"./rotate-ccw-BVW0fdVM.js";import"./zap-deBvFbTf.js";import"./activity-oiMGTZER.js";import"./arrow-left-6uetB9L5.js";import"./sparkles-ClQS2WXL.js";const $="/assets/insights-hero-DOJAMwJe.jpg";function c({article:s,featured:r=!1}){const i=l[s.category];return e.jsxs(h,{to:`/insights/${s.slug}`,className:`block group rounded-2xl border border-border bg-card overflow-hidden transition-all duration-300 hover:shadow-bio-lg hover:-translate-y-1 ${r?"md:col-span-2":""}`,children:[e.jsx("div",{className:"h-1 bg-gradient-to-r from-accent/60 to-accent/20"}),e.jsxs("div",{className:"p-6 md:p-8 flex flex-col h-full",children:[e.jsxs("div",{className:"mb-4 flex items-center gap-2 flex-wrap",children:[e.jsx("span",{className:"inline-flex items-center px-3 py-1 rounded-full bg-accent/10 text-accent text-xs font-sans font-semibold uppercase tracking-[0.15em]",children:i.name}),B(s.publishedDate)&&e.jsx("span",{className:"inline-flex items-center px-3 py-1 rounded-full bg-primary text-primary-foreground text-xs font-sans font-semibold uppercase tracking-[0.15em]",children:"New"})]}),e.jsx("h3",{className:`font-serif text-foreground group-hover:text-accent transition-colors mb-3 leading-snug ${r?"text-2xl md:text-3xl":"text-lg md:text-xl"}`,children:s.title}),s.subtitle&&e.jsx("p",{className:"text-foreground/95 text-sm mb-3 font-medium",children:s.subtitle}),e.jsx("p",{className:`text-foreground/95 text-sm leading-relaxed flex-grow mb-6 ${r?"line-clamp-4":"line-clamp-3"}`,children:s.excerpt}),e.jsxs("div",{className:"flex items-center justify-between text-sm pt-4 border-t border-border/50",children:[e.jsxs("div",{className:"flex items-center gap-4 text-foreground/95",children:[e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(I,{className:"h-3.5 w-3.5"}),s.readingTime]}),e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(R,{className:"h-3.5 w-3.5"}),new Date(s.publishedDate).toLocaleDateString("en-AU",{day:"numeric",month:"short",year:"numeric"})]})]}),e.jsxs("span",{className:"inline-flex items-center gap-1 text-accent font-medium text-xs opacity-0 group-hover:opacity-100 transition-opacity",children:["Read ",e.jsx(p,{className:"h-3.5 w-3.5"})]})]})]})]})}function _(){const[s,r]=n.useState("all"),[i,u]=n.useState(""),d=k(),m=n.useMemo(()=>A(3),[]),x=n.useMemo(()=>C(),[]),o=n.useMemo(()=>{const t=i.trim().toLowerCase();return x.filter(a=>{var g;return s!=="all"&&a.category!==s?!1:t?a.title.toLowerCase().includes(t)||(((g=a.subtitle)==null?void 0:g.toLowerCase().includes(t))??!1)||a.excerpt.toLowerCase().includes(t):!0})},[x,s,i]),f=Object.entries(l);return e.jsxs(b,{children:[e.jsx(v,{title:"Perimenopause & Menopause Insights â BioRestora Blog",description:"Evidence-based articles on perimenopause, menopause, hormonal health, MHT/HRT, sleep, weight, and more â written by BioRestora's GP team.",ogImage:"/og/og-insights.jpg",path:"/insights"}),e.jsx(y,{items:[{name:"Home",href:"/"},{name:"Insights",href:"/insights"}]}),e.jsxs("section",{className:"pt-6 md:pt-10 pb-16 md:pb-24 relative min-h-[50vh] flex items-center overflow-hidden",children:[e.jsx("img",{src:$,alt:"Woman reading health articles on a tablet with herbal tea",className:"absolute inset-0 w-full h-full object-cover",fetchPriority:"high",decoding:"async",width:1920,height:1080}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-foreground
1/85 via-foreground/60 to-foreground/20"}),e.jsx("div",{className:"bio-container relative z-10 py-20 md:py-28",children:e.jsxs("div",{className:"max-w-4xl",children:[e.jsx("div",{className:"w-12 h-[2px] bg-accent mb-10 animate-fade-in"}),e.jsxs("h1",{className:"font-serif text-5xl md:text-6xl lg:text-[5rem] text-white leading-[1.05] tracking-tight mb-8 animate-fade-in-up",children:["Clinical",e.jsx("br",{}),e.jsx("span",{className:"text-accent",children:"Insights."})]}),e.jsx("p",{className:"text-lg md:text-xl text-white/95 max-w-2xl leading-relaxed animate-fade-in-up-delay font-light",children:"Evidence-informed articles on personalised medicine, hormonal health, metabolic optimisation, and preventive care â prepared by the BioRestora clinical team."})]})})]}),d.length>0&&e.jsx("section",{className:"py-16 md:py-24 bg-secondary/20",children:e.jsxs("div",{className:"bio-container",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-10",children:[e.jsx("div",{className:"w-8 h-[2px] bg-accent"}),e.jsx("p",{className:"text-sm font-sans font-semibold uppercase tracking-[0.25em] text-accent",children:"Featured"})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:d.slice(0,3).map((t,a)=>e.jsx(c,{article:t,featured:a===0},t.id))})]})}),m.length>0&&e.jsx("section",{className:"py-14 md:py-20 bg-background",children:e.jsxs("div",{className:"bio-container",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-10",children:[e.jsx("div",{className:"w-8 h-[2px] bg-accent"}),e.jsx("p",{className:"text-sm font-sans font-semibold uppercase tracking-[0.25em] text-accent",children:"Latest"})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:m.map(t=>e.jsx(c,{article:t},`latest-${t.id}`))})]})}),e.jsx("section",{className:"py-4 bg-background border-b border-border sticky top-16 md:top-20 z-40 shadow-sm",children:e.jsxs("div",{className:"bio-container space-y-3",children:[e.jsxs("div",{className:"relative max-w-md",children:[e.jsx(S,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-foreground/50"}),e.jsx(j,{type:"search",value:i,onChange:t=>u(t.target.value),placeholder:"Search articles â e.g. progesterone","aria-label":"Search articles",className:"pl-9 rounded-full"})]}),e.jsxs("div",{className:"flex items-center gap-2 overflow-x-auto pb-1 scrollbar-hide",children:[e.jsx("button",{onClick:()=>r("all"),className:`px-5 py-2.5 text-sm font-sans font-medium whitespace-nowrap transition-all rounded-full ${s==="all"?"bg-accent text-accent-foreground shadow-bio":"bg-secondary text-foreground hover:bg-accent/10 hover:text-accent"}`,children:"All Topics"}),f.map(([t,a])=>e.jsx("button",{onClick:()=>r(t),className:`px-5 py-2.5 text-sm font-sans font-medium whitespace-nowrap transition-all rounded-full ${s===t?"bg-accent text-accent-foreground shadow-bio":"bg-secondary text-foreground hover:bg-accent/10 hover:text-accent"}`,children:a.name},t))]})]})}),e.jsx("section",{className:"py-16 md:py-24 bg-background",children:e.jsxs("div",{className:"bio-container",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsx("h2",{className:"font-serif text-2xl md:text-3xl text-foreground",children:s==="all"?"All Articles":l[s].name}),e.jsxs("span",{className:"text-sm text-foreground/95 bg-secondary px-3 py-1 rounded-full",children:[o.length," article",o.length!==1?"s":""]})]}),s!=="all"&&e.jsx("p",{className:"text-foreground/95 text-base leading-relaxed mb-10 max-w-2xl",children:l[s].description}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:o.map(t=>e.jsx(c,{article:t},t.id))}),o.length===0&&e.jsxs("div",{className:"text-center py-20",children:[e.jsx(L,{className:"h-12 w-12 text-foreground/30 mx-auto mb-4"}),e.jsx("p",{className:"text-foreground/95",children:"No articles in this category yet."})]})]})}),e.jsx(w,{variant:"pre-booking"}),e.jsxs("section",{className:"py-32 md:py-40 bg-foreground text-background relative overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 left-0 right-0 h-[2px] bg-gradient-to-r from-transparent via-accent/30 to-transparent"}),e.jsx("div",{className:"bio-container",children:e.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[e.jsx("div",{className:"w-10 h-[2px] bg-accent mx-auto mb-10"}),e.jsx("h2",{className:"font-serif text-3xl md:text-4xl lg:text-5xl leading-tight mb-8",children:"Stay informed."}),e.jsx("p",{className:"text-background/95 text-lg mb-12 max-w-xl mx-auto font-light",children:"New articles are published regularly. Book a consultation to discu
1ss how these insights apply to your individual health journey."}),e.jsx(h,{to:"/book",children:e.jsxs(N,{className:"bg-background text-foreground hover:bg-background/90 rounded-full px-10 py-6 h-auto text-base font-sans font-medium tracking-wide transition-all duration-300 hover:shadow-bio-lg",children:["Book a Consultation",e.jsx(p,{className:"h-5 w-5"})]})})]})})]})]})}export{_ as default};
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.