@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

.pixel-font {
    font-family: 'Press Start 2P', monospace;
    image-rendering: pixelated;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
}

/* Retro scan lines effect */
.scan-lines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    pointer-events: none;
}

/* Custom scrollbar for game carousel */
.flex.overflow-x-auto::-webkit-scrollbar {
    height: 8px;
}

.flex.overflow-x-auto::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.flex.overflow-x-auto::-webkit-scrollbar-thumb {
    background: #9BBB0F;
    border-radius: 4px;
}

.flex.overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: #7a9a0c;
}

/* Retro button press animation */
@keyframes buttonPress {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.button-press {
    animation: buttonPress 0.1s ease-in-out;
}

/* Game Boy screen glow effect */
.screen-glow {
    box-shadow: 
        inset 0 0 20px rgba(155, 187, 15, 0.3),
        0 0 20px rgba(155, 187, 15, 0.2);
}

/* Retro gradient backgrounds */
.retro-bg {
    background: linear-gradient(45deg, #8B956D 0%, #9BBB0F 50%, #8B956D 100%);
    background-size: 200% 200%;
    animation: retroShift 3s ease-in-out infinite;
}

@keyframes retroShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Pixelated image rendering */
img {
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Retro card hover effects */
.retro-card {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 3px solid #ccc;
    transition: all 0.3s ease;
}

.retro-card:hover {
    border-color: #9BBB0F;
    box-shadow: 0 8px 25px rgba(155, 187, 15, 0.3);
    transform: translateY(-5px);
}

/* Nostalgic text shadow */
.retro-text {
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
}

/* Game Boy button styles */
.gameboy-button {
    background: radial-gradient(circle at 30% 30%, #666, #333);
    border: 2px solid #222;
    box-shadow: 
        inset 1px 1px 2px rgba(255, 255, 255, 0.2),
        2px 2px 4px rgba(0, 0, 0, 0.3);
}

.gameboy-button:active {
    box-shadow: 
        inset 2px 2px 4px rgba(0, 0, 0, 0.3),
        1px 1px 2px rgba(255, 255, 255, 0.1);
    transform: translateY(1px);
}

/* Responsive design adjustments */
@media (max-width: 768px) {
    .pixel-font {
        font-size: 0.7rem;
    }
    
    .gameboy-device {
        transform: scale(0.8);
    }
}

/* Loading animation for images */
.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}