/* Switcher Container - Fixed position at bottom right */
.switcher-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 12px;
    z-index: 1000;
    background: var(--bg-secondary, rgba(255, 255, 255, 0.95));
    padding: 12px 15px;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: var(--transition, all 0.3s ease);
    border: 1px solid var(--border-color, #e0ddd8);
}

/* Switcher Items */
.switcher-item {
    position: relative;
    display: flex;
    align-items: center;
}

.version-switcher {
    padding-right: 8px;
    border-right: 1px solid var(--border-color, #e0ddd8);
}

.theme-switcher {
    padding-right: 8px;
    border-right: 1px solid var(--border-color, #e0ddd8);
}

/* Switcher Icon Button */
.switcher-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-color, #0066cc);
    border-radius: 50%;
    background: var(--bg-primary, #fff);
    color: var(--text-primary, #2c3e50);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.switcher-icon:hover {
    background: var(--accent-color, #0066cc);
    color: var(--bg-primary, #fff);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

.switcher-icon:active {
    transform: scale(0.95);
}

/* Language Dropdown Menu */
.language-switcher {
    position: relative;
}

.language-dropdown {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: var(--bg-primary, #fff);
    border: 2px solid var(--accent-color, #0066cc);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    overflow: hidden;
    z-index: 1001;
    animation: slideUp 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-dropdown.active {
    display: flex;
    flex-direction: column;
}

/* Version Dropdown Menu */
.version-switcher {
    position: relative;
}

.version-dropdown {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: var(--bg-primary, #fff);
    border: 2px solid var(--accent-color, #0066cc);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    overflow: hidden;
    z-index: 1001;
    animation: slideUp 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.version-dropdown.active {
    display: flex;
    flex-direction: column;
}

/* Language Option Buttons */
.lang-option {
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: var(--text-primary, #2c3e50);
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    width: 100%;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-option:hover {
    background: var(--accent-color, #0066cc);
    color: var(--bg-primary, #fff);
    padding-left: 20px;
}

.lang-option.active {
    background: var(--accent-color, #0066cc);
    color: var(--bg-primary, #fff);
    position: relative;
}

.lang-option.active::after {
    content: '✓';
    position: absolute;
    right: 12px;
    font-weight: bold;
}

.lang-option:first-child {
    border-radius: 10px 10px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 10px 10px;
}

.lang-flag {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.lang-name {
    flex: 1;
}

/* Version Option Buttons */
.version-option {
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: var(--text-primary, #2c3e50);
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    width: 100%;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.version-option:hover {
    background: var(--accent-color, #0066cc);
    color: var(--bg-primary, #fff);
    padding-left: 20px;
}

.version-option.active {
    background: var(--accent-color, #0066cc);
    color: var(--bg-primary, #fff);
    position: relative;
}

.version-option.active::after {
    content: '✓';
    position: absolute;
    right: 12px;
    font-weight: bold;
}

.version-option:first-child {
    border-radius: 10px 10px 0 0;
}

.version-option:last-child {
    border-radius: 0 0 10px 10px;
}

.version-label {
    font-weight: 600;
}

.version-status {
    font-size: 11px;
    opacity: 0.75;
    margin-left: 8px;
}

.lang-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-color, #0066cc);
    color: var(--bg-primary, #fff);
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.switcher-icon:hover .lang-badge {
    transform: scale(1.2);
}

.version-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 24px;
    padding: 0 6px;
    border-radius: 4px;
    background: var(--accent-color, #0066cc);
    color: var(--bg-primary, #fff);
    font-size: 11px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.switcher-icon:hover .version-badge {
    transform: scale(1.1);
}

/* Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .switcher-container {
        bottom: 20px;
        right: 20px;
        padding: 10px 12px;
        gap: 8px;
    }

    .switcher-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .language-dropdown {
        min-width: 140px;
    }

    .lang-option {
        padding: 10px 14px;
        font-size: 13px;
    }

    .version-dropdown {
        min-width: 130px;
    }

    .version-option {
        padding: 9px 12px;
        font-size: 12px;
    }

    .version-status {
        font-size: 10px;
    }
}

/* Dark mode specific styles */
html[data-theme="dark"] .switcher-container {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

html[data-theme="dark"] .language-dropdown {
    background: var(--bg-primary);
    border-color: var(--accent-color);
}

html[data-theme="dark"] .version-dropdown {
    background: var(--bg-primary);
    border-color: var(--accent-color);
}

