/* Kalite katmanı (tasarim-v2). Mevcut stil aynı; GitHub kaynaklı bileşenlerin
   stilleri. Kaydırmada yalnız transform/opacity. */

/* BlurText: hero başlığı, eski heroFadeIn yerine kelime kelime netleşir */
.hero-h1:has(.bt-kelime) { animation: none; opacity: 1; transform: none; }
.bt-kelime { display: inline-block; }

/* SpotlightCard (React Bits, light tema portu) */
.sp-kart { position: relative; isolation: isolate; }
.sp-isik, .sp-kenar { position: absolute; inset: 0; pointer-events: none; opacity: 0; border-radius: inherit; }
.sp-isik { z-index: -1; }
.sp-kenar {
  z-index: 3;
  padding: 1px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* BorderBeam (Magic UI portu): öne çıkan fiyat kartının kenarında dolaşan ışık.
   Maske yalnız kenarı gösterir (intersect: padding-box ∩ border-box).
   Kart ekrandayken (.in-view, script.js) oynar. */
.bb {
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border: 1.5px solid transparent;
  z-index: 4;
  /* Işığın 90 px kutusu kartın dışına taşıp telefonda sayfayı 21 px genişletiyordu.
     Işık zaten yalnız kenarda (maske) görünür, kırpmak görüntüyü değiştirmez. */
  overflow: hidden;
  -webkit-mask: linear-gradient(transparent, transparent), linear-gradient(#000, #000);
  -webkit-mask-clip: padding-box, border-box;
  -webkit-mask-composite: source-in;
  mask: linear-gradient(transparent, transparent), linear-gradient(#000, #000);
  mask-clip: padding-box, border-box;
  mask-composite: intersect;
}
.bb i {
  position: absolute;
  width: 90px;
  aspect-ratio: 1;
  background: linear-gradient(to left, #740aff, #c4a1ff 40%, transparent);
  offset-path: rect(0 auto auto 0);
  offset-distance: 0%;
  opacity: 0;
}
/* offset-distance her karede boyama ister. Bu yüzden sonsuz döngü yok: kart
   ilk kez ekrana gelince tek tur (kalite.js .bb-gezdi), sonra yalnız imleç
   kartın üstündeyken döner. */
@keyframes kenarIsik {
  0%   { offset-distance: 0%; opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
@keyframes kenarIsikDongu {
  0%   { offset-distance: 0%; opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
.bb-gezdi > .bb i { animation: kenarIsik 2.8s cubic-bezier(0.45, 0, 0.55, 1) 1 both; }
@media (hover: hover) {
  .bb-gezdi:hover > .bb i { animation: kenarIsikDongu 3.2s linear infinite; }
}
@media (prefers-reduced-motion: reduce) { .bb { display: none; } }

/* Marquee (Magic UI portu): güvenilen markalar bandı. İki özdeş grup yan
   yana kayar, kenarlar maskeyle söner. Yalnız ekrandayken (.mq-acik) oynar,
   üzerine gelince durur. */
.referans { border-top: 1px solid rgba(116, 10, 255, 0.08); border-bottom: 1px solid rgba(116, 10, 255, 0.08); background: #fff; }
.referans-ic { max-width: 1360px; margin: 0 auto; padding: 28px 40px; display: flex; align-items: center; gap: 40px; }
.referans-etiket { flex: 0 0 auto; margin: 0; font-size: 14px; color: #6b6b7b; max-width: 150px; line-height: 1.4; }
.mq {
  --mq-bosluk: 96px;
  --mq-sure: 32s;
  flex: 1 1 auto; overflow: hidden; display: flex;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.mq-iz { display: flex; gap: var(--mq-bosluk); }
.mq-grup {
  display: flex; flex-shrink: 0; align-items: center; gap: var(--mq-bosluk);
  margin: 0; padding: 0; list-style: none;
  animation: mqKay var(--mq-sure) linear infinite; animation-play-state: paused;
}
.mq-acik .mq-grup { animation-play-state: running; }
.mq:hover .mq-grup { animation-play-state: paused; }
.mq img { display: block; height: 40px; width: auto; filter: grayscale(1); opacity: 0.62; transition: filter 0.3s, opacity 0.3s; }
.mq li:hover img { filter: none; opacity: 1; }
@keyframes mqKay { to { transform: translateX(calc(-100% - var(--mq-bosluk))); } }

@media (max-width: 720px) {
  .referans-ic { flex-direction: column; align-items: stretch; gap: 14px; padding: 22px 16px; }
  .referans-etiket { max-width: none; text-align: center; }
  .mq { --mq-bosluk: 64px; }
  .mq img { height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .mq-grup { animation: none; }
  .mq-grup[aria-hidden="true"] { display: none; }
  .mq { -webkit-mask-image: none; mask-image: none; justify-content: center; }
}

/* Örnek akış paneli (hero). Magic UI Animated Beam fikri: dört adımı bağlayan
   rayda tek ışık geçer, ulaştığı adım yanar. Işık yalnız transform/opacity ile
   hareket eder, panel ekran dışındayken tur başlatılmaz (kalite.js).
   (11-05: dikey/iki sütunlu v3 denendi, Berke beğenmedi, bu yerleşime dönüldü.) */
.hero-alt {
  display: grid;
  grid-template-columns: minmax(0, 660px) auto;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
}
.akis {
  margin: 0;
  min-height: 150px;
  box-sizing: border-box;
  padding: 16px 22px 18px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  animation: heroFadeIn 720ms var(--ease-out) 200ms both;
}
.akis-ust { display: flex; align-items: center; justify-content: space-between; }
.akis-cip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand);
  background: rgba(116, 10, 255, 0.07);
  padding: 3px 8px;
}
.akis-govde { position: relative; margin-top: 18px; }
.akis-ray {
  position: absolute;
  top: 3px;
  left: 4px;
  right: calc((100% - 36px) / 4 - 4px);
  height: 3px;
  overflow: hidden;
}
.akis-ray::before { content: ""; position: absolute; left: 0; right: 0; top: 1px; height: 1px; background: var(--line); }
.akis-isik {
  position: absolute;
  top: 0;
  left: 0;
  width: 70px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(116, 10, 255, 0), #740aff 70%, #c4a1ff);
  opacity: 0;
  transform: translateX(-70px);
}
.akis-dugumler {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.akis-dugum { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.akis-nokta {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--ink-3);
  box-sizing: border-box;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.akis-baslik { font-size: 14px; font-weight: 500; color: var(--ink-3); transition: color 0.35s; }
.akis-meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); line-height: 1.5; }
.akis-meta time { display: block; opacity: 0; transition: opacity 0.35s; }
.akis-dugum.acik .akis-nokta { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px rgba(116, 10, 255, 0.14); }
.akis-dugum.acik .akis-baslik { color: var(--ink); }
.akis-dugum.acik time { opacity: 1; }
.akis-sonuc {
  margin: 16px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.akis-bitti .akis-sonuc { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .hero-alt { grid-template-columns: 1fr; justify-content: stretch; }
  .akis { order: 2; }
}
@media (max-width: 600px) {
  .akis { height: auto; padding: 16px; }
  .akis-ray { display: none; }
  .akis-dugumler { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .akis-sonuc { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .akis { animation: none; }
  .akis-isik { display: none; }
}

/* Rozet nabzı: style.css'teki badgePing geniş rozeti 1,7 kat büyütüp kartın
   dışına taşan bir kutu çiziyordu. Aynı fikir, rozet biçimine oranlı ince halka. */
@keyframes rozetNabiz {
  0%        { transform: scale(1, 1);       opacity: 0.35; }
  70%, 100% { transform: scale(1.1, 1.55);  opacity: 0; }
}
.price-card.featured.in-view .price-badge::after,
.in-view .price-badge::after { animation-name: rozetNabiz; }

/* Uzun bölümler ertelenmiş çizimden çıkınca sayfa boyu zıplamasın: tarayıcı
   ölçtüğü gerçek yüksekliği hatırlar (auto). */
.block { contain-intrinsic-size: auto 600px; }

/* Erişilebilirlik (g ajanı): üçüncül gri AA kontrastına çekildi. İlk ekranda da
   geçerli olsun diye burada da tanımlı (kalite-g.css ile aynı). */
:root { --ink-3: #676c77; }
