/*
 * TRset Artificial Intelligence Generation III / Version 5.0
 * TRset Yapay Zeka Tabanli Bilgi Servisi
 * TRset.com Jenerasyon III / Version 5.0
 *
 * 27 03 2026 - Oguzhan YURTSEVER
 * Powered by Bilisim Park © 
 * Neva CMS + Ouzkahn Script Framework + TRawl
 */

/* N00000226 */

body.trset-search-dim::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 25;
    pointer-events: none;
    background: color-mix(in srgb, #03050a 42%, transparent);
    transition: opacity 0.35s ease;
}

body.theme-light.trset-search-dim::after {
    background: color-mix(in srgb, #0f172a 22%, transparent);
}

.trset-header-search-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 0;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
}

.trset-search-toggle {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.45rem;
    height: 2.45rem;
    padding: 0;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--text-main);
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

.trset-search-toggle:hover {
    border-color: color-mix(in srgb, var(--accent-cyan) 45%, var(--border-soft));
    transform: translateY(-1px);
}

.trset-header-search {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
    min-width: 0;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    transition:
        max-width 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease;
}

@media (min-width: 901px) {
    .trset-search-toggle {
        display: inline-flex;
    }

    .trset-header-search-shell:not(.is-open) .trset-header-search {
        max-width: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        margin: 0;
    }

    .trset-header-search-shell.is-open .trset-header-search {
        max-width: 640px;
        opacity: 1;
        pointer-events: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .trset-header-search {
        transition: none;
    }
}

.trset-search-input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 0.5rem 0.95rem;
    font: inherit;
    font-size: 0.92rem;
    background: var(--bg-layer);
    color: var(--text-main);
    transition: border-color 0.2s ease, box-shadow 0.25s ease;
}

.trset-search-input:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--accent-cyan) 55%, var(--border-soft));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-cyan) 18%, transparent);
}

.trset-search-submit {
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(120deg, var(--accent-purple), var(--accent-cyan));
    white-space: nowrap;
}

@media (max-width: 900px) {
    .trset-header-main {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }

    .trset-header-brand {
        grid-column: 1;
        grid-row: 1;
    }

    .trset-header-cluster {
        grid-column: 2;
        grid-row: 1;
        justify-content: flex-end;
    }

    .trset-header-search-shell {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: none;
    }

    .trset-search-toggle {
        display: none;
    }

    .trset-header-search {
        max-width: none !important;
        opacity: 1 !important;
        overflow: visible !important;
        pointer-events: auto !important;
    }
}

.trset-search-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.trset-search-form .trset-search-input {
    flex: 1;
    min-width: 200px;
}

.trset-search-hits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

/* N00000212 */
.trset-ad-slot--search {
    margin-top: 1rem;
}

.trset-search-hit-card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: var(--bg-layer);
    box-sizing: border-box;
    max-width: 100%;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.trset-search-hit-card:hover {
    border-color: color-mix(in srgb, var(--accent-cyan) 42%, var(--border-soft));
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--accent-cyan) 12%, transparent),
        0 6px 18px rgba(22, 41, 79, 0.1);
}

.trset-search-hit-card:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent-cyan) 65%, var(--border-soft));
    outline-offset: 2px;
}

.theme-dark .trset-search-hit-card:hover {
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--accent-cyan) 22%, transparent),
        0 8px 22px rgba(0, 0, 0, 0.42);
}

.trset-search-hit-title {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
    display: block;
}

.trset-search-hit-desc {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.86rem;
    line-height: 1.38;
    color: var(--text-soft);
}

.trset-section-title {
    margin: 0 0 0.65rem;
    font-size: 1rem;
}

/* N00000266 */

.trset-search-groups {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.trset-search-group {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--bg-layer) 88%, var(--bg-soft));
    padding: 0.35rem 0.5rem 0.5rem;
}

.trset-search-group__summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.35rem 0.4rem;
    user-select: none;
}

.trset-search-group__summary::-webkit-details-marker {
    display: none;
}

.trset-search-group__title {
    margin-right: 0.25rem;
}

.trset-search-group__count {
    font-weight: 600;
    color: var(--text-soft);
    font-size: 0.86rem;
}

.trset-search-hits--zebra {
    gap: 0;
    margin-top: 0.2rem;
}

.trset-search-hits--zebra > li {
    border-radius: var(--radius-md);
    padding: 0.08rem 0;
}

.trset-search-hits--zebra > li:nth-child(odd) > .trset-search-hit-card {
    background: color-mix(in srgb, var(--bg-layer) 72%, var(--accent-cyan) 5%);
}

.trset-search-hits--zebra > li:nth-child(even) > .trset-search-hit-card {
    background: color-mix(in srgb, var(--bg-layer) 78%, var(--accent-purple) 4%);
}

.theme-dark .trset-search-hits--zebra > li:nth-child(odd) > .trset-search-hit-card {
    background: color-mix(in srgb, var(--bg-layer) 88%, var(--accent-cyan) 7%);
}

.theme-dark .trset-search-hits--zebra > li:nth-child(even) > .trset-search-hit-card {
    background: color-mix(in srgb, var(--bg-layer) 90%, var(--accent-purple) 6%);
}

/* N00000267 */

.trset-search-hit-card--flag {
    position: relative;
    padding-left: 2.35rem;
}

.trset-search-hit-flag {
    position: absolute;
    left: 0.55rem;
    top: 0.55rem;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid color-mix(in srgb, var(--bg-soft) 55%, var(--border-soft));
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
}

.trset-search-hit-flag img {
    width: 140%;
    height: 140%;
    object-fit: cover;
    display: block;
}

.theme-dark .trset-search-hit-flag {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* N00000296 */
.trset-search-calendar-slim {
    margin-top: 0.55rem;
}

.trset-search-calendar-slim .trset-tarih-kart-grid--triple {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.35rem;
}

.trset-search-calendar-slim .trset-tarih-kart-grid--triple .trset-tarih-kart-tile {
    min-height: 0;
    padding: 0.34rem 0.42rem;
}

.trset-search-calendar-slim .trset-tarih-kart-heading {
    font-size: 0.95rem;
}

.trset-search-calendar-slim .trset-tarih-kart-ref-inline {
    font-size: 0.64rem;
}

.trset-search-calendar-slim .trset-tarih-kart-zodiac-note {
    font-size: 0.58rem;
    line-height: 1.25;
}

