/* Custom animations and effects */
@keyframes tape-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes glow-pulse {
    0%, 100% { 
        text-shadow: 0 0 10px #00BFFF, 0 0 20px #00BFFF, 0 0 30px #00BFFF;
    }
    50% { 
        text-shadow: 0 0 5px #00BFFF, 0 0 10px #00BFFF, 0 0 15px #00BFFF;
    }
}

.digital-glow {
    animation: glow-pulse 2s ease-in-out infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F5F5DC;
}

::-webkit-scrollbar-thumb {
    background: #8B4513;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #DAA520;
}

/* Button click effects */
button:active {
    transform: scale(0.95) !important;
}

/* Memory card hover effects */
.memory-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: rotate(0deg) translateY(-5px) !important;
    transition: all 0.3s ease;
}

/* Range input styling */
.range-slider {
    -webkit-appearance: none;
    height: 8px;
    background: linear-gradient(to right, #8B4513, #DAA520);
    border-radius: 4px;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #FF8C00;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    background: #FFB84D;
    transform: scale(1.1);
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #FF8C00;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Smooth transitions */
* {
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

/* Loading states */
@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

.loading-shimmer {
    background: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-size: 800px 104px;
    animation: shimmer 1s linear infinite;
}

/* Focus states for accessibility */
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #FF8C00;
    outline-offset: 2px;
}

/* Responsive font scaling */
@media (max-width: 768px) {
    .font-retro {
        font-size: clamp(1.5rem, 4vw, 3rem);
    }
}