/* Istenen siteler (sitereq.js) */

/* Konum: canli tarama terminali her iki sayfada yerinde kalir, kart hemen altina gelir.
   Surebet: radar, terminal (#sbTerm order 0), bu kart (1), nabiz/hareketler/site sagligi (2).
   Valuebet: havuz (0), terminal (.side > .stm order 1), bu kart (3).
   side-dyn kutulari display: contents; cocuklari .side'in esnek ogeleri. */
#sbSide > #sbSuggest { order: 1; }
#sbSideMap > * { order: 0; }
#sbSideDyn > * { order: 2; }
#vbSide > #vbSuggest { order: 3; }

.sr-card .ph .sr-count { display: inline-flex; align-items: center; gap: 6px; }
.sr-card .ph .sr-count[hidden] { display: none; }
.sr-card .ph .sr-count::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--profit); box-shadow: 0 0 0 3px var(--profit-tint); }
.sr-card .sg-lead { margin-bottom: 8px; }

.sr-box { margin-top: 12px; }
.modal-suggest .sr-box { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }

/* Asama hunisi */
.sr-fun { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--sunk); overflow: hidden; }
.sr-fs { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 8px 10px 9px; min-width: 0; --st: var(--ink-3); }
.sr-fs + .sr-fs { border-left: 1px solid var(--line-soft); }
.sr-fs::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--st); opacity: .85; }
.sr-fs b { font-size: var(--t4); font-weight: 650; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.sr-fs span { font-size: var(--t00); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-fs.st-review { --st: var(--action); }
.sr-fs.st-fetching { --st: var(--warm); }
.sr-fs.st-live { --st: var(--profit); }
.sr-fs.st-live b { color: var(--profit); }

.sr-h { display: flex; align-items: center; gap: 8px; margin: 14px 0 6px; }
.sr-h h3 { font-size: var(--t00); font-weight: 650; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.sr-hid { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: var(--r-pill); font-size: var(--t00); color: var(--ink-3); border: 1px solid var(--line); }
.sr-hid .ic { width: 12px; height: 12px; }
.sr-hid[aria-pressed="true"] { color: var(--ink); background: var(--raised); }
.sr-empty { margin: 0; padding: 14px 0 4px; color: var(--ink-3); font-size: var(--t1); text-align: center; }

/* Satirlar */
.sr-list { list-style: none; margin: 0 -6px; padding: 0; display: flex; flex-direction: column; }
.sr-list.open { max-height: 380px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.sr-it { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; column-gap: 10px;
  padding: 8px 6px; border-radius: var(--r-sm); --st: var(--ink-3); --st-tint: var(--raised); transition: background .15s; }
.sr-it + .sr-it { box-shadow: 0 -1px 0 var(--line-soft); }
.sr-it:hover { background: var(--hover); }
.sr-it:hover + .sr-it, .sr-it:hover { box-shadow: none; }
.sr-it.is-hidden { opacity: .5; }
.sr-it.flash { animation: sr-flash 1.8s ease-out; }
@keyframes sr-flash { 0%, 35% { background: var(--action-tint); } 100% { background: transparent; } }

.sr-av { width: 30px; height: 30px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--st-tint); color: var(--st);
  font-size: var(--t2); font-weight: 700; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--st) 22%, transparent); }
.sr-mid { min-width: 0; }
.sr-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sr-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t2); font-weight: 600; color: var(--ink); }
.sr-mine { flex: none; padding: 0 6px; height: 16px; line-height: 16px; border-radius: var(--r-pill); background: var(--action-tint); color: var(--action); font-size: var(--t00); font-weight: 650; }
.sr-bot { display: flex; align-items: center; gap: 7px; margin-top: 3px; min-width: 0; }
.sr-bot small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); font-size: var(--t00); }
.sr-pill { flex: none; display: inline-flex; align-items: center; gap: 5px; color: var(--st); font-size: var(--t00); font-weight: 650; }
.sr-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sr-steps { flex: none; display: inline-flex; gap: 2px; }
.sr-steps i { width: 9px; height: 3px; border-radius: 2px; background: var(--line); }
.sr-steps i.done { background: var(--st); opacity: .45; }
.sr-steps i.cur { background: var(--st); }

.sr-vote { flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; width: 38px; height: 38px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel); color: var(--ink-2);
  font-size: var(--t0); font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1; transition: color .15s, border-color .15s, background .15s, transform .1s; }
.sr-vote .ic { width: 14px; height: 14px; transform: rotate(180deg); margin-bottom: 1px; }
.sr-vote:not(:disabled):hover { color: var(--action); border-color: var(--action); background: var(--action-tint); }
.sr-vote:not(:disabled):active { transform: translateY(1px); }
.sr-vote.on { color: var(--action); border-color: transparent; background: var(--action-tint); cursor: default; }

.sr-it.st-received { --st: var(--ink-2); --st-tint: var(--raised); }
.sr-it.st-review { --st: var(--action); --st-tint: var(--action-tint); }
.sr-it.st-fetching { --st: var(--warm); --st-tint: var(--warm-tint); }
.sr-it.st-live { --st: var(--profit); --st-tint: var(--profit-tint); }
.sr-it.st-declined { --st: var(--ink-3); --st-tint: var(--raised); }
.sr-it.st-declined .sr-name { color: var(--ink-2); }
.sr-it.st-fetching .sr-dot, .sr-it.st-review .sr-dot { animation: sr-pulse 1.4s ease-in-out infinite; }
.sr-it.st-fetching .sr-steps i.cur { background: linear-gradient(90deg, var(--st) 0 45%, color-mix(in srgb, var(--st) 30%, transparent) 45% 100%); background-size: 200% 100%; animation: sr-run 1.1s linear infinite; }
@keyframes sr-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes sr-run { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .sr-it .sr-dot, .sr-it .sr-steps i.cur, .sr-it.flash { animation: none !important; } }

.sr-more { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; margin-top: 6px; height: 30px; border-radius: var(--r-sm); color: var(--action); font-size: var(--t1); font-weight: 600; }
.sr-more .ic { width: 14px; height: 14px; transition: transform .2s; }
.sr-more[aria-expanded="true"] .ic { transform: rotate(180deg); }
.sr-more:hover { background: var(--hover); }

/* Yonetici satiri: tam genislik, ikinci satir */
.sr-adm { grid-column: 2 / -1; display: flex; align-items: center; gap: 4px; margin-top: 7px; }
.sr-adm select { flex: 1; min-width: 0; height: 26px; padding: 0 6px; border-radius: var(--r-xs); border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: var(--t0); }
.sr-adm button { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--r-xs); border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); font-size: var(--t00); font-weight: 700; }
.sr-adm button:hover { background: var(--hover); color: var(--ink); }
.sr-adm button[data-sr-del]:hover { color: var(--loss); border-color: var(--loss); }
.sr-adm .ic { width: 14px; height: 14px; }

/* Yukleme iskeleti: yuklu duzenin olculeri (huni 56px, satir 54px) */
.sr-fun-sk { height: 56px; }
.sr-fun-sk i { display: block; }
.sr-fun-sk i + i { border-left: 1px solid var(--line-soft); }
.sr-sk { display: flex; flex-direction: column; gap: 0; margin-top: 36px; }
.sr-sk i { display: block; height: 46px; margin: 4px 0; border-radius: var(--r-sm); background: var(--sunk); }

/* Telefon penceresi */
.modal-suggest .sr-list.open { max-height: 42vh; }
@media (max-width: 900px) { .sr-vote { width: 44px; height: 44px; } }
