/**
 * Google Translate Styles
 * 翻译功能相关的CSS样式
 */

/* Google Translate Widget Styles */
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Hide Google Translate native dropdown but keep it accessible for JavaScript */
.goog-te-combo {
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    pointer-events: none !important;
}

#google_translate_element {
    display: none !important;
}

/* Language Selector Styles */
.language-selector-container {
    position: fixed;
    top: 8px;
    right: 24px;
    z-index: 10000;
}

.language-selector-btn {
    background: #2563eb;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.language-selector-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.language-dropdown {
    position: absolute;
    right: 0;
    margin-top: 8px;
    width: 192px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    display: none;
}

.language-dropdown .dropdown-content {
    padding: 4px 0;
}

.language-option {
    width: 100%;
    text-align: left;
    padding: 8px 16px;
    color: #374151;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.15s ease;
}

.language-option:hover {
    background-color: #f3f4f6;
}

.language-option:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.language-option:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Icon styles */
.language-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Responsive design */
@media (max-width: 640px) {
    .language-selector-container {
        top: 4px;
        right: 16px;
    }
    
    .language-selector-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .language-dropdown {
        width: 160px;
    }
}