/* LifeInvader web kabuğu: üst çubuk, orta sütun (telefon uygulaması ölçeklenmiş), giriş/karakter ekranları.
   Uygulamanın kendi görünümü arktagram.css'te (telefondakiyle aynı dosya). */

:root {
  --li-red: #d4211d;
  --li-red-dark: #a81815;
  --li-bg: #e9ebee;
  --li-card: #fff;
  --li-text: #1c1e21;
  --li-muted: #65676b;
  --li-line: #dddfe2;
  --top-h: 48px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--li-bg);
  color: var(--li-text);
  font-family: Helvetica, Arial, sans-serif;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }
a { color: var(--li-red-dark); }
.hidden { display: none !important; }
.empty { padding: 28px 16px; text-align: center; color: #8e8e93; font-size: 13px; }

/* ── Üst çubuk ───────────────────────────────────────────── */
#li-top {
  height: var(--top-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid var(--li-line);
  position: relative;
  z-index: 10;
}
.li-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.li-brand img { width: 28px; height: 28px; border-radius: 7px; }
.li-word { font: 700 21px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: -1px; color: var(--li-red); }
.li-tag {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--li-muted); border: 1px solid var(--li-line); border-radius: 4px; padding: 2px 5px;
}
.li-top-r { display: flex; align-items: center; gap: 6px; min-width: 0; }
.li-chip {
  display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 46vw;
  height: 32px; padding: 0 8px 0 12px; border-radius: 16px; background: #f0f2f5; font-size: 14px; font-weight: 700;
}
.li-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-chip svg, .li-ghost svg { width: 18px; height: 18px; flex-shrink: 0; }
.li-chip:hover, .li-ghost:hover { background: #e4e6e9; }
.li-ghost { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border-radius: 16px; font-size: 14px; color: var(--li-muted); }

/* ── Sahne: orta sütun ───────────────────────────────────── */
#li-stage {
  height: calc(100% - var(--top-h));
  display: flex;
  justify-content: center;
  gap: 24px;
}
#li-col {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 100%;
}
#li-frame { position: relative; overflow: hidden; }
@media (min-width: 600px) {
  #li-col { box-shadow: 0 0 0 1px var(--li-line), 0 6px 30px rgba(0, 0, 0, 0.08); }
}

/* Uygulama bölümü: telefonda .view.app (phone.css) ne yapıyorsa burada da o; durum çubuğu boşluğu yok */
body #app-arktagram {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  background: #fff;
  padding: 0;
}

