/* Custom styles for pixel font and game aesthetics */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P:wght@400&display=swap');

.font-pixel {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 10px;
    line-height: 1.4;
}

/* Custom Tailwind config */
@tailwind utilities;

/* Animation for click effects */
@keyframes float-up {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0px);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(-50px);
    }
}

.animate-float-up {
    animation: float-up 1s ease-out forwards;
}

/* Isometric room styling */
.isometric-room {
    background: linear-gradient(135deg, #e8f4f8 0%, #d1ecf1 50%, #bee5eb 100%);
    position: relative;
    overflow: hidden;
}

.isometric-room::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.1) 20px, rgba(255,255,255,0.1) 40px),
        repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(0,0,0,0.05) 20px, rgba(0,0,0,0.05) 40px);
    pointer-events: none;
}

/* Retro button styling */
.retro-button {
    box-shadow: 
        inset 2px 2px 0px rgba(255,255,255,0.3),
        inset -2px -2px 0px rgba(0,0,0,0.3),
        2px 2px 4px rgba(0,0,0,0.2);
    border: 2px solid #666;
}

.retro-button:active {
    transform: translate(1px, 1px);
    box-shadow: 
        inset 2px 2px 0px rgba(0,0,0,0.3),
        inset -2px -2px 0px rgba(255,255,255,0.3);
}

/* Custom scrollbar for shop */
.shop-scroll::-webkit-scrollbar {
    width: 6px;
}

.shop-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.shop-scroll::-webkit-scrollbar-thumb {
    background: #4ECDC4;
    border-radius: 3px;
}

.shop-scroll::-webkit-scrollbar-thumb:hover {
    background: #45b7aa;
}

/* Pulse animation for important elements */
@keyframes gentle-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.animate-gentle-pulse {
    animation: gentle-pulse 2s ease-in-out infinite;
}

/* Glow effect for high-value items */
.glow-green {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.glow-gold {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

/* Responsive grid adjustments */
@media (max-width: 768px) {
    .font-pixel {
        font-size: 8px;
    }
    
    h1.font-pixel {
        font-size: 12px;
    }
}