/* Enhanced Translation Button Styles */
.translate-btn {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 9999 !important;
    background: #22c55e !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 15px 25px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 180px !important;
}

.translate-btn:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 15px 35px rgba(34, 197, 94, 0.5) !important;
    background: #16a34a !important;
}

.translate-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
}

.translate-btn.translating {
    background: #16a34a !important;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4) !important;
}

/* Pulse effect on hover */
.translate-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.translate-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Glow effect */
.translate-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    background: #22c55e;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.translate-btn:hover::after {
    opacity: 0.7;
    animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
    }
    to {
        box-shadow: 0 0 30px rgba(34, 197, 94, 0.8);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .translate-btn {
        bottom: 20px !important;
        right: 20px !important;
        padding: 12px 20px !important;
        font-size: 13px !important;
        min-width: 160px !important;
    }
}

/* Loading state */
.translate-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.translate-btn.loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success animation */
.translate-btn.success {
    background: #16a34a;
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Language indicator */
.translate-btn .language-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Click ripple effect */
.translate-btn {
    overflow: hidden;
}

.translate-btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    transform: scale(0);
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
} 