/* ══════════════════════════════════════════
   Star Translate — Floating Widget
   Position: Bottom-LEFT
   Google bar: Hidden
══════════════════════════════════════════ */

/* ── Force hide Google Translate bar everywhere ── */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-text-highlight,
.goog-te-gadget {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

body {
    top: 0 !important;
    position: static !important;
}

/* ── Widget wrapper — BOTTOM LEFT ── */
#star-translate-widget {
    position: fixed;
    bottom: 28px;
    left: 22px;        /* ← LEFT side */
    z-index: 999999;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-start;  /* align to left */
}

/* ── Toggle Button ── */
.star-translate-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #1a6b3c, #0d4a2a);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0,0,0,0.28);
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.star-translate-toggle:hover {
    background: linear-gradient(135deg, #228b4e, #155c35);
    transform: scale(1.04);
    box-shadow: 0 6px 22px rgba(0,0,0,0.32);
}

.star-icon   { font-size: 14px; }
.star-globe  { font-size: 16px; }
.star-label  { font-size: 12px; font-weight: 800; letter-spacing: 0.5px; }
.star-arrow  {
    font-size: 9px;
    transition: transform 0.3s;
    display: inline-block;
    opacity: 0.8;
}
.star-arrow.open { transform: rotate(180deg); }

/* ── Language Menu ── */
.star-translate-menu {
    display: none;
    flex-direction: column;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.20);
    overflow: hidden;
    margin-bottom: 10px;
    min-width: 220px;
    border: 1px solid #e8e8e8;
    animation: starSlideUp 0.22s ease;
}

.star-translate-menu.active { display: flex; }

@keyframes starSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Menu header */
.star-menu-header {
    background: linear-gradient(135deg, #1a6b3c, #0d4a2a);
    color: #ffffff;
    padding: 11px 16px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Language option buttons */
.star-lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #ffffff;
    border: none;
    border-bottom: 1px solid #f2f2f2;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: background 0.15s;
}

.star-lang-option:last-child { border-bottom: none; }

.star-lang-option:hover {
    background: #f0faf4;
}

.star-lang-option.active {
    background: #e6f7ee;
    border-left: 4px solid #1a6b3c;
}

.star-flag   { font-size: 20px; line-height: 1; }
.star-native { font-size: 13px; font-weight: 700; color: #1a6b3c; flex: 1; }
.star-english{ font-size: 11px; color: #aaaaaa; }

/* ── Mobile ── */
@media (max-width: 480px) {
    #star-translate-widget {
        bottom: 18px;
        left: 14px;
    }
    .star-translate-menu { min-width: 190px; }
    .star-label { display: none; }
}
