/* =========================================================
   PROJE ARAMA PANELİ + MOBİL DUYURU ŞERİDİ  –  assets/arama.css
   header.css, topbar.css ve mobile.css'ten SONRA yüklenir (header.php).
   Tasarım dili: koyu lacivert cam + cyan neon (menü satırları / mobil menü ile aynı).
   ========================================================= */

/* masaüstünde mobil duyuru şeridi yok (masaüstünde üst şeritteki duyuru alanı var) */
.mnotice { display: none; }

/* ---------------------------------------------------------
   ARAMA PANELİ
   --------------------------------------------------------- */
html.sr-lock, html.sr-lock body { overflow: hidden; }

.sr {
    position: fixed;
    inset: 0;
    z-index: 100000;                       /* mobil menü (99999) dahil her şeyin üstünde */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: calc(var(--hdr, 64px) + 24px) 16px 24px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility 0s linear .28s;
}
.sr[hidden] { display: none !important; }
.sr.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }

.sr-back {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 70% at 50% 0%, rgba(26, 167, 255, .2) 0%, rgba(26, 167, 255, 0) 60%),
        rgba(2, 10, 22, .8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sr-box {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(680px, 100%);
    max-height: 100%;
    box-sizing: border-box;
    padding: 28px 28px 18px;
    color: #fff;
    border: 1px solid rgba(135, 208, 255, .4);
    border-left: 5px solid #25c3fd;
    border-radius: 6px 20px 20px 6px;
    background: linear-gradient(180deg, rgba(50, 88, 116, .94) 0%, rgba(8, 28, 52, .98) 100%);
    box-shadow: 0 0 34px rgba(0, 190, 255, .28), 0 30px 60px -20px rgba(0, 0, 0, .75);
    transform: translateY(-14px);
    transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}
.sr.is-open .sr-box { transform: none; }
/* üst kenarda akan neon çizgi */
.sr-box::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: -1px;
    height: 2px;
    background: linear-gradient(90deg, #00d9ff 0%, rgba(0, 217, 255, 0) 75%);
    filter: drop-shadow(0 0 6px rgba(0, 217, 255, .9));
    pointer-events: none;
}

.sr-close {
    all: unset;
    box-sizing: border-box;
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #1aa7ff, #0a7fe0);
    box-shadow: 0 6px 16px -4px rgba(0, 150, 255, .7);
    transition: transform .2s ease;
}
.sr-close:hover { transform: scale(1.06); }
.sr-close svg { width: 20px; height: 20px; }
.sr-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.sr-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    color: #7ae7ff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .3em;
    text-transform: uppercase;
}
.sr-eyebrow::before {
    content: "";
    flex: none;
    width: 30px;
    height: 2px;
    background: #00d9ff;
    box-shadow: 0 0 8px #00d9ff;
}
.sr-title {
    margin: 0 44px 14px 0;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -.01em;
}

/* bilgi notu */
.sr-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(37, 195, 253, .1);
    border: 1px solid rgba(37, 195, 253, .22);
    color: rgba(255, 255, 255, .88);
    font-size: 13.5px;
    line-height: 1.45;
}
.sr-info svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: #7ae7ff; }

