/* TK Akıllı Arama — search.css */

.tks-wrap { margin-bottom: 40px; }

/* ── ARAMA BARI ── */
.tks-search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
}

.tks-keyword-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.tks-search-icon {
    position: absolute;
    left: 14px;
    color: var(--gold-muted);
    pointer-events: none;
    flex-shrink: 0;
}

.tks-keyword {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    padding: 14px 44px 14px 46px;
    border-radius: var(--radius);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.tks-keyword::placeholder { color: var(--text-dim); }
.tks-keyword:focus {
    border-color: rgba(212,160,23,.6);
    box-shadow: 0 0 0 3px rgba(212,160,23,.06);
}

.tks-clear-keyword {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    transition: color .2s;
}
.tks-clear-keyword:hover { color: var(--gold-light); }

.tks-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: var(--radius);
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s;
}
.tks-filter-toggle:hover,
.tks-filter-toggle.active {
    border-color: var(--gold-bright);
    color: var(--gold-light);
    background: rgba(212,160,23,.06);
}

.tks-active-count {
    background: var(--gold-bright);
    color: #0a0806;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── FİLTRE PANEL ── */
.tks-filters {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, margin .35s ease;
    margin-top: 0;
}
.tks-filters.open {
    max-height: 300px;
    margin-top: 10px;
}

.tks-filters-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
}

.tks-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 160px;
    flex: 1;
}

.tks-filter-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
}

.tks-filter {
    background: var(--bg-dark);
    border: 1px solid rgba(212,160,23,.2);
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 13px;
    padding: 9px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color .2s;
    outline: none;
}
.tks-filter:focus  { border-color: rgba(212,160,23,.5); }
.tks-filter option { background: #1a1208; color: var(--text-primary); }

.tks-reset-btn {
    background: none;
    border: 1px solid rgba(212,160,23,.15);
    color: var(--text-dim);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 9px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    white-space: nowrap;
    align-self: flex-end;
    transition: all .2s;
}
.tks-reset-btn:hover { color: var(--gold-light); border-color: var(--gold-border); }

/* ── AKTİF ETİKETLER ── */
.tks-active-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tks-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(212,160,23,.1);
    border: 1px solid rgba(212,160,23,.25);
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    animation: tks-tag-in .2s ease;
}
@keyframes tks-tag-in {
    from { opacity: 0; transform: scale(.85); }
    to   { opacity: 1; transform: scale(1); }
}
.tks-tag button {
    background: none;
    border: none;
    color: var(--gold-muted);
    cursor: pointer;
    padding: 0;
    font-size: 13px;
    line-height: 1;
    transition: color .15s;
}
.tks-tag button:hover { color: var(--gold-bright); }

/* ── SONUÇ BARI ── */
.tks-result-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 20px;
    border-bottom: 1px solid rgba(212,160,23,.08);
    margin-bottom: 24px;
    min-height: 48px;
}

.tks-result-count {
    font-size: 13px;
    color: var(--text-dim);
    transition: opacity .2s;
}
.tks-result-count strong { color: var(--gold-muted); }

/* ── SKELETON ── */
.tks-skeleton-bar {
    height: 14px;
    width: 160px;
    background: linear-gradient(90deg, rgba(212,160,23,.05) 25%, rgba(212,160,23,.12) 50%, rgba(212,160,23,.05) 75%);
    background-size: 200% 100%;
    animation: tks-shimmer 1.4s infinite;
    border-radius: 4px;
}
@keyframes tks-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.tks-grid-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}
.tks-card-skeleton {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.tks-card-skeleton-img {
    aspect-ratio: 4/3;
    background: linear-gradient(90deg, rgba(212,160,23,.04) 25%, rgba(212,160,23,.08) 50%, rgba(212,160,23,.04) 75%);
    background-size: 200% 100%;
    animation: tks-shimmer 1.4s infinite;
}
.tks-card-skeleton-body { padding: 20px; }
.tks-card-skeleton-line {
    height: 12px; border-radius: 4px; margin-bottom: 10px;
    background: linear-gradient(90deg, rgba(212,160,23,.04) 25%, rgba(212,160,23,.08) 50%, rgba(212,160,23,.04) 75%);
    background-size: 200% 100%;
    animation: tks-shimmer 1.4s infinite;
}
.tks-card-skeleton-line.short { width: 60%; }
.tks-card-skeleton-line.med   { width: 80%; }

/* ── BOŞ DURUM ── */
.tks-empty {
    text-align: center;
    padding: 72px 24px;
    grid-column: 1 / -1;
}
.tks-empty-icon { font-size: 48px; opacity: .3; display: block; margin-bottom: 16px; }
.tks-empty h3   { font-size: 22px; color: var(--gold-light); margin-bottom: 8px; font-style: italic; }
.tks-empty p    { color: var(--text-dim); font-size: 14px; }

/* ── PAGINATION ── */
.tks-pagination { margin-top: 48px; }

/* ── KART GİRİŞ ANİMASYON ── */
@keyframes tks-card-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tks-card { animation: tks-card-in .3s ease both; }
.tks-card:nth-child(1) { animation-delay: .03s; }
.tks-card:nth-child(2) { animation-delay: .07s; }
.tks-card:nth-child(3) { animation-delay: .11s; }
.tks-card:nth-child(4) { animation-delay: .15s; }
.tks-card:nth-child(5) { animation-delay: .19s; }
.tks-card:nth-child(6) { animation-delay: .23s; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
    .tks-filters-inner { flex-direction: column; }
    .tks-filter-group  { min-width: 100%; }
    .tks-filter-toggle span:not(.tks-active-count) { display: none; }
}
