/* ==========================================================================
   Compare Page Styles
   ========================================================================== */

.compare-selectors {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.selector-slot {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 240px;
    flex: 1;
    max-width: 300px;
}

.slot-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
}

.model-select {
    appearance: none;
    background-color: var(--card-bg-solid);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 2rem 0.75rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.model-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.vs-divider {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-tertiary);
    padding: 0 0.5rem;
    align-self: flex-end;
    padding-bottom: 0.75rem;
}

/* Comparison Grid */
.compare-results {
    margin-top: 1rem;
}

.compare-grid {
    display: grid;
    gap: 0;
    overflow-x: auto;
}

/* Comparison table layout */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg-solid);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.compare-table th,
.compare-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    vertical-align: middle;
}

.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--table-header-bg);
    min-width: 160px;
}

.compare-table thead th {
    background: var(--table-header-bg);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    padding: 1.25rem;
}

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

.compare-table tbody tr:hover {
    background: var(--table-row-hover);
}

/* Cell highlights */
.cell-best {
    color: var(--success-color);
    font-weight: 700;
}

.cell-worst {
    color: var(--text-tertiary);
}

.cell-value {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.compare-provider-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--primary-glow);
    color: var(--primary-color);
    margin-top: 0.25rem;
}

/* Bar visualization in comparison */
.compare-bar-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.compare-bar {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.compare-bar-bg {
    width: 80px;
    height: 8px;
    border-radius: 4px;
    background: var(--border-color);
    overflow: hidden;
}

/* Empty state */
.compare-empty {
    display: flex;
    justify-content: center;
    padding: 3rem 0;
}

.empty-card {
    text-align: center;
    padding: 3rem;
    background: var(--card-bg);
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    max-width: 400px;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .compare-selectors {
        flex-direction: column;
        align-items: stretch;
    }

    .selector-slot {
        max-width: 100%;
    }

    .vs-divider {
        align-self: center;
        padding-bottom: 0;
    }

    .compare-table th:first-child,
    .compare-table td:first-child {
        min-width: 120px;
    }
}
