/* ==========================================================================
   Переключатель цветовой схемы (синий / золотой)
   Разметка панели генерируется в js/color-switcher.js
   ========================================================================== */

.color-switcher {
    position: fixed;
    top: 50%;
    left: -240px;
    transform: translateY(-50%);
    width: 240px;
    z-index: 9999;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: none;
    border-radius: 0 16px 16px 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    color: #fff;
    font-family: 'Inter', sans-serif;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.color-switcher.is-open {
    left: 0;
}

.color-switcher-button {
    position: absolute;
    top: 50%;
    right: -42px;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: none;
    border-radius: 0 12px 12px 0;
}

.color-switcher-icon {
    display: inline-block;
    animation: cs-spin 6s linear infinite;
    will-change: transform;
}

@keyframes cs-spin {
    to {
        transform: rotate(360deg);
    }
}

.color-switcher-title {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
    padding-bottom: 0.75rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid rgb(var(--color-primary));
}

.color-switcher-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.color-switcher-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.6rem 0.7rem;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.color-switcher-option:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.color-switcher-option.active {
    border-color: currentColor;
    background: rgba(255, 255, 255, 0.06);
}

.color-switcher-dot {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.color-switcher-hint {
    font-size: 0.7rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.4);
    margin: 0.9rem 0 0;
}

@media (max-width: 575.98px) {
    .color-switcher {
        width: 200px;
        left: -200px;
    }
}
