/* TK Karşılaştırma — karsilastir.css */

/* ── EKLE BUTONU ── */
.tkc2-add-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    background: transparent;
    border: 1px dashed rgba(212,160,23,.25);
    color: var(--text-dim);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .2s;
    margin-top: 8px;
}
.tkc2-add-btn:hover {
    border-color: rgba(212,160,23,.5);
    color: var(--gold-light);
    background: rgba(212,160,23,.04);
}
.tkc2-add-btn.added {
    border-style: solid;
    border-color: rgba(212,160,23,.4);
    color: var(--gold-muted);
}

/* ── FLOATING TRAY (sayfanın altında) ── */
.tkc2-tray {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(17,13,8,.97);
    border-top: 1px solid var(--gold-border);
    backdrop-filter: blur(12px);
    z-index: 800;
    transform: translateY(100%);
    transition: transform .3s ease;
    padding: 12px 24px;
}
.tkc2-tray.visible { transform: translateY(0); }

.tkc2-tray-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.tkc2-tray-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold-muted);
    flex-shrink: 0;
}

.tkc2-tray-items {
    display: flex;
    gap: 10px;
    flex: 1;
}

.tkc2-tray-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius);
    min-width: 140px;
}
.tkc2-tray-item img {
    width: 36px; height: 28px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}
.tkc2-tray-item-name {
    font-size: 12px;
    color: var(--text-primary);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}
.tkc2-tray-remove {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 14px;
    padding: 2px;
    transition: color .15s;
    flex-shrink: 0;
}
.tkc2-tray-remove:hover { color: #ef4444; }

.tkc2-tray-empty-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 48px;
    border: 1px dashed rgba(212,160,23,.2);
    border-radius: var(--radius);
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.tkc2-tray-btns { display: flex; gap: 8px; margin-left: auto; flex-shrink: 0; }

.tkc2-compare-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--gold-bright);
    color: #0a0806;
    border: none;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background .2s;
}
.tkc2-compare-btn:hover { background: var(--gold-light); }
.tkc2-compare-btn:disabled { opacity: .4; cursor: not-allowed; }

.tkc2-clear-btn {
    padding: 10px 14px;
    background: transparent;
    border: 1px solid rgba(212,160,23,.2);
    color: var(--text-dim);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .2s;
}
.tkc2-clear-btn:hover { border-color: rgba(212,160,23,.5); color: var(--gold-light); }

/* ── KARŞILAŞTIRMA TABLOSU ── */
.tkc2-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tkc2-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

/* Üst satır: eser görseli + adı */
.tkc2-header-row { background: var(--bg-card); }
.tkc2-header-label {
    width: 140px;
    padding: 16px 20px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-dim);
    border-right: 1px solid var(--gold-border);
    vertical-align: middle;
}

.tkc2-eser-col {
    padding: 16px 20px;
    text-align: center;
    border-right: 1px solid rgba(212,160,23,.1);
    vertical-align: top;
}
.tkc2-eser-col:last-child { border-right: none; }

.tkc2-eser-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--gold-border);
    display: block;
    margin-bottom: 10px;
}
.tkc2-eser-title {
    font-family: var(--font-serif);
    font-size: 16px;
    font-style: italic;
    color: var(--gold-light);
    display: block;
    margin-bottom: 6px;
    text-decoration: none;
    line-height: 1.3;
}
.tkc2-eser-title:hover { color: var(--gold-bright); }
.tkc2-eser-excerpt { font-size: 12px; color: var(--text-dim); line-height: 1.5; margin-bottom: 10px; }

.tkc2-eser-actions { display: flex; flex-direction: column; gap: 6px; }
.tkc2-eser-actions a {
    display: block;
    padding: 7px;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius);
    text-decoration: none;
    text-align: center;
    transition: all .2s;
}
.tkc2-btn-detail { border: 1px solid var(--gold-border); color: var(--gold-light); }
.tkc2-btn-detail:hover { background: rgba(212,160,23,.08); }
.tkc2-btn-wa { background: #25d366; color: #fff; }
.tkc2-btn-wa:hover { background: #1ebe59; color: #fff; }

/* Özellik satırları */
.tkc2-field-row { border-bottom: 1px solid rgba(212,160,23,.06); }
.tkc2-field-row:nth-child(even) { background: rgba(212,160,23,.02); }
.tkc2-field-key {
    padding: 12px 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    border-right: 1px solid var(--gold-border);
    white-space: nowrap;
    vertical-align: middle;
}
.tkc2-field-val {
    padding: 12px 20px;
    font-family: var(--font-serif);
    font-size: 14px;
    font-style: italic;
    color: var(--text-primary);
    text-align: center;
    border-right: 1px solid rgba(212,160,23,.1);
    vertical-align: middle;
}
.tkc2-field-val:last-child { border-right: none; }
.tkc2-field-val.highlight { color: var(--gold-light); font-weight: 600; }

/* Yükleniyor */
.tkc2-loading {
    text-align: center;
    padding: 48px;
    color: var(--text-dim);
    font-size: 14px;
}
.tkc2-loading::before {
    content: '';
    display: block;
    width: 32px; height: 32px;
    border: 2px solid rgba(212,160,23,.2);
    border-top-color: var(--gold-bright);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.tkc2-error {
    text-align: center;
    padding: 32px;
    color: #f87171;
    font-size: 14px;
    background: rgba(239,68,68,.06);
    border: 1px solid rgba(239,68,68,.2);
    border-radius: var(--radius-lg);
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
    .tkc2-tray-items { flex-direction: column; }
    .tkc2-tray-inner { flex-direction: column; align-items: flex-start; }
    .tkc2-tray-btns { width: 100%; }
    .tkc2-compare-btn, .tkc2-clear-btn { flex: 1; justify-content: center; }
}
