/* Kartvizit sayfası — ekranda QR (alt çubuktaki düğme + QR kutusu) ve telefona uygulama olarak ekleme kutusu.
   profile.css'ten sonra yüklenir; değişkenler (--brand, --line, --surface…) oradan gelir. */

/* ---- Alt çubuk: QR + Rehbere kaydet ---- */

.savebar-inner {
  display: flex;
  gap: 10px;
  max-width: calc(var(--column) - 32px);
  margin: 0 auto;
}

.savebar-inner .save {
  flex: 1;
  max-width: none;
  margin: 0;
}

.qr-open {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 58px;
  height: 54px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--brand-strong);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.qr-open[hidden] { display: none; }

.qr-open .icon {
  width: 24px;
  height: 24px;
}

.qr-open:active { background: var(--press); }

/* ---- QR kutusu: her zaman beyaz üstüne siyah (okunurluk) ---- */

.qr-dialog,
.install-dialog {
  width: min(92vw, 420px);
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: #17202b;
  box-shadow: 0 24px 64px rgb(0 0 0 / 0.3);
}

.qr-dialog::backdrop,
.install-dialog::backdrop {
  background: rgb(0 0 0 / 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.qr-sheet {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 20px 20px;
  text-align: center;
}

.qr-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
}

.qr-code {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
}

.qr-code svg {
  display: block;
  width: 100%;
  height: 100%;
}

.qr-name {
  margin: 12px 0 2px;
  font-size: 20px;
  font-weight: 700;
}

.qr-url {
  margin: 0;
  color: #5d6672;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.qr-hint {
  margin: 10px 0 16px;
  color: #6b7480;
  font-size: 13px;
}

.qr-close {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 14px;
  background: var(--brand);
  color: var(--on-brand);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

/* ---- Kartın sahibine (giriş yapmışken) "Profilimi düzenle" şeridi; müşteri görmez ---- */

.owner-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.owner-bar .icon {
  width: 18px;
  height: 18px;
}

.owner-bar small {
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.85;
}

/* ---- "Uygulama olarak yükle" düğmesi (kurulu değilken; pwa.js gösterir) ---- */

.install-open {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px auto;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-strong);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.install-open[hidden] { display: none; }

.install-open .icon {
  width: 16px;
  height: 16px;
}

.install-open.is-highlighted { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 35%, transparent); }

/* ---- Kurulum kutusu: cihaza göre tek bölüm görünür (data-platform) ---- */

.sheet {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 16px;
}

.sheet-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}

.sheet-text,
.sheet-hint {
  margin: 0;
  color: #5d6672;
  line-height: 1.45;
}

.sheet-hint { font-size: 13px; }

.install-dialog [data-for] { display: none; }

.install-dialog[data-platform="android"] [data-for~="android"],
.install-dialog[data-platform="ios"] [data-for~="ios"],
.install-dialog[data-platform="ios-other"] [data-for~="ios-other"],
.install-dialog[data-platform="other"] [data-for~="other"] { display: block; }

.install-steps {
  margin: 4px 0;
  padding: 0;
  list-style: none;
}

.install-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #e8ebef;
  line-height: 1.4;
}

.step-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f1f3f6;
  color: #0a84ff; /* iOS sistem mavisi: Safari'deki simgeyle aynı görünsün */
}

.step-icon .icon {
  width: 20px;
  height: 20px;
}

.step-glyph {
  font-size: 22px;
  font-weight: 700;
  color: #17202b;
}

.sheet-primary,
.sheet-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.sheet-primary {
  border: 0;
  background: var(--brand);
  color: var(--on-brand);
}

.sheet-secondary {
  border: 1px solid #d8dde3;
  background: #fff;
  color: #17202b;
}

.sheet-secondary[hidden] { display: none; }

.install-dialog [data-for] > .sheet-primary { margin-top: 12px; }

.install-dialog [data-for] > .sheet-secondary { margin-top: 8px; }

.install-dialog [data-for] > .sheet-hint { margin-top: 8px; }

.sheet-link {
  padding: 8px;
  border: 0;
  background: transparent;
  color: #5d6672;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
