/* Simple Language Translator - Style */

.slt-switcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.slt-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    padding: 10px 16px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transition: all 0.25s ease;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.slt-toggle:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}

.slt-current-flag {
    font-size: 20px;
    line-height: 1;
}

.slt-arrow {
    transition: transform 0.25s ease;
}

.slt-switcher.open .slt-arrow {
    transform: rotate(180deg);
}

.slt-dropdown {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
}

.slt-switcher.open .slt-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.slt-lang-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.2s ease;
    text-align: left;
}

.slt-lang-btn:hover {
    background: #f5f5f5;
}

.slt-lang-btn.active {
    background: #e8f0fe;
    color: #1a73e8;
    font-weight: 600;
}

.slt-flag {
    font-size: 20px;
    line-height: 1;
}

.slt-name {
    flex: 1;
}

/* Inline version (shortcode) */
.slt-inline-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.slt-lang-btn-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
}

.slt-lang-btn-inline:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.slt-lang-btn-inline.active {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
}

/* Responsive */
@media (max-width: 480px) {
    .slt-switcher {
        bottom: 20px;
        right: 15px;
    }

    .slt-toggle {
        padding: 8px 12px;
    }

    .slt-dropdown {
        min-width: 180px;
        right: -10px;
    }
}

/* Default button (no flag) */
.slt-lang-btn[data-lang="en"] {
    font-weight: 600;
    border-bottom: 1px solid #eee;
    margin-bottom: 4px;
    padding-bottom: 12px;
}

.slt-lang-btn[data-lang="en"] .slt-name {
    padding-left: 0;
}
