/**
 * Language Detector CSS for ConvertCase.org
 * Styling for language suggestion popup
 */

.language-suggestion {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 350px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.language-suggestion.visible {
    opacity: 1;
    transform: translateY(0);
}

.suggestion-content {
    padding: 16px;
}

.suggestion-message {
    font-size: 15px;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.4;
}

.suggestion-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn-switch-language, 
.btn-dismiss {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: none;
    text-align: center;
    text-decoration: none;
    flex-grow: 1;
}

.btn-switch-language {
    background-color: #3498db;
    color: white;
    font-weight: 500;
}

.btn-switch-language:hover {
    background-color: #2980b9;
    text-decoration: none;
    color: white;
}

.btn-dismiss {
    background-color: #f5f5f5;
    color: #555;
}

.btn-dismiss:hover {
    background-color: #e5e5e5;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .language-suggestion {
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }
    
    .suggestion-actions {
        flex-direction: column;
    }
}

/* Dark mode support */
body.dark-mode .language-suggestion {
    background-color: #2c3e50;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .suggestion-message {
    color: #ecf0f1;
}

body.dark-mode .btn-switch-language {
    background-color: #3498db;
    color: #ecf0f1;
}

body.dark-mode .btn-switch-language:hover {
    background-color: #2980b9;
}

body.dark-mode .btn-dismiss {
    background-color: #34495e;
    color: #bdc3c7;
}

body.dark-mode .btn-dismiss:hover {
    background-color: #2c3e50;
}