#li-side {
  width: 280px;
  flex-shrink: 0;
  padding-top: 24px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--li-muted);
}
#li-side h2 { margin: 0 0 8px; font-size: 16px; color: var(--li-text); }
#li-side p { margin: 0 0 10px; }
.li-muted { color: #8a8d91; font-size: 13px; }
@media (max-width: 899px) { #li-side { display: none !important; } }

/* ── Kapı ekranları (giriş, bağlama, karakter seçimi) ───── */
#li-gate {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  background: var(--li-bg);
  padding: 24px 16px 40px;
  z-index: 3;
}
.li-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--li-card);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  padding: 28px 22px 24px;
  text-align: center;
}
.li-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 14px; }
.li-hero img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 3px 10px rgba(212, 33, 29, 0.3); }
.li-hero-word { font: 700 32px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: -1.5px; color: var(--li-red); }
.li-card h1 { font-size: 19px; margin: 6px 0 8px; line-height: 1.3; }
.li-lead { font-size: 14.5px; line-height: 1.5; color: var(--li-muted); margin: 0 0 18px; }
.li-warn { background: #fdecec; color: var(--li-red-dark); border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 0 0 14px; }
.li-small { font-size: 13.5px; color: var(--li-muted); margin: 12px 0 0; }
.li-btn {
  display: block; width: 100%; padding: 12px 14px; margin-top: 8px; border-radius: 8px; text-align: center;
  font-size: 15px; font-weight: 700; text-decoration: none; background: #e4e6eb; color: var(--li-text);
}
.li-btn.primary { background: var(--li-red); color: #fff; }
.li-btn.primary:hover { background: var(--li-red-dark); }
.li-btn:hover { filter: brightness(0.97); }
.li-steps { list-style: none; padding: 0; margin: 22px 0 0; text-align: left; border-top: 1px solid var(--li-line); }
.li-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 2px; font-size: 14px; border-bottom: 1px solid #f0f2f5; }
.li-steps.num { counter-reset: s; margin: 0 0 16px; border-top: none; }
.li-steps.num li { counter-increment: s; }
.li-steps.num li::before {
  content: counter(s); flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; background: #fdecec; color: var(--li-red); font-weight: 700; font-size: 13px;
}
.li-ic { display: inline-flex; width: 22px; height: 22px; flex-shrink: 0; color: var(--li-red); }
.li-ic svg { width: 100%; height: 100%; }
.li-chars { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.li-charbtn {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--li-line); background: #fff;
}
.li-charbtn:hover { background: #f7f8fa; }
.li-charbtn.on { border-color: var(--li-red); box-shadow: inset 0 0 0 1px var(--li-red); }
.li-charbtn:disabled { opacity: 0.6; }
.li-av {
  width: 44px; height: 44px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: #f0f2f5;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; color: var(--li-muted);
}
.li-av img { width: 100%; height: 100%; object-fit: cover; }
.li-chartxt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.li-chartxt b { font-size: 15px; }
.li-chartxt small { font-size: 12.5px; color: var(--li-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-go { color: #b0b3b8; width: 18px; height: 18px; }
.li-spin { margin: 30px auto; }

/* ── Bildirim, onay, kayan duyuru ────────────────────────── */
#toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 50;
  max-width: min(90vw, 420px); padding: 10px 16px; border-radius: 8px;
  background: rgba(28, 30, 33, 0.92); color: #fff; font-size: 14px; text-align: center;
}
#banner {
  position: fixed; top: calc(var(--top-h) + 10px); left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(92vw, 420px); padding: 10px 14px; border-radius: 10px; background: #fff; cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); border-left: 4px solid var(--li-red); font-size: 14px;
  display: flex; flex-direction: column; gap: 2px;
}
#confirm {
  position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.4);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.li-confirm { width: min(100%, 340px); background: #fff; border-radius: 12px; padding: 20px 18px 14px; text-align: center; }
.li-confirm p { margin: 0 0 16px; font-size: 15px; line-height: 1.4; }
.li-confirm-b { display: flex; gap: 8px; }
.li-confirm-b button { flex: 1; padding: 10px; border-radius: 8px; background: #e4e6eb; font-weight: 700; font-size: 14px; }
.li-confirm-b button.danger { background: var(--li-red); color: #fff; }

input, textarea, select { font: inherit; }
* { scrollbar-width: thin; }
.li-chartxt { text-align: left; }
@media (max-width: 420px) {
  #li-top { padding: 0 10px; }
  .li-tag, .li-ghost span { display: none; }
  .li-chip { max-width: 52vw; }
}

/* ── Geniş düzenler: body[data-layout] boot.js'ten (medium 700-1100, wide 1100+) ── */
.li-find {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  background: #f0f2f5;
  color: var(--li-muted);
}
.li-find svg { width: 18px; height: 18px; flex-shrink: 0; }
.li-find input { flex: 1; min-width: 0; border: none; background: transparent; outline: none; font-size: 14px; color: var(--li-text); }
.li-find:focus-within { box-shadow: 0 0 0 2px var(--li-red); background: #fff; }
body[data-layout="narrow"] .li-find { display: none !important; }
body[data-layout="medium"] #li-col,
body[data-layout="wide"] #li-col { max-width: none; box-shadow: none; }
body[data-layout="medium"] #li-side,
body[data-layout="wide"] #li-side { display: none !important; }
body[data-layout="medium"] #li-stage,
body[data-layout="wide"] #li-stage { gap: 0; }
