/* ============================================================
 * ybs-search.css — Site Geneli Arama (sonuç sayfası + bileşenler)
 * Renk paleti: Lacivert (#0f2a4f) + Altın (#c9a227) + Beyaz
 * Tailwind-independent self-contained CSS
 * Sürüm: 2026-05-21 (rev4: autocomplete, toast, empty state, sıkı layout)
 * ============================================================ */

/* ============= 1. SAYFA KABUĞU ============= */
.search-page {
    background: linear-gradient(180deg, #fafbfc 0%, #f3f5f7 100%);
    min-height: 60vh;
    margin: 0;
    padding: 0;
}
.search-page > .container {
    width: 100% !important;
    max-width: 88rem !important;
    margin: 0 auto !important;
    padding: 0.75rem 1rem 1.5rem !important;
}
@media (min-width: 640px)  { .search-page > .container { padding: 1rem 1.5rem 1.75rem !important; } }
@media (min-width: 1024px) { .search-page > .container { padding: 1.25rem 2rem 2rem !important; } }
.search-page .search-hero + .ybs-search-layout {
    margin-top: 0 !important;
}
.search-page .ybs-search-layout__main > .search-group:first-child {
    margin-top: 0 !important;
}

/* ============= 2. HERO HEADER ============= */
.search-hero {
    position: relative;
    margin-bottom: 0.75rem;
    padding: 1rem 1.125rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(15, 42, 79, 0.08);
    border-radius: 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 12px 32px -16px rgba(15, 42, 79, 0.15);
    overflow: visible;
}
.search-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0f2a4f 0%, #c9a227 50%, #0f2a4f 100%);
    border-radius: 1.25rem 1.25rem 0 0;
}
@media (min-width: 1024px) { .search-hero { padding: 2rem 2.25rem; margin-bottom: 2rem; } }

