/* ===== Borsa — açık piyasa paneli + overlay haber mozaik (mavi ton) ===== */
.borsa-sect {
  padding: 32px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.borsa-sect-head { margin-bottom: 14px; }

.borsa-cat-label {
  font-size: 20px;
  text-decoration: none;
  color: inherit;
}
.borsa-cat-label:hover { color: oklch(38% 0.12 255); }
.borsa-cat-label::after { background: oklch(48% 0.16 255); }

/* Canlı piyasa paneli */
.borsa-live-panel {
  margin-bottom: 18px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid oklch(88% 0.02 255);
  background:
    linear-gradient(165deg, oklch(99% 0.006 255) 0%, oklch(96.5% 0.014 255) 48%, oklch(94% 0.022 255) 100%);
  box-shadow:
    0 1px 2px rgba(15, 20, 35, 0.04),
    0 12px 28px -18px rgba(15, 40, 80, 0.12);
}

.borsa-live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  min-width: 0;
}

.borsa-live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.borsa-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(52% 0.16 255);
  box-shadow: 0 0 0 0 oklch(52% 0.16 255 / 0.4);
  animation: borsa-pulse 2s ease-out infinite;
}

@keyframes borsa-pulse {
  0% { box-shadow: 0 0 0 0 oklch(52% 0.16 255 / 0.4); }
  70% { box-shadow: 0 0 0 8px oklch(52% 0.16 255 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(52% 0.16 255 / 0); }
}

.borsa-live-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.borsa-live-time {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 2px 6px;
  border-radius: 999px;
  background: oklch(100% 0 0 / 0.72);
  border: 1px solid var(--line);
}

.borsa-live-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: oklch(42% 0.12 255);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s ease, gap .15s ease;
}
.borsa-live-link-short { display: none; }
@media (hover: hover) {
  .borsa-live-link:hover {
    color: oklch(34% 0.14 255);
    gap: 6px;
  }
}

/* Endeks özeti */
.borsa-index-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: oklch(100% 0 0 / 0.72);
  border: 1px solid oklch(91% 0.012 255);
}

.borsa-index-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.borsa-index-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: oklch(44% 0.1 255);
}

.borsa-index-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.borsa-index-value {
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.borsa-index-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.borsa-index-pill--up {
  color: oklch(42% 0.14 152);
  background: oklch(96% 0.04 152);
}
.borsa-index-pill--down {
  color: oklch(46% 0.18 25);
  background: oklch(96% 0.04 25);
}

.borsa-index-pts {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.85;
}

.borsa-index-vol {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
}

.borsa-sub-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.borsa-sub-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: oklch(98% 0.006 255);
  border: 1px solid oklch(92% 0.012 255);
}

.borsa-sub-chip-label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.borsa-sub-chip-val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.borsa-sub-chip-chg {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}
.borsa-sub-chip--up .borsa-sub-chip-chg { color: oklch(46% 0.14 152); }
.borsa-sub-chip--down .borsa-sub-chip-chg { color: oklch(48% 0.18 25); }

