/* Enhanced animations and styles for Extended Solar System Weather Hub */

@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);
    }
}

@keyframes orbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

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

@keyframes heart-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); color: #FF8A80; }
}

/* Pluto special heart animation */
.pluto-heart {
    animation: heart-pulse 2s ease-in-out infinite;
}

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

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff6b35, #26C6DA);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #f7931e, #00BCD4);
}

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

/* Temperature display glow with dynamic colors */
.temp-glow {
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(100, 181, 246, 0.3),
        0 0 30px rgba(255, 107, 53, 0.2);
}

/* Dwarf planet specific glow */
.dwarf-glow {
    text-shadow: 
        0 0 10px rgba(38, 198, 218, 0.5),
        0 0 20px rgba(171, 71, 188, 0.3);
}

/* Tab transition effects */
.tab-transition {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive design improvements */
@media (max-width: 768px) {
    .celestial-body-selector {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .temp-display {
        font-size: 3rem;
    }
    
    .celestial-body-button {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .celestial-body-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .temp-display {
        font-size: 2.5rem;
    }
}

/* Loading animation for celestial body images */
img[src*="retrodiffusion"] {
    background: linear-gradient(45deg, #1a1a2e, #0B1426, #26C6DA);
    background-size: 300% 300%;
    animation: gradient-shift 2s ease infinite;
}

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

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

/* Classification badge animations */
.classification-badge {
    transition: all 0.3s ease;
}

.classification-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* Dwarf planet special styling */
.dwarf-planet-badge {
    background: linear-gradient(45deg, #26C6DA, #AB47BC);
    animation: gradient-shift 3s ease infinite;
}

/* Planet badge styling */
.planet-badge {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    animation: gradient-shift 3s ease infinite;
}

/* Special Pluto love section */
.pluto-love-section {
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
    border: 1px solid rgba(255, 107, 107, 0.3);
    animation: heart-pulse 4s ease-in-out infinite;
}

/* Orbital background enhancements */
.orbital-ring {
    border-style: dashed;
    border-width: 1px;
    opacity: 0.2;
}

/* Weather condition specific styling */
.extreme-weather {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Discovery timeline styling */
.discovery-timeline {
    position: relative;
}

.discovery-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #ff6b35, #26C6DA);
}

/* Enhanced card hover effects */
.weather-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Special animations for different celestial body types */
.planet-animation {
    animation: orbit 30s linear infinite;
}

.dwarf-planet-animation {
    animation: orbit 45s linear infinite reverse;
}

/* Atmospheric composition bar enhancements */
.atmosphere-bar {
    position: relative;
    overflow: hidden;
}

.atmosphere-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}