/* 💰 DYNAMIC PRICING STYLES */

.price-diff {
    font-size: 0.75rem;
    margin-left: 4px;
    padding: 1px 4px;
    border-radius: 4px;
    background: #ffe8e8;
    color: rgb(242, 72, 46);
}

.price-diff.positive {
    background: #ffe8e8;
    color: rgb(0, 156, 127);
}

.pricing-insights {
    display: none;
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.pricing-insights-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ai-pricing-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.ai-pricing-badge i {
    font-size: 1.1rem;
}

.pricing-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

.pricing-coverage {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.pricing-confidence {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.pricing-insight-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.95;
}

.pricing-insight-message i {
    font-size: 1rem;
}

/* Dynamic Pricing Info */
.dynamic-pricing-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 8px;
    padding: 0.5rem;
    margin: 0.5rem 0;
}

.pricing-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #4caf50;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-badge i {
    font-size: 0.9rem;
}

.price-change-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.price-change-indicator.price-up {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.price-change-indicator.price-down {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.price-change-indicator.price-stable {
    background: rgba(158, 158, 158, 0.1);
    color: #9e9e9e;
}

.pricing-reasoning {
    background: rgba(76, 175, 80, 0.05);
    border: 1px solid rgba(76, 175, 80, 0.1);
    border-radius: 6px;
    padding: 0.5rem;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #4caf50;
}

.pricing-reasoning i {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Pricing Feedback */
.pricing-feedback {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.pricing-feedback-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pricing-feedback-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    background: white;
    color: #666;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pricing-feedback-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.pricing-feedback-btn.good-price-btn:hover {
    background: #e8f5e8;
    border-color: #4caf50;
    color: #4caf50;
}

.pricing-feedback-btn.expensive-btn:hover {
    background: #ffeaea;
    border-color: #f44336;
    color: #f44336;
}

.pricing-feedback-btn.purchased-btn:hover {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #2196f3;
}

.pricing-feedback-btn.submitted {
    background: #4caf50;
    border-color: #4caf50;
    color: white;
    cursor: default;
}

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

.pricing-feedback-btn i {
    font-size: 0.8rem;
}

/* Product Card with Dynamic Pricing */
.product-card[data-has-dynamic-pricing="true"] {
    position: relative;
    border: 2px solid rgba(76, 175, 80, 0.2);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.1);
}

.product-card[data-has-dynamic-pricing="true"]:hover {
    border-color: rgba(76, 175, 80, 0.4);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-insights-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .pricing-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pricing-feedback-buttons {
        flex-direction: column;
    }
    
    .pricing-feedback-btn {
        justify-content: center;
    }
    
    .dynamic-pricing-info {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .pricing-reasoning {
        background: rgba(76, 175, 80, 0.2);
        border-color: rgba(76, 175, 80, 0.3);
        color: #81c784;
    }
    
    .pricing-feedback-btn {
        background: #2a2a2a;
        border-color: #444;
        color: #ccc;
    }
    
    .pricing-feedback-btn:hover {
        background: #333;
        border-color: #555;
    }
    
    .product-card[data-has-dynamic-pricing="true"] {
        border-color: rgba(76, 175, 80, 0.3);
        background: rgba(76, 175, 80, 0.05);
    }
}