/**
 * DeMV Platform - Cyberpunk Comparison Buttons
 * Enhanced styling for comparison buttons with cyberpunk aesthetic
 */

/* Enhanced Comparison Button Styling */
.add-to-compare {
    position: relative;
    padding: 10px 15px;
    background: rgba(30, 30, 45, 0.8);
    color: #fff;
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.add-to-compare::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.add-to-compare:hover {
    background: rgba(108, 99, 255, 0.2);
    border-color: rgba(108, 99, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.4);
}

.add-to-compare:hover::before {
    left: 100%;
}

.add-to-compare:active {
    transform: translateY(1px);
    box-shadow: 0 0 5px rgba(108, 99, 255, 0.3);
}

.add-to-compare i {
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.add-to-compare span {
    transition: all 0.3s ease;
}

/* Active state styling */
.add-to-compare.active {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.3), rgba(108, 99, 255, 0.3));
    border-color: rgba(0, 243, 255, 0.8);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4), inset 0 0 10px rgba(0, 243, 255, 0.2);
}

.add-to-compare.active:hover {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.4), rgba(108, 99, 255, 0.4));
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5), inset 0 0 15px rgba(0, 243, 255, 0.3);
}

.add-to-compare.active i {
    color: #00f3ff;
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

/* Floating compare button */
.floating-compare-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c63ff, #00f3ff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 243, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.floating-compare-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-compare-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 243, 255, 0.6);
}

.floating-compare-btn:hover::before {
    opacity: 1;
}

.floating-compare-btn:active {
    transform: translateY(0) scale(0.95);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 243, 255, 0.4);
}

.floating-compare-btn i {
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
}

.compare-count {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ff2a6d;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(18, 18, 30, 0.9);
    box-shadow: 0 0 10px rgba(255, 42, 109, 0.5);
}

/* Pulse animation for floating button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 243, 255, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 243, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 243, 255, 0);
    }
}

.floating-compare-btn.pulse {
    animation: pulse 2s infinite;
}
