/* LimaTalk — İngilizce Seviye | ortak stil (ziraat.limatalk.com paleti) */
:root {
  --bg: #f4f5f7;
  --bg-soft: #ffffff;
  --bg-lift: #f7f8fa;
  --border: #e1e4e9;
  --text: #1b1d21;
  --text-dim: #6b7280;
  --accent: #e30613;
  --accent-dark: #c20510;
  --accent-2: #2e9e4f;
  --danger: #d92d20;
  --warn: #d98000;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; border-radius: 999px;
  padding: .7rem 1.4rem; transition: .15s ease; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-lift); text-decoration: none; }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--border); }
.btn-danger:hover { background: #fdeceb; text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-lg { padding: .85rem 1.8rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Form ---------- */
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; color: var(--text); }
.input {
  width: 100%; font: inherit; color: var(--text);
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 10px; padding: .7rem .85rem; transition: .15s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(227,6,19,.12); }
.hint { font-size: .8rem; color: var(--text-dim); margin-top: .35rem; }
.error-msg { color: var(--danger); font-size: .88rem; margin-top: .6rem; min-height: 1.1em; }

/* ---------- Kart ---------- */
.card {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem;
}

/* ---------- Giriş (split) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.split-brand {
  background: var(--accent);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 22px);
  color: #fff; display: flex; flex-direction: column; justify-content: center;
  padding: 3rem 4rem;
}
.brand-logo { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 2.2rem; }
.brand-logo .dot { color: #ffd1d1; }
.split-brand h1 { font-size: 2.1rem; font-weight: 800; line-height: 1.15; margin: 0 0 1rem; }
.split-brand p { opacity: .92; font-size: 1.02rem; margin: 0; }
.split-form { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.split-form .card { width: 100%; max-width: 560px; }
.split-form h2 { margin: 0 0 .25rem; font-size: 1.6rem; }
.split-form .sub { color: var(--text-dim); margin: 0 0 1.5rem; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split-brand { padding: 2.5rem 1.5rem; }
}

/* ---------- Üst bar ---------- */
.topbar {
  background: var(--bg-soft); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.5rem;
}
.topbar .logo { font-weight: 800; font-size: 1.25rem; color: var(--accent); display: inline-flex; align-items: center; }
.topbar .logo span { color: var(--text); font-weight: 700; }
.topbar .brand-img { height: 35px; width: auto; margin-right: .6rem; }
.login-logo { display: block; height: 90px; width: auto; max-width: 100%; margin: 0 auto 1.2rem; }
.topbar .user { color: var(--text-dim); font-size: .9rem; display: flex; align-items: center; gap: 1rem; }

.container { max-width: 1040px; margin: 0 auto; padding: 1.8rem 1.5rem; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; gap: 1rem; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 1.5rem; }

/* ---------- Tablo ---------- */
.table { width: 100%; border-collapse: collapse; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--border); font-size: .92rem; }
.table th { background: var(--bg-lift); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--bg-lift); }
.table .row-link { cursor: pointer; }

/* ---------- Rozetler ---------- */
.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; }
.badge-pending { background: #fff4e5; color: var(--warn); }
.badge-progress { background: #e8f0fe; color: #1a56db; }
.badge-completed { background: #e7f6ec; color: var(--accent-2); }

.level-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.4rem; height: 2.4rem; padding: 0 .5rem;
  border-radius: 10px; font-weight: 800; font-size: 1rem; color: #fff;
}
.lv-A1, .lv-A2 { background: #9aa0a6; }
.lv-B1 { background: #2e9e4f; }
.lv-B2 { background: #1a7a3a; }
.lv-C1 { background: var(--accent); }
.lv-C2 { background: var(--accent-dark); }
.lv-none { background: #cfd3d9; }

/* ---------- Yardımcı ---------- */
.muted { color: var(--text-dim); }
.empty { text-align: center; color: var(--text-dim); padding: 3rem 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(16,24,40,.5); display: none; align-items: center; justify-content: center; padding: 1rem; z-index: 50; }
.modal-backdrop.open { display: flex; }
.modal { background: var(--bg-soft); border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-width: 440px; padding: 1.5rem; }
.modal h3 { margin: 0 0 1rem; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); background: var(--text); color: #fff; padding: .7rem 1.1rem; border-radius: 10px; font-size: .9rem; opacity: 0; transition: .25s; pointer-events: none; z-index: 60; }
.toast.show { opacity: 1; }

/* ---------- Puan çubukları ---------- */
.score { margin-bottom: .6rem; }
.score .lab { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: .2rem; }
.score .bar { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.score .bar > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
