/* Language Selection Modal Styles */
.language-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.language-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.language-modal.closing {
    opacity: 0;
}

/* Backdrop with blur effect */
.language-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Modal Container - Glass morphism */
.language-modal-container {
    position: relative;
    z-index: 2;
    background: rgba(26, 26, 38, 0.95);
    border: 1px solid rgba(139, 69, 244, 0.2);
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(139, 69, 244, 0.2);
    animation: modalSlideIn 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal Content */
.language-modal-content {
    text-align: center;
}

/* Logo */
.language-modal-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.modal-logo-icon {
    width: 40px;
    height: 40px;
}

.modal-logo-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--purple-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Title */
.language-modal-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 1);
    margin-bottom: 16px;
    line-height: 1.3;
}

/* Subtitle */
.language-modal-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 32px;
}

/* Language Buttons Container */
.language-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Language Button */
.language-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: rgba(139, 69, 244, 0.1);
    border: 2px solid rgba(139, 69, 244, 0.3);
    border-radius: 12px;
    color: rgba(255, 255, 255, 1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 120px;
}

.language-btn:hover {
    background: linear-gradient(135deg, #9333ea 0%, #a855f7 100%);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 69, 244, 0.4);
}

.language-btn:active {
    transform: translateY(0) scale(0.98);
}

.language-flag {
    font-size: 2.5rem;
    line-height: 1;
}

.language-name {
    font-size: 1rem;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .language-modal-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        border-radius: 0;
        padding: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .language-modal-title {
        font-size: 1.25rem;
    }

    .language-buttons {
        gap: 12px;
    }

    .language-btn {
        min-height: 100px;
        padding: 20px 12px;
    }

    .language-flag {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .language-buttons {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .language-btn {
        flex-direction: row;
        justify-content: center;
        min-height: 60px;
        padding: 16px 24px;
    }

    .language-flag {
        font-size: 1.5rem;
    }
}
