:root {
  --zemin: #120a1f;
  --kart: #1d1330;
  --kenar: #3a2a57;
  --yazi: #f3eefb;
  --soluk: #b8a9d1;
  --vurgu: #e0448f;
  --vurgu2: #8a4fe0;
  --hata: #ff8a8a;
  --basari: #6fe3a7;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background-color: var(--zemin);
  background-image: radial-gradient(160% 900px at 50% 0, #2a1645 0%, var(--zemin) 100%);
  background-repeat: no-repeat;
  color: var(--yazi);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

.kap {
  max-width: 560px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

.ust { text-align: center; padding: 8px 0 16px; }
.logo { width: 150px; height: auto; display: block; margin: 0 auto 12px; }
h1 { font-size: 1.3rem; line-height: 1.35; margin: 0 0 8px; }
h2 { font-size: 1.15rem; margin: 0 0 8px; }
.alt-baslik { color: var(--soluk); margin: 0; }

.kart {
  background: var(--kart);
  border: 1px solid var(--kenar);
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 16px;
}
.kart.kapali { text-align: center; }
.kart.hata { border-color: var(--hata); color: var(--hata); }

.bilgi { text-align: center; color: var(--soluk); }

.etiket { display: block; font-weight: 600; margin: 4px 0 6px; }

input[type="text"] {
  width: 100%;
  font-size: 16px; /* iOS yakınlaştırmasın */
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--kenar);
  background: #120b20;
  color: var(--yazi);
  margin-bottom: 14px;
}
input[type="text"]:focus { outline: 2px solid var(--vurgu2); outline-offset: 1px; }

.gizli-girdi {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.dosya-sec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 18px 12px;
  border: 2px dashed var(--vurgu2);
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
}
.dosya-sec small { color: var(--soluk); font-weight: 400; }
.dosya-ikon {
  width: 40px; height: 40px; line-height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vurgu), var(--vurgu2));
  font-size: 28px;
  margin-bottom: 4px;
}
.gizli-girdi:focus-visible + .dosya-sec, .dosya-sec:focus-within { outline: 2px solid var(--vurgu2); }

.kucuk { font-size: 0.85rem; color: var(--soluk); margin: 6px 0; }
.uyari { color: var(--hata); font-size: 0.9rem; margin: -8px 0 12px; }

.liste { list-style: none; padding: 0; margin: 8px 0 0; }
.liste li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #160e26;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.liste .ad { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.liste .durum { flex-shrink: 0; color: var(--soluk); }
.liste .durum.ok { color: var(--basari); }
.liste .durum.hata { color: var(--hata); white-space: normal; text-align: right; max-width: 60%; }
.liste .kaldir {
  background: none; border: 0; color: var(--soluk); font-size: 1.1rem; padding: 0 4px; cursor: pointer;
}

.kvkk { margin-top: 18px; border-top: 1px solid var(--kenar); padding-top: 14px; }
.kvkk details { margin-bottom: 12px; }
.kvkk summary { cursor: pointer; color: var(--vurgu); font-weight: 600; }
.metin {
  max-height: 50vh;
  overflow-y: auto;
  font-size: 0.85rem;
  color: var(--soluk);
  padding: 8px 4px 0;
}
.metin { overflow-wrap: anywhere; }
.metin p { margin: 0 0 8px; line-height: 1.55; }
.metin h2, .metin h3 { font-size: 0.95rem; color: var(--yazi); margin: 14px 0 6px; line-height: 1.35; }
.metin li { margin-bottom: 4px; line-height: 1.5; }
.metin-baglanti a, .geri a { color: var(--vurgu); }
.metin-sayfa { max-height: none; overflow: visible; font-size: 0.95rem; padding: 18px; }
.metin-sayfa h2 { font-size: 1.05rem; margin-top: 18px; }
.metin-sayfa h2:first-child { font-size: 1.2rem; margin-top: 0; }
.geri { margin: 12px 0; font-size: 0.9rem; }
.metin ul { margin: 0 0 8px; padding-left: 18px; }
.metin strong, .kutu-metin strong { color: var(--yazi); }

.kutu {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 0.88rem;
}
.kutu input[type="checkbox"] {
  width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; accent-color: var(--vurgu);
}
.kutu-baslik { font-weight: 600; display: block; color: var(--yazi); }
.kutu-zorunlu { color: var(--vurgu); }
.kutu-metin p { margin: 2px 0; color: var(--soluk); }
.kutu-kap { margin-bottom: 12px; }
.kutu-kap .kutu { margin-bottom: 4px; }
/* Rıza metni varsayılan kapalı; "okumak için dokunun" yalnız metni açar (kutuyu işaretlemez) */
.kvkk .kutu-detay { margin: 0 0 0 32px; font-size: 0.85rem; }
.kutu-detay summary { padding: 4px 0; font-weight: 600; }
.kutu-detay .detay-kapat { display: none; }
.kutu-detay[open] .detay-ac { display: none; }
.kutu-detay[open] .detay-kapat { display: inline; }
.kutu-detay-metin { padding-top: 4px; }

.ilerleme-kap { margin: 10px 0; }
progress { width: 100%; height: 12px; accent-color: var(--vurgu); }

.dugme {
  width: 100%;
  padding: 15px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--vurgu), var(--vurgu2));
  margin-top: 8px;
  cursor: pointer;
}
.dugme:disabled { opacity: 0.4; cursor: not-allowed; }

.sonuc { min-height: 1.5em; text-align: center; margin: 12px 0 0; }
.sonuc.ok { color: var(--basari); }
.sonuc.hata { color: var(--hata); }

.alt { text-align: center; color: var(--soluk); font-size: 0.9rem; padding: 8px 0 16px; }
.alt p { margin: 0; }

/* Gizli tuzak alanı (bot koruması; Turnstile kaldırıldı 29.11): ekran dışında, görünmez */
.tuzak { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* KVKK Aşama C: tek açık rıza metni + izin yönetimi */
.riza-metni { border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: .6rem .8rem; margin: .6rem 0; }
.izin-bilgi { margin-top: 1rem; }
.islem-kodu { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.35rem; letter-spacing: .06em; word-break: break-all; }
.baglanti-kutu code { word-break: break-all; font-size: .85rem; }
.izin-satir { border-top: 1px solid rgba(255,255,255,.12); padding-top: .6rem; margin-top: .6rem; }
.dugme.ikincil { background: transparent; border: 1px solid rgba(255,255,255,.35); display: inline-block; text-align: center; text-decoration: none; }
.dugme.tehlike { background: #8a1c2b; }

/* Test/hazırlık ortamı şeridi (ORTAM_ETIKETI doluysa görünür; üretimde gizli). */
.ortam-etiketi { position: sticky; top: 0; z-index: 10; background: #b00020; color: #fff; text-align: center;
  font-weight: 700; letter-spacing: .08em; padding: .45rem .75rem; }
.ortam-etiketi[hidden] { display: none; }
