/* GlowFlow language switcher */
.glowflow-switcher{position:relative;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;z-index:99990}
.glowflow-switcher .gf-switch-toggle{
    display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:10px;
    cursor:pointer;font-size:14px;font-weight:600;border:1px solid transparent;
    background:#fff;color:#111827;box-shadow:0 4px 14px rgba(0,0,0,.12);
}
.glowflow-switcher .gf-switch-caret{font-size:10px;opacity:.6;transition:transform .2s}
.glowflow-switcher.is-open .gf-switch-caret{transform:rotate(180deg)}
.glowflow-switcher .gf-switch-menu{
    position:absolute;right:0;bottom:calc(100% + 8px);min-width:180px;margin:0;padding:6px;
    list-style:none;background:#fff;border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.2);
    display:none;
}
.glowflow-switcher.is-open .gf-switch-menu{display:block}
.glowflow-switcher .gf-switch-menu li{margin:0}
.glowflow-switcher .gf-switch-menu a{
    display:block;padding:8px 12px;border-radius:6px;color:#111827;text-decoration:none;font-size:14px;
}
.glowflow-switcher .gf-switch-menu a:hover{background:#f3f4f6}
.glowflow-switcher .gf-switch-menu a.is-active{background:linear-gradient(135deg,#7c3aed,#a855f7);color:#fff;font-weight:600}

/* Dark theme */
.glowflow-switcher.gf-theme-dark .gf-switch-toggle{background:#111827;color:#fff}
.glowflow-switcher.gf-theme-dark .gf-switch-menu{background:#111827}
.glowflow-switcher.gf-theme-dark .gf-switch-menu a{color:#e5e7eb}
.glowflow-switcher.gf-theme-dark .gf-switch-menu a:hover{background:#1f2937}

/* Floating positions */
.glowflow-switcher.gf-floating{position:fixed}
.glowflow-switcher.gf-pos-bottom-right{right:20px;bottom:20px}
.glowflow-switcher.gf-pos-bottom-left{left:20px;bottom:20px}
.glowflow-switcher.gf-pos-top-right{right:20px;top:20px}
.glowflow-switcher.gf-pos-top-left{left:20px;top:20px}
/* Left-side positions: open menu rightward (left:0) instead of leftward (right:0) */
.glowflow-switcher.gf-pos-bottom-left .gf-switch-menu,
.glowflow-switcher.gf-pos-top-left .gf-switch-menu{right:auto;left:0}
/* Top positions: open menu downward instead of upward */
.glowflow-switcher.gf-pos-top-right .gf-switch-menu,
.glowflow-switcher.gf-pos-top-left .gf-switch-menu{bottom:auto;top:calc(100% + 8px)}

.gf-powered{margin-top:6px;font-size:11px;color:#9ca3af;text-align:center}
