import { Check, ArrowRight, Zap, Shield, Rocket, Users, BarChart, Globe } from "lucide-react";
import { SplitFeatures, type FeaturesData } from "./SplitFeatures";

// ===== SPLIT FEATURES EXAMPLES =====

// 1. Basic media split with features list
export const SplitFeaturesMediaExample = () => {
  const content: FeaturesData = {
    badge: "Features",
    title: "Everything you need to build modern applications",
    description: "Our platform provides all the tools and features you need to create, deploy, and scale your applications with confidence.",
    image: {
      src: "https://images.unsplash.com/photo-1551434678-e076c223a692?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80",
      alt: "Modern application development"
    },
    features: [
      {
        id: "1",
        title: "Lightning Fast Performance",
        description: "Optimized for speed with advanced caching and CDN integration"
      },
      {
        id: "2", 
        title: "Enterprise Security",
        description: "Bank-level security with end-to-end encryption and compliance"
      },
      {
        id: "3",
        title: "Scalable Infrastructure", 
        description: "Auto-scaling infrastructure that grows with your business needs"
      },
      {
        id: "4",
        title: "24/7 Expert Support",
        description: "Round-the-clock support from our team of technical experts"
      }
    ],
    primaryButtonText: "Get Started",
    secondaryButtonText: "View Demo",
    primaryButtonIcon: Rocket,
    secondaryButtonIcon: ArrowRight
  };

  return (
    <SplitFeatures
      content={content}
      variant="media"
      useContainer={true}
    />
  );
};

// 2. Left media split with feature icons
export const SplitFeaturesLeftMediaExample = () => {
  const content: FeaturesData = {
    badge: "Innovation",
    title: "Powerful features for modern teams",
    description: "Streamline your workflow with our comprehensive suite of tools designed for collaboration and productivity.",
    image: {
      src: "https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80",
      alt: "Team collaboration"
    },
    features: [
      {
        id: "1",
        title: "Real-time Collaboration",
        description: "Work together seamlessly with live editing and instant updates",
        lucideIcon: Users
      },
      {
        id: "2",
        title: "Advanced Analytics", 
        description: "Get deep insights into your team's performance and productivity",
        lucideIcon: BarChart
      },
      {
        id: "3",
        title: "Global Deployment",
        description: "Deploy your applications worldwide with our global infrastructure",
        lucideIcon: Globe
      },
      {
        id: "4",
        title: "Automated Workflows",
        description: "Streamline repetitive tasks with intelligent automation",
        lucideIcon: Zap
      }
    ]
  };

  return (
    <SplitFeatures
      content={content}
      variant="features"
      leftMedia={true}
      useContainer={true}
    />
  );
};

// 3. Analytics variant with stats cards (no container)
export const SplitFeaturesAnalyticsExample = () => {
  const content: FeaturesData = {
    badge: "Analytics",
    title: "Data-driven insights for better decisions",
    description: "Transform your business with powerful analytics and real-time reporting that help you understand your customers and optimize performance.",
    features: [
      {
        id: "1",
        title: "Predictive Analytics",
        description: "Forecast trends and make proactive business decisions"
      },
      {
        id: "2",
        title: "Custom Dashboards",
        description: "Create personalized views of your most important metrics"
      },
      {
        id: "3",
        title: "Automated Reports",
        description: "Schedule and deliver reports automatically to stakeholders"
      }
    ]
  };

  return (
    <SplitFeatures
      content={content}
      variant="analytics"
      leftMedia={true}
      useContainer={false}
      py="none"
      gap="none"
      className="min-h-[calc(100vh-64px)] overflow-hidden"
    />
  );
};

// 4. Security-focused split with gradient background
export const SplitFeaturesSecurityExample = () => {
  const content: FeaturesData = {
    badge: "Security",
    title: "Enterprise-grade security you can trust",
    description: "Protect your business with our comprehensive security suite featuring advanced threat detection, encryption, and compliance tools.",
    features: [
      {
        id: "1",
        title: "Multi-factor Authentication",
        description: "Secure access with multiple verification methods",
        lucideIcon: Shield
      },
      {
        id: "2",
        title: "End-to-end Encryption", 
        description: "Your data is encrypted both in transit and at rest",
        lucideIcon: Shield
      },
      {
        id: "3",
        title: "Compliance Ready",
        description: "Meet GDPR, HIPAA, and SOC 2 requirements out of the box",
        lucideIcon: Check
      },
      {
        id: "4",
        title: "Threat Monitoring",
        description: "24/7 monitoring and automated threat response",
        lucideIcon: Shield
      }
    ],
    primaryButtonText: "Learn More",
    primaryButtonIcon: ArrowRight
  };

  return (
    <SplitFeatures
      content={content}
      variant="features"
      leftMedia={false}
      useContainer={false}
      gap="none"
      className="bg-gradient-to-br from-primary/50 to-primary/10"
    />
  );
};

// 5. Performance-focused split with metrics
export const SplitFeaturesPerformanceExample = () => {
  const content: FeaturesData = {
    badge: "Performance",
    title: "Blazing fast performance at scale",
    description: "Experience unmatched speed and reliability with our optimized infrastructure designed to handle millions of requests.",
    image: {
      src: "https://images.unsplash.com/photo-1460925895917-afdab827c52f?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80",
      alt: "Performance analytics dashboard"
    },
    features: [
      {
        id: "1",
        title: "99.99% Uptime SLA",
        description: "Guaranteed availability with industry-leading uptime"
      },
      {
        id: "2",
        title: "Sub-100ms Response Time",
        description: "Lightning-fast API responses for optimal user experience"
      },
      {
        id: "3",
        title: "Auto-scaling Infrastructure",
        description: "Automatically scale to handle traffic spikes"
      },
      {
        id: "4",
        title: "Global Edge Network",
        description: "Serve content from the closest location to your users"
      }
    ],
    primaryButtonText: "View Benchmarks",
    secondaryButtonText: "Start Free Trial",
    primaryButtonIcon: BarChart,
    secondaryButtonIcon: Rocket
  };

  return (
    <SplitFeatures
      content={content}
      variant="media"
      leftMedia={true}
      useContainer={true}
    />
  );
};

// Export all examples
export const splitFeaturesExamples = {
  media: SplitFeaturesMediaExample,
  leftMedia: SplitFeaturesLeftMediaExample,
  features: SplitFeaturesAnalyticsExample, // Используем analytics как features
  analytics: SplitFeaturesAnalyticsExample,
  security: SplitFeaturesSecurityExample,
  performance: SplitFeaturesPerformanceExample
};