@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

body {
    font-family: 'Orbitron', monospace;
    margin: 0;
    padding: 0;
    background: #000;
    overflow-x: hidden;
}

/* CRT Scanlines Effect */
.scanlines {
    position: relative;
}

.scanlines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 48%,
        rgba(0, 255, 0, 0.03) 49%,
        rgba(0, 255, 0, 0.03) 50%,
        transparent 52%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
}

/* Retro glow effects */
.text-red-400 {
    text-shadow: 0 0 10px rgba(248, 113, 113, 0.5);
}

.text-green-400 {
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.text-yellow-400 {
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

/* Button hover effects */
button {
    transition: all 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(0);
}

/* Cartridge insertion animation */
@keyframes cartridge-insert {
    0% { transform: translateY(-100px); opacity: 0; }
    50% { transform: translateY(-20px); opacity: 0.7; }
    100% { transform: translateY(0); opacity: 1; }
}

.cartridge-inserting {
    animation: cartridge-insert 0.8s ease-out;
}

/* Power LED pulse */
@keyframes led-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.animate-pulse {
    animation: led-pulse 2s infinite;
}

/* Console startup glow */
@keyframes console-startup {
    0% { box-shadow: 0 0 0 rgba(248, 113, 113, 0); }
    50% { box-shadow: 0 0 30px rgba(248, 113, 113, 0.5); }
    100% { box-shadow: 0 0 0 rgba(248, 113, 113, 0); }
}

.console-booting {
    animation: console-startup 3s ease-in-out;
}

/* Game demo effects */
@keyframes tempest-tunnel {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

.tempest-tunnel {
    animation: tempest-tunnel 2s linear infinite;
}

/* Controller button press effect */
.button-pressed {
    background: #ef4444 !important;
    transform: scale(0.95);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .scanlines::before {
        background-size: 100% 2px;
    }
    
    .text-4xl { font-size: 2rem; }
    .text-6xl { font-size: 3rem; }
}

/* Loading spinner */
@keyframes loading-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    animation: loading-spin 1s linear infinite;
}

/* Box art hover effect */
.game-card {
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(248, 113, 113, 0.3);
}

/* Authentic Jaguar styling */
.jaguar-red {
    background: linear-gradient(45deg, #dc2626, #ef4444);
}

.jaguar-black {
    background: linear-gradient(45deg, #000000, #1f2937);
}

/* Custom scrollbar for game library */
.game-grid::-webkit-scrollbar {
    width: 6px;
}

.game-grid::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 3px;
}

.game-grid::-webkit-scrollbar-thumb {
    background: #ef4444;
    border-radius: 3px;
}

.game-grid::-webkit-scrollbar-thumb:hover {
    background: #dc2626;
}