/* ── NexWatch indirme sayfası ────────────────────────────────────────────
   Taban (reset, tipografi, renk token'ları, .ambient, .btn) /style.css'ten
   gelir. Burada YALNIZCA style.css :root içindeki gerçek değişkenler
   kullanılır: --accent --bg --glass --strong --edge --edge2 --shine --blur
   --spring --out --t1 --t2 --t3 --subc --font --adim
   Başlık kapsülü hesap/profil sayfalarındakiyle birebir aynıdır.
   Sınıflar `indirme-*` önekiyle uygulamanın kendi sınıflarıyla çakışmaz.
   ────────────────────────────────────────────────────────────────────── */

.indirme-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ── Başlık: sitenin üst çubuğuyla aynı cam kapsül ────────────────────── */
.indirme-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
  flex: none;
  width: 100%;
  max-width: 1120px;
  margin: max(10px, env(safe-area-inset-top)) auto 0;
  padding: 0 9px 0 20px;
  border-radius: 999px;
  background: var(--strong);
  border: 1px solid var(--edge);
  box-shadow: var(--shine), 0 12px 34px rgba(0, 0, 0, .4);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.indirme-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.indirme-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--t2);
  text-decoration: none;
  transition: background .25s, color .25s, transform .35s var(--spring);
}

.indirme-back:hover {
  background: rgba(255, 255, 255, .09);
  color: var(--subc);
}

.indirme-back:active { transform: scale(.96); }

/* ── Gövde ────────────────────────────────────────────────────────────── */
.indirme-main {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(36px, 7vw, 76px) 0 56px;
}

.indirme-hero {
  text-align: center;
  margin: 0 auto clamp(28px, 5vw, 44px);
  max-width: 640px;
}

.indirme-title {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.05;
  margin-bottom: 14px;
}

.indirme-sub {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.5;
  color: var(--t2);
  max-width: 52ch;
  margin: 0 auto;
}

.indirme-oneri {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--t2);
  background: var(--glass);
  border: 1px solid var(--edge);
}

/* ── Platform kartları ────────────────────────────────────────────────── */
.indirme-kartlar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.indirme-kart {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: 22px;
  border-radius: 26px;
  background: var(--strong);
  border: 1px solid var(--edge);
  box-shadow: var(--shine), 0 12px 34px rgba(0, 0, 0, .4);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  transition: border-color .25s, transform .4s var(--spring);
}

/* Ziyaretçinin platformu: vurgu rengiyle çerçeve + hafif iç parıltı. */
.indirme-kart.onerilen {
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  background:
    radial-gradient(120% 80% at 50% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    var(--strong);
  box-shadow: var(--shine), 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent),
              0 18px 44px var(--adim);
}