/* arama kutusu */
.sr-form {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 54px;
    padding: 0 8px 0 16px;
    box-sizing: border-box;
    border: 1px solid rgba(37, 195, 253, .55);
    border-radius: 14px;
    background: rgba(3, 19, 38, .62);
    transition: box-shadow .2s ease, border-color .2s ease;
}
.sr-form:focus-within {
    border-color: #36c6ff;
    box-shadow: 0 0 0 3px rgba(0, 217, 255, .16), 0 0 18px rgba(0, 190, 255, .35);
}
.sr-form-ico { flex: none; width: 22px; height: 22px; color: #7ae7ff; }
.sr-input {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font: 600 16px/1.2 inherit;                /* 16px: iOS'ta yakınlaştırma yapmaz */
    font-family: inherit;
}
.sr-input::placeholder { color: rgba(255, 255, 255, .5); font-weight: 500; }
.sr-input::-webkit-search-cancel-button,
.sr-input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.sr-clear {
    all: unset;
    box-sizing: border-box;
    flex: none;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #cfefff;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.sr-clear[hidden] { display: none; }
.sr-clear:hover { background: rgba(37, 195, 253, .2); color: #fff; }
.sr-clear:focus-visible { outline: 2px solid #7ae7ff; outline-offset: -2px; }
.sr-clear svg { width: 17px; height: 17px; }

/* durum satırı */
.sr-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 2px 10px;
    color: #7ae7ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
}
.sr-status span:empty { display: none; }
.sr-status i { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(0, 217, 255, .8), rgba(0, 217, 255, 0)); }

/* sonuç listesi */
.sr-list {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 0 2px 2px 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(37, 195, 253, .5) transparent;
}
.sr-list:empty { display: none; }
.sr-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 66px;
    padding: 8px 14px 8px 8px;
    box-sizing: border-box;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(37, 195, 253, .22);
    border-left: 4px solid #25c3fd;
    border-radius: 6px 14px 14px 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, .03) 100%);
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.sr-item:hover,
.sr-item.is-act,
.sr-item:focus-visible {
    outline: none;
    background: rgba(37, 195, 253, .22);
    border-color: #36c6ff;
    box-shadow: 0 0 14px rgba(0, 190, 255, .35);
}
.sr-thumb {
    flex: none;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: 9px;
    background: rgba(37, 195, 253, .16);
    color: #7ae7ff;
}
.sr-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sr-thumb svg { width: 24px; height: 24px; }
.sr-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sr-txt b {
    overflow: hidden;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sr-txt small {
    overflow: hidden;
    color: rgba(207, 239, 255, .72);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sr-txt mark {
    padding: 0 1px;
    border-radius: 3px;
    background: rgba(0, 217, 255, .3);
    color: #fff;
    box-shadow: inset 0 -2px 0 #00d9ff;
}
.sr-item-go { flex: none; width: 16px; height: 16px; color: #7ae7ff; transition: transform .2s ease, color .2s ease; }
.sr-item:hover .sr-item-go,
.sr-item.is-act .sr-item-go { transform: translateX(3px); color: #fff; }

/* sonuç yok */
.sr-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 26px 12px 20px;
    text-align: center;
}
.sr-empty[hidden] { display: none; }
.sr-empty-ico {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: rgba(37, 195, 253, .14);
    color: #7ae7ff;
}
.sr-empty-ico svg { width: 26px; height: 26px; }
.sr-empty strong { font-size: 16px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.sr-empty small { color: rgba(207, 239, 255, .75); font-size: 13px; line-height: 1.45; }
.sr-empty.is-shake { animation: sr-shake .4s ease; }
@keyframes sr-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* alt satır */
.sr-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(135, 208, 255, .16);
}
.sr-hint { color: rgba(207, 239, 255, .6); font-size: 11.5px; }
.sr-hint kbd {
    display: inline-block;
    min-width: 18px;
    margin-right: 3px;
    padding: 1px 5px;
    border: 1px solid rgba(135, 208, 255, .35);
    border-radius: 5px;
    background: rgba(255, 255, 255, .06);
    color: #cfefff;
    font: 600 11px/1.4 inherit;
    font-family: inherit;
    text-align: center;
}
.sr-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    color: #7ae7ff;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}
.sr-all svg { width: 16px; height: 16px; transition: transform .2s ease; }
.sr-all:hover { color: #fff; }
.sr-all:hover svg { transform: translateX(3px); }
.sr-all:focus-visible { outline: 2px solid #7ae7ff; outline-offset: 3px; border-radius: 4px; }

/* ---------------------------------------------------------
   MOBİL (≤900px): arama tam sayfa + minimal duyuru şeridi
   --------------------------------------------------------- */
@media (max-width: 900px) {

    /* --- arama: tam sayfa, üstte kutu, altında sonuçlar (klavye açıkken de rahat) --- */
    .sr { padding: 0; }
    .sr-back { display: none; }
    .sr-box {
        width: 100%;
        height: 100%;
        height: 100dvh;
        max-height: none;
        padding: calc(env(safe-area-inset-top, 0px) + 16px) 16px calc(12px + env(safe-area-inset-bottom, 0px));
        border: 0;
        border-radius: 0;
        background:
            radial-gradient(120% 60% at 100% 0%, rgba(26, 167, 255, .28) 0%, rgba(26, 167, 255, 0) 60%),
            linear-gradient(180deg, #0a2c50 0%, #04162c 55%, #020d1c 100%);
        box-shadow: inset 0 3px 0 #25c3fd;
        transform: translateY(-14px);
    }
    .sr-box::before { display: none; }
    .sr-close { top: calc(env(safe-area-inset-top, 0px) + 12px); right: 14px; width: 42px; height: 42px; }
    .sr-title { font-size: 21px; margin-bottom: 12px; }
    .sr-info { font-size: 13px; margin-bottom: 14px; }
    .sr-hint { display: none; }                      /* klavye kısayolları mobilde anlamsız */
    .sr-foot { margin-top: 10px; }

    /* --- eski duyuru alanı mobilde yok; yerine ince şerit --- */
    .topbar-notice { display: none !important; }

    /* kapsül: logo sekmesinin ALTINDA, sayfayla birlikte kayar (sabit durmaz) */
    .mnotice {
        --mn-h: 28px;
        position: absolute;
        left: 12px;
        right: 12px;
        top: calc(var(--hdr) + 32px);                /* sayfa içi: logo sekmesinin altı */
        z-index: 5;
        display: flex;
        align-items: center;
        gap: 9px;
        height: var(--mn-h);
        padding: 0 12px;
        box-sizing: border-box;
        color: #d9f4ff;
        font-size: 12px;
        border: 1px solid rgba(37, 195, 253, .32);
        border-radius: 999px;
        background: linear-gradient(180deg, rgba(10, 44, 80, .6) 0%, rgba(4, 22, 44, .7) 100%);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 0 12px rgba(0, 190, 255, .16);
    }
    .mn-dot {
        flex: none;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #00d9ff;
        box-shadow: 0 0 8px 1px rgba(0, 217, 255, .9);
        animation: mn-pulse 2.4s ease-in-out infinite;
    }
    @keyframes mn-pulse { 50% { opacity: .4; } }
    .mn-track { position: relative; flex: 1; min-width: 0; height: 100%; }
    .mn-item {
        position: absolute;
        inset: 0;
        display: block;
        overflow: hidden;
        color: inherit;
        font-weight: 500;
        line-height: calc(var(--mn-h) - 2px);
        text-decoration: none;
        text-overflow: ellipsis;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
    }
    .mn-item.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
    .mn-cnt {
        flex: none;
        padding-left: 9px;
        border-left: 1px solid rgba(255, 255, 255, .18);
        color: rgba(122, 231, 255, .85);
        font-size: 10px;
        letter-spacing: .08em;
        font-variant-numeric: tabular-nums;
    }

    /* diğer sayfalar: içerik kapsülün altından başlar */
    body.has-mn:not(.is-hero) .topbar-spacer { height: calc(var(--hdr) + 32px + 28px + 12px); }
    /* ana sayfa: kapsül, hızlı iletişim hapının (top hdr+24, yükseklik 54) hemen altında */
    body.is-hero .mnotice { top: calc(var(--hdr) + 24px + 54px + 10px); }
    body.has-mn .main-slider-section .slider-overlay { padding-top: calc(var(--hdr) + 24px + 54px + 10px + 28px + 26px); }
}

@media (prefers-reduced-motion: reduce) {
    .sr, .sr-box, .sr-item, .mn-item { transition: none; }
    .mn-dot, .sr-empty.is-shake { animation: none; }
}