/* N8N Translator Frontend - Language Switcher */

/* Floating switcher */
.n8n-lang-switcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: system-ui, -apple-system, sans-serif;
}

.n8n-lang-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0073aa;
    color: #fff;
    border: none;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s, box-shadow .2s;
    margin-left: auto;
}

.n8n-lang-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,.3);
}

.n8n-lang-list {
    list-style: none;
    margin: 0 0 8px;
    padding: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    min-width: 180px;
    display: none;
}

.n8n-lang-switcher.open .n8n-lang-list { display: block; }

.n8n-lang-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background .15s;
}

.n8n-lang-list li a:hover { background: #f0f7ff; }
.n8n-lang-list li.active a { background: #e8f4fd; color: #0073aa; font-weight: 600; }
.n8n-check { color: #0073aa; font-weight: 700; }

/* Inline shortcode switcher */
.n8n-lang-inline {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.n8n-lang-btn {
    padding: 6px 14px;
    border: 2px solid #ddd;
    border-radius: 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all .2s;
}

.n8n-lang-btn:hover {
    border-color: #0073aa;
    color: #0073aa;
}

.n8n-lang-btn.active {
    border-color: #0073aa;
    background: #0073aa;
    color: #fff;
}
