1import{j as e,m as c,a as k}from"./vendor-framer-Dqj-Nx-n.js";import{r as p,u as y,L as W}from"./vendor-react-CTbmelv_.js";import{u as S,f as i,c as t,E as $,F as z,B as h,s as l,r as d,G as T,I as s,h as x,q as R}from"./index-BA3G5gTy.js";import{g as f}from"./routes-_1JRGkP6.js";import"./crops-DKZ7pwh8.js";function L({isDesktop:r}){const[a,n]=p.useState(!1),g=y();return p.useEffect(()=>{const o=()=>n(window.scrollY>50);return window.addEventListener("scroll",o,{passive:!0}),()=>window.removeEventListener("scroll",o)},[]),e.jsx(c.header,{style:{position:"fixed",top:a?10:0,left:a?16:0,right:a?16:0,zIndex:T.header,height:a?58:l.headerHeight,color:t.gray900,background:a?"rgba(255, 255, 255, 0.82)":"rgba(255, 255, 255, 0.95)",border:a?"1px solid rgba(0, 0, 0, 0.06)":"1px solid transparent",borderRadius:a?d.xl:0,backdropFilter:"blur(24px) saturate(1.6)",WebkitBackdropFilter:"blur(24px) saturate(1.6)",boxShadow:a?"0 8px 32px rgba(0,0,0,0.1), 0 1px 0 rgba(255,255,255,0.8) inset":"none",transition:[`background ${s.base}`,`border ${s.base}`,`border-radius ${s.base}`,`box-shadow ${s.base}`,`top ${s.base}`,`left ${s.base}`,`right ${s.base}`,`height ${s.base}`].join(", ")},initial:{y:-100,opacity:0},animate:{y:0,opacity:1},transition:{duration:.7,ease:[.22,1,.36,1]},children:e.jsxs("div",{style:{maxWidth:l.wideWidth,margin:"0 auto",padding:`0 ${a?"1.5rem":l.sectionX}`,height:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",transition:`padding ${s.base}`},children:[e.jsxs(c.button,{onClick:()=>g("/"),onTouchStart:()=>x("light"),whileHover:{scale:1.02},whileTap:{scale:.98},style:{display:"flex",alignItems:"center",gap:10,background:"none",border:"none",cursor:"pointer",padding:"6px 0"},children:[e.jsx("div",{style:{width:36,height:36,borderRadius:d.full,background:`rgba(${t.primaryRgb}, 0.08)`,display:"flex",alignItems:"center",justifyContent:"center",transition:`background ${s.fast}`},children:e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M10 4l-4 4 4 4",stroke:t.primary,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),e.jsx("img",{src:"/Light Mode Logo.png",alt:"CropWings",style:{width:r?160:130,height:"auto",objectFit:"contain"}})]}),r&&e.jsx("div",{style:{fontSize:i.sm,fontWeight:700,color:t.gray900,letterSpacing:".04em",textTransform:"uppercase"},children:"News & Updates"}),e.jsxs(c.button,{onClick:()=>g("/"),onTouchStart:()=>x("light"),whileHover:{scale:1.04},whileTap:{scale:.97},style:{display:"inline-flex",alignItems:"center",gap:6,padding:"8px 20px",borderRadius:d.full,border:`1.5px solid ${t.primary}`,background:"transparent",color:t.primary,fontSize:i.xs,fontWeight:700,fontFamily:i.family,cursor:"pointer",transition:`background ${s.fast}, color ${s.fast}`},onMouseEnter:o=>{o.currentTarget.style.background=t.primary,o.currentTarget.style.color=t.white},onMouseLeave:o=>{o.currentTarget.style.background="transparent",o.currentTarget.style.color=t.primary},children:[e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M8 2l-5 6 5 6M3 8h11",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),"Home"]})]})})}function I({isDesktop:r,articleCount:a}){return e.jsxs("main",{style:{paddingTop:l.headerHeight+(r?60:40),paddingBottom:r?48:32,paddingLeft:l.sectionX,paddingRight:l.sectionX,background:[`radial-gradient(ellipse 80% 60% at 20% 20%, rgba(${t.primaryRgb}, 0.06) 0%, transparent 60%)`,"radial-gradient(ellipse 50% 50% at 80% 80%, rgba(74,222,128, 0.04) 0%, transparent 60%)",t.white].join(", "),position:"relative",overflow:"hidden"},children:[e.jsx("div",{style:{position:"absolute",inset:0,backgroundImage:` 2 linear-gradient(rgba(${t.primaryRgb}, 0.03) 1px, transparent 1px), 3 linear-gradient(90deg, rgba(${t.primaryRgb}, 0.03) 1px, transparent 1px) 4 `,backgroundSize:"60px 60px",maskImage:"radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent)",WebkitMaskImage:"radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent)"}}),e.jsxs(c.div,{style:{maxWidth:l.maxWidth,margin:"0 auto",position:"relative",zIndex:2},initial:{opacity:0,y:30}
4,animate:{opacity:1,y:0},transition:{duration:.7,ease:[.22,1,.36,1]},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:r?28:20},children:[e.jsx(W,{to:"/",style:{fontSize:i.xs,fontWeight:600,color:t.gray400,transition:`color ${s.fast}`},onMouseEnter:n=>n.currentTarget.style.color=t.primary,onMouseLeave:n=>n.currentTarget.style.color=t.gray400,children:"Home"}),e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M6 4l4 4-4 4",stroke:t.gray300,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),e.jsx("span",{style:{fontSize:i.xs,fontWeight:600,color:t.gray700},children:"Blog"})]}),e.jsxs("div",{style:{display:"flex",flexDirection:r?"row":"column",alignItems:r?"flex-end":"flex-start",justifyContent:"space-between",gap:r?40:16},children:[e.jsxs("div",{style:{flex:1},children:[e.jsx(c.span,{style:{display:"inline-block",fontSize:i.xs,fontWeight:700,textTransform:"uppercase",letterSpacing:".14em",color:t.primary,background:`rgba(${t.primaryRgb}, 0.08)`,border:`1px solid rgba(${t.primaryRgb}, 0.15)`,borderRadius:d.full,padding:"6px 18px",marginBottom:16},initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.4,delay:.2},children:h.tag}),e.jsxs("h1",{style:{fontSize:r?i["5xl"]:i["3xl"],fontWeight:700,color:t.gray900,lineHeight:1.15,margin:"0 0 12px"},children:["News &"," ",e.jsx("span",{style:{background:`linear-gradient(135deg, ${t.primary}, ${t.accent})`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:"Updates"})]}),e.jsx("p",{style:{fontSize:r?i.lg:i.sm,color:t.gray500,lineHeight:1.7,margin:0,maxWidth:560},children:h.description})]}),e.jsx(c.div,{style:{display:"flex",alignItems:"center",gap:20,padding:"14px 24px",background:"rgba(255,255,255,0.8)",backdropFilter:"blur(16px)",border:"1px solid rgba(0,0,0,0.06)",borderRadius:d.xl,boxShadow:R.sm,flexShrink:0},initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.4},children:e.jsxs("div",{style:{textAlign:"center"},children:[e.jsx("div",{style:{fontSize:i["2xl"],fontWeight:700,color:t.primary},children:a}),e.jsx("div",{style:{fontSize:i.xs,color:t.gray400,fontWeight:600},children:"Articles"})]})})]})]})]})}function C({article:r,index:a,isDesktop:n,reverse:g}){const[o,u]=p.useState(!1),b=y(),m=p.useRef(null),j=k(m,{once:!0,amount:.15}),v=()=>{b(`/blog/${r.slug}`)};return e.jsxs(c.article,{ref:m,initial:{opacity:0,y:40},animate:j?{opacity:1,y:0}:{},transition:{duration:.7,delay:a*.15,ease:[.25,.1,.25,1]},onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),style:{display:"flex",flexDirection:n?g?"row-reverse":"row":"column",borderRadius:d.xl,overflow:"hidden",background:"rgba(255,255,255,0.9)",backdropFilter:"blur(20px)",border:"1px solid rgba(255,255,255,0.6)",boxShadow:o?`0 24px 64px rgba(0,0,0,0.12), 0 0 0 1px rgba(${t.primaryRgb}, 0.08)`:"0 8px 32px rgba(0,0,0,0.06)",cursor:"pointer",transition:"box-shadow 500ms ease, transform 500ms ease",transform:o?"translateY(-4px)":"translateY(0)"},onClick:v,onTouchStart:()=>x("medium"),children:[e.jsxs("div",{style:{width:n?"48%":"100%",height:n?400:220,flexShrink:0,position:"relative",overflow:"hidden"},children:[e.jsx("div",{style:{position:"absolute",inset:0,transition:"transform 700ms cubic-bezier(0.4, 0, 0.2, 1)",transform:o?"scale(1.05)":"scale(1)"},children:e.jsx("img",{src:r.image,alt:r.title,style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}})}),r.featured&&e.jsx("div",{style:{position:"absolute",top:16,left:16,fontSize:"0.65rem",fontWeight:800,letterSpacing:"0.14em",color:"#fff",background:t.primary,padding:"5px 14px",borderRadius:d.full,textTransform:"uppercase",boxShadow:"0 2px 8px rgba(0,0,0,0.2)"},children:"Latest"})]}),e.jsxs("div",{style:{flex:1,padding:n?"36px 40px":"20px",display:"flex",flexDirection:"column",justifyContent:"center",gap:n?16:12,minWidth:0},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[r.location&&e.jsxs("span",{style:{fontSize:i.xs,fontWeight:600,color:t.gray500,display:"flex",alignItems:"center",gap:4},children:[e.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",children:[e.jsx("path",{d:"M8 1.5C5.5 1.5 3.5 3.5 3.5 6c0 3.5 4.5 8.5 4.5 8.5s4.5-5 4.5-8.5c0-2.5-2-4.5-4.5-4.5z",stroke:t.gray400,strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("circle",{cx:"8",cy:"6",r:"1.5",stroke:t.gray400,strokeWidth:"1.2"})]}),r.location]}),e.jsx("span",{style:{width:3,height:3,borderRadius:"50%",background:t.gray300}}),e.jsx("span",{style:{fontSize:i.xs,fontWeight:600,color:t.gray400},children:r.date}),e.jsx("span",{style:{width:3,height:3,borderRadius:"50%",background:t.gray300}}),e.jsx("span",{style:{fontSize:i.xs,fontWeight:600,color:t.gray400},children:r.readTime})]}),e.jsx("h2",{style:{fontSize:n?i["2xl"]:i.xl,fontWeight:700,color:t.gray900,lineHeight:1.25,margin:0},children:r.title}),e.jsx("p",{style:{fontSize:n?i.base:i.sm,color:t.gray500,lineHeight:1.7,margin:0},children:r.excerpt}),e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:16,borderTop:`1px solid ${t.gray200}`,marginTop:"auto"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[e.jsx("div",{style:{width:36,height:36,borderRadius:d.full,background:`linear-gradient(135deg, ${t.primary}, ${t.accent})`,display:"flex",alignItems:"center",justifyContent:"center",color:t.white,fontSize:"0.6rem",fontWeight:700,flexShrink:0},children:r.author.split(" ").map(w=>w[0]).join("")}),e.jsxs("div",{children:[e.jsx("div",{style:{fontSize:i.sm,fontWeight:600,color:t.gray700},children:r.author}),e.jsx("div",{style:{fontSize:i.xs,color:t.gray400,marginTop:2},children:r.readTime})]})]}),e.jsxs(c.div,{style:{display:"flex",alignItems:"center",gap:8,padding:"10px 20px",borderRadius:d.full,background:o?t.primary:`rgba(${t.primaryRgb}, 0.08)`,transition:"background 300ms ease"},children:[e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M14 10v3a1 1 0 01-1 1H3a1 1 0 01-1-1v-3M8 2v8M5 5l3-3 3 3",stroke:o?t.white:t.primary,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transition:"stroke 300ms ease",transform:"rotate(180deg)",transformOrigin:"8px 8px"}})}),e.jsx("span",{style:{fontSize:i.sm,fontWeight:700,color:o?t.white:t.primary,transition:"color 300ms ease"},children:"Read Article"})]})]})]})]})}function B({isDesktop:r}){const a=y();return e.jsx("div",{style:{background:t.gray50,borderTop:`1px solid ${t.gray200}`,padding:`40px ${l.sectionX}`},children:e.jsxs("div",{style:{maxWidth:l.maxWidth,margin:"0 auto",display:"flex",flexDirection:r?"row":"column",alignItems:"center",justifyContent:"space-between",gap:20},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[e.jsx("img",{src:"/Light Mode Logo.png",alt:"CropWings",style:{width:140,height:"auto",objectFit:"contain"}}),e.jsx("span",{style:{width:1,height:24,background:t.gray200}}),e.jsx("span",{style:{fontSize:i.sm,color:t.gray400,fontWeight:500},children:"News & Updates"})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:16,flexWrap:"wrap",justifyContent:"center"},children:[e.jsx(c.button,{onClick:()=>a("/"),onTouchStart:()=>x("light"),whileHover:{scale:1.04},whileTap:{scale:.97},style:{padding:"10px 24px",borderRadius:d.full,border:`2px solid ${t.primary}`,background:t.primary,color:t.white,fontSize:i.sm,fontWeight:700,fontFamily:i.family,cursor:"pointer"},children:"Back to Home"}),e.jsx("span",{style:{fontSize:i.xs,color:t.gray400},children:`© ${new Date().getFullYear()} CropWings. All rights reserved.`})]})]})})}function N(){const r=S(768),a=h.articles;return p.useEffect(()=>{window.scrollTo(0,0)},[]),e.jsxs("div",{style:{minHeight:"100vh",background:t.gray50,fontFamily:i.family}
4,children:[e.jsx($,{title:f("/blog").title,description:f("/blog").description,canonicalPath:"/blog",jsonLd:[z([{name:"Home",path:"/"},{name:"Blog"}])]}),e.jsx(L,{isDesktop:r}),e.jsx(I,{isDesktop:r,articleCount:a.length}),e.jsx("div",{style:{background:[`radial-gradient(ellipse 60% 40% at 50% 0%, rgba(${t.primaryRgb}, 0.04) 0%, transparent 70%)`,t.gray50].join(", "),padding:`${r?48:28}px ${l.sectionX}`,paddingBottom:r?80:48},children:e.jsx("div",{style:{maxWidth:l.maxWidth,margin:"0 auto",display:"flex",flexDirection:"column",gap:r?32:20},children:a.map((n,g)=>e.jsx(C,{article:n,index:g,isDesktop:r,reverse:g%2!==0},n.id))})}),e.jsx(B,{isDesktop:r})]})}export{N 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.