/* Minimal Google Translate CSS - Works with JavaScript solution */

/* Hide Google Translate elements */
.goog-te-banner-frame, 
iframe.goog-te-banner-frame, 
.skiptranslate {
    display: none !important;
    visibility: hidden !important;
}

#google_translate_element {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    display: block !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
}

body {
    top: 0 !important;
}

/* Style the dropdown button for all screen sizes */
.google-translate-container .language-dropdown {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 100px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.google-translate-container .language-dropdown:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Hide the original dropdown - JavaScript will handle it */
.google-translate-container .dropdown-menu {
    display: none !important;
}

/* MOBILE RESPONSIVE - Show the language button on all screen sizes */
@media (max-width: 991px) {
    /* Don't hide the container on mobile anymore */
    .top-bar .google-translate-container {
        display: block !important; /* Show on mobile */
    }
    
    /* Adjust top bar layout for mobile */
    .top-bar .top-actions {
        display: flex !important; /* Show top actions on mobile */
        justify-content: center;
        gap: 15px;
        margin-top: 8px;
    }
    
    /* Make contact info take less space on mobile */
    .top-bar .col-md-6:first-child {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }
    
    .top-bar .col-md-6:last-child {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Smaller language button on mobile */
    .google-translate-container .language-dropdown {
        min-width: 80px;
        padding: 4px 8px;
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .top-bar .top-actions {
        gap: 12px;
    }
    
    .google-translate-container .language-dropdown {
        min-width: 75px;
        padding: 4px 6px;
        font-size: 9px;
    }
    
    /* Adjust theme toggle size on mobile */
    .theme-toggle {
        font-size: 14px !important;
    }
}

@media (max-width: 576px) {
    .top-bar .top-actions {
        gap: 10px;
        margin-top: 6px;
    }
    
    .google-translate-container .language-dropdown {
        min-width: 70px;
        padding: 3px 6px;
        font-size: 8px;
        gap: 4px;
    }
    
    .google-translate-container .language-dropdown i {
        font-size: 8px;
    }
    
    .theme-toggle {
        font-size: 12px !important;
    }
}