/* Price Comparison Section */
.price-comparison-section {
    margin-top: 25px;
    width: 100%;
}

.comparison-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 25px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
}

.comparison-header i {
    font-size: 20px;
    color: #fff;
}

.comparison-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.comparison-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 20px;
}

.current-analysis,
.suggested-analysis {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.current-analysis h5,
.suggested-analysis h5 {
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    opacity: 0.9;
}

.analysis-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
}

.analysis-row:last-child {
    margin-bottom: 0;
}

.analysis-row span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.analysis-row strong {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.analysis-row.highlight {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px;
    margin: 8px -8px;
    border-left: 3px solid #4ade80;
}

.margin-value {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px !important;
}

.adjustment-value {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px !important;
}

/* Status colors */
.margin-good {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80 !important;
}

.margin-warning {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c !important;
}

.margin-danger {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171 !important;
}

.adjustment-increase {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c !important;
}

.adjustment-decrease {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80 !important;
}

.adjustment-none {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80 !important;
}

.comparison-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
}

.recommendation {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 3px solid #4ade80;
}

.recommendation i {
    font-size: 16px;
    color: #4ade80;
}

.recommendation span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .comparison-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .comparison-card {
        padding: 20px;
    }
    
    .current-analysis,
    .suggested-analysis {
        padding: 15px;
    }
    
    .analysis-row {
        font-size: 12px;
    }
    
    .analysis-row span {
        font-size: 12px;
    }
    
    .analysis-row strong {
        font-size: 13px;
    }
}

/* Hide initially */
.price-comparison-section.hidden {
    display: none;
}

/* Show with animation */
.price-comparison-section.show {
    display: block;
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
