/* Custom styles for EarthWatch */

.glass-effect {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.seismic-wave-icon {
    transform-origin: center;
    animation: seismicPulse 2s ease-in-out infinite;
}

@keyframes seismicPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Toggle switch styling */
.toggle {
    appearance: none;
    width: 3rem;
    height: 1.5rem;
    background: #e5e7eb;
    border-radius: 0.75rem;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle:checked {
    background: #ea580c;
}

.toggle::before {
    content: '';
    position: absolute;
    top: 0.125rem;
    left: 0.125rem;
    width: 1.25rem;
    height: 1.25rem;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle:checked::before {
    transform: translateX(1.5rem);
}

/* Enhanced scrollbar for earthquake feed */
.max-h-64::-webkit-scrollbar {
    width: 6px;
}

.max-h-64::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.max-h-64::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.max-h-64::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive animations */
@media (prefers-reduced-motion: reduce) {
    .animate-pulse,
    .animate-ping,
    .seismic-wave-icon {
        animation: none;
    }
}

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

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

/* Enhanced visual hierarchy */
.container {
    max-width: 1200px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .grid {
        gap: 1rem;
    }
}