/**
 * Language Selector Dialog Styles
 * Modern glassmorphism design with smooth animations
 */

/* Keyframe animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes zoomOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 0, 0, 0.3), 0 0 40px rgba(139, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(139, 0, 0, 0.5), 0 0 60px rgba(139, 0, 0, 0.2);
    }
}

/* Animation utility classes */
.animate-in {
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-out {
    animation: fadeOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in {
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-out {
    animation: fadeOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.zoom-in-95 {
    animation: zoomIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.zoom-out-95 {
    animation: zoomOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.duration-300 {
    animation-duration: 0.3s;
}

.duration-500 {
    animation-duration: 0.5s;
}

/* Dialog container */
#language-selection-dialog {
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: backdrop-filter;
}

/* Glassmorphism dialog box */
#language-selection-dialog .relative {
    animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Button animations and states */
#language-selection-dialog button {
    position: relative;
    font-family: inherit;
    border: none;
    cursor: pointer;
}

#language-selection-dialog button:hover {
    transform: translateY(-4px);
}

#language-selection-dialog button:active {
    transform: scale(0.98);
}

/* Smooth color transitions */
#language-selection-dialog button > div:first-child {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    #language-selection-dialog {
        color-scheme: dark;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    #language-selection-dialog {
        padding: 1rem;
    }
    
    #language-selection-dialog .max-w-md {
        width: 95%;
    }
    
    #language-selection-dialog button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    #language-selection-dialog h2 {
        font-size: 1.75rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    #language-selection-dialog {
        border: 2px solid currentColor;
    }
}

