/**
 * Floating Language Switcher Stylesheet for Manual Frontend Translator
 */

.mt-switcher-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    user-select: none;
}

/* Switcher Button Trigger */
.mt-switcher-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 30px;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mt-switcher-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.12);
}

.mt-switcher-trigger:focus {
    outline: none;
}

.mt-switcher-trigger:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.mt-switcher-icon {
    font-size: 15px;
}

.mt-switcher-label {
    letter-spacing: 0.5px;
}

.mt-switcher-arrow {
    font-size: 9px;
    opacity: 0.7;
    transition: transform 0.25s ease;
    display: inline-block;
}

/* Rotate arrow when open */
.mt-switcher-container.open .mt-switcher-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.mt-switcher-dropdown {
    position: absolute;
    bottom: 50px;
    right: 0;
    width: 140px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 6px;
    margin: 0;
    list-style: none;
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Open visual state */
.mt-switcher-container.open .mt-switcher-dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Dropdown Option Items */
.mt-switcher-option {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 550;
    color: #4a5568;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.mt-switcher-option:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #1a202c;
}

.mt-switcher-option.active {
    background: #2271b1;
    color: #fff;
}

.mt-switcher-option.active::after {
    content: "✓";
    font-size: 11px;
    font-weight: bold;
}
