/* === Comparison Section === */
.comparison-section {
    padding: 32px 0 0;
}

.comparison-subtitle {
    color: #888;
    font-size: 14px;
    margin-top: -24px;
    margin-bottom: 24px;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.comparison-table thead tr {
    background: rgba(86, 156, 214, 0.08);
}

.comparison-table th {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    position: relative;
}

.comparison-dimension-header {
    width: 120px;
    text-align: left;
    color: #888;
    font-size: 13px;
}

.comparison-table td {
    padding: 14px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-dimension {
    text-align: left;
    color: #aaa;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* Highlight column (current software) */
.comparison-highlight-col {
    background: rgba(86, 156, 214, 0.06);
    position: relative;
}

thead .comparison-highlight-col {
    background: rgba(86, 156, 214, 0.12);
}

.comparison-table[data-columns="2"] .comparison-highlight-col {
    box-shadow: inset 2px 0 0 rgba(86, 156, 214, 0.4), inset -2px 0 0 rgba(86, 156, 214, 0.4);
}

.comparison-table[data-columns="3"] .comparison-highlight-col {
    box-shadow: inset 2px 0 0 rgba(86, 156, 214, 0.4), inset -2px 0 0 rgba(86, 156, 214, 0.4);
}

thead .comparison-highlight-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #569cd6, #4ecdc4);
    border-radius: 3px 3px 0 0;
}

.comparison-badge {
    display: inline-block;
    background: linear-gradient(135deg, #569cd6, #4ecdc4);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.comparison-value {
    color: #ccc;
}

.comparison-value-highlight {
    color: #569cd6;
    font-weight: 600;
}

.comparison-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Light mode */
body.light-mode .comparison-table-wrapper {
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.8);
}

body.light-mode .comparison-table thead tr {
    background: rgba(86, 156, 214, 0.06);
}

body.light-mode .comparison-table th {
    border-bottom-color: rgba(0, 0, 0, 0.08);
    color: #333;
}

body.light-mode .comparison-table td {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .comparison-dimension {
    color: #666;
}

body.light-mode .comparison-highlight-col {
    background: rgba(86, 156, 214, 0.05);
}

body.light-mode thead .comparison-highlight-col {
    background: rgba(86, 156, 214, 0.1);
}

body.light-mode .comparison-value {
    color: #555;
}

body.light-mode .comparison-subtitle {
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .comparison-section {
        padding: 24px 16px 0;
    }

    .comparison-subtitle {
        font-size: 13px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .comparison-dimension-header {
        width: 80px;
    }
}
