/* Yarış Zekâsı · mobil katman: alt gezinme çubuğu, menü paneli, ana ekrana ekle, uygulama (mağaza) modu.
   Bütün sayfalarda yüklenir (patch30). Masaüstü görünümüne dokunmaz. */
:root { --yz-bar: 62px; --yz-alt: env(safe-area-inset-bottom, 0px); }

/* ---- alt çubuk ---- */
.yz-bar { display:none; }
html.yz-bar-on .yz-bar {
  display:flex; position:fixed; left:0; right:0; bottom:0; z-index:8000;
  height:calc(var(--yz-bar) + var(--yz-alt)); padding:0 4px var(--yz-alt);
  background:#07110bf2; border-top:1px solid #ffffff1a; backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  font-family:"Barlow",system-ui,-apple-system,"Segoe UI",sans-serif;
}
.yz-bar a, .yz-bar button {
  flex:1; min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  background:none; border:0; padding:0; margin:0; color:#9bb3a8; text-decoration:none; font:500 11.5px/1 inherit; cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.yz-bar svg { width:24px; height:24px; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.yz-bar .on { color:#f0c24a; }
.yz-bar .on svg { filter:drop-shadow(0 0 6px #f0c24a66); }
html.yz-bar-on body { padding-bottom:calc(var(--yz-bar) + var(--yz-alt)) !important; }

/* alt çubuk varken üstteki uzun menü telefonda gizlenir (aynı bağlantılar alt çubukta ve Menü'de) */
@media (max-width:760px) {
  html.yz-bar-on .pz-top nav, html.yz-bar-on .pz-top .pz-who, html.yz-bar-on .pz-top #pz-cikis { display:none; }
  html.yz-bar-on .pz-top { flex-wrap:nowrap; }
}
/* yüzen düğmeler alt çubuğun üstüne çıkar */
html.yz-bar-on #chatFab { bottom:calc(var(--yz-bar) + var(--yz-alt) + 12px) !important; }
html.yz-bar-on .chat { bottom:calc(var(--yz-bar) + var(--yz-alt) + 64px) !important; max-height:calc(100vh - var(--yz-bar) - 120px); }
html.yz-bar-on #toast { bottom:calc(var(--yz-bar) + var(--yz-alt) + 14px) !important; }
html.yz-bar-on #pzd-b { display:none !important; }            /* destek düğmesi Menü'ye taşındı */
html.yz-bar-on #pzd-p { bottom:calc(var(--yz-bar) + var(--yz-alt) + 8px) !important; height:min(540px, calc(100vh - var(--yz-bar) - 60px)) !important; }

/* ---- menü paneli ---- */
.yz-perde { position:fixed; inset:0; z-index:8100; background:#000a; opacity:0; pointer-events:none; transition:opacity .2s; }
.yz-menu {
  position:fixed; left:0; right:0; bottom:0; z-index:8101; transform:translateY(105%); transition:transform .25s ease;
  background:#0f2219; border-top:1px solid #2b4c43; border-radius:18px 18px 0 0; padding:10px 14px calc(16px + var(--yz-alt));
  max-height:82vh; overflow:auto; font-family:"Barlow",system-ui,-apple-system,"Segoe UI",sans-serif; color:#eef4f0;
}
.yz-menu-acik .yz-perde { opacity:1; pointer-events:auto; }
.yz-menu-acik .yz-menu { transform:none; }
.yz-menu .tut { width:40px; height:4px; border-radius:9px; background:#ffffff33; margin:0 auto 12px; }
.yz-menu .kim { color:#9bb3a8; font-size:14px; padding:0 6px 8px; }
.yz-menu a, .yz-menu button {
  display:flex; align-items:center; gap:12px; width:100%; box-sizing:border-box; padding:13px 10px; border:0; border-radius:12px;
  background:none; color:#eef4f0; text-decoration:none; font:500 16px/1.2 inherit; text-align:left; cursor:pointer;
}
.yz-menu a:active, .yz-menu button:active { background:#ffffff0f; }
.yz-menu svg { width:22px; height:22px; flex:none; stroke:#f0c24a; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.yz-menu hr { border:0; border-top:1px solid #ffffff14; margin:6px 0; }
.yz-menu .cik { color:#f2766b; } .yz-menu .cik svg { stroke:#f2766b; }
.yz-menu .surum { color:#5f7a6e; font-size:12px; text-align:center; padding-top:8px; }

/* ---- ana ekrana ekle ---- */
.yz-ekle { display:flex; gap:12px; align-items:center; background:#16302a; border:1px solid #2b4c43; border-radius:14px; padding:12px 14px; margin:0 0 16px; color:#eef4f0; font:15px/1.4 "Barlow",system-ui,sans-serif; }
.yz-ekle img { width:40px; height:40px; border-radius:10px; flex:none; }
.yz-ekle .m { flex:1; } .yz-ekle .m b { display:block; } .yz-ekle .m span { color:#9bb3a8; font-size:13.5px; }
.yz-ekle button { border:0; border-radius:99px; padding:8px 14px; font:600 14px inherit; cursor:pointer; }
.yz-ekle .ekle { background:linear-gradient(120deg,#ffe08a,#f0c24a 45%,#d8962a); color:#1b1404; }
.yz-ekle .kapat { background:none; color:#9bb3a8; padding:6px 8px; font-size:20px; line-height:1; }

/* ---- hesap silme ---- */
.yz-sil h3 { color:#f2766b; }
.yz-sil .pz-btn { border-color:#f2766b88; color:#f2766b; }

/* ---- uygulama (mağaza) modu: satın alma ve ödeme yönlendirmeleri gösterilmez ---- */
html.pz-uyg a[href^="/fiyatlar"], html.pz-uyg a[href*="/fiyatlar?"],
html.pz-uyg #sosyal, html.pz-uyg .yz-web-only { display:none !important; }
html.pz-uyg.yz-fiyat body > :not(#pz-nav):not(script) { visibility:hidden; }   /* mobil.js sade üyelik ekranını koyana kadar */
html.pz-uyg body { padding-top:env(safe-area-inset-top, 0px); }
html.pz-uyg body { -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
html.pz-uyg input, html.pz-uyg textarea, html.pz-uyg [contenteditable], html.pz-uyg .secilir, html.pz-uyg code, html.pz-uyg pre { -webkit-user-select:text; user-select:text; }
.yz-uyelik-yok { max-width:520px; margin:48px auto; padding:0 20px; text-align:center; font-family:"Barlow",system-ui,sans-serif; color:#eef4f0; }
.yz-uyelik-yok h1 { font:700 34px/1.1 "Barlow Condensed","Arial Narrow",sans-serif; margin:16px 0 10px; }
.yz-uyelik-yok p { color:#9bb3a8; }

@media (prefers-reduced-motion:reduce) { .yz-menu, .yz-perde { transition:none; } }
