"use client";
import { cn } from "@/lib/utils";
import React, { useState, useEffect } from "react";
import { BentoGrid, BentoGridItem } from "../ui/bento-grid";
import {
  IconBoxAlignRightFilled,
  IconChartBar,
  IconClipboardCopy,
  IconFileBroken,
  IconPencil,
  IconSignature,
  IconTableColumn,
} from "@tabler/icons-react";
import { motion, AnimatePresence } from "framer-motion";
import { FaPlay } from "react-icons/fa";

export function BentoFeatures() {
  const variants = {
    hidden: { opacity: 0, y: 50 },
    visible: { opacity: 1, y: 0 },
  };

  return (
    <motion.div
      initial="hidden"
      whileInView="visible"
      variants={variants}
      transition={{ duration: 0.5 }}
      className="max-w-6xl mx-auto py-20"
    >
      <div className="text-center mb-16">
        <motion.h2 
          // className="text-4xl md:text-5xl bg-clip-text text-transparent bg-gradient-to-r from-purple-500 to-blue-500"
          className="text-4xl md:text-5xl bg-clip-text text-white"
          variants={{
            hidden: { opacity: 0, y: 20 },
            visible: { opacity: 1, y: 0 }
          }}
        >
          All-in-One Platform for AI-Powered Services
        </motion.h2>
      </div>

      <BentoGrid className="md:auto-rows-[20rem]">
        {items.map((item, i) => (
          <BentoGridItem
            key={i}
            title={item.title}
            description={item.description}
            header={item.header}
            className={cn("[&>p:text-lg] ", item.className)}
            icon={item.icon}
          />
        ))}
      </BentoGrid>
    </motion.div>
  );
}

const SkeletonOne = () => {
  const [isHovered, setIsHovered] = useState(false);
  const [animationState, setAnimationState] = useState('idle');
  
  // Control animation cycle
  useEffect(() => {
    if (isHovered) {
      const animationSequence = async () => {
        setAnimationState('drag');
        setTimeout(() => setAnimationState('drop'), 1500);
        setTimeout(() => setAnimationState('complete'), 2000);
        setTimeout(() => setAnimationState('drag'), 3500);
      };
      
      animationSequence();
      const interval = setInterval(animationSequence, 4000);
      return () => clearInterval(interval);
    } else {
      setAnimationState('idle');
    }
  }, [isHovered]);

  return (
    <motion.div
      className="flex flex-1 w-full h-full min-h-[6rem] bg-gradient-to-br from-purple-900/50 to-blue-900/50 flex-col space-y-2 rounded-xl overflow-hidden"
      onHoverStart={() => setIsHovered(true)}
      onHoverEnd={() => setIsHovered(false)}
    >
      <div className="flex flex-col space-y-2 p-6">
        <motion.h2 
          className="text-4xl font-bold text-white"
          animate={{ scale: isHovered ? 1.05 : 1 }}
        >
          No Coding Needed
        </motion.h2>
        <motion.div 
          className="h-2 w-32 bg-gradient-to-r from-blue-500 to-purple-500 rounded-full mt-4"
          animate={{ width: isHovered ? "40%" : "8rem" }}
        />
        <a href="/series" className="mouse-pointer">
          <motion.p 
            className="text-neutral-300 mt-2 flex items-center gap-2 mouse-pointer"
            animate={{ x: isHovered ? 10 : 0 }}
          >
            Learn more 
            <motion.span
              animate={{ x: isHovered ? 5 : 0 }}
              transition={{ repeat: isHovered ? Infinity : 0, duration: 0.6 }}
            >
              →
            </motion.span>
          </motion.p>
        </a>
      </div>
      
      {/* Drag and drop animation container */}
      <div className="relative p-6 h-64 flex items-center justify-center">
        {/* Drop zone */}
        <img src="https://everydayse-9255d3654d3ea492188c-endpoint.azureedge.net/blobeverydayse8906e17f60/wp-content/uploads/2023/07/Intuitive-user-friendly.png" className="w-full h-full object-cover" />
      </div>
    </motion.div>
  );
};

const SkeletonTwo = () => {
  return (
      <motion.div
          className="flex flex-1 w-full h-full min-h-[2rem] bg-gradient-to-br from-purple-900/20 to-blue-900/20 flex-col items-center justify-center rounded-xl cursor-pointer"
      > 
          <img
              src="https://images.unsplash.com/photo-1484522676511-0f51cc572bb0?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTJ8fHR5cGluZ3xlbnwwfHwwfHx8MA%3D%3D"
              alt="Typing Image"
              className="object-cover h-full w-full rounded-xl"
          />
      </motion.div>
  );
};

