/*
 * Kıyaslama detay özellik tablosu
 * NOT: figure üzerinde .table kullanılmaz — ozel.css .table { display:flex; th gri; border siyah } ile her şeyi bozuyordu.
 */

.sbk-kiyaslama-spec-outer {
    margin: 0 0 0.5rem;
}

.sbk-kiyaslama-spec-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

.sbk-kiyaslama-spec-diff {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    user-select: none;
}

.sbk-kiyaslama-spec-diff input {
    width: 1rem;
    height: 1rem;
    accent-color: #5d78ff;
    cursor: pointer;
}

.sbk-kiyaslama-spec-scroll-msg {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.sbk-kiyaslama-spec-diff-empty {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
}

.sbk-kiyaslama-spec-scroll-host {
    position: relative;
    border-radius: 12px 12px 0 0;
}

.sbk-kiyaslama-spec-scroll-host::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 44px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96));
    opacity: 0;
    transition: opacity 0.22s ease;
    z-index: 2;
    border-radius: 0 12px 12px 0;
}

.sbk-kiyaslama-spec-scroll-host--faded::after {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .sbk-kiyaslama-spec-scroll-host::after {
        transition: none;
    }
}

.sbk-kiyaslama-spec-table {
    display: block;
    width: 100%;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 4px 24px rgba(93, 120, 255, 0.12);
}

.sbk-kiyas-tr-suppressed {
    display: none !important;
}

.sbk-kiyaslama-spec-table__grid {
    display: table;
    width: 100%;
    min-width: 280px;
    border-collapse: collapse;
    border-spacing: 0;
    background: #fff;
    margin: 0;
}

/* Üst başlık: düz mavi (eski SBK kıyaslama görünümü) */
.sbk-kiyaslama-spec-table thead tr {
    background: #5d78ff !important;
    color: #fff !important;
}

.sbk-kiyaslama-spec-table thead th {
    padding: 0.95rem 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.045em;
    font-size: 0.78rem;
    text-align: left;
    vertical-align: middle;
    color: #fff !important;
    background: transparent !important;
    border: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.22) !important;
}

.sbk-kiyaslama-spec-table thead th:last-child {
    border-right: none !important;
}

.sbk-kiyaslama-spec-table thead th:not(:first-child) {
    font-size: 0.82rem;
    letter-spacing: 0.03em;
}

/* Zebra: tek satırlar hafif lavanta-gri, çift satırlar beyaz */
.sbk-kiyaslama-spec-table tbody tr:nth-child(odd) {
    background: #eceef7 !important;
}

.sbk-kiyaslama-spec-table tbody tr:nth-child(even) {
    background: #ffffff !important;
}

.sbk-kiyaslama-spec-table tbody tr {
    transition: background-color 0.22s ease;
}

/* Hem zebra hem beyaz satırda okunaklı, hafif mavi parlama */
.sbk-kiyaslama-spec-table tbody tr:hover {
    background: linear-gradient(90deg, #d4ddff 0%, #e8ecff 55%, #dde4ff 100%) !important;
}

@media (prefers-reduced-motion: reduce) {
    .sbk-kiyaslama-spec-table tbody tr {
        transition: none;
    }
}

.sbk-kiyaslama-spec-table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: top;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #2d3748;
    border: none !important;
    border-right: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-bottom: none !important;
}

.sbk-kiyaslama-spec-table tbody td:last-child {
    border-right: none !important;
}

.sbk-kiyaslama-spec-table tbody td:first-child {
    font-weight: 700;
    color: #1a202c !important;
    width: 22%;
    min-width: 110px;
}

/* motor_detay: admin/WYSIWYG HTML (p, strong, br) — tablo hücresinde okunaklı */
.sbk-kiyaslama-spec-table__motor-detay {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #334155;
}

.sbk-kiyaslama-spec-table__motor-detay p {
    margin: 0 0 0.5rem;
}

.sbk-kiyaslama-spec-table__motor-detay p:last-child {
    margin-bottom: 0;
}

.sbk-kiyaslama-spec-table__motor-detay strong {
    font-weight: 700;
    color: #0f172a;
}

/* Marka + model linkleri: başlık mavisi */
.sbk-kiyaslama-spec-table tbody td a {
    color: #5d78ff;
    font-weight: 600;
    text-decoration: none;
}

.sbk-kiyaslama-spec-table tbody td a:hover {
    text-decoration: underline;
    color: #4a6ae8;
}

.sbk-kiyaslama-spec-table__model-link {
    color: #5d78ff !important;
    font-weight: 700 !important;
}

@media (max-width: 575px) {
    .sbk-kiyaslama-spec-table thead th,
    .sbk-kiyaslama-spec-table tbody td {
        padding: 0.6rem 0.7rem;
        font-size: 0.8rem;
    }
}
