/* ═══════════════════════════════════════════════════════════════════════════════
   MOBİL ORTAK BİLEŞEN STİLLERİ (mo-*) — docs/MOBIL-ERISIM-PLAN.md "Tasarım ilkesi"
   Telefon kabuğundaki sayfaların (MobilBugun · MobilHastaAra · HastaMobil · MobilMenu ·
   Randevu2 · MobilIslemEkle) ortak parçaları: sayfa iskeleti, kart, rozet, özet kutusu,
   çip/sekme, birincil-ikincil düğme, alt sayfa (bottom sheet), bilgi satırı, menü satırı.
   Sayfaya özgü olan (diş çipleri, hafta şeridi, arama kutusu…) sayfanın kendi <style>'ında kalır.
   Tema değişkenleri app.css'ten (--t-*). Dokunma hedefi ≥ 40px; metin ≥ 16px girişlerde (iOS yakınlaştırma).
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Sayfa iskeleti: MobilLayout gövdesi içinde mutlak; tek kaydıran alan .mo-icerik ── */
.mo-sayfa { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--t-bg-page); color: var(--t-text-primary); font-size: 15px; }
.mo-baslik { flex-shrink: 0; padding: 10px 12px; background: var(--t-bg-card); border-bottom: 1px solid var(--t-border); }
.mo-baslik--yatay { display: flex; align-items: center; gap: 8px; }
.mo-icerik { flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; padding: 10px 12px 24px; }
.mo-bolum { display: flex; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--t-text-muted); margin: 16px 4px 8px; }
.mo-bolum:first-child { margin-top: 4px; }

