/* Comparative Table Styles */
.comparison-section {
    background: linear-gradient(135deg, var(--hero-gradient-1) 0%, var(--hero-gradient-2) 50%, var(--hero-gradient-1) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .comparison-section {
    background: linear-gradient(135deg, var(--hero-gradient-1) 0%, var(--hero-gradient-2) 50%, var(--hero-gradient-1) 100%);
}

.comparison-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 102, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
}

[data-theme="light"] .comparison-table {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.comparison-table thead {
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
}

[data-theme="light"] .comparison-table thead {
    background: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
}

.comparison-table thead th {
    padding: 1.5rem 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
}

.comparison-table thead th:first-child {
    text-align: left;
    font-size: 1rem;
    opacity: 0.9;
}

.comparison-table thead th:last-child {
    border-right: none;
}

.comparison-table .model-header {
    position: relative;
}

.comparison-table .model-name {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    display: block;
}

.comparison-table .model-subtitle {
    font-size: 0.85rem;
    opacity: 0.85;
    font-weight: 400;
    display: block;
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.comparison-table tbody tr:hover {
    background: var(--card-hover-bg);
}

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

.comparison-table tbody th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--cyan-neon);
    font-size: 0.95rem;
    background: rgba(0, 102, 255, 0.03);
    border-right: 1px solid var(--border-color);
    white-space: nowrap;
}

[data-theme="light"] .comparison-table tbody th {
    color: #0052cc;
    background: rgba(0, 82, 204, 0.05);
}

.comparison-table tbody td {
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-right: 1px solid var(--border-color);
    vertical-align: middle;
}

[data-theme="light"] .comparison-table tbody td {
    color: rgba(26, 31, 54, 0.9);
}

.comparison-table tbody td:last-child,
.comparison-table tbody th:last-child {
    border-right: none;
}

/* Highlight current model */
.comparison-table .current-model {
    background: rgba(0, 229, 255, 0.08) !important;
    font-weight: 600;
    color: var(--text-primary) !important;
}

[data-theme="light"] .comparison-table .current-model {
    background: rgba(0, 82, 204, 0.1) !important;
    color: #0052cc !important;
}

/* Current model header indicator */
.comparison-table thead .current-model-header {
    position: relative;
}

.comparison-table thead .current-model-header::before {
    content: '👆';
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.comparison-table thead .current-model-header .model-indicator {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Badge styles in table */
.comparison-table .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    margin-top: 0.25rem;
    display: inline-block;
}

.comparison-table .badge-popular {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-weight: 600;
}

.comparison-table .badge-preorder {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-weight: 600;
}

/* Value highlights */
.comparison-table .value-high {
    color: #10b981;
    font-weight: 600;
}

[data-theme="light"] .comparison-table .value-high {
    color: #059669;
}

.comparison-table .value-medium {
    color: var(--cyan-neon);
    font-weight: 600;
}

[data-theme="light"] .comparison-table .value-medium {
    color: #0066cc;
}

.comparison-table .value-warning {
    color: #f59e0b;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 991px) {
    .comparison-table thead th {
        padding: 1rem 0.75rem;
        font-size: 1rem;
    }
    
    .comparison-table .model-name {
        font-size: 1.1rem;
    }
    
    .comparison-table .model-subtitle {
        font-size: 0.75rem;
    }
    
    .comparison-table tbody th,
    .comparison-table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .comparison-table-wrapper {
        border-radius: 8px;
    }
    
    .comparison-table thead th {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .comparison-table .model-name {
        font-size: 1rem;
    }
    
    .comparison-table .model-subtitle {
        font-size: 0.7rem;
    }
    
    .comparison-table tbody th {
        font-size: 0.8rem;
        padding: 0.75rem 0.5rem;
    }
    
    .comparison-table tbody td {
        font-size: 0.8rem;
        padding: 0.75rem 0.5rem;
    }
    
    .comparison-table .current-model::after {
        content: '◄';
        font-size: 0.9rem;
        right: 0.25rem;
    }
}
