/**
 * Comparison Page Styles
 */

.compare-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.compare-empty {
    text-align: center;
    padding: 100px 20px;
}

.empty-icon {
    font-size: 6rem;
    margin-bottom: 30px;
}

.compare-empty h2 {
    font-size: 2rem;
    color: #0D3B6E;
    margin-bottom: 15px;
}

.compare-empty p {
    font-size: 1.125rem;
    color: #64748B;
    margin-bottom: 30px;
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.comparison-header h2 {
    font-size: 1.75rem;
    color: #0D3B6E;
    margin: 0;
}

.comparison-table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.comparison-table thead {
    background: #0D3B6E;
    color: white;
}

.comparison-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    vertical-align: top;
}

.comparison-table th.sticky-col {
    position: sticky;
    left: 0;
    background: #0D3B6E;
    z-index: 10;
    min-width: 200px;
}

.comparison-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #E2E8F0;
    vertical-align: middle;
}

.comparison-table td.sticky-col {
    position: sticky;
    left: 0;
    background: #F8FAFC;
    font-weight: 600;
    color: #0D3B6E;
    z-index: 5;
    border-right: 2px solid #E2E8F0;
}

.comparison-table tr:nth-child(even) td:not(.sticky-col) {
    background: #F8FAFC;
}

.comparison-table tr:hover td:not(.sticky-col) {
    background: #EFF6FF;
}

.section-header td {
    background: #0D3B6E !important;
    color: white !important;
    font-weight: 700;
    font-size: 1.0625rem;
    padding: 15px 20px !important;
}

.highlight-row td {
    font-weight: 600;
}

.best-value {
    background: #D1FAE5 !important;
    position: relative;
}

.best-badge {
    display: inline-block;
    background: #10B981;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 8px;
    white-space: nowrap;
}

.compare-product-header {
    text-align: center;
}

.compare-product-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.compare-product-company {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 5px;
}

.compare-product-name {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.compare-product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #10B981;
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 10px 0;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.hybrid {
    background: #D1FAE5;
    color: #065F46;
}

.badge.on-grid {
    background: #DBEAFE;
    color: #1E40AF;
}

.badge.off-grid {
    background: #FEF3C7;
    color: #92400E;
}

.score-row td {
    padding: 25px 20px !important;
}

.score-display {
    text-align: center;
}

.score-number {
    font-size: 2rem;
    font-weight: 800;
    color: #0D3B6E;
    margin-bottom: 10px;
}

.score-bar {
    width: 100%;
    height: 12px;
    background: #E2E8F0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981 0%, #059669 100%);
    transition: width 0.5s ease;
}

/* Pros & Cons Section */
.pros-cons-section {
    margin-top: 60px;
}

.pros-cons-section h2 {
    font-size: 1.75rem;
    color: #0D3B6E;
    margin-bottom: 30px;
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.pros-cons-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.pros-cons-card h3 {
    font-size: 1.125rem;
    color: #0D3B6E;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #E2E8F0;
}

.pros, .cons {
    margin-bottom: 20px;
}

.pros h4 {
    color: #10B981;
    font-size: 1rem;
    margin-bottom: 10px;
}

.cons h4 {
    color: #EF4444;
    font-size: 1rem;
    margin-bottom: 10px;
}

.pros ul, .cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros li, .cons li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #475569;
    line-height: 1.6;
}

.pros li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10B981;
    font-weight: bold;
}

.cons li:before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #EF4444;
    font-weight: bold;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    font-weight: 600;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification-success {
    background: #D1FAE5;
    color: #065F46;
    border-left: 4px solid #10B981;
}

.notification-info {
    background: #DBEAFE;
    color: #1E40AF;
    border-left: 4px solid #3B82F6;
}

.notification-warning {
    background: #FEF3C7;
    color: #92400E;
    border-left: 4px solid #F59E0B;
}

.notification-error {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid #EF4444;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .comparison-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .comparison-table-wrapper {
        border-radius: 8px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px 15px;
        font-size: 0.875rem;
    }
    
    .compare-product-icon {
        font-size: 2rem;
    }
    
    .compare-product-name {
        font-size: 0.9375rem;
    }
    
    .score-number {
        font-size: 1.5rem;
    }
    
    .pros-cons-grid {
        grid-template-columns: 1fr;
    }
}
