/* =======================================================
   ANIMATION_TOGGLE.CSS - Стили для переключателя анимации
   ======================================================= */

/* Кнопка переключения анимации */
.animation-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(40, 167, 69, 0.9);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.animation-toggle:hover {
    background: rgba(32, 201, 151, 0.9);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
}

.animation-toggle:active {
    transform: scale(0.95);
}

/* Иконка в кнопке */
.animation-toggle i {
    transition: transform 0.3s ease;
}

.animation-toggle.active i {
    transform: rotate(180deg);
    color: #20c997;
}

/* Tooltip для кнопки */
.animation-toggle::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    transform: translateX(50%);
}

.animation-toggle:hover::before {
    opacity: 1;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .animation-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 15px;
        right: 15px;
    }
    
    .animation-toggle::before {
        font-size: 0.75rem;
        padding: 6px 8px;
    }
}

/* Анимация появления кнопки */
@keyframes toggleAppear {
    from {
        opacity: 0;
        transform: scale(0) rotate(180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.animation-toggle {
    animation: toggleAppear 0.5s ease-out;
}
