1import{r as a,j as e,I as g,L as n,_ as h,f as j,a6 as w,s as b}from"./index-Gd3ICOax.js";import{S as y}from"./SEOHead-C7dcErS8.js";import{B as N}from"./Breadcrumbs-Ciz11APc.js";import{F as k}from"./Footer-wwnpDw4k.js";import{S as v,d as S}from"./InlineProductMention-m9gOT1FS.js";import{S as L,F as C}from"./SocialProofTicker-BEDnxjt4.js";import{M as F}from"./MembershipCTABanner-C7iqPETZ.js";import{S as T}from"./search-CNZmU32C.js";import{A as q}from"./arrow-right-_jmurFjZ.js";import"./arrow-up-right-D_3XJmRt.js";import"./useQuery-BRiRVS38.js";import"./zap-CgRr_HJ7.js";import"./tag-CzkGLvu6.js";const V=()=>{const[o,c]=a.useState([]),[d,x]=a.useState(!0),[r,p]=a.useState("");a.useEffect(()=>{(async()=>{const{data:t}=await b.from("forum_posts").select("id, slug, question, answer, keywords, created_at").order("created_at",{ascending:!1});c(t||[]),x(!1)})()},[]);const l=o.filter(s=>s.question.toLowerCase().includes(r.toLowerCase())||s.answer.toLowerCase().includes(r.toLowerCase())||s.keywords&&s.keywords.toLowerCase().includes(r.toLowerCase())),m=o.length?{"@context":"https://schema.org","@type":"ItemList",itemListElement:o.slice(0,100).map((s,t)=>({"@type":"ListItem",position:t+1,url:`https://thiagovibesp.com/forum/${s.slug}`,name:s.question}))}:null;return e.jsxs(e.Fragment,{children:[e.jsx(y,{title:"Forum - Color Grading Q&A | Thiago Vibes",description:"Get answers to common questions about cinema LUTs, color grading, and filmmaking. Expert Q&A from professional colorist Thiago Vibesp.",path:"/forum",breadcrumbs:[{name:"Home",path:"/"},{name:"Forum"}],children:m&&e.jsx("script",{type:"application/ld+json",children:JSON.stringify(m)})}),e.jsxs("div",{className:"min-h-screen bg-background pt-32 md:pt-36",children:[e.jsxs("div",{className:"max-w-4xl mx-auto px-4 pb-12",children:[e.jsx(N,{items:[{name:"Home",path:"/"},{name:"Forum"}]}),e.jsxs("div",{className:"text-center mb-12",children:[e.jsx("p",{className:"text-primary text-xs uppercase tracking-[0.3em] mb-3 font-body",children:"Community Knowledge"}),e.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-foreground mb-4",style:{fontFamily:"'Bebas Neue', sans-serif",letterSpacing:"0.05em"},children:"Forum Q&A"}),e.jsx("p",{className:"text-muted-foreground max-w-xl mx-auto",children:"Answers to the most common questions about LUTs, color grading, and professional filmmaking workflows."})]}),e.jsx(F,{className:"mb-6"}),e.jsx(v,{variant:"banner"}),e.jsx(L,{}),e.jsx(C,{title:"LUTs that solve most grading questions",subtitle:"Stop tweaking sliders â start from a pro look. Browse our most-loved cinema LUT packs."}),e.jsxs("div",{className:"relative mb-8",children:[e.jsx(T,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),e.jsx(g,{placeholder:"Search questions...",value:r,onChange:s=>p(s.target.value),className:"pl-10"})]}),d?e.jsx("p",{className:"text-center text-muted-foreground py-12",children:"Loading..."}):l.length===0?e.jsx("p",{className:"text-center text-muted-foreground py-12",children:"No questions found."}):e.jsx("div",{className:"space-y-4",children:l.map(s=>{const t=S(`${s.question} ${s.answer} ${s.keywords||""}`),u=t?`/shop?category=${t}`:"/shop";return e.jsxs("article",{className:"bg-card border border-border rounded-xl p-6 hover:border-primary/50 transition-colors group",children:[e.jsxs(n,{to:`/forum/${s.slug}`,className:"block",children:[e.jsxs("div",{className:"flex items-start gap-3 mb-3",children:[e.jsx(h,{className:"h-5 w-5 text-primary mt-0.5 shrink-0"}),e.jsx("h2",{className:"text-lg font-semibold text-foreground group-hover:text-primary transition-colors",children:s.question})]}),e.jsx("p",{className:"text-muted-foreground whitespace-pre-wrap pl-8 line-clamp-3",children:s.answer})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 mt-4 pl-8",children:[s.keywords?e.jsx("div",{className:"flex flex-wrap gap-2",children:s.keywords.split(",").filter(i=>i.trim()).slice(0,3).map((i,f)=>e.jsx("span",{className:"px-2 py-0.5 bg-muted text-muted-foreground text-xs rounded-full",children:i.trim()},f))}):e.jsx("span",{}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[e.jsxs(n,{to:u,onClick:()=>j("forum_shop_cta_click",{source:"forum_list",category:t,forum_slug:s.slug}),className:"inline-flex items-center gap-1.5 rounded-full bg-primary px-3 py-1.5 text-[10px] font-display tracking-[0.18em] text-primary-foreground hover:opacity-90 transition-opacity",children:[e.jsx(w,{className:"w-3.5 h-3.5"})," SHOP LUTS"]}),e.jsxs(n,{to:`/forum/${s.slug}`,className:"inline-flex items-center gap-1 text-xs text-primary",children:["Read full answer ",e.jsx(q,{className:"w-3 h-3"})]})]})]})]},s.id)})})]}),e.jsx(k,{})]})]})};export{V 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.