/**
 * Product Comparison System - Stylesheets
 * Professional styling for comparison features
 * 
 * @version 1.1
 * @package Frontend CSS
 */

/* ====================================== */
/* 🔘 COMPARE BUTTON ON PRODUCT CARD */
/* ====================================== */

.btn-compare {
    padding: 10px 16px;
    background: #fff;
    color: #D32F2F;
    border: 2px solid #D32F2F;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-compare:hover {
    background: #D32F2F;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(211, 47, 47, 0.3);
}

.btn-compare.in-comparison {
    background: #D32F2F;
    color: white;
    border-color: #D32F2F;
}

.btn-compare.in-comparison::after {
    content: '✓';
    margin-left: 6px;
}

.btn-compare:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ====================================== */
/* 📦 COMPARISON INDICATOR */
/* ====================================== */

.comparison-indicator {
    display: inline-block;
    background: #FFF3E0;
    color: #E65100;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-indicator.active {
    background: #C8E6C9;
    color: #2E7D32;
}

/* ====================================== */
/* ✨ ANIMATIONS */
/* ====================================== */

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.comparison-notification-enter {
    animation: slideInDown 0.3s ease;
}

.comparison-notification-exit {
    animation: slideOutUp 0.3s ease;
}

/* ====================================== */
/* 📱 TABLET & MOBILE RESPONSIVE */
/* ====================================== */

@media (max-width: 768px) {
    .btn-compare {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .btn-compare {
        padding: 8px 10px;
        font-size: 0.7rem;
        gap: 4px;
    }
}

/* ====================================== */
/* ⌨️ PRINT STYLES */
/* ====================================== */

@media print {
    .btn-compare {
        display: none !important;
    }
}