/* =====================================================================================================
   TİCARET EVİ › PAZAR LİSTESİ (2026-11-30) — kullanıcının seçtiği karma: üstte Fırsatlar panosu (taslak 7),
   ortada Borsa izleme listesi (taslak 3). Soldaki fiyat ısı haritası 2026-11-30'da kaldırıldı. Taslaklar: tasarim/pazar-tasarim.html.
   Kod: js/app.js › openTrade (opsHtml, tapeHtml, rowHtml). Rehber: guide/rehber.md › Ticaret Evi.
   ===================================================================================================== */

/* ---------- Fırsatlar panosu ---------- */
.te-ops { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }   /* En çok işlem · Yükselenler · Düşenler (Fark fırsatı kaldırıldı) */
.te-op { position: relative; min-width: 0; padding: 7px 8px 6px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--oc) 9%, #1c1916), #141210 70%);
  box-shadow: 0 0 0 1px #0b0a0a, inset 0 0 0 1px color-mix(in srgb, var(--oc) 22%, #2a2521); animation: swapIn .35s var(--ease) both; }
.te-op::after { content: ''; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--oc) 22%, transparent), transparent 70%); animation: teGlow 4s ease-in-out infinite; }
@keyframes teGlow { 50% { opacity: .4; transform: scale(.8); } }
.te-op > header { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; min-width: 0; }
.te-op > header .ic { flex: none; font-size: 12px; color: var(--oc); }
.te-op > header b { font: 700 9.5px var(--fs); letter-spacing: .13em; text-transform: uppercase; color: color-mix(in srgb, var(--oc) 70%, #f2ead8); white-space: nowrap; }
.te-op > header small { margin-left: auto; font: 400 9.5px var(--fb); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.te-oi { position: relative; z-index: 1; display: grid; grid-template-columns: 10px 22px minmax(0, 1fr) auto; align-items: center; gap: 6px; height: 28px; padding: 0 4px 0 1px; border-radius: 7px; cursor: pointer; transition: background .12s; }
.te-oi:hover { background: rgba(255, 255, 255, .045); }
.te-oi > em { font: 700 9.5px var(--fn); font-style: normal; color: var(--dim); text-align: center; }
.te-oi .te-oic { width: 22px; height: 22px; }
.te-oi .te-nm b { font-size: 11.5px; } .te-oi .te-nm small { font-size: 9.5px; }
.te-mv { display: grid; justify-items: end; line-height: 1.1; }
.te-mv b { font: 700 11.5px var(--fn); color: var(--oc); white-space: nowrap; }
.te-mv small { font: 500 8.5px var(--fn); color: var(--dim); white-space: nowrap; }
.te-o0 { display: block; padding: 8px 2px; font: italic 400 11px var(--fb); color: #6f665d; }
@media (max-height: 820px) { .te-oi:nth-of-type(3) { display: none; } }

/* ---------- canlı şerit (yalnız yüksek ekran) ---------- */
.te-tape { flex: none; position: relative; height: 28px; border-radius: 10px; overflow: hidden; background: #0f0e0d; box-shadow: inset 0 0 0 1px #2a2521; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, #000, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000, #000 calc(100% - 40px), transparent); }
.te-tr { display: flex; align-items: center; gap: 22px; padding-left: 78px; white-space: nowrap; animation: teTape 70s linear infinite; }
.te-tape:hover .te-tr { animation-play-state: paused; }
@keyframes teTape { to { transform: translateX(-50%); } }
.te-tk { display: inline-flex; align-items: center; gap: 7px; font: 600 11.5px var(--fb); color: #cfc6ba; cursor: pointer; }
.te-tk:hover > span:first-child { color: var(--gold) !important; }
.te-tk b { font: 600 11.5px var(--fn); color: #f2ead8; }
.te-tr > i { width: 4px; height: 4px; rotate: 45deg; background: #3f3830; flex: none; }
.te-live { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 0 14px 0 10px; font: 700 9px var(--fs); letter-spacing: .16em; color: #ee7a62; background: linear-gradient(90deg, #0f0e0d 78%, transparent); }
.te-live::before { content: ''; width: 6px; height: 6px; rotate: 45deg; background: #ee7a62; animation: tePulse 1.6s ease-in-out infinite; }
@keyframes tePulse { 50% { opacity: .3; transform: scale(.7); } }
@media (max-height: 900px) { .te-tape { display: none; } }

/* ---------- liste üstü: sekmeler + süzgeçler ---------- */
.te-bar.bx { align-items: center; flex-wrap: nowrap; min-width: 0; }
.te-wtab { flex: none; display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: #121110; box-shadow: inset 0 0 0 1px #2a2521; }
.te-wtab button { height: 26px; padding: 0 9px; border-radius: 7px; display: inline-flex; align-items: center; gap: 5px; font: 600 11.5px var(--fb); color: #bfb5a8; white-space: nowrap; transition: background .15s, color .15s; }
.te-wtab button .ic { font-size: 11px; }
.te-wtab button small { font: 600 9.5px var(--fn); opacity: .7; }
.te-wtab button:hover { background: #1e1b18; color: #f2ead8; }
.te-wtab button.on { color: #1c1408; background: linear-gradient(180deg, #d6bd78, #a98c4d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.te-bar.bx .te-seg { flex: none; }
.te-bar.bx .te-seg.off { opacity: .45; }
.te-seg.q.ico button { min-width: 24px; padding: 0 6px; }
.te-cnt { margin-left: auto; font: 400 11px var(--fb); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.te-cnt b { font: 600 11px var(--fn); } .te-cnt b.up { color: #7fd46a; } .te-cnt b.dn { color: #ee7a62; }
.te-seg.q.ico button .ic { font-size: 11px; }
@container (max-width: 700px) {
  .te-wtab button { padding: 0 7px; } .te-wtab button .ic { display: none; }
  .te-bar.bx .te-seg > small { display: none; } .te-bar.bx .te-seg button { min-width: 24px; padding: 0 6px; }
  .te-cnt { display: none; }
}

/* ---------- borsa listesi ---------- */
.te-win .te-th.bx, .te-win .te-row.bx { grid-template-columns: 16px 32px minmax(0, 1fr) 78px 60px 84px 62px 72px 96px 10px; gap: 9px; }
.te-win .te-th.bx > :first-child { grid-column: auto; }
.te-win .te-th.bx > :nth-child(2) { grid-column: span 2; }
.te-win .te-th.bx > span { font: 600 10.5px var(--fb); color: var(--muted); }
.te-win .te-row.bx { display: grid; align-items: center; min-height: 44px; padding: 3px 10px 3px 6px; cursor: pointer; text-align: left; outline: none; animation: teRin .32s var(--ease) both; animation-delay: calc(var(--i, 0) * 18ms); }
.te-win .te-row.bx:focus-visible { box-shadow: inset 0 0 0 1px rgba(231, 194, 106, .6); }
@keyframes teRin { from { opacity: 0; transform: translateY(4px); } }
.te-win .te-row.bx .te-ic { width: 32px; height: 32px; }
.te-win .te-row.bx .te-nm b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.te-star { width: 16px; height: 16px; display: grid; place-items: center; color: #4f463e; font-size: 12px; transition: color .15s, transform .2s var(--spring); }
.te-star:hover { color: #a89060; transform: scale(1.18); }
.te-star.on { color: var(--gold); } .te-star.on .ic { fill: var(--gold); filter: drop-shadow(0 0 4px rgba(231, 194, 106, .6)); }
.te-bagp { display: inline-flex; align-items: center; gap: 3px; height: 15px; padding: 0 5px; margin-left: 3px; border-radius: 5px; vertical-align: 1px; font: 700 9px/1 var(--fn); font-style: normal; color: #d9c08a; background: rgba(231, 194, 106, .1); box-shadow: inset 0 0 0 1px rgba(231, 194, 106, .22); }
.te-bagp .ic { font-size: 8.5px; }
.te-cc { justify-self: end; }
.te-chg { display: inline-flex; align-items: center; gap: 2px; height: 20px; padding: 0 6px; border-radius: 6px; font: 700 10.5px/1 var(--fn); color: var(--dim); white-space: nowrap; font-variant-numeric: tabular-nums; background: #1c1916; }
.te-chg.up { color: #7fd46a; background: rgba(127, 212, 106, .12); box-shadow: inset 0 0 0 1px rgba(127, 212, 106, .25); }
.te-chg.dn { color: #ee7a62; background: rgba(238, 122, 98, .12); box-shadow: inset 0 0 0 1px rgba(238, 122, 98, .25); }
.te-tk .te-chg { height: auto; padding: 0; background: none; box-shadow: none; }
.te-spk { display: block; width: 100%; height: 24px; overflow: visible; }
.te-spk .l { fill: none; stroke: currentColor; stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.te-spk .a { fill: currentColor; opacity: .1; }
.te-spk .d { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 3px currentColor); }
.te-spk.up { color: #7fd46a; } .te-spk.dn { color: #ee7a62; } .te-spk.fl { color: var(--muted); }
.te-row.bx .te-spk { animation: teClip 1s var(--ease) .1s both; }
@keyframes teClip { from { clip-path: inset(-4px 100% -4px -4px); } to { clip-path: inset(-4px -6px -4px -4px); } }
.te-spk0 { justify-self: center; font: 500 11px var(--fn); color: #4f4842; }
.te-vl { display: grid; gap: 3px; justify-items: end; }
.te-vl b { font: 600 11.5px var(--fn); color: #d9d0c4; } .te-vl b.z { color: #4f4842; }
.te-vl i { width: 100%; height: 3px; border-radius: 2px; background: #221e1a; overflow: hidden; display: block; }
.te-vl i::after { content: ''; display: block; height: 100%; width: calc(var(--w) * 100%); background: linear-gradient(90deg, #6d5e3b, #e7c26a); border-radius: 2px; }
.te-ba { display: grid; gap: 1px; justify-items: end; }
.te-ba > span { display: inline-flex; align-items: baseline; gap: 5px; }
.te-ba em { font: 700 8px var(--fs); letter-spacing: .12em; font-style: normal; color: var(--dim); }
.te-ba b { font: 600 11.5px var(--fn); }
.te-ba .s b { color: #f3d68e; } .te-ba .b b { color: #9ad98a; } .te-ba .z b { color: #4f4842; }
.te-row.bx .te-sl b { font-size: 11.5px; }
/* dar ana alan (1280): hacim ve satıcı sütunları gizlenir */
@container (max-width: 760px) {
  .te-win .te-th.bx, .te-win .te-row.bx { grid-template-columns: 16px 30px minmax(0, 1fr) 72px 58px 64px 66px 10px; gap: 7px; }
  .te-win .te-th.bx > :nth-child(6), .te-win .te-th.bx > :nth-child(8), .te-win .te-row.bx > :nth-child(7), .te-win .te-row.bx > :nth-child(9) { display: none; }
  .te-win .te-row.bx .te-ic { width: 30px; height: 30px; }
}
