/* ==========================================
   Trilingual CSS (Thai / English / Chinese)
   ========================================== */

/* Show/hide translation spans */
html:not(.lang-en) .lang-en,
body:not(.lang-en) .lang-en {
    display: none !important;
}

html.lang-en .lang-th,
body.lang-en .lang-th {
    display: none !important;
}

/* Hide Google Translate Top Bar & Widgets */
.goog-te-banner-frame,
.goog-te-banner,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
    visibility: hidden !important;
}

body {
    top: 0 !important;
}

/* Hide the "Show Original" popup on hover */
.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

/* Language Switcher Buttons Style */
.lang-switch-btn-wrap {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 30px;
    margin-left: 15px;
    vertical-align: middle;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.site-header.is-fixed .lang-switch-btn-wrap {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.lang-btn {
    font-family: 'Kanit', 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #888888 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: color 0.25s ease, transform 0.2s ease;
    padding: 2px 4px;
}

.lang-btn:hover {
    color: #1726F5 !important;
    transform: scale(1.05);
}

/* Active language highlights */
body.lang-en .lang-btn-en {
    color: #1726F5 !important;
    text-shadow: 0 0 1px rgba(23, 38, 245, 0.2);
}

body.lang-zh .lang-btn-zh {
    color: #1726F5 !important;
    text-shadow: 0 0 1px rgba(23, 38, 245, 0.2);
}

body:not(.lang-en):not(.lang-zh) .lang-btn-th {
    color: #1726F5 !important;
    text-shadow: 0 0 1px rgba(23, 38, 245, 0.2);
}

.lang-switch-btn-wrap span {
    color: rgba(0, 0, 0, 0.15);
    user-select: none;
}

.site-header:not(.is-fixed) .lang-switch-btn-wrap span {
    color: rgba(255, 255, 255, 0.3);
}

/* Extra margin adjustments for mobile view */
@media (max-width: 991px) {
    .lang-switch-btn-wrap {
        margin: 10px 0;
        background: rgba(0, 0, 0, 0.05);
        border-color: rgba(0, 0, 0, 0.1);
    }
    .header-nav .lang-switch-btn-wrap {
        display: flex;
        justify-content: center;
        width: 140px;
        margin: 20px auto;
    }
}
