/* Comparison Section Professional Enhancement */
/* This file enhances the "Why Choose Solar Power?" comparison section */

/* Enhanced Comparison Section */
.comparison-section.bg-professional-pattern {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.comparison-section.bg-professional-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="comparison-pattern" width="80" height="80" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="%23660099" opacity="0.03"/><circle cx="60" cy="60" r="1.5" fill="%23e98e39" opacity="0.02"/><polygon points="40,10 50,20 40,30 30,20" fill="%23b0d7ab" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23comparison-pattern)"/></svg>');
    z-index: 1;
}

.comparison-section.bg-professional-pattern .container {
    position: relative;
    z-index: 2;
}

/* Enhanced Section Badge */
.comparison-section .section-badge {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-green));
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(102, 0, 153, 0.3);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.comparison-section .section-badge::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: left 0.5s ease;
}

.comparison-section .section-badge:hover::before {
    left: 100%;
}

.comparison-section .section-badge:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 0, 153, 0.4);
}

/* Enhanced Section Title */
.comparison-section .section-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comparison-section .section-subtitle {
    font-size: 1.2rem;
    color: var(--medium-gray);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Enhanced Comparison Table */
.comparison-table-wrapper {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    max-width: 100%;
}

/* Table Container */
.table-responsive {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.table-responsive::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Table Styling */
.comparison-table {
    width: 100%;
    min-width: 600px; /* Minimum width to prevent squishing */
    table-layout: fixed;
    border-collapse: collapse;
}

.comparison-table-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-green));
}

/* Enhanced Table Headers */
.comparison-table th {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--dark-purple) 100%);
    color: var(--white);
    padding: 2rem 1.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    border: none;
    position: relative;
    overflow: hidden;
}

.comparison-table th::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.comparison-table th:hover::before {
    left: 100%;
}

.comparison-table .feature-header {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #2c3e50 100%);
    text-align: left;
    font-size: 1.3rem;
}

.comparison-table .solar-column {
    background: linear-gradient(135deg, var(--accent-green) 0%, #2e7d32 100%);
}

.comparison-table .fuel-column {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

/* Column Subtitles */
.column-subtitle {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Enhanced Table Cells */
.comparison-table td {
    padding: 1.8rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.comparison-table td:hover {
    background: rgba(0, 0, 0, 0.02);
    transform: scale(1.02);
}

.comparison-table .feature-name {
    font-weight: 600;
    color: var(--dark-gray);
    background: rgba(102, 0, 153, 0.05);
    border-left: 4px solid var(--primary-purple);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* Enhanced Benefit/Disadvantage Styling */
.solar-benefit {
    color: var(--accent-green);
    font-weight: 600;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    margin: 0.5rem;
    padding: 0.5rem;
}

.solar-benefit i {
    color: var(--accent-green);
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.fuel-disadvantage {
    color: #d32f2f;
    font-weight: 600;
    background: rgba(244, 67, 54, 0.1);
    border-radius: 8px;
    margin: 0.5rem;
    padding: 0.5rem;
}

.fuel-disadvantage i {
    color: #d32f2f;
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.fuel-warning {
    color: #f57c00;
    font-weight: 600;
    background: rgba(245, 124, 0, 0.1);
    border-radius: 8px;
    margin: 0.5rem;
    padding: 0.5rem;
}

.fuel-warning i {
    color: #f57c00;
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Professional Summary Cards */
.comparison-summary {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.summary-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-green));
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.summary-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--white);
}

.solar-summary .summary-icon {
    background: linear-gradient(135deg, var(--accent-green), #2e7d32);
}

.fuel-summary .summary-icon {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.summary-card h5 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.summary-card p {
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .comparison-section .section-title {
        font-size: 2.5rem;
    }
    
    .comparison-table-wrapper {
        padding: 1.5rem;
        margin: 0 -1rem;
        border-radius: 0;
        overflow: hidden;
    }
    
    .comparison-table {
        min-width: 500px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 1.2rem 0.8rem;
        font-size: 0.95rem;
    }
    
    .column-subtitle {
        font-size: 0.8rem;
    }
    
    .summary-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .comparison-section .section-title {
        font-size: 2rem;
    }
    
    .comparison-table-wrapper {
        padding: 1rem;
        overflow: hidden;
    }
    
    .comparison-table {
        min-width: 400px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .summary-card {
        padding: 1.5rem;
    }
    
    .summary-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}
