/* ═══════════════════════════════════════════════════════════
   FEDERASYON — SİTE İÇİ ARAMA (fed-arama)
   Renkler/tipografi tema ile aynı: lacivert #14143a, kırmızı #e31e26, Poppins
   ═══════════════════════════════════════════════════════════ */

/* ─── Header butonu ─── */
.hdr2-search {
    width: 46px; height: 46px; border-radius: 12px;
    border: 1.5px solid #ebecf2; background: #fff; color: #14143a;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px; cursor: pointer; flex-shrink: 0;
    transition: color .2s, border-color .2s, background .2s, transform .35s cubic-bezier(.16,1,.3,1), box-shadow .25s;
}
.hdr2-search:hover { color: #e31e26; border-color: rgba(227,30,38,.35); background: rgba(227,30,38,.05); }
.hdr2-search:focus-visible { outline: 2px solid #e31e26; outline-offset: 2px; }
.hdr2-search.is-pressed { transform: scale(1.18); background: #14143a; color: #fff; border-color: #14143a; box-shadow: 0 10px 30px rgba(20,20,58,.35); }
@media (max-width: 600px) {
    .hdr2-search { width: 40px; height: 40px; font-size: 15px; border-radius: 11px; }
    /* Arama butonu eklenince SBS butonu tek satırda kalsın */
    .hdr2-actions:has(.hdr2-search) { gap: 7px; }
    .hdr2-actions:has(.hdr2-search) .hdr2-sbs { white-space: nowrap; padding: 7px 11px; }
    .hdr2-actions:has(.hdr2-search) .hdr2-burger { width: 42px; height: 42px; }
}
@media (max-width: 389px) {
    .hdr2-actions:has(.hdr2-search) .hdr2-sbs .hdr2-sbs-full { display: none; }
    .hdr2-actions:has(.hdr2-search) .hdr2-sbs .hdr2-sbs-short { display: inline; }
}

/* ─── Kök ─── */
.fedsr {
    --sr-navy: #14143a; --sr-navy-2: #232357; --sr-red: #e31e26; --sr-ink: #1d1d28;
    --sr-text: #4a4a58; --sr-muted: #8a8c9c; --sr-line: #eceef4; --sr-soft: #f6f7fb;
    --sr-x: 50%; --sr-y: 0%;
    position: fixed; inset: 0; z-index: 100000;
    font-family: 'Poppins', system-ui, sans-serif;
    visibility: hidden; pointer-events: none;
}
.fedsr * { box-sizing: border-box; }
.fedsr.is-open { visibility: visible; pointer-events: auto; }

/* Butondan büyüyen dairesel açılış */
.fedsr__backdrop {
    position: absolute; inset: 0;
    background: radial-gradient(circle at var(--sr-x) var(--sr-y), rgba(35,35,87,.94), rgba(14,14,40,.96) 60%);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    clip-path: circle(0px at var(--sr-x) var(--sr-y));
    transition: clip-path .55s cubic-bezier(.7,0,.2,1);
}
.fedsr.is-open .fedsr__backdrop { clip-path: circle(150vmax at var(--sr-x) var(--sr-y)); }

.fedsr__panel {
    position: relative; z-index: 1;
    width: min(860px, calc(100% - 32px)); max-height: calc(100vh - 12vh - 40px);
    margin: 8vh auto 0; display: flex; flex-direction: column;
    background: #fff; border-radius: 20px; overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06);
    opacity: 0; transform: translateY(-14px) scale(.97);
    transition: opacity .3s ease .12s, transform .45s cubic-bezier(.16,1,.3,1) .12s;
}
.fedsr.is-open .fedsr__panel { opacity: 1; transform: none; }
.fedsr.is-closing .fedsr__panel { transition-delay: 0s; }

/* ─── Üst: arama alanı ─── */
.fedsr__head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px 22px; border-bottom: 1px solid var(--sr-line); }
.fedsr__field { position: relative; flex: 1; display: flex; align-items: center; }
.fedsr__field-ico { position: absolute; left: 0; color: var(--sr-red); font-size: 20px; pointer-events: none; }
.fedsr__input {
    width: 100%; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important;
    padding: 10px 70px 10px 36px !important; height: auto !important;
    font: 500 21px/1.3 'Poppins', system-ui, sans-serif; color: var(--sr-ink); letter-spacing: -.2px;
}
.fedsr__input::placeholder { color: #a7a9b8; font-weight: 400; }
.fedsr__input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.fedsr__clear {
    position: absolute; right: 0; border: 0; background: none; color: #b6b8c6; font-size: 17px;
    cursor: pointer; padding: 6px; display: none; line-height: 1;
}
.fedsr__clear:hover { color: var(--sr-red); }
.fedsr.has-q .fedsr__clear { display: block; }
.fedsr__spinner {
    position: absolute; right: 34px; width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid #e6e7ef; border-top-color: var(--sr-red);
    animation: fedsrSpin .7s linear infinite; display: none;
}
.fedsr.is-loading .fedsr__spinner { display: block; }
@keyframes fedsrSpin { to { transform: rotate(360deg); } }

.fedsr__close {
    display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--sr-line);
    background: var(--sr-soft); color: var(--sr-navy); height: 40px; padding: 0 12px;
    border-radius: 11px; cursor: pointer; font-size: 15px; transition: all .2s; flex-shrink: 0;
}
.fedsr__close:hover { background: var(--sr-navy); color: #fff; border-color: var(--sr-navy); }
.fedsr__esc { font-size: 10.5px; font-weight: 700; letter-spacing: .6px; opacity: .7; }

/* ─── Sekmeler ─── */
.fedsr__tabs {
    display: flex; gap: 6px; padding: 12px 18px; overflow-x: auto; scrollbar-width: none;
    border-bottom: 1px solid var(--sr-line); background: #fcfcfe;
}
.fedsr__tabs::-webkit-scrollbar { display: none; }
.fedsr__tab {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px;
    border: 1px solid var(--sr-line); background: #fff; color: var(--sr-text);
    padding: 7px 14px; border-radius: 30px; font: 600 12.5px/1 'Poppins', sans-serif;
    cursor: pointer; transition: all .2s;
}
.fedsr__tab i { font-size: 12px; color: var(--sr-muted); transition: color .2s; }
.fedsr__tab:hover { border-color: rgba(227,30,38,.35); color: var(--sr-red); }
.fedsr__tab:hover i { color: var(--sr-red); }
.fedsr__tab.is-active { background: var(--sr-navy); border-color: var(--sr-navy); color: #fff; }
.fedsr__tab.is-active i { color: #ff6a70; }
.fedsr__cnt:empty { display: none; }
.fedsr__cnt {
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
    background: rgba(227,30,38,.1); color: var(--sr-red); font-size: 11px;
    display: inline-flex; align-items: center; justify-content: center;
}
.fedsr__tab.is-active .fedsr__cnt { background: rgba(255,255,255,.16); color: #fff; }
.fedsr__tab.is-zero { opacity: .5; }

/* ─── Gövde ─── */
.fedsr__body { flex: 1; overflow-y: auto; padding: 8px 10px 14px; overscroll-behavior: contain; outline: 0; }
.fedsr__body::-webkit-scrollbar { width: 8px; }
.fedsr__body::-webkit-scrollbar-thumb { background: #dfe1ea; border-radius: 8px; }

.fedsr__group { padding: 6px 0 4px; }
.fedsr__group + .fedsr__group { border-top: 1px dashed var(--sr-line); margin-top: 6px; padding-top: 10px; }
.fedsr__ghead { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 8px; }
.fedsr__gtitle {
    display: flex; align-items: center; gap: 8px; margin: 0;
    font-size: 11.5px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; color: var(--sr-navy);
}
.fedsr__gtitle i { color: var(--sr-red); }
.fedsr__gtitle small { font-weight: 600; color: var(--sr-muted); letter-spacing: 0; text-transform: none; font-size: 12px; }
.fedsr__gall { border: 0; background: none; color: var(--sr-red); font: 600 12.5px 'Poppins', sans-serif; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; padding: 4px 6px; border-radius: 6px; }
.fedsr__gall:hover { background: rgba(227,30,38,.07); }

/* Sonuç satırı */
.fedsr__item {
    display: flex; align-items: flex-start; gap: 14px; padding: 12px 12px;
    border-radius: 14px; text-decoration: none !important; color: inherit;
    border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s;
    position: relative;
}
.fedsr__item:hover, .fedsr__item.is-active { background: var(--sr-soft); border-color: #e8eaf2; }
.fedsr__item.is-active::before {
    content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--sr-red);
}
.fedsr__ico {
    width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    background: linear-gradient(135deg, var(--sr-navy), var(--sr-navy-2)); color: #fff; font-size: 17px;
}
.fedsr__ico img { width: 100%; height: 100%; object-fit: cover; }
.fedsr__ico--duyuru { background: linear-gradient(135deg, #e31e26, #ff4a50); }
.fedsr__ico--belge { background: #fff; border: 1.5px solid var(--sr-line); color: #2f6fd6; }
.fedsr__ico--belge.is-pdf { color: var(--sr-red); }
.fedsr__ico--belge.is-excel { color: #1d8a4e; }
.fedsr__ico--faaliyet { background: linear-gradient(135deg, #1f6f8b, #2a9ab8); }
.fedsr__main { min-width: 0; flex: 1; }
.fedsr__title {
    display: block; font-size: 15px; font-weight: 600; color: var(--sr-ink); line-height: 1.4;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.fedsr__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; font-size: 12px; line-height: 1.5; color: var(--sr-muted); }
.fedsr__meta i { margin-right: 4px; }
.fedsr__badge { font-size: 10px; line-height: 1.6; font-weight: 800; letter-spacing: .5px; padding: 0 7px; border-radius: 5px; background: rgba(47,111,214,.1); color: #2f6fd6; }
.fedsr__badge--pdf { background: rgba(227,30,38,.1); color: var(--sr-red); }
.fedsr__badge--excel { background: rgba(29,138,78,.1); color: #1d8a4e; }
.fedsr__snip { margin: 6px 0 0; font-size: 13px; line-height: 1.6; color: var(--sr-text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fedsr__go { align-self: center; color: #c3c5d2; font-size: 13px; transition: transform .2s, color .2s; }
.fedsr__item:hover .fedsr__go, .fedsr__item.is-active .fedsr__go { color: var(--sr-red); transform: translateX(3px); }
.fedsr mark { background: rgba(227,30,38,.1); color: var(--sr-red); padding: 0; border-radius: 2px; font-weight: 700; box-shadow: 0 0 0 1px rgba(227,30,38,.06); }

.fedsr__more { display: flex; justify-content: center; padding: 10px 0 4px; }
.fedsr__more button {
    border: 1px solid var(--sr-line); background: #fff; color: var(--sr-navy);
    font: 600 13px 'Poppins', sans-serif; padding: 10px 22px; border-radius: 30px; cursor: pointer; transition: all .2s;
}
.fedsr__more button:hover { background: var(--sr-navy); color: #fff; border-color: var(--sr-navy); }

/* Boş / başlangıç durumları */
.fedsr__intro { padding: 14px 12px 6px; }
.fedsr__label { font-size: 11.5px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; color: var(--sr-muted); margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; }
.fedsr__label button { border: 0; background: none; color: var(--sr-muted); font: 600 11.5px 'Poppins', sans-serif; cursor: pointer; text-transform: none; letter-spacing: 0; }
.fedsr__label button:hover { color: var(--sr-red); }
.fedsr__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.fedsr__chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 30px;
    background: var(--sr-soft); border: 1px solid var(--sr-line); color: var(--sr-text);
    font: 500 13px 'Poppins', sans-serif; cursor: pointer; text-decoration: none !important; transition: all .2s;
}
.fedsr__chip i { color: var(--sr-muted); font-size: 12px; }
.fedsr__chip:hover { background: #fff; border-color: rgba(227,30,38,.35); color: var(--sr-red); }
.fedsr__chip:hover i { color: var(--sr-red); }
.fedsr__quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fedsr__qlink {
    display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px;
    border-radius: 14px; border: 1px solid var(--sr-line); background: #fff; text-decoration: none !important;
    color: var(--sr-ink); font-size: 13.5px; font-weight: 600; transition: all .2s;
}
.fedsr__qlink i { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(227,30,38,.08); color: var(--sr-red); font-size: 14px; }
.fedsr__qlink:hover, .fedsr__qlink.is-active { border-color: transparent; background: var(--sr-navy); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(20,20,58,.18); }
.fedsr__qlink:hover i, .fedsr__qlink.is-active i { background: rgba(255,255,255,.12); color: #fff; }

.fedsr__empty { text-align: center; padding: 46px 20px 36px; }
.fedsr__empty-ico { width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 50%; background: var(--sr-soft); display: flex; align-items: center; justify-content: center; font-size: 28px; color: #c5c7d4; }
.fedsr__empty h4 { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--sr-ink); }
.fedsr__empty p { margin: 0; font-size: 13.5px; color: var(--sr-muted); }

.fedsr__skel { display: flex; gap: 14px; padding: 12px; }
.fedsr__skel span { display: block; border-radius: 10px; background: linear-gradient(90deg, #f1f2f7 25%, #e7e8f0 37%, #f1f2f7 63%); background-size: 400% 100%; animation: fedsrShine 1.2s ease infinite; }
.fedsr__skel .a { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; }
.fedsr__skel .b { flex: 1; }
.fedsr__skel .b span:first-child { height: 14px; width: 60%; margin: 4px 0 10px; }
.fedsr__skel .b span:last-child { height: 11px; width: 90%; }
@keyframes fedsrShine { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ─── Alt bilgi ─── */
.fedsr__foot {
    display: flex; align-items: center; gap: 16px; padding: 11px 20px; border-top: 1px solid var(--sr-line);
    background: #fcfcfe; font-size: 11.5px; color: var(--sr-muted);
}
.fedsr__foot kbd {
    display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 5px; margin-right: 3px;
    border-radius: 5px; border: 1px solid #dfe1ea; border-bottom-width: 2px; background: #fff;
    font: 600 10.5px 'Poppins', sans-serif; color: var(--sr-text);
}
.fedsr__foot-brand { margin-left: auto; font-weight: 600; color: var(--sr-navy); }
.fedsr__foot-brand i { color: var(--sr-red); margin-right: 5px; }

body.fedsr-lock { overflow: hidden !important; }

/* ─── Mobil ─── */
@media (max-width: 767px) {
    .fedsr__panel { width: 100%; max-height: none; height: 100%; margin: 0; border-radius: 0; }
    .fedsr__head { padding: 14px 14px 12px 16px; }
    .fedsr__input { font-size: 17px; padding-left: 30px !important; }
    .fedsr__field-ico { font-size: 17px; }
    .fedsr__close { width: 40px; padding: 0; justify-content: center; }
    .fedsr__esc { display: none; }
    .fedsr__tabs { padding: 10px 14px; }
    .fedsr__quick { grid-template-columns: repeat(2, 1fr); }
    .fedsr__foot { display: none; }
    .fedsr__item { padding: 11px 8px; gap: 12px; }
    .fedsr__ico { width: 42px; height: 42px; }
    .fedsr__title { font-size: 14px; }
    .fedsr__go { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .fedsr__backdrop, .fedsr__panel, .hdr2-search { transition: none !important; }
}
