/* ---------- Piyasa şeridi (ana sayfa) ---------- */
.market {
  padding: 0;
  margin-top: -52px;
  position: relative;
  z-index: 2;
}
.market[hidden] {
  display: none;
}
.market-card {
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 60%), var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.market-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
.market-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
}
.live {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2fd27f;
  flex-shrink: 0;
}
.live::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid #2fd27f;
  opacity: 0;
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0% {
    transform: scale(0.5);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
.market.closed .live {
  background: #f5b301;
}
.market.closed .live::after {
  display: none;
}
.market.closed .market-label {
  color: #f5b301;
}
.market-time {
  color: var(--dim);
  font-size: 13.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.market-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f5b301;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}
.market-link img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}
.market-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.15s;
}
.market-link:hover svg {
  transform: translateX(3px);
}
.ticks {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.tick {
  padding: 20px 22px 22px;
  border-left: 1px solid var(--line);
  min-width: 0;
}
.tick:first-child {
  border-left: 0;
}
.tick-name {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.tick-name i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--teal);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.tick.altin .tick-name i {
  background: #f5b301;
}
.tick-price {
  margin: 8px 0 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tick-price small {
  margin-left: 3px;
  color: var(--dim);
  font-size: 15px;
  font-weight: 600;
}
.tick-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-height: 22px;
  font-size: 12.5px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.chg {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  white-space: nowrap;
}
.chg.up {
  background: rgba(47, 210, 127, 0.13);
  color: #4ade95;
}
.chg.down {
  background: rgba(255, 99, 99, 0.13);
  color: #ff7b7b;
}
.tick.flash .tick-price {
  animation: flash 0.9s ease-out;
}
@keyframes flash {
  0% {
    color: var(--teal);
  }
  100% {
    color: inherit;
  }
}
.skel {
  display: inline-block;
  height: 0.9em;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  vertical-align: middle;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.market-foot {
  padding: 11px 24px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 12.5px;
}
.market-foot a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.market + section {
  padding-top: 88px;
}
.hero.has-market .wrap {
  padding-bottom: 140px;
}

@media (max-width: 1080px) {
  .ticks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tick:nth-child(4) {
    border-left: 0;
  }
  .tick:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 960px) {
  .hero.has-market .wrap {
    padding-bottom: 112px;
  }
}
@media (max-width: 720px) {
  .market-head {
    padding: 14px 18px;
  }
  .market-time {
    display: none;
  }
  .market.closed .market-head {
    flex-wrap: wrap;
  }
  .market.closed .market-title {
    flex-wrap: wrap;
    white-space: normal;
    gap: 4px 12px;
  }
  .market.closed .market-time {
    display: block;
    flex-basis: 100%;
    font-size: 12.5px;
  }
  .market-link {
    font-size: 13.5px;
    gap: 6px;
  }
  .market-link img {
    display: none;
  }
  .ticks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tick {
    padding: 16px 18px 18px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .tick:nth-child(-n + 2) {
    border-top: 0;
  }
  .tick:nth-child(even) {
    border-left: 1px solid var(--line);
  }
  .tick:nth-child(4) {
    border-left: 1px solid var(--line);
  }
  .tick-price {
    font-size: 20px;
  }
  .market-foot {
    padding: 11px 18px;
  }
  .market + section {
    padding-top: 64px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .live::after,
  .skel,
  .tick.flash .tick-price {
    animation: none;
  }
}
