﻿/* B2EL mobil uygulaması: telefonda uyarı, giriş sayfası bağlantıları, B2/mobil sayfası. Platform sınıfları mobilUygulama.js'ten. */

/* ---- Platforma göre göster/gizle ---- */
.mu-yalniz-mobil { display: none !important; }
html.mu-ios .mu-yalniz-mobil, html.mu-android .mu-yalniz-mobil { display: block !important; }
html.mu-ios .mu-yalniz-masaustu, html.mu-android .mu-yalniz-masaustu { display: none !important; }
html.mu-ios [data-mu-platform="android"], html.mu-android [data-mu-platform="ios"] { display: none !important; }

/* Telefonda yerel uygulama önerilirken ana sayfaların PWA kurulum bandı (b2/Index, AnaSayfa2/_Hero) gösterilmez */
html.mu-uygulama-var #pwaInstallBanner, html.mu-uygulama-var #as2-pwa { display: none !important; }

.mu-rozet { display: inline-block; line-height: 0; }
.mu-rozet img { height: 44px; width: auto; }

/* ---- Telefonda alttan çıkan uyarı (her sayfa) ---- */
.mu-uyari { display: none; }
.mu-uyari.mu-acik {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 9000; /* Kendo pencereleri (yenilik penceresi vb.) üstte kalsın */ padding: 12px 14px; border-radius: 14px;
    background: #1f2430; color: #fff; box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
    font-size: 14px; line-height: 1.35;
}
.mu-uyari-ikon {
    flex: 0 0 40px; height: 40px; border-radius: 10px; background: #f5b324; color: #1f2430;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
/* Sağ alttaki sohbet düğmesi (b2el.chat.css, 60px, alttan/sağdan 20px) uyarının × düğmesini örtmesin: uyarı onun üstünde durur */
body:has(.b2-chat-launcher) .mu-uyari.mu-acik { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
.mu-uyari-metin { flex: 1 1 auto; min-width: 0; }
.mu-uyari-metin strong { display: block; font-size: 15px; }
.mu-uyari-metin span { color: #c9ced8; font-size: 13px; }
.mu-uyari-git {
    flex: 0 0 auto; padding: 9px 14px; border-radius: 10px; background: #f5b324; color: #1f2430 !important;
    font-weight: 700; text-decoration: none !important; white-space: nowrap;
}
.mu-uyari-kapat {
    flex: 0 0 auto; border: 0; background: transparent; color: #c9ced8; font-size: 22px; line-height: 1; padding: 4px 2px; cursor: pointer;
}

/* ---- Giriş sayfası ---- */
.mu-giris-uyari { display: none; }
.mu-giris-uyari.mu-acik {
    display: block; margin: 12px auto 0; max-width: 520px; padding: 14px 16px; border-radius: 12px;
    background: rgba(31, 36, 48, .94); color: #fff; text-align: left; font-size: 14px; line-height: 1.4;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .3); position: relative;
}
.mu-giris-uyari h4 { margin: 0 26px 6px 0; font-size: 16px; font-weight: 700; color: #fff; }
.mu-giris-uyari p { margin: 0 0 10px; color: #d5d9e2; }
.mu-giris-uyari .mu-not { font-size: 12px; color: #aeb5c2; margin: 10px 0 0; }
.mu-giris-uyari .mu-uyari-kapat { position: absolute; top: 8px; right: 10px; }
.mu-giris-uyari .mu-devam { color: #f5b324; font-weight: 600; margin-left: 12px; background: none; border: 0; padding: 0; cursor: pointer; }

.mu-giris-magazalar { margin-top: 14px; text-align: center; font-size: 12px; }
.mu-giris-magazalar .mu-rozet img { height: 34px; margin: 4px 3px 0; }

/* ---- B2/mobil sayfası ---- */
.mu-sayfa { max-width: 1100px; margin: 0 auto; padding: 10px 6px 30px; color: #2b2f38; }
.mu-giris {
    display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 16px;
    background: #1f2430; color: #fff; margin-bottom: 18px;
}
.mu-giris-ikon {
    flex: 0 0 64px; height: 64px; border-radius: 16px; background: #f5b324; color: #1f2430;
    display: flex; align-items: center; justify-content: center; font-size: 34px;
}
.mu-giris h2 { margin: 0 0 6px; font-size: 22px; font-weight: 700; color: #fff; }
.mu-giris p { margin: 0; color: #c9ced8; font-size: 14px; line-height: 1.5; }

.mu-adimlar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mu-adim { background: #fff; border: 1px solid #e3e6ec; border-radius: 14px; padding: 18px 18px 20px; }
.mu-adim h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 17px; font-weight: 700; }
.mu-no {
    flex: 0 0 28px; height: 28px; border-radius: 50%; background: #1f2430; color: #f5b324;
    display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
}
.mu-adim p { font-size: 13.5px; line-height: 1.5; color: #4a5060; margin: 0 0 10px; }

.mu-magazalar { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-around; }
.mu-magaza { text-align: center; }
.mu-magaza .mu-rozet img { height: 42px; }
.mu-qr img { width: 132px; height: 132px; image-rendering: pixelated; display: block; margin: 8px auto 0; }
.mu-qr-buyuk img { width: 180px; height: 180px; }

.mu-anahtar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px;
    background: #f4f6f9; border: 1px dashed #c3c9d4; border-radius: 10px; padding: 10px;
}
.mu-anahtar code {
    flex: 1 1 220px; min-width: 0; font-size: 14px; color: #1f2430; background: transparent; padding: 0;
    word-break: break-all; user-select: all; -webkit-user-select: all;
}
.mu-kopyala {
    flex: 0 0 auto; border: 0; border-radius: 8px; background: #1f2430; color: #fff; padding: 8px 14px;
    font-weight: 600; cursor: pointer;
}
.mu-kopyala.mu-kopyalandi { background: #2e9d57; }
.mu-eksik { background: #fff6e0; border: 1px solid #f0d58c; border-radius: 10px; padding: 12px; font-size: 13.5px; }

@media (max-width: 991px) {
    .mu-adimlar { grid-template-columns: minmax(0, 1fr); }
    .mu-giris { padding: 16px; }
    .mu-giris-ikon { flex-basis: 48px; height: 48px; font-size: 26px; }
    .mu-giris h2 { font-size: 18px; }
}