const SkeletonThree = () => {
  const [isHovered, setIsHovered] = useState(false);

  return (
    <motion.div
      className="flex flex-1 w-full h-full min-h-[6rem] bg-gradient-to-br from-purple-900/20 to-blue-900/20 flex-col items-center justify-center rounded-xl"
      onHoverStart={() => setIsHovered(true)}
      on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/IihWTsnVVIhQgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAqAiAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgP/9k="
              alt="Typing Image"
              className="object-cover h-full w-full rounded-xl"
          />
    </motion.div>
  );
};

const SkeletonFour = () => {
  return (
      <motion.div
          className="flex flex-1 w-full h-full min-h-[12rem] bg-gradient-to-br from-purple-900/20 to-blue-900/20 flex-col items-center justify-center p-4 rounded-xl overflow-hidden"
      >
          <motion.div 
              className="flex flex-col space-y-4 w-full"
              initial={{ y: 0 }}
              whileHover={{ y: "-25%" }}
              transition={{ duration: 0.6, ease: "easeInOut" }}
          >
              {/* First item - initially visible */}
              <motion.div 
                  className="bg-purple-500/20 p-4 rounded-xl cursor-pointer group relative overflow-hidden"
              >
                  <motion.div 
                      className="absolute inset-0 bg-purple-500/20 translate-x-[-100%] group-hover:translate-x-0 transition-transform duration-300"
                  />
                  <div className="relative flex items-center space-x-4">
                      <motion.div 
                          className="p-2 bg-purple-500/40 rounded-lg"
                          whileHover={{ rotate: 360 }}
                          transition={{ duration: 0.4 }}
                      >
                          <IconBoxAlignRightFilled className="h-6 w-6 text-purple-200" />
                      </motion.div>
                      <span className="text-white font-medium">Form Builder</span>
                  </div>
              </motion.div>
              
              {/* Second item - initially visible */}
              <motion.div 
                  className="bg-white/10 p-4 rounded-xl cursor-pointer group relative overflow-hidden"
              >
                  <motion.div 
                      className="absolute inset-0 bg-white/10 translate-x-[-100%] group-hover:translate-x-0 transition-transform duration-300"
                  />
                  <div className="relative flex items-center space-x-4">
                      <motion.div 
                          className="p-2 bg-white/20 rounded-lg"
                          whileHover={{ rotate: 360 }}
                          transition={{ duration: 0.4 }}
                      >
                          <IconClipboardCopy className="h-6 w-6 text-white" />
                      </motion.div>
                      <span className="text-white font-medium">Newsletter Creator</span>
                  </div>
              </motion.div>
              
              {/* Third item - revealed on hover */}
              <motion.div 
                  className="bg-blue-500/20 p-4 rounded-xl cursor-pointer group relative overflow-hidden"
              >
                  <motion.div 
                      className="absolute inset-0 bg-blue-500/20 translate-x-[-100%] group-hover:translate-x-0 transition-transform duration-300"
                  />
                  <div className="relative flex items-center space-x-4">
                      <motion.div 
                          className="p-2 bg-blue-500/40 rounded-lg"
                          whileHover={{ rotate: 360 }}
                          transition={{ duration: 0.4 }}
                      >
                          <IconPencil className="h-6 w-6 text-blue-200" />
                      </motion.div>
                      <span className="text-white font-medium">Content Editor</span>
                  </div>
              </motion.div>
              
              {/* Fourth item - revealed on hover */}
              <motion.div 
                  className="bg-emerald-500/20 p-4 rounded-xl cursor-pointer group relative overflow-hidden"
              >
                  <motion.div 
                      className="absolute inset-0 bg-emerald-500/20 translate-x-[-100%] group-hover:translate-x-0 transition-transform duration-300"
                  />
                  <div className="relative flex items-center space-x-4">
                      <motion.div 
                          className="p-2 bg-emerald-500/40 rounded-lg"
                          whileHover={{ rotate: 360 }}
                          transition={{ duration: 0.4 }}
                      >
                          <IconChartBar className="h-6 w-6 text-emerald-200" />
                      </motion.div>
                      <span className="text-white font-medium">Analytics Dashboard</span>
                  </div>
              </motion.div>
          </motion.div>
      </motion.div>
  );
};


