/*
  PROSGB QR formu (A1) — görsel yön: Konsept B "saha kartları" (gorsel_yon_karari 24.11.2026).
  Renkler bilgi taşır: kırmızı kaza, turuncu ramak kala, sarı tehlike. Renk tek başına anlam taşımaz: piktogram + metin (O-08).
  Token'lar bu dosyanın başında, yalnız .sayfa-qr kapsamında; yazı tipi temel.css'in okunaklı sistem sans'ı (Bölüm 7/9).
  Hedef: 390 px'te kaydırmasız adım adım, dokunma hedefi ≥64 px, sayfa ≤100 KB.
*/
.sayfa-qr {
  --qr-zemin: #16191d;
  --qr-yuzey: #262b31;
  --qr-yuzey-2: #2a2f36;
  --qr-cizgi: #3a4048;
  --qr-metin: #ffffff;
  --qr-kaza: #dc2f2a;
  --qr-rk: #d9690b;
  --qr-teh: #f4c21b;
  --qr-teh-yazi: #4a3b00;
  --qr-turuncu-yazi: #16191d;
  --qr-iyi: #0f7a55;
  --qr-iyi-koyu: #0a5c40;
  --qr-kilit: #7fd4b0;
  --qr-uyari: #ffd479;
  --qr-r: 22px;
  background: var(--qr-zemin);
  color: var(--qr-metin);
}
.sayfa-qr .icerik-qr { max-width: 430px; padding: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ik { width: 24px; height: 24px; flex: none; }

.qr { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.qr button, .qr a.ara, .qr a.tel-satir { font-family: inherit; line-height: 1.15; color: inherit; border: 0; cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.qr button:disabled { opacity: .6; cursor: default; }
.qr :focus-visible { outline: 3px solid var(--qr-teh); outline-offset: 2px; }
.qr h1:focus, .qr h1:focus-visible { outline: none; }

.qr-ust { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.qr-ust .yer { flex: 1; min-width: 0; }
.qr-ust .yer b { display: block; font-size: 20px; font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.qr-ust .yer span { font-size: 13px; opacity: .75; }
.yuvarlak { width: 52px; height: 52px; border-radius: 26px; background: var(--qr-yuzey-2); display: grid; place-items: center; flex: none; }

.qr-govde { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 0 8px 8px; min-height: 0; }
.qr-govde.orta { justify-content: center; text-align: center; }
.qr-govde[hidden] { display: none; }
.soru { font-size: 24px; font-weight: 800; padding: 4px 8px 6px; margin: 0; outline: none; }
.buyuk-metin { font-size: 20px; font-weight: 700; padding: 0 16px; }

.blokb { flex: 1; min-height: 64px; border-radius: 24px; display: flex; align-items: center; gap: 18px; padding: 0 24px; font-size: 28px; font-weight: 800; line-height: 1.05; text-align: left; }
.blokb .ik { width: 60px; height: 60px; stroke-width: 2.2; }
.blokb small { display: block; font-size: 15px; font-weight: 600; margin-top: 4px; }
.qr .blokb.kaza { background: var(--qr-kaza); color: #fff; }
.qr .blokb.rk { background: var(--qr-rk); color: #fff; }
.qr .blokb.rk small { color: var(--qr-turuncu-yazi); }
.qr .blokb.teh { background: var(--qr-teh); color: var(--qr-teh-yazi); }

.dokuz { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 8px; min-height: 0; }
.dokuz button { min-height: 64px; border-radius: 20px; background: var(--qr-yuzey); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 15px; font-weight: 700; text-align: center; padding: 6px; line-height: 1.1; }
.dokuz button .ik { width: 40px; height: 40px; }
.qr .dokuz button[aria-pressed=true] { background: var(--qr-rk); box-shadow: inset 0 0 0 3px #fff; }

.dortlu { flex: 1; display: grid; grid-template-rows: repeat(4, 1fr); gap: 8px; min-height: 0; }
.dortlu.besli { grid-template-rows: repeat(5, 1fr); }
.dortlu button { min-height: 64px; border-radius: var(--qr-r); background: var(--qr-yuzey); font-size: 22px; font-weight: 800; text-align: left; padding: 0 22px; }
.qr .dortlu button[aria-pressed=true] { box-shadow: inset 0 0 0 3px #fff; background: var(--qr-iyi); }
.ucb { flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.ucb button { flex: 1; min-height: 64px; border-radius: var(--qr-r); background: var(--qr-yuzey); display: flex; align-items: center; gap: 18px; padding: 0 22px; font-size: 22px; font-weight: 800; text-align: left; }
.ucb button[hidden] { display: none; }
.ucb button .ik { width: 40px; height: 40px; }
.ucb button small { display: block; font-size: 14px; font-weight: 500; opacity: .8; }
.qr .ucb button.vurgu { background: #fff; color: var(--qr-zemin); }
.qr .ucb button[aria-pressed=true] { box-shadow: inset 0 0 0 3px #fff; background: var(--qr-iyi); }

.alan-liste { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.alan-sec { min-height: 64px; border-radius: 18px; background: var(--qr-yuzey); font-size: 18px; font-weight: 700; text-align: left; padding: 0 20px; }

.metin-alani { display: flex; flex-direction: column; gap: 6px; padding: 0 8px; }
.metin-alani[hidden] { display: none; }
.metin-alani label { font-size: 15px; font-weight: 700; }
.metin-alani input, .aciklama { font-family: inherit; font-size: 18px; min-height: 56px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--qr-cizgi); background: var(--qr-yuzey); color: #fff; }
.aciklama { flex: 1; min-height: 120px; resize: none; }
.cumleler { display: flex; flex-wrap: wrap; gap: 8px; }
.cumle { min-height: 48px; padding: 0 14px; border-radius: 24px; background: var(--qr-yuzey-2); font-size: 16px; font-weight: 600; }

.ara { flex: 1.3; min-height: 64px; border-radius: 24px; background: var(--qr-kaza); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 34px; font-weight: 800; color: #fff; }
.ara .ik { width: 64px; height: 64px; }
.ara.kisa { flex: 0 0 72px; flex-direction: row; font-size: 24px; }
.ara.kisa .ik { width: 32px; height: 32px; }
.ara[hidden] { display: none; }
.devam { flex: 1; min-height: 64px; border-radius: 24px; background: var(--qr-yuzey); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 22px; font-weight: 800; text-align: center; padding: 0 20px; }
.devam small { font-size: 14px; font-weight: 500; opacity: .8; }
.devam.kisa { flex: 0 0 64px; }
.devam.satir { flex: 0 0 72px; flex-direction: row; gap: 10px; }
.tel-satir { display: block; min-height: 48px; line-height: 48px; padding: 0 16px; border-radius: 16px; background: var(--qr-yuzey-2); font-weight: 700; }
.notb { font-size: 13px; opacity: .75; text-align: center; padding: 2px 0 4px; margin: 0; }
.notb a { color: #fff; }

.tamam-ekran, .hata-ekran { flex: 1; border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px; }
.tamam-ekran { background: var(--qr-iyi); }
.hata-ekran { background: var(--qr-yuzey); }
.tamam-ekran .ik, .hata-ekran .ik { width: 80px; height: 80px; }
.tamam-ekran h1, .hata-ekran h1 { font-size: 32px; font-weight: 800; margin: 0; outline: none; }
.tamam-ekran p, .hata-ekran p { font-size: 17px; max-width: 300px; margin: 0; }
.tamam-ekran .kucuk { font-size: 14px; }
.tamam-ekran .kod { font-size: 30px; font-weight: 800; letter-spacing: .08em; background: var(--qr-iyi-koyu); border-radius: 16px; padding: 12px 18px; user-select: all; }
.medya-hata { background: var(--qr-iyi-koyu); border-radius: 16px; padding: 10px; }
.medya-hata[hidden] { display: none; }
.iki-dugme { display: flex; gap: 8px; margin-top: 8px; }
.iki-dugme button { flex: 1; min-height: 56px; border-radius: 14px; background: #fff; color: var(--qr-zemin) !important; font-weight: 700; }

.alt { display: flex; flex-direction: column; gap: 8px; padding: 0 8px 10px; }
.alt-dugmeler { display: flex; gap: 8px; }
.alt .geri { width: 72px; height: 72px; border-radius: 22px; background: var(--qr-yuzey-2); display: grid; place-items: center; }
.alt .gonder { flex: 1; height: 72px; border-radius: 22px; background: #fff; color: var(--qr-zemin) !important; font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px; }
.kademe { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 16px; background: var(--qr-yuzey); font-size: 14px; }
.kademe .ik { color: var(--qr-kilit); }
.kademe-metin { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.kademe-metin [hidden] { display: none; }
.kucuk-ekip { color: var(--qr-uyari); font-weight: 600; }
.degistir { min-height: 48px; padding: 0 14px; border-radius: 14px; background: var(--qr-yuzey-2); font-weight: 700; }
.ad-uyari { margin: 0; color: var(--qr-uyari); font-weight: 700; text-align: center; }
.ad-uyari[hidden] { display: none; }

/* Alt çubuk: ilk ekranda, yardım ekranında ve sonuç ekranlarında gizli. "Adımla zorunlu" kiracıda ad alanı her adımda görünür. */
html[data-adim=ne] .alt .kademe, html[data-adim=ne] .alt .alt-dugmeler, html[data-adim=ne] .alt .ad-uyari,
html[data-adim=iptal] .alt, html[data-adim=kaza] .alt, html[data-adim=tesekkur] .alt, html[data-adim=gonderiliyor] .alt,
html[data-adim=baglanti] .alt, html[data-adim=hata] .alt, html[data-adim=kademe] .alt, html[data-adim=yaz] .alt { display: none; }
html[data-adim=ne] .qr:not([data-zorunlu="1"]) .alt { display: none; }

/* Alan kodu, takip, kapalı, tanınmadı sayfaları */
.qr-sayfa { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; gap: 16px; padding: 24px 16px; }
.qr-sayfa h1 { font-size: 28px; font-weight: 800; margin: 0; }
.qr-sayfa p { font-size: 18px; margin: 0; }
.qr-sayfa .form-qr { display: flex; flex-direction: column; gap: 12px; }
.qr-sayfa .form-qr label { font-weight: 700; }
.qr-sayfa .form-qr input, .qr-sayfa .form-qr textarea { font: inherit; font-size: 20px; min-height: 64px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--qr-cizgi); background: var(--qr-yuzey); color: #fff; letter-spacing: .04em; }
.qr-sayfa .form-qr textarea { min-height: 120px; letter-spacing: normal; }
.qr-sayfa .birincil { min-height: 72px; border-radius: 22px; background: #fff; color: var(--qr-zemin); font: inherit; font-size: 22px; font-weight: 800; border: 0; cursor: pointer; }
.qr-sayfa .ara { flex: 0 0 auto; min-height: 120px; }
.qr-sayfa .kutu { background: var(--qr-yuzey); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.qr-sayfa .kutu b { font-size: 14px; opacity: .8; }
.qr-sayfa .kutu span { font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.qr-sayfa .uyari-qr { background: var(--qr-yuzey-2); border-left: 6px solid var(--qr-uyari); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.qr-sayfa .basari-qr { background: var(--qr-iyi); border-radius: 12px; padding: 12px 14px; font-weight: 700; }
.qr-sayfa a { color: #fff; }
.qr-sayfa .ikincil-baglanti { font-size: 16px; opacity: .85; }
