/* Multilingual Auto Translate - Frontend Styles */

/* Always hide Google's own default translate toolbar/banner —
   only our custom switcher (flag + dropdown) should be visible */
.mat-hidden-engine {
    display: none !important;
}
body {
    top: 0 !important;
}
.goog-te-banner-frame {
    display: none !important;
}
.skiptranslate iframe {
    visibility: hidden !important;
}

/* Inline switcher — renders exactly where the [multilingual_switcher]
   shortcode is placed, nowhere else */
.mat-switcher-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e2e8;
    border-radius: 999px;
    padding: 6px 14px 6px 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.mat-switcher-flag {
    font-size: 18px;
    line-height: 1;
}

.mat-lang-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    padding: 4px 20px 4px 2px;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%231a1a2e' d='M0 0l5 6 5-6z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 2px center;
    max-width: 220px;
}

.mat-lang-select:focus {
    outline: 2px solid #4a4ae0;
    outline-offset: 2px;
    border-radius: 6px;
}

/* Mobile-friendly adjustments */
@media (max-width: 480px) {
    .mat-switcher-inline {
        padding: 8px 12px;
        gap: 6px;
    }
    .mat-lang-select {
        font-size: 13px;
        max-width: 160px;
    }
    .mat-switcher-flag {
        font-size: 16px;
    }
}