/* ── Üst çubuk parçaları ── */
.mo-ikon-dugme { flex-shrink: 0; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--t-border); border-radius: 10px; background: var(--t-bg-page); color: var(--t-text-primary); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.mo-ikon-dugme--yesil { color: #16a34a; }
.mo-avatar { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--t-accent); color: var(--t-text-on-accent); display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.mo-ust-ad { font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo-ust-alt { font-size: 13px; color: var(--t-text-muted); margin-top: 2px; }

/* ── Kart ── */
.mo-kart { background: var(--t-bg-card); border: 1px solid var(--t-border); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; }
.mo-kart--liste { padding: 10px 12px; }
.mo-kart--sik { padding: 6px 14px; }          /* içinde yalnız .mo-bilgi satırları */
.mo-kart--tik { cursor: pointer; }
.mo-kart-bas { display: flex; align-items: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--t-text-muted); margin-bottom: 6px; }
.mo-kart-satir { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 14.5px; line-height: 1.4; }
.mo-kart-satir + .mo-kart-satir { margin-top: 3px; }
.mo-kart-sag { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mo-soluk { color: var(--t-text-muted); font-size: 13px; }
.mo-metin { white-space: pre-wrap; }
.mo-yesil { color: #15803d; font-weight: 700; }
.mo-kirmizi { color: #b91c1c; font-weight: 700; }

/* Etiket · değer satırı (kimlik kartı, hakkında) */
.mo-bilgi { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--t-border); font-size: 14.5px; }
.mo-bilgi:last-child { border-bottom: none; }
.mo-bilgi span { color: var(--t-text-muted); flex-shrink: 0; }
.mo-bilgi b { text-align: right; font-weight: 600; overflow-wrap: anywhere; }

/* Boş durum */
.mo-bos { padding: 24px 16px; text-align: center; color: var(--t-text-muted); background: var(--t-bg-card); border: 1px dashed var(--t-border); border-radius: 12px; }
.mo-bos--sade { padding: 16px; background: transparent; border: none; font-size: 14px; }

/* ── Rozet ── */
.mo-rozet { display: inline-block; vertical-align: middle; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--t-bg-secondary); }
.mo-rozet--kirmizi { background: rgba(220,38,38,.12); color: #b91c1c; }
.mo-rozet--sari { background: rgba(245,158,11,.16); color: #a16207; }
.mo-rozet--yesil { background: rgba(22,163,74,.12); color: #15803d; }
.mo-rozet--mavi { background: rgba(37,99,235,.12); color: #1d4ed8; }
* + .mo-rozet { margin-left: 6px; }

/* ── Özet kutuları (sayı + etiket) ── */
.mo-kutular { display: grid; grid-template-columns: repeat(var(--mo-kutu, 3), 1fr); gap: 8px; margin-bottom: 10px; }
.mo-kutu { background: var(--t-bg-card); border: 1px solid var(--t-border); border-radius: 12px; padding: 10px 6px; text-align: center; }
.mo-kutu-sayi { font-size: 22px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo-kutular--para .mo-kutu-sayi { font-size: 15px; }   /* tutar metni: N2 + döviz */
.mo-kutu-etiket { font-size: 11.5px; color: var(--t-text-muted); margin-top: 3px; }
.mo-kutu--yesil .mo-kutu-sayi { color: #15803d; }
.mo-kutu--mavi .mo-kutu-sayi { color: var(--t-accent); }
.mo-kutu--kirmizi .mo-kutu-sayi { color: #b91c1c; }

/* ── Sekme şeridi (bölüm seçimi; aktif = vurgu rengi) ── */
.mo-sekmeler { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.mo-sekmeler::-webkit-scrollbar { display: none; }
.mo-sekmeler--esit .mo-sekme { flex: 1; }
.mo-sekme { flex: 0 0 auto; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--t-border); background: var(--t-bg-page); color: var(--t-text-secondary); font-size: 14px; font-weight: 700; -webkit-tap-highlight-color: transparent; }
.mo-sekme.aktif { background: var(--t-accent); border-color: var(--t-accent); color: var(--t-text-on-accent); }

/* ── Süzgeç çipleri (başvuru seçimi; aktif = koyu) ── */
.mo-cipler { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px 10px; padding: 0 12px; }
.mo-cipler::-webkit-scrollbar { display: none; }
.mo-cip { flex: 0 0 auto; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--t-border); background: var(--t-bg-card); color: var(--t-text-secondary); font-size: 13px; font-weight: 600; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.mo-cip.aktif { background: var(--t-text-primary); border-color: var(--t-text-primary); color: var(--t-bg-card); }

/* ── Düğmeler ── */
.mo-birincil, .mo-ikincil { min-height: 42px; padding: 0 18px; border-radius: 10px; font-size: 15px; font-weight: 700; -webkit-tap-highlight-color: transparent; }
.mo-birincil { background: var(--t-accent); color: var(--t-text-on-accent); border: none; }
.mo-birincil:disabled { opacity: .45; }
.mo-birincil--tam { width: 100%; margin-bottom: 10px; }
.mo-ikincil { background: var(--t-bg-page); color: var(--t-text-primary); border: 1px solid var(--t-border); }
.mo-ikili { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Menü satırı: [ikon] başlık / açıklama — svg ya da emoji span ilk çocuk olur */
.mo-satir { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; text-align: left; width: 100%; min-height: 56px; padding: 8px 14px; margin-bottom: 8px; background: var(--t-bg-card); border: 1px solid var(--t-border); border-radius: 12px; color: var(--t-text-primary); font-size: 16px; font-weight: 600; -webkit-tap-highlight-color: transparent; }
.mo-satir > svg:first-child, .mo-satir > span:first-child { grid-row: 1 / span 2; min-width: 24px; text-align: center; }
.mo-satir > span:first-child { font-size: 22px; }
.mo-satir b { font-weight: 700; }
.mo-satir small { display: block; grid-column: 2; font-size: 12.5px; font-weight: 400; color: var(--t-text-muted); margin-top: 2px; }
.mo-satir:active { background: var(--t-bg-secondary); }
.mo-satir:disabled { opacity: .5; }
.mo-satir--tehlike { margin-top: 24px; color: #dc2626; border-color: rgba(220,38,38,.35); }
.mo-ikili .mo-satir { margin-bottom: 8px; }

/* ── Giriş alanları (16px: iOS odaklanınca yakınlaştırmasın) ── */
.mo-input, .mo-select { width: 100%; box-sizing: border-box; height: 46px; padding: 0 12px; font-size: 16px; border: 1px solid var(--t-border); border-radius: 10px; background: var(--t-bg); color: var(--t-text-primary); }
.mo-input:focus, .mo-select:focus, .mo-textarea:focus { outline: none; border-color: var(--t-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--t-accent) 20%, transparent); }
.mo-textarea { width: 100%; box-sizing: border-box; font-size: 16px; padding: 10px; border: 1px solid var(--t-border); border-radius: 10px; background: var(--t-bg); color: var(--t-text-primary); resize: vertical; }

/* ── Alt sayfa (bottom sheet) — MobilAltSayfa bileşeni ── */
.mo-perde { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 950; }
/* 🪤 ALT GEZİNTİ ÇUBUĞU ALT SAYFAYI ÖRTÜYORDU: MobilLayout gövdesi position:fixed (kendi yığın bağlamı), nav z-index 900
   onun ÜSTÜNDE → sayfa içindeki alt sayfanın z-index'i ne olursa olsun düğmeleri navın arkasında kalıyordu.
   Alt sayfa navın hemen üstünden başlar (--ml-nav-h MobilLayout'ta tanımlı; kabuk yoksa 0). */
.mo-perde { bottom: var(--ml-nav-h, 0px); }
.mo-alt-sayfa { position: fixed; left: 0; right: 0; bottom: var(--ml-nav-h, 0px); z-index: 951; display: flex; flex-direction: column; max-height: calc(100dvh - var(--ml-nav-h, 0px) - 16px); background: var(--t-bg-card); color: var(--t-text-primary); border-radius: 16px 16px 0 0; padding: 8px 14px 12px; box-shadow: 0 -12px 40px rgba(0,0,0,.25); animation: mo-alt-in .16s ease-out; }
@keyframes mo-alt-in { from { transform: translateY(14px); opacity: .6; } to { transform: none; opacity: 1; } }
.mo-tut { flex-shrink: 0; width: 40px; height: 4px; border-radius: 2px; background: var(--t-border); margin: 0 auto 8px; }
.mo-alt-bas { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.mo-alt-bas > div { min-width: 0; }
.mo-alt-alt { font-size: 12.5px; font-weight: 400; color: var(--t-text-muted); }
.mo-kapat { flex-shrink: 0; width: 36px; height: 36px; border: none; border-radius: 50%; background: var(--t-bg-secondary); color: var(--t-text-secondary); font-size: 22px; line-height: 1; }
.mo-alt-govde { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.mo-alt-dugmeler { flex-shrink: 0; display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.mo-alt-dugmeler .mo-birincil { min-width: 130px; }