// const SkeletonFive = () => {
//   return (
//     <motion.div
//       className="flex flex-1 w-full h-full min-h-[6rem] dark:bg-dot-white/[0.2] bg-dot-black/[0.2] flex-col items-center justify-center p-8"
//     >
//       <div className="grid grid-cols-2 gap-4 w-full">
//         <div className="bg-purple-500/20 p-4 rounded-xl aspect-square flex items-center justify-center">
//           <motion.div 
//             animate={{ rotate: 360 }}
//             transition={{ duration: 8, repeat: Infinity, ease: "linear" }}
//             className="w-12 h-12 rounded-full border-4 border-purple-500 border-t-transparent"
//           />
//         </div>
//         <div className="bg-blue-500/20 p-4 rounded-xl aspect-square flex items-center justify-center">
//           <motion.div 
//             initial={{ scale: 0.8 }}
//             animate={{ scale: 1.2 }}
//             transition={{ duration: 2, repeat: Infinity, repeatType: "reverse" }}
//             className="w-12 h-12 bg-gradient-to-tr from-blue-500 to-purple-500 rounded-lg"
//           />
//         </div>
//         <div className="bg-green-500/20 p-4 rounded-xl aspect-square flex items-center justify-center">
//           <motion.div 
//             initial={{ opacity: 0.5 }}
//             animate={{ opacity: 1 }}
//             transition={{ duration: 2, repeat: Infinity, repeatType: "reverse" }}
//             className="w-12 h-12 bg-gradient-to-br from-green-500 to-blue-500 rounded-full"
//           />
//         </div>
//         <div className="bg-pink-500/20 p-4 rounded-xl aspect-square flex items-center justify-center">
//           <motion.div 
//             animate={{ 
//               scale: [1, 1.2, 1],
//               rotate: [0, 90, 0]
//             }}
//             transition={{ duration: 4, repeat: Infinity }}
//             className="w-12 h-12 bg-gradient-to-bl from-pink-500 to-purple-500 rounded-lg"
//           />
//         </div>
//       </div>
//     </motion.div>
//   );
// };

const items = [
  {
    title: "Drag & Drop No-Code Builder",
    description: (
      <span className="text-sm">
        Easily create robust MicroSaaS applications using our intuitive drag-and-drop interface. Empower yourself to design custom workflows without writing a single line of code, streamlining operations and enhancing efficiency.
      </span>
    ),
    header: <SkeletonOne />,
    className: "md:col-span-1 md:row-span-2",
    icon: <IconClipboardCopy className="h-4 w-4 text-neutral-500" />,
  },
  {
    title: "Writing Simplified",
    description: (
      <span className="text-sm">
        Transform your writing process with the power of AI. Use the built-in AI writer to generate, refine, or continue content effortlessly.
      </span>
    ),
    header: <SkeletonTwo />,
    className: "md:col-span-1",
    icon: <IconFileBroken className="h-4 w-4 text-neutral-500" />,
  },
  {
    title: "Monetize Smarter",
    description: (
      <span className="text-sm">
        Launch your own community or tap into our marketplace to sell AI subscriptions to SMBs and beyond. Transform your ideas into profitable ventures.
      </span>
    ),
    header: <SkeletonThree />,
    className: "md:col-span-1",
    icon: <IconSignature className="h-4 w-4 text-neutral-500" />,
  },
  {
    title: "Integrated Creative Tools",
    description: (
      <span className="text-sm">
        From forms to video editors, AI writers to newsletter creators, we've got you covered. Access a comprehensive suite of tools designed to enhance your creative workflow.
      </span>
    ),
    header: <SkeletonFour />,
    className: "md:col-span-2",
    icon: <IconTableColumn className="h-4 w-4 text-neutral-500" />,
  },
  //   {
  //     title: "Smart Templates",
  //     description: (
  //       <span className="text-sm">
  //         Access a library of intelligent templates that adapt to your needs. Each template is powered by AI to provide personalized starting points.
  //       </span>
  //     ),
  //     header: <SkeletonFive />,
  //     className: "md:col-span-1",
  //     icon: <IconBoxAlignRightFilled className="h-4 w-4 text-neutral-500" />,
  //   }
];
