{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "faq-glass-card",
  "dependencies": [
    "motion"
  ],
  "devDependencies": [],
  "registryDependencies": [],
  "files": [
    {
      "path": "../../packages/blocks/src/faq-section/faq-glass-card.tsx",
      "content": "'use client'\r\nimport React, { useState } from 'react'\r\nimport {\r\n  Accordion,\r\n  AccordionItem,\r\n  AccordionHeader,\r\n  AccordionPanel,\r\n} from '@/components/ui/accordion'\r\nimport { TimelineAnimation } from '@/components/ui/timeline-animation'\r\nimport { useMediaQuery } from '@/hooks/use-media-query'\r\n\r\ninterface FAQItem {\r\n  id: string\r\n  question: string\r\n  answer: string\r\n  category: 'general' | 'technical' | 'billing' | 'account'\r\n}\r\n\r\nconst FAQ_DATA: FAQItem[] = [\r\n  {\r\n    id: 'g1',\r\n    category: 'general',\r\n    question: 'What is this platform about?',\r\n    answer:\r\n      'This is a premium showcase platform designed to demonstrate modern UI patterns, including sophisticated accordions and AI-driven features.',\r\n  },\r\n  {\r\n    id: 'g2',\r\n    category: 'general',\r\n    question: 'How do I get started?',\r\n    answer:\r\n      'Simply browse through our various sections. If you have a specific question, use our AI Assistant at the bottom of the page.',\r\n  },\r\n  {\r\n    id: 't1',\r\n    category: 'technical',\r\n    question: 'Is it mobile responsive?',\r\n    answer:\r\n      'Absolutely. Every component is built with a mobile-first approach using Tailwind CSS, ensuring a seamless experience across all devices.',\r\n  },\r\n  {\r\n    id: 't2',\r\n    category: 'technical',\r\n    question: 'What technologies are used?',\r\n    answer:\r\n      'We use React 18, TypeScript, Framer Motion for animations, and the Gemini AI API for our intelligent features.',\r\n  },\r\n  {\r\n    id: 'b1',\r\n    category: 'billing',\r\n    question: 'What payment methods are accepted?',\r\n    answer:\r\n      'We accept all major credit cards, PayPal, and cryptocurrency for our premium enterprise plans.',\r\n  },\r\n  {\r\n    id: 'b2',\r\n    category: 'billing',\r\n    question: 'Can I cancel my subscription anytime?',\r\n    answer:\r\n      'Yes, you can cancel your subscription from your account dashboard at any time. Your features will remain active until the end of the billing cycle.',\r\n  },\r\n  {\r\n    id: 'a1',\r\n    category: 'account',\r\n    question: 'How do I reset my password?',\r\n    answer:\r\n      'Go to the login page and click on \"Forgot Password\". We will send an email with instructions to reset your access securely.',\r\n  },\r\n  {\r\n    id: 'a2',\r\n    category: 'account',\r\n    question: 'Can I share my account?',\r\n    answer:\r\n      'Sharing accounts is against our terms of service. We offer team plans for collaborative work environments.',\r\n  },\r\n]\r\n\r\nexport const FaqGlassCard = () => {\r\n  const timelineRef = React.useRef<HTMLDivElement>(null)\r\n  return (\r\n    <div\r\n      className=\"w-full px-4 relative min-h-screen flex flex-col justify-center items-center\"\r\n      ref={timelineRef}\r\n    >\r\n      <TimelineAnimation\r\n        timelineRef={timelineRef}\r\n        animationNum={0}\r\n        as=\"h1\"\r\n        className=\"text-2xl sm:text-4xl font-medium text-neutral-900 dark:text-white mb-10 text-center\"\r\n      >\r\n        Frequently Asked Questions\r\n      </TimelineAnimation>\r\n      <div className=\"absolute inset-0 z-0 bg-[url('https://images.unsplash.com/photo-1597200381847-30ec200eeb9a?q=80&w=1074&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D')] bg-cover bg-center opacity-50\" />\r\n      <div className=\"max-w-4xl relative z-2 mx-auto w-full\">\r\n        <Accordion multiple={false}>\r\n          {FAQ_DATA.slice(0, 5).map((item, i) => (\r\n            <AccordionItem key={item.id} value={item.id} className=\"mb-6\">\r\n              <TimelineAnimation\r\n                animationNum={i}\r\n                timelineRef={timelineRef}\r\n                className=\"border dark:border-white/10 border-white/20  dark:bg-black/40 bg-white/40 backdrop-blur-xl rounded-xl p-3 hover:scale-[1.01] transition-all duration-500\"\r\n              >\r\n                <AccordionHeader className=\"px-6 py-4 text-xl font-semibold bg-transparent data-active:bg-transparent  hover:bg-transparent\">\r\n                  <span className=\"bg-clip-text text-transparent bg-linear-to-r from-slate-900 to-slate-500 dark:from-slate-50 dark:to-slate-200\">\r\n                    {item.question}\r\n                  </span>\r\n                </AccordionHeader>\r\n                <AccordionPanel className=\"px-4 bg-transparent data-active:bg-transparent \">\r\n                  <div className=\"text-lg text-slate-600 leading-relaxed py-4 border-t border-white/10 dark:text-white\">\r\n                    {item.answer}\r\n                  </div>\r\n                </AccordionPanel>\r\n              </TimelineAnimation>\r\n            </AccordionItem>\r\n          ))}\r\n        </Accordion>\r\n      </div>\r\n    </div>\r\n  )\r\n}\r\n",
      "type": "registry:block"
    },
    {
      "path": "./components/ui/timeline-animation.tsx",
      "content": "import type { Variants } from 'motion/react';\nimport { type HTMLMotionProps, motion, useInView } from 'motion/react';\nimport type React from 'react';\n\ntype TimelineContentProps<T extends keyof HTMLElementTagNameMap> = {\n  children?: React.ReactNode;\n  animationNum: number;\n  className?: string;\n  timelineRef: React.RefObject<HTMLElement | null>;\n  as?: T;\n  customVariants?: Variants;\n  once?: boolean;\n} & HTMLMotionProps<T>;\n\nexport const TimelineAnimation = <T extends keyof HTMLElementTagNameMap = 'div'>({\n  children,\n  animationNum,\n  timelineRef,\n  className,\n  as,\n  customVariants,\n  once = true,\n  ...props\n}: TimelineContentProps<T>) => {\n  const defaultSequenceVariants = {\n    visible: (i: number) => ({\n      filter: 'blur(0px)',\n      y: 0,\n      opacity: 1,\n      transition: {\n        delay: i * 0.5,\n        duration: 0.5,\n      },\n    }),\n    hidden: {\n      filter: 'blur(20px)',\n      y: 0,\n      opacity: 0,\n    },\n  };\n\n  const sequenceVariants = customVariants || defaultSequenceVariants;\n\n  const isInView = useInView(timelineRef, {\n    once,\n  });\n\n  const MotionComponent = motion[as || 'div'] as React.ElementType;\n\n  return (\n    <MotionComponent\n      initial='hidden'\n      animate={isInView ? 'visible' : 'hidden'}\n      custom={animationNum}\n      variants={sequenceVariants}\n      className={className}\n      {...props}\n    >\n      {children}\n    </MotionComponent>\n  );\n};\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:block"
}