/* Modern OS-Style Language Popup */
.language-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    font-family: 'EB Garamond', serif;
}

.language-popup-content {
    background: #ffffff;
    padding: 28px;
    border-radius: 16px;
    width: 380px;
    max-width: 90%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

/* Modern Close Button */
.close-popup {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-popup:hover {
    background: rgba(0, 0, 0, 0.1);
}

.close-popup::before, 
.close-popup::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background: #666;
    transition: all 0.2s ease;
}

.close-popup::before {
    transform: rotate(45deg);
}
.close-popup::after {
    transform: rotate(-45deg);
}

.close-popup:hover::before,
.close-popup:hover::after {
    background: #2e7d32;
    transform: rotate(0deg);
}

/* Modern Title */
.language-popup-content h3 {
    font-size: 22px;
    margin-bottom: 24px;
    color: #2e7d32;
    font-weight: 600;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(46, 125, 50, 0.2);
}

/* Modern Language Buttons */
.language-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.language-option {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: rgba(46, 125, 50, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(46, 125, 50, 0.1);
}

.language-option:hover {
    background: rgba(46, 125, 50, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.1);
    border-color: rgba(46, 125, 50, 0.2);
}

.language-option img {
    width: 32px;
    height: 22px;
    border-radius: 4px;
    object-fit: cover;
    margin-right: 16px;
    transition: transform 0.25s ease;
}

.language-option:hover img {
    transform: scale(1.1);
}

.language-option span {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    transition: color 0.25s ease;
}

.language-option:hover span {
    color: #2e7d32;
}

/* Modern Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 600px) {
    .language-popup-content {
        padding: 24px 20px;
        width: 90%;
    }
    
    .language-option {
        padding: 12px 16px;
    }
    
    .language-popup-content h3 {
        font-size: 20px;
    }
}