/* Hisse kartları — 3×2 mobil, 6×1 web */
.borsa-ticker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.borsa-ticker-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 11px 11px 10px;
  border-radius: 12px;
  border: 1px solid oklch(91% 0.012 255);
  background: oklch(100% 0 0 / 0.88);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 oklch(100% 0 0 / 0.9),
    0 1px 2px rgba(15, 20, 35, 0.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
@media (hover: hover) {
  .borsa-ticker-item:hover {
    transform: translateY(-2px);
    border-color: oklch(82% 0.04 255);
    box-shadow: 0 8px 20px -12px rgba(15, 20, 35, 0.14);
  }
}
.borsa-ticker-item--up { border-top: 2px solid oklch(62% 0.14 152); }
.borsa-ticker-item--down { border-top: 2px solid oklch(58% 0.18 25); }

.borsa-ticker-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 7px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.borsa-ticker-pill--up {
  color: oklch(38% 0.14 152);
  background: oklch(95% 0.05 152);
}
.borsa-ticker-pill--down {
  color: oklch(42% 0.18 25);
  background: oklch(95% 0.05 25);
}

.borsa-ticker-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.borsa-ticker-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.borsa-ticker-symbol {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.borsa-ticker-name {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  color: oklch(48% 0.02 255);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.borsa-ticker-price {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.borsa-ticker-foot {
  margin-top: 2px;
  min-width: 0;
}

.borsa-spark {
  display: block;
  width: 100%;
  height: 26px;
  opacity: 0.85;
}
.borsa-spark--up { color: oklch(52% 0.14 152); }
.borsa-spark--down { color: oklch(52% 0.18 25); }

@media (min-width: 900px) {
  .borsa-index-bar {
    flex-direction: row;
    align-items: stretch;
    gap: 14px;
  }

  .borsa-index-main {
    flex: 1;
    justify-content: center;
    padding-right: 14px;
    border-right: 1px solid oklch(92% 0.012 255);
  }

  .borsa-sub-strip {
    flex: 1.1;
    align-self: center;
  }

  .borsa-ticker {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .borsa-ticker-symbol {
    font-size: 13px;
    letter-spacing: 0.055em;
  }

  .borsa-live-panel {
    padding: 16px 16px 14px;
  }
}

/* Haber mozaik */
.borsa-mosaic {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.borsa-units-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.borsa-card {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 48px;
  touch-action: manipulation;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow:
    0 1px 2px rgba(15, 20, 35, 0.04),
    0 8px 22px -16px rgba(15, 20, 35, 0.10);
  transition: transform .18s ease, box-shadow .18s ease;
}
@media (hover: hover) {
  .borsa-card:hover {
    transform: translateY(-2px);
    box-shadow:
      0 2px 4px rgba(15, 20, 35, 0.05),
      0 18px 32px -16px rgba(15, 20, 35, 0.16);
  }
}

.borsa-card--hero .borsa-card-media {
  aspect-ratio: var(--img-ratio-card);
  width: 100%;
  height: auto;
}

.borsa-card--unit {
  height: 200px;
}

.borsa-card--unit .borsa-card-media {
  height: 100%;
}

.borsa-card-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-3);
}

.borsa-card-photo {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  border-radius: 0;
}
.borsa-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}
@media (hover: hover) {
  .borsa-card:hover .borsa-card-photo img { transform: scale(1.04); }
}

.borsa-card-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: oklch(42% 0.14 255);
  padding: 4px 8px;
  border-radius: 6px;
}

.borsa-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 32px 14px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 10, 22, 0.82) 55%, rgba(6, 10, 22, 0.94) 100%);
}

.borsa-card-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.borsa-card--hero .borsa-card-title {
  font-size: 17px;
  margin-bottom: 6px;
}

.borsa-card-spot {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  .borsa-units-rail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .borsa-sect { padding: 22px 0; }

  .borsa-live-panel {
    padding: 12px 10px 10px;
    background: var(--paper);
    border-color: var(--line);
    box-shadow: 0 1px 2px rgba(15, 20, 35, 0.04);
  }

  .borsa-live-head {
    margin-bottom: 10px;
    gap: 8px;
  }

  .borsa-live-status {
    gap: 6px;
    min-width: 0;
    flex: 1;
  }

  .borsa-live-label {
    font-size: 10px;
    letter-spacing: 0.03em;
  }

  .borsa-live-time {
    font-size: 9px;
    padding: 2px 5px;
  }

  .borsa-live-link {
    font-size: 11px;
    flex-shrink: 0;
  }

  .borsa-live-link-full { display: none; }
  .borsa-live-link-short { display: inline; }

  .borsa-index-bar {
    padding: 10px;
    gap: 8px;
  }

  .borsa-index-value {
    font-size: 1.25rem;
  }

  .borsa-sub-strip {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .borsa-sub-chip {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .borsa-sub-chip-val {
    margin-right: auto;
  }

  .borsa-ticker {
    gap: 6px;
  }

  .borsa-ticker-item {
    padding: 9px 9px 8px;
    gap: 5px;
    min-height: 86px;
    border-radius: 10px;
    box-shadow: 0 2px 8px -4px rgba(15, 20, 35, 0.08);
  }

  .borsa-ticker-sub {
    gap: 4px;
  }

  .borsa-ticker-name {
    display: none;
  }

  .borsa-ticker-symbol {
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .borsa-ticker-pill {
    padding: 3px 5px;
    font-size: 9px;
    gap: 2px;
  }

  .borsa-ticker-pill svg {
    width: 8px;
    height: 8px;
  }

  .borsa-ticker-price {
    font-size: 12px;
    letter-spacing: -0.03em;
    line-height: 1.15;
  }

  .borsa-spark {
    height: 22px;
    opacity: 1;
  }

  .borsa-card--hero .borsa-card-title { font-size: 16px; }
}
