/* Google Translate Popup Styles */
.translate-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.translate-popup-overlay.show {
    display: block;
    opacity: 1;
}

.translate-popup-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    max-width: 500px;
    width: 90%;
    padding: 0;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.translate-popup-modal.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.translate-popup-header {
    background: linear-gradient(135deg, #234969 0%, #1a3550 100%);
    color: #fff;
    padding: 25px 30px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.translate-popup-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.translate-popup-header h3 i {
    font-size: 24px;
}

.translate-popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.translate-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.translate-popup-body {
    padding: 30px;
}

.translate-popup-body p {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

.translate-popup-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.translate-popup-btn {
    flex: 1;
    min-width: 140px;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    user-select: none;
}

.translate-popup-btn-primary {
    background: linear-gradient(135deg, #234969 0%, #1a3550 100%);
    color: #fff;
}

.translate-popup-btn-primary:hover {
    background: linear-gradient(135deg, #1a3550 0%, #234969 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(35, 73, 105, 0.3);
}

.translate-popup-btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #ddd;
}

.translate-popup-btn-secondary:hover {
    background: #e9e9e9;
    border-color: #ccc;
}

.translate-popup-btn i {
    margin-right: 8px;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .translate-popup-modal {
        max-width: 95%;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .translate-popup-header {
        padding: 18px 20px;
        position: sticky;
        top: 0;
        z-index: 1;
    }
    
    .translate-popup-header h3 {
        font-size: 18px;
    }
    
    .translate-popup-header h3 i {
        font-size: 20px;
    }
    
    .translate-popup-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
        min-width: 36px;
        min-height: 36px;
        touch-action: manipulation;
    }
    
    .translate-popup-body {
        padding: 20px;
    }
    
    .translate-popup-body p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    
    .translate-popup-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .translate-popup-btn {
        width: 100%;
        min-width: 100%;
        padding: 16px 24px;
        font-size: 16px;
        min-height: 48px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Google Translate Widget Mobile Styles */
    #google_translate_element {
        margin-top: 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .goog-te-combo {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px !important;
        font-size: 16px !important;
        min-height: 44px !important;
        touch-action: manipulation;
    }
    
    .goog-te-menu-frame {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Google Translate Widget Styles */
#google_translate_element {
    margin-top: 15px;
}

.goog-te-banner-frame {
    display: none !important;
}

.goog-te-menu-value {
    color: #333 !important;
}

.goog-te-menu-frame {
    max-width: 100% !important;
}

body {
    top: 0 !important;
}

/* Hide Google Translate branding when not needed */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0px !important;
}
