/* Language Detector Modal Styles - Matching Login/Sign Up Style */
.language-detector-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.language-detector-overlay.show {
    opacity: 1;
    visibility: visible;
}

.language-detector-modal {
    background-color: white;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
}

.language-detector-overlay.show .language-detector-modal {
    transform: translateY(0);
    opacity: 1;
}

.language-detector-header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-detector-title {
    font-size: 22px;
    color: #2c3e50;
    margin: 0;
    font-weight: 600;
}

.language-detector-close {
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-detector-close:hover {
    color: #e74c3c;
}

.language-detector-body {
    padding: 20px;
}

.language-detector-message {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #333;
    text-align: center;
}

.language-detector-primary-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    min-width: 200px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.language-detector-primary-btn:hover {
    background-color: #2980b9;
}

.language-detector-other-languages {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.language-detector-other-label {
    font-size: 18px;
    margin-bottom: 15px;
    color: #7f8c8d;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.language-detector-other-label i {
    font-size: 24px;
    color: #3498db;
}

.language-detector-select {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    width: 100%;
    max-width: 250px;
}

.language-detector-select:hover {
    border-color: #3498db;
}

.language-detector-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.language-detector-select option {
    background: white;
    color: #333;
    padding: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .language-detector-modal {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .language-detector-header {
        padding: 15px;
    }
    
    .language-detector-title {
        font-size: 20px;
    }
    
    .language-detector-body {
        padding: 15px;
    }
    
    .language-detector-message {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .language-detector-primary-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 180px;
    }
    
    .language-detector-select {
        min-width: 180px;
        padding: 8px 12px;
    }
    
    .language-detector-other-label i {
        font-size: 22px;
    }
}

/* Animation for smooth appearance - matching modal style */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
