'use client';

import React from 'react';
import Image from 'next/image';
import { ENTRY_FEE_DINO } from '../shared';
const Flywheel: React.FC = () => {
  return (
    <div className="py-16 bg-gradient-to-b from-gray-50 to-white">
      <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
        <div className="text-center mb-12">
          <h2 className="text-4xl font-bold text-gray-900 mb-4">
            The <span className="text-green-600">$DINO</span> Ecosystem
          </h2>
          <p className="text-xl text-gray-600 max-w-2xl mx-auto">
            A sustainable ecosystem that rewards players and builds value
          </p>
        </div>
        
        <div className="flex justify-center">
          <div className="relative w-[800px] h-[800px]">
            {/* Center $DINO Logo */}
            <div className="absolute inset-0 flex items-center justify-center">
              <div className="w-48 h-48 bg-gradient-to-br from-green-500 to-emerald-600 rounded-full flex items-center justify-center shadow-2xl z-10 ring-4 ring-green-400/20">
                <span className="text-5xl font-bold text-white">$DINO</span>
              </div>
            </div>
            
            {/* Flywheel Image */}
            <div className="absolute inset-0 flex items-center justify-center">
              <Image
                src="/dino_lifecycle.png"
                alt="DINO Flywheel Ecosystem"
                width={800}
                height={800}
                className="w-full h-full object-contain"
                priority
              />
            </div>
          </div>
        </div>
        
        {/* Description below the flywheel */}
        <div className="mt-12 text-center">
          <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 max-w-4xl mx-auto">
            <div className="bg-blue-50 p-6 rounded-lg border border-blue-200">
              <div className="text-3xl mb-2">🎮</div>
              <h3 className="font-semibold text-blue-800 mb-2">Enter Game</h3>
              <p className="text-blue-600 text-sm">Players pay {`${ENTRY_FEE_DINO}`} $DINO to enter the game and compete for high scores</p>
            </div>
            
            <div className="bg-purple-50 p-6 rounded-lg border border-purple-200">
              <div className="text-3xl mb-2">💰</div>
              <h3 className="font-semibold text-purple-800 mb-2">5% Fees</h3>
              <p className="text-purple-600 text-sm">A portion of entry fees is collected to fund the ecosystem</p>
            </div>
            
            <div className="bg-red-50 p-6 rounded-lg border border-red-200">
              <div className="text-3xl mb-2">🔥</div>
              <h3 className="font-semibold text-red-800 mb-2">Buy Back & Burn</h3>
              <p className="text-red-600 text-sm">Fees are used to buy back $DINO tokens and permanently remove them</p>
            </div>
            
            <div className="bg-orange-50 p-6 rounded-lg border border-orange-200">
              <div className="text-3xl mb-2">📉</div>
              <h3 className="font-semibold text-orange-800 mb-2">Reduce Supply</h3>
              <p className="text-orange-600 text-sm">Burning tokens reduces total supply, increasing scarcity and value</p>
            </div>
          </div>
        </div>
      </div>
    </div>
  );
};

export default Flywheel;
