
/* =========================================================
   V20.1.19 — EWA Life Akan Piyasa Bandı
   ========================================================= */

.market-strip-section{
  position:relative;
  z-index:3;
  overflow:hidden;
  background:#fff;
  border-top:1px solid #e5eaf0;
  border-bottom:1px solid #e5eaf0;
}

.market-strip-top{
  background:#0a2342;
}

.market-strip-title{
  width:min(1320px, calc(100% - 44px));
  min-height:36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  color:#fff;
}

.market-live-label{
  display:flex;
  align-items:center;
  gap:9px;
  font-size:10px;
  letter-spacing:.13em;
}

.market-live-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#d3a34f;
  box-shadow:0 0 0 5px rgba(211,163,79,.13);
  animation:ewaMarketPulse 1.8s ease-in-out infinite;
}

.market-strip-title > span{
  color:rgba(255,255,255,.64);
  font-size:9px;
}

.market-ticker{
  position:relative;
  width:100%;
  min-height:76px;
  overflow:hidden;
  background:
    linear-gradient(90deg, #fff 0%, rgba(255,255,255,0) 5%),
    linear-gradient(270deg, #fff 0%, rgba(255,255,255,0) 5%),
    #fff;
}

.market-ticker::before,
.market-ticker::after{
  content:"";
  position:absolute;
  z-index:5;
  top:0;
  bottom:0;
  width:70px;
  pointer-events:none;
}

.market-ticker::before{
  left:0;
  background:linear-gradient(90deg,#fff,rgba(255,255,255,0));
}

.market-ticker::after{
  right:0;
  background:linear-gradient(270deg,#fff,rgba(255,255,255,0));
}

.market-ticker-track{
  display:flex;
  align-items:stretch;
  width:max-content;
  min-width:100%;
  min-height:76px;
  animation:ewaMarketTicker 34s linear infinite;
  will-change:transform;
}

.market-ticker:hover .market-ticker-track{
  animation-play-state:paused;
}

.market-item{
  min-width:230px;
  display:flex;
  align-items:center;
  gap:13px;
  padding:14px 26px;
  border-right:1px solid #e7ebf0;
  background:#fff;
}

.market-icon{
  width:38px;
  height:38px;
  flex:0 0 38px;
  display:grid;
  place-items:center;
  border-radius:11px;
  color:#0d5fbc;
  background:#edf5ff;
  font-size:17px;
  font-weight:900;
}

.market-item-copy{
  display:flex;
  flex-direction:column;
  gap:3px;
  white-space:nowrap;
}

.market-item-name{
  color:#657184;
  font-size:9px;
  font-weight:800;
  letter-spacing:.05em;
}

.market-item-value{
  color:#102038;
  font-size:17px;
  font-weight:900;
  line-height:1;
}

.market-item-change{
  font-size:9px;
  font-weight:800;
}

.market-item-change.up{ color:#14935d; }
.market-item-change.down{ color:#c53e49; }
.market-item-change.flat{ color:#8a94a3; }

.market-loading{
  min-width:100vw;
  display:grid;
  place-items:center;
  color:#758194;
  font-size:11px;
}

.market-disclaimer{
  width:min(1320px, calc(100% - 44px));
  padding:7px 0 9px;
  color:#8a94a3;
  font-size:8px;
  text-align:right;
}

@keyframes ewaMarketTicker{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

@keyframes ewaMarketPulse{
  0%,100%{ opacity:1; transform:scale(1); }
  50%{ opacity:.55; transform:scale(.84); }
}

@media(max-width:900px){
  .market-strip-title,
  .market-disclaimer{
    width:calc(100% - 24px);
  }

  .market-strip-title{
    min-height:34px;
  }

  .market-item{
    min-width:205px;
    padding:13px 20px;
  }

  .market-ticker,
  .market-ticker-track{
    min-height:72px;
  }

  .market-ticker-track{
    animation-duration:27s;
  }

  .market-ticker::before,
  .market-ticker::after{
    width:34px;
  }

  .market-disclaimer{
    text-align:left;
  }
}

@media(prefers-reduced-motion:reduce){
  .market-ticker{
    overflow-x:auto;
  }

  .market-ticker-track{
    animation:none;
  }

  .market-live-dot{
    animation:none;
  }
}


/* =========================================================
   V20.1.20 — Global Piyasalar ve Mini Trend Grafikleri
   ========================================================= */

.market-item{
  min-width:248px;
}

.market-item-copy{
  min-width:168px;
}

.market-icon{
  font-size:15px;
  letter-spacing:-.03em;
}

.market-trend-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:22px;
}

.market-sparkline{
  width:82px;
  height:20px;
  overflow:visible;
}

.market-sparkline path{
  fill:none;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.market-sparkline.up path{
  stroke:#14935d;
}

.market-sparkline.down path{
  stroke:#c53e49;
}

.market-sparkline.flat path{
  stroke:#8994a4;
}

.market-sparkline-empty{
  display:block;
  width:82px;
  height:1px;
  background:linear-gradient(90deg,transparent,#d8dee7,transparent);
}

@media(max-width:900px){
  .market-item{
    min-width:232px;
  }

  .market-item-copy{
    min-width:156px;
  }

  .market-sparkline{
    width:72px;
  }

  .market-ticker-track{
    animation-duration:48s;
  }
}


/* =========================================================
   V21 — Hibrit ve Hatasız Piyasa Sistemi
   ========================================================= */

.market-system-shell{
  display:grid;
  grid-template-columns:minmax(0,1fr) 205px;
  align-items:stretch;
  width:100%;
  background:#fff;
}

.market-main-area{
  min-width:0;
  overflow:hidden;
}

.market-tv-fallback{
  min-height:76px;
  overflow:hidden;
  background:#fff;
}

.market-tv-fallback[hidden]{
  display:none !important;
}

.market-tv-fallback tv-ticker-tape{
  display:block;
  width:100%;
  min-height:76px;
}

.market-rate-card{
  position:relative;
  z-index:7;
  min-height:76px;
  padding:13px 18px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  border-left:1px solid #e5eaf0;
  background:
    linear-gradient(145deg,rgba(255,255,255,.96),rgba(244,248,253,.96));
  box-shadow:-14px 0 30px rgba(8,31,61,.05);
}

.market-rate-card span{
  color:#687589;
  font-size:8px;
  font-weight:900;
  letter-spacing:.08em;
}

.market-rate-card strong{
  margin-top:4px;
  color:#0a2342;
  font-size:15px;
  line-height:1.15;
}

.market-rate-card small{
  margin-top:4px;
  color:#9a7a45;
  font-size:7px;
  line-height:1.3;
}

@media(max-width:900px){
  .market-system-shell{
    display:block;
  }

  .market-rate-card{
    min-height:auto;
    padding:10px 14px;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    border-top:1px solid #e7ebf0;
    border-left:0;
    box-shadow:none;
  }

  .market-rate-card small{
    display:none;
  }
}


/* =========================================================
   V22 — TradingView Kararlı Piyasa Bandı
   ========================================================= */

.market-strip-v22{
  background:#fff;
}

.market-tv-v22{
  width:100%;
  min-height:74px;
  overflow:hidden;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(247,249,252,.98));
  border-top:1px solid rgba(10,35,66,.07);
  border-bottom:1px solid rgba(10,35,66,.08);
}

.market-tv-v22 .tradingview-widget-container,
.market-tv-v22 .tradingview-widget-container__widget{
  width:100%;
  min-height:74px;
}

.market-strip-v22 .market-disclaimer{
  padding-top:7px;
  padding-bottom:8px;
  color:#7b8797;
  font-size:9px;
  line-height:1.4;
  text-align:center;
}

@media(max-width:700px){
  .market-tv-v22,
  .market-tv-v22 .tradingview-widget-container,
  .market-tv-v22 .tradingview-widget-container__widget{
    min-height:72px;
  }

  .market-strip-v22 .market-strip-title{
    gap:10px;
  }

  .market-strip-v22 .market-strip-title > span{
    font-size:8px;
  }
}


/* =========================================================
   V22.1 — Doğrulanmış BIST Kartı
   ========================================================= */

.bist-live-card{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:64px;
  padding:10px max(20px,calc((100vw - 1180px)/2));
  background:linear-gradient(90deg,#f8fafc,#fff);
  border-bottom:1px solid rgba(10,35,66,.08);
}

.bist-live-mark{
  width:34px;
  height:34px;
  border-radius:50%;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  background:#eef2f6;
  color:#0a2342;
  font-size:13px;
  font-weight:900;
}

.bist-live-copy{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.bist-live-copy span{
  color:#687589;
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
}

.bist-live-copy strong{
  color:#0a2342;
  font-size:17px;
  line-height:1;
}

.bist-live-change{
  margin-left:auto;
  font-size:12px;
  font-weight:900;
}

.bist-live-change.up{color:#14935d;}
.bist-live-change.down{color:#c53e49;}
.bist-live-change.flat{color:#8994a4;}

@media(max-width:700px){
  .bist-live-card{
    min-height:58px;
    padding:9px 14px;
  }

  .bist-live-copy strong{
    font-size:15px;
  }
}


/* =========================================================
   V23 — BIST 100 canlı / son kapanış durumu
   ========================================================= */

.bist-live-card::after{
  content:attr(data-status-label);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:88px;
  margin-left:12px;
  padding:6px 9px;
  border-radius:999px;
  border:1px solid rgba(10,35,66,.10);
  background:#f3f6f9;
  color:#667386;
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
  line-height:1;
}

.bist-live-card[data-market-status="live"]::after{
  background:rgba(20,147,93,.10);
  border-color:rgba(20,147,93,.18);
  color:#117b50;
}

.bist-live-card[data-market-status="live"]::before{
  content:"";
  width:7px;
  height:7px;
  margin-left:auto;
  border-radius:50%;
  background:#14935d;
  box-shadow:0 0 0 5px rgba(20,147,93,.10);
}

.bist-live-card[data-market-status="closed"]::before{
  content:"";
  width:7px;
  height:7px;
  margin-left:auto;
  border-radius:50%;
  background:#c99a3d;
  box-shadow:0 0 0 5px rgba(201,154,61,.10);
}

.bist-live-card[data-market-status] .bist-live-change{
  margin-left:0;
}

.bist-live-copy strong.is-cached{
  opacity:.92;
}

@media(max-width:700px){
  .bist-live-card::after{
    min-width:auto;
    margin-left:7px;
    padding:5px 7px;
    font-size:8px;
  }

  .bist-live-card[data-market-status]::before{
    margin-left:auto;
  }
}
