/* ===== Kripto — site overlay dili + piyasa ticker (16:9 standart kırpım) ===== */
.kripto-sect {
  padding: 32px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.kripto-sect-head { margin-bottom: 14px; }
.kripto-cat-label { font-size: 20px; text-decoration: none; color: inherit; }
.kripto-cat-label:hover { color: oklch(44% 0.12 75); }
.kripto-cat-label::after { background: oklch(58% 0.14 75); }

/* Canlı piyasa paneli */
.kripto-live-panel {
  margin-bottom: 18px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid oklch(88% 0.02 75);
  background:
    linear-gradient(165deg, oklch(99% 0.008 85) 0%, oklch(96.5% 0.018 78) 48%, oklch(94% 0.025 70) 100%);
  box-shadow:
    0 1px 2px rgba(15, 20, 35, 0.04),
    0 12px 28px -18px rgba(80, 55, 10, 0.14);
}

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

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

.kripto-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pos);
  box-shadow: 0 0 0 0 oklch(58% 0.16 152 / 0.45);
  animation: kripto-pulse 2s ease-out infinite;
}

@keyframes kripto-pulse {
  0% { box-shadow: 0 0 0 0 oklch(58% 0.16 152 / 0.45); }
  70% { box-shadow: 0 0 0 8px oklch(58% 0.16 152 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(58% 0.16 152 / 0); }
}

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

.kripto-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);
}

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

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

.kripto-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 80);
  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) {
  .kripto-ticker-item:hover {
    transform: translateY(-2px);
    border-color: oklch(82% 0.04 75);
    box-shadow:
      0 8px 20px -12px rgba(15, 20, 35, 0.14);
  }
}
.kripto-ticker-item--up {
  border-top: 2px solid oklch(62% 0.14 152);
}
.kripto-ticker-item--down {
  border-top: 2px solid oklch(58% 0.18 25);
}

.kripto-ticker-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.kripto-ticker-badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: oklch(42% 0.12 75);
  background: linear-gradient(145deg, oklch(96% 0.03 80), oklch(92% 0.04 70));
  border: 1px solid oklch(88% 0.03 75);
}

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

.kripto-ticker-symbol {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.kripto-ticker-label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kripto-ticker-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  max-width: calc(100% - 16px);
}
.kripto-ticker-pill--up {
  color: oklch(42% 0.14 152);
  background: oklch(96% 0.04 152);
}
.kripto-ticker-pill--down {
  color: oklch(46% 0.18 25);
  background: oklch(96% 0.04 25);
}

.kripto-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;
}

.kripto-ticker-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  margin-top: 2px;
}

.kripto-ticker-vol {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
}

.kripto-spark {
  flex-shrink: 0;
  opacity: 0.85;
}
.kripto-spark--up { color: oklch(52% 0.14 152); }
.kripto-spark--down { color: oklch(52% 0.18 25); }

@media (min-width: 900px) {
  .kripto-ticker {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .kripto-live-panel {
    padding: 16px 16px 14px;
  }
}

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

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

  .kripto-live-head {
    margin-bottom: 10px;
    gap: 8px;
  }
  .kripto-live-status {
    gap: 6px;
    min-width: 0;
    flex: 1;
  }
  .kripto-live-label {
    font-size: 10px;
    letter-spacing: 0.03em;
  }
  .kripto-live-time {
    font-size: 9px;
    padding: 2px 5px;
  }
  .kripto-live-link {
    font-size: 11px;
    flex-shrink: 0;
  }
  .kripto-live-link-full { display: none; }
  .kripto-live-link-short { display: inline; }

  .kripto-ticker {
    gap: 6px;
  }

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

  .kripto-ticker-top {
    gap: 6px;
    padding-right: 52px;
  }

  .kripto-ticker-badge {
    width: 22px;
    height: 22px;
    font-size: 9px;
    border-radius: 6px;
  }

  .kripto-ticker-label,
  .kripto-ticker-vol {
    display: none;
  }

  .kripto-ticker-symbol {
    font-size: 10px;
  }

  .kripto-ticker-pill {
    top: 6px;
    right: 6px;
    padding: 2px 5px;
    font-size: 9px;
    gap: 2px;
  }
  .kripto-ticker-pill svg {
    width: 8px;
    height: 8px;
  }

  .kripto-ticker-price {
    font-size: 12px;
    letter-spacing: -0.03em;
    line-height: 1.15;
    word-break: break-all;
  }

  .kripto-ticker-foot {
    margin-top: 0;
    display: block;
  }

  .kripto-spark {
    display: block;
    width: 100% !important;
    height: 22px !important;
    opacity: 1;
  }

  .kripto-units-rail {
    grid-template-columns: 1fr;
  }

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

/* Haberler — manşet + alt sıra */
.kripto-mosaic {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.kripto-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) {
  .kripto-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);
  }
}

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

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

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

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

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

.kripto-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(48% 0.12 75);
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
}

.kripto-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 28px 12px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 12, 22, 0.82) 55%, rgba(8, 12, 22, 0.92) 100%);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.kripto-card--hero .kripto-card-body {
  padding: 36px 18px 16px;
}

.kripto-card-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.28;
  letter-spacing: -0.012em;
  color: #fff;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kripto-card--hero .kripto-card-title {
  font-size: 17px;
  font-weight: 800;
  -webkit-line-clamp: 2;
}
.kripto-card--unit .kripto-card-title {
  font-size: 12px;
  -webkit-line-clamp: 2;
}

.kripto-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;
}