.search-hero__breadcrumb {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.search-hero__breadcrumb a { color: #64748b; text-decoration: none; transition: color .15s ease; }
.search-hero__breadcrumb a:hover { color: #0f2a4f; text-decoration: underline; }
.search-hero__breadcrumb span[aria-current="page"] { color: #0f2a4f; font-weight: 500; }

.search-hero__title {
    color: #0f2a4f;
    letter-spacing: -0.02em;
    line-height: 1.15;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
@media (min-width: 640px)  { .search-hero__title { font-size: 1.875rem; } }
@media (min-width: 1024px) { .search-hero__title { font-size: 2.375rem; gap: 0.4rem; } }

.search-hero__title-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #b45309;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.search-hero__title-eyebrow::before {
    content: "";
    display: inline-block;
    width: 1.5rem;
    height: 2px;
    background: linear-gradient(90deg, #c9a227, transparent);
    border-radius: 1px;
}

.search-hero__title-query {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-weight: 700;
    color: #0f2a4f;
    word-break: break-word;
}
.search-hero__title-quote {
    color: #c9a227;
    font-weight: 400;
    margin: 0 0.05em;
}

.search-direct-answer {
    background: #ffffff;
    border-left: 4px solid #c9a227;
    padding: 0.875rem 1.125rem;
    border-radius: 0.5rem;
    color: #334155;
    line-height: 1.6;
    font-size: 0.95rem;
    max-width: 56rem;
    margin: 0 0 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
@media (min-width: 1024px) { .search-direct-answer { font-size: 1.0625rem; } }

.search-hero__metrics {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 1rem;
}
.search-hero__metric strong { color: #0f2a4f; font-weight: 600; }
.search-hero__metric-sep { color: #cbd5e1; }
.search-hero__metric-clear {
    color: #b91c1c;
    text-decoration: none;
    margin-left: 0.25rem;
    font-weight: 500;
}
.search-hero__metric-clear:hover { text-decoration: underline; }

/* ============= 3. ARAMA FORMU + AUTOCOMPLETE ============= */
.search-form { margin-top: 0; position: relative; }
.search-form__field {
    position: relative;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.875rem;
    transition: border-color .2s ease, box-shadow .2s ease;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.search-form__field:focus-within {
    border-color: #c9a227;
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.15);
}
.search-form__icon {
    position: absolute;
    left: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, rgba(15, 42, 79, 0.08), rgba(15, 42, 79, 0.04));
    color: #0f2a4f;
    pointer-events: none;
    border: 1px solid rgba(15, 42, 79, 0.06);
}
.search-form__icon svg { width: 1.25rem; height: 1.25rem; }

.search-form__input {
    width: 100%;
    padding: 0.875rem 5.5rem 0.875rem 3.75rem;
    font-size: 1rem;
    border: 0;
    background: transparent;
    color: #0f172a;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
@media (min-width: 640px) {
    .search-form__input { padding: 1rem 6rem 1rem 4rem; font-size: 1.0625rem; }
}
@media (min-width: 1024px) {
    .search-form__input { padding: 1.125rem 6.5rem 1.125rem 4.25rem; font-size: 1.125rem; }
}
.search-form__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-form__input::placeholder { color: #94a3b8; }

.search-form__submit {
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.55rem 1.2rem;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, #0f2a4f, #1e3a5f);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    border: 0;
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: 0 4px 12px -2px rgba(15, 42, 79, 0.3);
}
.search-form__submit:hover {
    transform: translateY(-50%) scale(1.03);
    box-shadow: 0 6px 16px -2px rgba(15, 42, 79, 0.4);
}

/* Autocomplete dropdown */
.search-suggest {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    z-index: 30;
    background: #ffffff;
    border: 1px solid rgba(15, 42, 79, 0.10);
    border-radius: 0.875rem;
    box-shadow: 0 12px 32px -8px rgba(15, 42, 79, 0.25), 0 4px 12px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    animation: ybsSuggestSlide .18s ease both;
}
@keyframes ybsSuggestSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.search-suggest__header {
    padding: 0.625rem 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #b45309;
    background: linear-gradient(180deg, #fffbeb, #ffffff);
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.search-suggest__header::before {
    content: "";
    display: inline-block;
    width: 0.875rem;
    height: 2px;
    background: #c9a227;
    border-radius: 1px;
}
.search-suggest__list { list-style: none; margin: 0; padding: 0.375rem 0; }
.search-suggest__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    color: #0f2a4f;
    text-decoration: none;
    transition: background .15s ease;
}
.search-suggest__item:hover,
.search-suggest__item:focus {
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.10), rgba(201, 162, 39, 0.04));
    outline: none;
}
.search-suggest__thumb {
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid rgba(15, 42, 79, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-suggest__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.search-suggest__thumb--placeholder { color: #94a3b8; }
.search-suggest__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.search-suggest__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f2a4f;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.search-suggest__meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: #94a3b8;
}
.search-suggest__type {
    background: rgba(15, 42, 79, 0.08);
    color: #0f2a4f;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
}
.search-suggest__url {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.search-suggest__more {
    display: block;
    padding: 0.625rem 1rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    color: #b45309;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background .15s ease;
}
.search-suggest__more:hover { background: #fef3c7; }
.search-suggest__empty {
    padding: 1.25rem;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

/* ============= 4. SCOPE CHIP'LERİ ============= */
.search-scopes {
    margin-top: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.25rem;
}
.search-scopes::-webkit-scrollbar { height: 4px; }
.search-scopes::-webkit-scrollbar-thumb { background: rgba(15, 42, 79, 0.2); border-radius: 2px; }
.search-scopes ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: max-content;
}
@media (min-width: 1024px) { .search-scopes ul { flex-wrap: wrap; min-width: 0; } }
.search-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.875rem;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: all .18s ease;
}
.search-chip:hover {
    border-color: #c9a227;
    background: #fffbeb;
    transform: translateY(-1px);
    color: #92400e;
}
.search-chip.is-active {
    background: #0f2a4f;
    color: #ffffff;
    border-color: #0f2a4f;
    box-shadow: 0 4px 12px -2px rgba(15, 42, 79, 0.3);
}
.search-chip__icon { display: inline-flex; }
.search-chip__count {
    padding: 0.125rem 0.45rem;
    border-radius: 0.4rem;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    margin-left: 0.1rem;
}
.search-chip.is-active .search-chip__count {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

/* ============= 4a. FİLTRE PANELİ (başlık + içerik) ============= */
.search-filter-panel {
    margin-top: 0.625rem;
    padding: 0.625rem 0.875rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1.5px solid rgba(15, 42, 79, 0.12);
    border-radius: 0.875rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.search-filter-panel__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.625rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(15, 42, 79, 0.12);
}
.search-filter-panel__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #0f2a4f, #1e3a5f);
    color: #c9a227;
    flex-shrink: 0;
}
.search-filter-panel__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f2a4f;
    letter-spacing: -0.01em;
}
.search-filter-panel__hint {
    color: #64748b;
    font-size: 0.78rem;
    font-style: italic;
    margin-left: auto;
}
@media (max-width: 640px) {
    .search-filter-panel__hint { width: 100%; margin-left: 0; }
}

.search-chip.is-disabled,
.ybs-search-filter-chip.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: #f8fafc;
    color: #94a3b8;
    border-style: dashed;
}

/* ============= 4b. FİLTRE SATIR WRAPPER ============= */
.search-filter-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
    margin-top: 0.875rem;
    padding: 0.625rem 0.875rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid rgba(15, 42, 79, 0.08);
    border-radius: 0.75rem;
}
.search-filter-row__legend {
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #0f2a4f;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.search-filter-row__legend::before {
    content: "";
    display: inline-block;
    width: 0.875rem;
    height: 2px;
    background: #c9a227;
    border-radius: 1px;
}
.search-filter-row > .search-scopes {
    margin-top: 0;
    flex: 1 1 auto;
    min-width: 0;
}

/* ============= 4c. BENZER ARAMALAR ============= */
.search-similar {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
    margin-top: 0.625rem;
    padding: 0.55rem 0.875rem;
    background: linear-gradient(135deg, rgba(15, 42, 79, 0.04) 0%, rgba(15, 42, 79, 0.02) 100%);
    border: 1px dashed rgba(15, 42, 79, 0.15);
    border-radius: 0.625rem;
}
.search-similar__legend {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.search-similar__legend::before {
    content: "";
    display: inline-block;
    width: 0.875rem;
    height: 2px;
    background: #94a3b8;
    border-radius: 1px;
}
.search-similar__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}
.search-similar__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .15s ease;
}
.search-similar__chip:hover {
    border-color: #c9a227;
    background: #fffbeb;
    color: #92400e;
    transform: translateY(-1px);
}

/* ============= 5. SAYFA PAYLAŞIMI (hero altı) ============= */
.search-hero__share {
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px dashed rgba(15, 42, 79, 0.12);
}

/* ============= 6. YATAY FİLTRE BAR (hero içinde, scope chips altı) ============= */
.search-hero .ybs-search-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin: 0.875rem 0 0;
    padding: 0.75rem 0.875rem;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 60%, #fffbeb 100%);
    border: 1px solid rgba(201, 162, 39, 0.30);
    border-radius: 0.75rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.ybs-search-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    padding: 0.75rem 0.875rem;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 60%, #fffbeb 100%);
    border: 1px solid rgba(201, 162, 39, 0.30);
    border-radius: 0.75rem;
}
.ybs-search-filter-bar__legend {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #0f2a4f;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.ybs-search-filter-bar__legend::before {
    content: "";
    display: inline-block;
    width: 0.875rem;
    height: 2px;
    background: #c9a227;
    border-radius: 1px;
}
.ybs-search-filter-bar__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    flex: 1 1 auto;
}
.ybs-search-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.875rem;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 0.825rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all .15s ease;
}
.ybs-search-filter-chip:hover {
    border-color: #c9a227;
    background: #fffbeb;
    color: #92400e;
    transform: translateY(-1px);
}
.ybs-search-filter-chip.is-active {
    background: #0f2a4f;
    color: #ffffff;
    border-color: #0f2a4f;
    box-shadow: 0 4px 10px -2px rgba(15, 42, 79, 0.3);
}
.ybs-search-filter-chip__count {
    padding: 0.1rem 0.45rem;
    border-radius: 0.4rem;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.ybs-search-filter-chip.is-active .ybs-search-filter-chip__count {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

/* ============= 6b. ANA LAYOUT (main + aside, masaüstünde 2 sütun) ============= */
.ybs-search-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
.ybs-search-layout__main   { min-width: 0; }
.ybs-search-layout__aside  { display: none; }
@media (min-width: 1024px) {
    .ybs-search-layout--full {
        grid-template-columns: minmax(0, 1fr) 18rem !important;
        gap: 1.5rem;
        align-items: start;
    }
    .ybs-search-layout--full .ybs-search-layout__aside {
        display: block !important;
    }
    .ybs-search-layout--narrow {
        grid-template-columns: 1fr;
        max-width: 56rem;
        margin: 0 auto;
    }
}
@media (min-width: 1280px) {
    .ybs-search-layout--full { grid-template-columns: minmax(0, 1fr) 20rem !important; gap: 1.75rem; }
}

/* ============= 7. SOL FACET PANELİ ============= */
.ybs-search-layout__facets-mobile { display: block; }
.ybs-search-layout__facets-desktop { display: none; }
@media (min-width: 1024px) {
    .ybs-search-layout__facets-mobile  { display: none; }
    .ybs-search-layout__facets-desktop { display: block; position: sticky; top: 5.5rem; }
}
.ybs-search-layout__facets-mobile {
    border: 1px solid rgba(15, 42, 79, 0.10);
    border-radius: 0.875rem;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 20px -12px rgba(15, 42, 79, 0.10);
}
.ybs-search-layout__facets-summary {
    padding: 0.875rem 1rem;
    font-weight: 600;
    color: #0f2a4f;
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.ybs-search-layout__facets-summary::-webkit-details-marker { display: none; }
.ybs-search-layout__facets-summary::before {
    content: "";
    display: inline-block;
    width: 1.125rem;
    height: 1.125rem;
    background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2a4f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.ybs-search-layout__facets-summary::after {
    content: "▾";
    margin-left: auto;
    color: #94a3b8;
    transition: transform .2s ease;
    font-size: 0.875rem;
}
details[open] .ybs-search-layout__facets-summary::after { transform: rotate(180deg); }
.ybs-search-layout__facets-count {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}
.ybs-search-layout__facets-mobile-body { padding: 0.5rem 1rem 1rem; border-top: 1px solid #e2e8f0; }

.ybs-search-facets {
    background: #ffffff;
    border: 1px solid rgba(15, 42, 79, 0.10);
    border-radius: 0.875rem;
    padding: 1rem 0.875rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 42, 79, 0.10);
}
.ybs-search-layout__facets-mobile-body .ybs-search-facets {
    border: 0;
    box-shadow: none;
    padding: 0;
}
.ybs-search-facets__group { border: 0; padding: 0; margin: 0; }
.ybs-search-facets__group + .ybs-search-facets__group {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(15, 42, 79, 0.10);
}
.ybs-search-facets__legend {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #0f2a4f;
    margin: 0 0 0.625rem;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.ybs-search-facets__legend::before {
    content: "";
    display: inline-block;
    width: 0.875rem;
    height: 2px;
    background: #c9a227;
    border-radius: 1px;
}
.ybs-search-facets__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}
.ybs-search-facets__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #334155;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.ybs-search-facets__item:hover {
    background: rgba(201, 162, 39, 0.08);
    color: #0f2a4f;
}
.ybs-search-facets__item.is-active {
    background: #0f2a4f;
    color: #ffffff;
    font-weight: 600;
}
.ybs-search-facets__item.is-active .ybs-search-facets__count {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}
.ybs-search-facets__icon {
    display: inline-flex;
    color: #94a3b8;
}
.ybs-search-facets__item.is-active .ybs-search-facets__icon { color: #c9a227; }
.ybs-search-facets__label {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ybs-search-facets__count {
    flex: 0 0 auto;
    min-width: 1.5rem;
    text-align: center;
    padding: 0.125rem 0.4rem;
    border-radius: 0.375rem;
    background: rgba(15, 42, 79, 0.06);
    color: #475569;
    font-size: 0.72rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.ybs-search-facets__empty {
    margin: 0;
    padding: 0.5rem;
    color: #94a3b8;
    font-size: 0.875rem;
    font-style: italic;
    text-align: center;
}

/* ============= 8. SAĞ SIDEBAR (sticky, belirgin) ============= */
.ybs-search-layout__aside-sticky {
    position: sticky;
    top: 5.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.ybs-search-aside-card {
    background: #ffffff;
    border: 1px solid rgba(15, 42, 79, 0.10);
    border-radius: 0.875rem;
    padding: 1.125rem 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 42, 79, 0.10);
}
.ybs-search-aside-card--cta {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: rgba(201, 162, 39, 0.4);
}
.ybs-search-aside-card--muted {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-color: #e2e8f0;
}
.ybs-search-aside-card__title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #0f2a4f;
    margin: 0 0 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.ybs-search-aside-card__title::before {
    content: "";
    display: inline-block;
    width: 0.875rem;
    height: 2px;
    background: #c9a227;
    border-radius: 1px;
}
.ybs-search-aside-card--cta .ybs-search-aside-card__title { color: #92400e; text-transform: none; letter-spacing: 0.02em; font-size: 1rem; }
.ybs-search-aside-card--cta .ybs-search-aside-card__title::before { background: #d97706; }
.ybs-search-aside-card__text {
    font-size: 0.875rem;
    color: #78350f;
    margin: 0 0 0.875rem;
    line-height: 1.55;
}
.ybs-search-aside-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.625rem 1.125rem;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
    box-shadow: 0 4px 12px -2px rgba(217, 119, 6, 0.35);
}
.ybs-search-aside-card__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -2px rgba(217, 119, 6, 0.45);
}
.ybs-search-aside-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.ybs-search-aside-card__list li { margin: 0; }
.ybs-search-aside-card__list a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: #334155;
    text-decoration: none;
    padding: 0.45rem 0.625rem;
    border-radius: 0.4rem;
    transition: all .15s ease;
}
.ybs-search-aside-card__list a::before {
    content: "→";
    color: #c9a227;
    font-weight: 600;
    transition: transform .15s ease;
}
.ybs-search-aside-card__list a:hover {
    color: #b45309;
    background: rgba(201, 162, 39, 0.10);
}
.ybs-search-aside-card__list a:hover::before { transform: translateX(2px); }

/* ============= 9. SONUÇ GRUBU (çok sıkı dizilim) ============= */
.search-group {
    animation: ybsSearchFadeIn .35s ease both;
    margin-bottom: 0.625rem;
}
.search-group:last-child { margin-bottom: 0; }
@keyframes ybsSearchFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.search-group > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 2px solid #0f2a4f;
    padding-bottom: 0.3rem;
    margin-bottom: 0.5rem;
    position: relative;
}
.search-group > header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 3rem;
    height: 2px;
    background: #c9a227;
}
.search-group > header h2 {
    margin: 0;
    color: #0f2a4f;
    font-size: 1.0625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.3;
}
@media (min-width: 1024px) { .search-group > header h2 { font-size: 1.1875rem; } }
.search-group > header h2 > span:first-child { color: #c9a227; }
.search-group > header h2 > span:last-child { font-weight: 400; color: #94a3b8; font-size: 0.875rem; }
.search-group > header > a {
    color: #b45309;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.search-group > header > a:hover { color: #92400e; }
.search-group > ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

/* ============= 10. SONUÇ KARTI (kompakt + featured image + stretched-link) ============= */
.ybs-search-card {
    list-style: none;
    background: #ffffff;
    border: 1px solid rgba(15, 42, 79, 0.10);
    border-radius: 0.75rem;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    cursor: pointer;
}
.ybs-search-card__top {
    display: flex;
    gap: 0;
    flex: 1 1 auto;
    min-height: 0;
}
/* Stretched-link: title-link kartın tüm alanına yayılır; interaktif öğeler üstte kalır */
.ybs-search-card__title-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
.ybs-search-card__media,
.ybs-search-card__head,
.ybs-search-card__foot {
    position: relative;
    z-index: 2;
}
.ybs-search-card__foot .ybs-share,
.ybs-search-card__foot .ybs-share * {
    position: relative;
    z-index: 3;
}
.ybs-search-card:hover {
    border-color: rgba(201, 162, 39, 0.55);
    box-shadow: 0 6px 18px -8px rgba(15, 42, 79, 0.20);
    transform: translateY(-1px);
}
.ybs-search-card__media {
    flex: 0 0 auto;
    display: block;
    width: 6rem;
    align-self: stretch;
    background: #f1f5f9;
    overflow: hidden;
    position: relative;
}
.ybs-search-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.ybs-search-card:hover .ybs-search-card__media img { transform: scale(1.05); }
@media (min-width: 640px) { .ybs-search-card__media { width: 8.5rem; } }
.ybs-search-card__body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.75rem 0.875rem 0.625rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
@media (min-width: 640px) {
    .ybs-search-card__body { padding: 0.875rem 1rem 0.75rem; }
}
.ybs-search-card__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0;
}
.ybs-search-card__type {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: rgba(15, 42, 79, 0.08);
    color: #0f2a4f;
    border: 1px solid rgba(15, 42, 79, 0.10);
}
.ybs-search-card__type--page       { background: rgba(15, 42, 79, 0.10);   color: #0f2a4f; }
.ybs-search-card__type--post       { background: rgba(56, 100, 167, 0.10); color: #1e40af; border-color: rgba(56, 100, 167, 0.20); }
.ybs-search-card__type--emsal      { background: rgba(126, 34, 206, 0.08); color: #6b21a8; border-color: rgba(126, 34, 206, 0.18); }
.ybs-search-card__type--petition   { background: rgba(201, 162, 39, 0.14); color: #8a6608; border-color: rgba(201, 162, 39, 0.34); }
.ybs-search-card__type--practice   { background: rgba(5, 122, 85, 0.10);   color: #047857; border-color: rgba(5, 122, 85, 0.20); }
.ybs-search-card__type--calculator { background: rgba(225, 29, 72, 0.08);  color: #be123c; border-color: rgba(225, 29, 72, 0.18); }
.ybs-search-card__type--attorney   { background: rgba(71, 85, 105, 0.10);  color: #334155; border-color: rgba(71, 85, 105, 0.18); }
.ybs-search-card__type--faq        { background: rgba(13, 148, 136, 0.10); color: #0f766e; border-color: rgba(13, 148, 136, 0.20); }
.ybs-search-card__type--tag        { background: rgba(100, 116, 139, 0.08); color: #475569; border-color: rgba(100, 116, 139, 0.18); }
.ybs-search-card__practice {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
}
.ybs-search-card__practice::before {
    content: "•";
    margin-right: 0.4rem;
    color: #cbd5e1;
}
.ybs-search-card__title {
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
}
@media (min-width: 1024px) { .ybs-search-card__title { font-size: 1.0625rem; } }
.ybs-search-card__title-link {
    color: #0f2a4f;
    text-decoration: none;
    transition: color .15s ease;
}
.ybs-search-card__title-link:hover { color: #b45309; text-decoration: underline; text-underline-offset: 3px; }
.ybs-search-card__title mark {
    background: rgba(201, 162, 39, 0.32);
    color: inherit;
    padding: 0 0.15em;
    border-radius: 0.2em;
}
.ybs-search-card__excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #475569;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ybs-search-card__excerpt mark {
    background: rgba(255, 235, 130, 0.55);
    color: inherit;
    padding: 0 0.1em;
    border-radius: 0.2em;
}
/* Footer: koyu lacivert gradient + açık altın yazılar — yüksek kontrast */
.ybs-search-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem 1rem;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    padding: 0.75rem 1.125rem;
    background: linear-gradient(135deg, #0f2a4f 0%, #1e3a5f 50%, #0f2a4f 100%);
    border-top: 2px solid #c9a227;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.ybs-search-card__foot .ybs-search-card__meta {
    color: #fde68a;
    font-weight: 500;
    font-size: 0.8rem;
}
.ybs-search-card__foot .ybs-search-card__meta .ybs-search-card__date,
.ybs-search-card__foot .ybs-search-card__url,
.ybs-search-card__foot .ybs-search-card__read-time {
    color: #fbbf24;
    font-weight: 600;
}
.ybs-search-card__foot .ybs-search-card__sep { color: rgba(251, 191, 36, 0.4); }
.ybs-search-card__read-time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.ybs-search-card__read-time svg { width: 0.875rem; height: 0.875rem; }
.ybs-search-card__foot > .ybs-share {
    flex: 0 0 auto;
    margin-left: auto;
}
.ybs-search-card__foot .ybs-share__list { gap: 0.4rem; justify-content: flex-end; }
.ybs-search-card__foot .ybs-share__btn { box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.30); }
@media (max-width: 640px) {
    .ybs-search-card__foot {
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.625rem 0.875rem;
    }
    .ybs-search-card__foot > .ybs-share { margin-left: 0; }
    .ybs-search-card__foot .ybs-share__list { justify-content: center; }
    .ybs-search-card__meta { justify-content: center; }
}
.ybs-search-card__meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: #94a3b8;
    flex-wrap: wrap;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}
.ybs-search-card__date { font-variant-numeric: tabular-nums; }
.ybs-search-card__url {
    color: #94a3b8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.7rem;
}

/* ============= 11. SOSYAL PAYLAŞIM (.ybs-share) — site geneli ============= */
.ybs-share {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    position: relative;
}
.ybs-share--compact {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
}
.ybs-share__label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #0f2a4f;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.ybs-share__label::before {
    content: "";
    display: inline-block;
    width: 0.875rem;
    height: 2px;
    background: #c9a227;
    border-radius: 1px;
}
.ybs-share__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    row-gap: 0.5rem;
}
.ybs-share__list li { display: inline-flex; flex: 0 0 auto; margin: 0; }
.ybs-share--compact .ybs-share__list { gap: 0.45rem; row-gap: 0.45rem; }

.ybs-share__btn {
    --share-color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border-radius: 0.625rem;
    background: var(--share-color);
    color: #ffffff;
    border: 1px solid var(--share-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .18s ease;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 6px -2px rgba(15, 23, 42, 0.15);
}
.ybs-share__btn:hover {
    color: var(--share-color);
    background: #ffffff;
    border-color: var(--share-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -4px color-mix(in srgb, var(--share-color) 50%, transparent);
}
.ybs-share__btn:focus-visible {
    outline: 2px solid var(--share-color);
    outline-offset: 2px;
}
.ybs-share__icon { display: inline-flex; align-items: center; justify-content: center; }
.ybs-share__icon svg { width: 1.125rem; height: 1.125rem; display: block; }
.ybs-share--compact .ybs-share__icon svg { width: 1rem; height: 1rem; }
.ybs-share--compact .ybs-share__list { gap: 0.4rem; }
.ybs-share--compact .ybs-share__btn {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border-radius: 0.5rem;
    justify-content: center;
    flex-shrink: 0;
}
/* Eski inline toast unsuru gizle (artık global toast kullanıyoruz) */
.ybs-share__copied { display: none !important; }

/* ============= 12. GLOBAL TOAST (sosyal paylaşım için) ============= */
.ybs-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #0f2a4f;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 9999px;
    box-shadow: 0 12px 32px -8px rgba(15, 42, 79, 0.5), 0 4px 12px rgba(15, 23, 42, 0.2);
    opacity: 0;
    transition: opacity .2s ease, transform .25s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}
.ybs-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.ybs-toast svg { color: #c9a227; }

/* ============= 13. PAGINATION ============= */
.search-pagination {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.search-pagination a {
    padding: 0.55rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #0f2a4f;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all .15s ease;
    font-weight: 500;
}
.search-pagination a:hover {
    background: rgba(201, 162, 39, 0.10);
    border-color: rgba(201, 162, 39, 0.40);
    color: #b45309;
}
.search-pagination > span {
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

/* ============= 14. NOTICE + EMPTY + NO-RESULT ============= */
.search-notice {
    padding: 0.875rem 1.125rem;
    border-radius: 0.625rem;
    border: 1px solid;
    font-size: 0.9rem;
}
.search-notice--warn {
    background: #fffbeb;
    border-color: rgba(201, 162, 39, 0.4);
    color: #92400e;
}

/* Yatay düzen: solda icon, sağda içerik; chip'ler yan yana yayvan */
.search-empty,
.search-no-result {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid rgba(15, 42, 79, 0.12);
    border-radius: 1rem;
    padding: 1.5rem 1.5rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 12px 32px -16px rgba(15, 42, 79, 0.15);
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
    align-items: center;
}
@media (min-width: 768px) {
    .search-empty,
    .search-no-result {
        grid-template-columns: auto 1fr;
        text-align: left;
        gap: 1.5rem;
        padding: 1.75rem 2rem;
    }
}
.search-empty__icon,
.search-no-result__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
    margin: 0 auto;
    border: 1px solid rgba(201, 162, 39, 0.3);
    box-shadow: 0 4px 12px -4px rgba(201, 162, 39, 0.4);
}
@media (min-width: 768px) {
    .search-empty__icon,
    .search-no-result__icon {
        margin: 0;
        width: 4.5rem;
        height: 4.5rem;
    }
}
.search-empty__icon svg,
.search-no-result__icon svg { width: 32px; height: 32px; }
.search-empty__title,
.search-no-result__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f2a4f;
    margin: 0 0 0.375rem;
    letter-spacing: -0.01em;
}
@media (min-width: 768px) {
    .search-empty__title,
    .search-no-result__title { font-size: 1.375rem; }
}
.search-empty__text,
.search-no-result__text {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #475569;
    margin: 0 0 1rem;
}
.search-empty__suggest-label,
.search-no-result__suggest-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #b45309;
    margin: 0 0 0.625rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.search-empty__suggest-label::before,
.search-no-result__suggest-label::before {
    content: "";
    display: inline-block;
    width: 0.875rem;
    height: 2px;
    background: #c9a227;
    border-radius: 1px;
}
.search-empty__suggestions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}
@media (min-width: 768px) {
    .search-empty__suggestions { justify-content: flex-start; }
}
.search-empty__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.125rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #ffffff, #fafbfc);
    border: 1.5px solid rgba(15, 42, 79, 0.12);
    color: #0f2a4f;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .18s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    cursor: pointer;
}
.search-empty__chip::before {
    content: "";
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #c9a227;
    transition: transform .18s ease;
}
.search-empty__chip:hover {
    border-color: #c9a227;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #92400e;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -4px rgba(201, 162, 39, 0.45);
}
.search-empty__chip:hover::before { transform: scale(1.4); background: #d97706; }
.search-no-result__dym {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    color: #475569;
}
.search-no-result__dym a {
    color: #b45309;
    font-weight: 700;
    text-decoration: none;
    margin-left: 0.4rem;
    border-bottom: 2px solid rgba(201, 162, 39, 0.4);
    transition: border-color .15s ease;
}
.search-no-result__dym a:hover { border-color: #c9a227; }
.search-no-result__cta {
    margin: 1.5rem auto 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid rgba(201, 162, 39, 0.4);
    border-radius: 0.625rem;
    max-width: 32rem;
}
.search-no-result__cta p { margin: 0; color: #78350f; font-size: 0.95rem; }
.search-no-result__cta a {
    color: #b45309;
    font-weight: 700;
    text-decoration: underline;
    margin-left: 0.3rem;
}

/* ============= 15. FRAGMENT HIGHLIGHT ============= */
:target {
    animation: ybsTargetHighlight 2.5s ease;
    scroll-margin-top: 6rem;
}
@keyframes ybsTargetHighlight {
    0%, 100% { background: transparent; }
    20%, 60% { background: rgba(201, 162, 39, 0.18); }
}

/* ============= 16. MOBİL TWEAK ============= */
@media (max-width: 640px) {
    .ybs-search-card { flex-direction: column; }
    .ybs-search-card__media { width: 100%; aspect-ratio: 16 / 9; }
    .ybs-search-card__title { font-size: 0.9375rem; }
    .ybs-search-card__body { padding: 0.75rem 0.875rem 0.625rem; }
    .ybs-search-card__excerpt { -webkit-line-clamp: 3; line-clamp: 3; }
    .search-group > header { flex-wrap: wrap; gap: 0.5rem; }
    .search-hero { padding: 1.125rem 1rem; border-radius: 0.875rem; }
    .ybs-share--compact .ybs-share__btn { width: 1.875rem; height: 1.875rem; }
    .ybs-share--compact .ybs-share__icon svg { width: 0.875rem; height: 0.875rem; }
    .search-empty, .search-no-result { padding: 1.75rem 1.125rem; }
    .search-empty__icon, .search-no-result__icon { width: 4rem; height: 4rem; }
    .search-empty__icon svg, .search-no-result__icon svg { width: 36px; height: 36px; }
    .search-empty__title, .search-no-result__title { font-size: 1.125rem; }
}

/* ============= 17. HEADER SEARCH BUTTON (FAZ 3 hazır) ============= */
.ybs-header-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.ybs-header-search-btn:hover {
    background: rgba(15, 42, 79, 0.06);
    border-color: rgba(15, 42, 79, 0.10);
}