.indirme-kart-bas {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

/* iOS Ayarlar rozeti: renkli yuvarlatılmış kare + beyaz glif. */
.indirme-rozet {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 6px 16px rgba(0, 0, 0, .35);
}

.indirme-rozet svg { width: 32px; height: 32px; display: block; }

.indirme-rozet-android { background: linear-gradient(180deg, #4fe07a, #28b955); }
.indirme-rozet-android .goz { fill: #28b955; }
.indirme-rozet-windows { background: linear-gradient(180deg, #3d9bff, #0a6fe0); }
.indirme-rozet-linux { background: linear-gradient(180deg, #ffb340, #f08c00); }
.indirme-rozet-linux .goz { fill: #b86200; }
.indirme-rozet-linux svg .goz[opacity] { fill: #f08c00; opacity: .35; }

.indirme-kart-ad { min-width: 0; flex: 1; }

.indirme-kart-ad h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.indirme-kart-ad p {
  margin-top: 3px;
  font-size: 13.5px;
  color: var(--t2);
}

.indirme-etiket-onerilen {
  position: absolute;
  top: -11px;
  right: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .01em;
  color: #fff;
  background: var(--accent);
  box-shadow: var(--shine), 0 4px 14px var(--adim);
  white-space: nowrap;
}

/* Sürüm / boyut / biçim: iOS tablo satırları gibi ince ayraçlı liste. */
.indirme-meta {
  display: grid;
  margin: 0;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, .06);
}

.indirme-meta > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 0 14px;
}

.indirme-meta > div + div { border-top: 1px solid rgba(255, 255, 255, .07); }

.indirme-meta dt { font-size: 13.5px; color: var(--t2); }

.indirme-meta dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--t1);
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}

.indirme-kart.yakinda .indirme-meta dd[data-alan] { color: var(--t3); font-weight: 500; }

.indirme-iskelet {
  display: inline-block;
  width: 64px;
  height: 12px;
  border-radius: 6px;
  vertical-align: middle;
  background: rgba(255, 255, 255, .1);
  animation: indirme-nabiz 1.4s ease-in-out infinite;
}

@keyframes indirme-nabiz { 50% { opacity: .45; } }

.indirme-eylem {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.indirme-dugme {
  justify-content: center;
  width: 100%;
  min-height: 48px;
  font-size: 15px;
  text-decoration: none;
}

.indirme-dugme svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.indirme-dugme:active { transform: scale(.97); }

.indirme-yukleniyor {
  pointer-events: none;
  animation: indirme-nabiz 1.4s ease-in-out infinite;
}

.indirme-yakinda {
  cursor: default;
  color: var(--t2);
  background: transparent;
  border-style: dashed;
  box-shadow: none;
}

.indirme-yakinda:hover { background: transparent; }
.indirme-yakinda:active { transform: none; }

.indirme-tarih {
  font-size: 12.5px;
  color: var(--t3);
  text-align: center;
}

.indirme-ipucu {
  margin-top: auto;
  font-size: 13px;
  line-height: 1.5;
  color: var(--t3);
}

.indirme-ipucu code {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 7px;
  font: 12px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--t2);
  background: rgba(255, 255, 255, .07);
  overflow-wrap: anywhere;
}

/* ── Hata kutusu ──────────────────────────────────────────────────────── */
.indirme-hata {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--t2);
  font-size: 14px;
}

.indirme-hata[hidden] { display: none; }
.indirme-hata p { flex: 1 1 220px; }
.indirme-hata .btn { min-height: 44px; }

.indirme-hata-ikon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Bölümler ─────────────────────────────────────────────────────────── */
.indirme-bolum { margin-top: clamp(48px, 8vw, 88px); }

.indirme-bolum-baslik {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 18px;
}

.indirme-ozellikler {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.indirme-ozellik {
  padding: 22px;
  border-radius: 22px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shine);
}

.indirme-ozellik h3 {
  margin: 16px 0 6px;
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: -.015em;
  line-height: 1.25;
}

.indirme-ozellik p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--t2);
}

/* Özellik ikonu: vurgu tonlu kare içinde SF Symbols tarzı çizgi. */
.indirme-ozellik-ikon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}

.indirme-ozellik-ikon svg,
.indirme-tv-adimlar svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── TV'de kullanım ───────────────────────────────────────────────────── */
.indirme-tv {
  padding: clamp(20px, 3vw, 28px);
  border-radius: 26px;
  background: var(--strong);
  border: 1px solid var(--edge);
  box-shadow: var(--shine), 0 12px 34px rgba(0, 0, 0, .4);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.indirme-tv-bas {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.indirme-tv-bas .indirme-bolum-baslik { margin: 0; }

.indirme-tv-adimlar {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.indirme-tv-adimlar li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, .06);
}

.indirme-tv-adimlar li > svg { flex: none; margin-top: 1px; color: var(--t2); }

.indirme-tv-adimlar h3 {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -.01em;
  margin-bottom: 4px;
}

.indirme-tv-adimlar p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--t2);
}

.indirme-tv-adimlar a { color: var(--t1); text-underline-offset: 3px; }

.indirme-adres {
  font: 600 13px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--t1);
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  overflow-wrap: anywhere;
}

/* ── Alt bilgi ────────────────────────────────────────────────────────── */
.indirme-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px 12px;
  flex-wrap: wrap;
  flex: none;
  padding: 0 0 max(24px, env(safe-area-inset-bottom));
  font-size: 13px;
  color: var(--t3);
}

.indirme-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--t2);
  text-decoration: none;
  transition: color .2s;
}

.indirme-footer a:hover { color: var(--t1); }

/* ── Odak görünürlüğü ─────────────────────────────────────────────────── */
.indirme-back:focus-visible,
.indirme-logo:focus-visible,
.indirme-dugme:focus-visible,
.indirme-hata .btn:focus-visible,
.indirme-tv-adimlar a:focus-visible,
.indirme-footer a:focus-visible {
  outline: 3px solid var(--subc);
  outline-offset: 2px;
}

/* ── Duyarlı düzen ────────────────────────────────────────────────────── */
@media (max-width: 920px) {
  .indirme-kartlar,
  .indirme-ozellikler { grid-template-columns: minmax(0, 1fr); }
  .indirme-kartlar { gap: 20px; }
  .indirme-ozellik {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
  }
  .indirme-ozellik-ikon { grid-row: span 2; }
  .indirme-ozellik h3 { margin-top: 2px; }
}

@media (min-width: 600px) and (max-width: 920px) {
  .indirme-kartlar { max-width: 560px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .indirme-tv-adimlar { grid-template-columns: minmax(0, 1fr); }
  .indirme-header { padding-left: 16px; }
  .indirme-kart { padding: 20px 18px; }
}

/* ── Blur desteklenmiyorsa: opak zeminle okunur kal ───────────────────── */
@supports not (backdrop-filter: blur(1px)) {
  .indirme-header,
  .indirme-kart,
  .indirme-tv {
    background: rgba(26, 27, 36, .96);
  }
}

/* ── Hareket azaltma ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .indirme-back,
  .indirme-kart,
  .indirme-dugme { transition: none; }
  .indirme-iskelet,
  .indirme-yukleniyor { animation: none; }
  .indirme-back:active,
  .indirme-dugme:active { transform: none; }
}

/* Yayında olmayan platformda boş sürüm/boyut satırları gösterilmez. */
.indirme-kart.yakinda .indirme-meta > div:has(> dd[data-alan]) { display: none; }
