/* Custom animations and styles */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.8);
        transform: scale(1.02);
    }
}

/* Glass morphism effects */
.backdrop-blur-sm {
    backdrop-filter: blur(8px);
}

/* Smooth transitions */
* {
    transition: all 0.2s ease-in-out;
}

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

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

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

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

/* Planet button hover effects */
.planet-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

/* Temperature display glow */
.temp-glow {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Responsive design improvements */
@media (max-width: 768px) {
    .planet-selector {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
}

/* Loading animation for planet images */
img {
    transition: opacity 0.3s ease-in-out;
}

img[src*="retrodiffusion"] {
    background: linear-gradient(45deg, #1a1a2e, #0B1426);
}

/* Enhanced focus states for accessibility */
button:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* Gradient text effects */
.gradient-text {
    background: linear-gradient(45deg, #ff6b35, #f7931e, #64b5f6);
    background-size: 300% 300%;
    animation: gradient-shift 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}