/* ElixirDeck deste kurucu stili (index.html ve en/index.html ortak) */
:root {
  --bg: #0f1624;
  --panel: #172136;
  --panel2: #1e2a44;
  --line: #2b3a5c;
  --text: #e8eefc;
  --muted: #93a3c4;
  --accent: #f5b83d;
  --accent2: #4aa3ff;
  --ok: #41d17a;
  --warn: #f5b83d;
  --bad: #ff5d6c;
  --elixir: #d14cd8;
  --c: #8fa7c9; --r: #f39c3d; --e: #b45cf0; --l: #3ee6d0; --ch: #ffd24a;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
header {
  padding: 18px 16px 0; max-width: 1200px; margin: 0 auto;
}
h1 { margin: 0 0 4px; font-size: 24px; }
h1 span { color: var(--accent); }
.sub { color: var(--muted); margin: 0 0 14px; }
nav { display: flex; gap: 6px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
nav button {
  background: none; border: 0; color: var(--muted); padding: 10px 14px; cursor: pointer;
  font: inherit; font-weight: 600; border-bottom: 3px solid transparent;
}
nav button.active { color: var(--text); border-bottom-color: var(--accent); }
main { max-width: 1200px; margin: 0 auto; padding: 16px; }
section { display: none; }
section.active { display: block; }

.bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
input[type=search], select {
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; font: inherit;
}
input[type=search] { flex: 1 1 200px; min-width: 0; }
.btn {
  background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; cursor: pointer; font: inherit; font-weight: 600;
}
.btn:hover { border-color: var(--accent2); }
.btn.primary { background: var(--accent); color: #1b1300; border-color: var(--accent); }
.btn.small { padding: 5px 9px; font-size: 13px; }
.chip { padding: 6px 10px; border-radius: 999px; font-size: 13px; }
.chip.on { background: var(--accent2); border-color: var(--accent2); color: #fff; }
.count { color: var(--muted); font-size: 14px; margin-left: auto; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.tile {
  position: relative; background: var(--panel); border: 2px solid var(--line); border-radius: 10px;
  cursor: pointer; user-select: none; overflow: hidden; transition: transform .08s, opacity .15s;
}
.tile:hover { transform: translateY(-2px); }
.tile.off { opacity: .38; filter: grayscale(.8); }
.tile .art {
  position: relative; aspect-ratio: 5 / 6; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 6px; font-weight: 700; font-size: 13px; color: var(--muted);
  background: linear-gradient(160deg, var(--panel2), var(--panel));
}
.tile .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tile .elx {
  position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--elixir); color: #fff; font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px #0008; z-index: 1;
}
.tile .cap { font-size: 11.5px; text-align: center; padding: 3px 4px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .lvl { display: flex; justify-content: center; padding: 0 4px 6px; }
.tile .lvl select { padding: 2px 4px; font-size: 12px; border-radius: 6px; width: 100%; }
.tile.r-c { border-color: var(--c); } .tile.r-r { border-color: var(--r); }
.tile.r-e { border-color: var(--e); } .tile.r-l { border-color: var(--l); }
.tile.r-ch { border-color: var(--ch); }
.tile.off { border-color: var(--line); }
.tile.swap { box-shadow: 0 0 0 3px var(--warn); }
.tile.missing { opacity: .35; }
.tile .tag {
  position: absolute; top: 4px; right: 4px; font-size: 10px; font-weight: 800; padding: 1px 5px;
  border-radius: 6px; background: var(--accent); color: #1b1300; z-index: 1;
}

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
.opts label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.opts label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); }

.deck { margin-bottom: 16px; }
.deck-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.deck-head h3 { margin: 0; font-size: 18px; }
.score { background: var(--accent); color: #1b1300; font-weight: 800; border-radius: 8px; padding: 2px 8px; font-size: 14px; }
.stats { color: var(--muted); font-size: 14px; }
.stats b { color: var(--text); }
.deck .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 700px) { .deck .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.checks { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 6px; }
.ck { font-size: 12.5px; border-radius: 999px; padding: 3px 9px; border: 1px solid var(--line); }
.ck.ok { color: var(--ok); border-color: #41d17a55; }
.ck.warn { color: var(--warn); border-color: #f5b83d55; }
.ck.bad { color: var(--bad); border-color: #ff5d6c55; }
.notes { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; padding-left: 18px; }
.notes li { margin: 2px 0; }
.deck-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.empty { color: var(--muted); text-align: center; padding: 40px 10px; }
.hint { background: #4aa3ff14; border: 1px solid #4aa3ff44; border-radius: 10px; padding: 10px 12px; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.progress { height: 6px; background: var(--panel2); border-radius: 3px; overflow: hidden; margin: 10px 0; display: none; }
.progress div { height: 100%; width: 0; background: var(--accent); transition: width .1s; }
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--panel2);
  border: 1px solid var(--line); padding: 10px 16px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.toast.show { opacity: 1; }

/* Dil bağlantısı, rehber bağlantısı ve alt bilgi */
h1 .langlink { font-size: 14px; font-weight: 600; color: var(--accent2); text-decoration: none; margin-left: 10px; vertical-align: middle; }
.navlink { margin-left: auto; align-self: center; color: var(--accent2); font-weight: 600; text-decoration: none; padding: 10px 4px; }
footer.site { max-width: 1200px; margin: 24px auto 0; padding: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
footer.site a { color: var(--accent2); }
