/* Yönetim paneli */
:root { --navy: #0b1b33; --red: #c8102e; --red-dark: #a50d26; --on-red: #fff; --line: #e2e5ea; --muted: #6b7280; --bg: #f4f5f7; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: #111827; background: var(--bg); }
a { color: var(--navy); }
.muted { color: var(--muted); }
small { color: var(--muted); font-weight: 400; }
code { background: #eef0f3; padding: 1px 5px; border-radius: 3px; }

.adm-top { background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; min-height: 56px; flex-wrap: wrap; gap: 10px; border-bottom: 3px solid var(--red); }
.adm-top .brand { color: #fff; font-weight: 900; text-transform: uppercase; text-decoration: none; letter-spacing: -.01em; font-size: 18px; }
.adm-top .brand small { color: #9fb0c8; font-weight: 600; text-transform: none; margin-left: 6px; font-size: 13px; }
.adm-top nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.adm-top nav a, .adm-top .linkbtn { color: #dbe3ef; text-decoration: none; font-size: 14px; }
.adm-top nav a:hover { color: #fff; }
.adm-main { max-width: 1180px; margin: 0 auto; padding: 28px 24px 60px; }
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; }
.page-head h1 { margin: 0; font-size: 26px; }
h2.mt { margin-top: 36px; }

.btn { display: inline-block; background: var(--red); color: var(--on-red) !important; border: 0; padding: 10px 18px; border-radius: 4px; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--red-dark); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.ghost { background: #fff; color: var(--navy) !important; border: 1px solid #cfd4dc; }
.btn.full { width: 100%; margin-top: 6px; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--navy); }
.linkbtn.danger { color: var(--red); }
form.inline { display: inline; }

.alert { padding: 11px 14px; border-radius: 4px; margin-bottom: 16px; font-size: 14px; }
.alert.ok { background: #e7f6ec; border: 1px solid #a8dcb9; color: #14532d; }
.alert.err { background: #fdecee; border: 1px solid #f3b4bd; color: #7f1d1d; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.stats div { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 14px 18px; display: flex; flex-direction: column; }
.stats strong { font-size: 26px; }
.stats span { color: var(--muted); font-size: 13px; }

.filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
input, select, textarea { font: inherit; padding: 9px 11px; border: 1px solid #cfd4dc; border-radius: 4px; background: #fff; width: 100%; }
.filters input, .filters select { width: auto; min-width: 160px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #93a8c8; border-color: #93a8c8; }
textarea.mono { font: 14.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
input.num { width: 70px; }

.tbl { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #fafbfc; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14px; }
.tbl.narrow { max-width: 860px; margin-bottom: 14px; }
.t-img { width: 84px; }
.t-img img, .t-img .noimg { width: 72px; height: 44px; object-fit: cover; border-radius: 3px; }
.t-cover { width: 60px; }
.t-cover img, .t-cover .nocover { width: 48px; height: 64px; object-fit: cover; border-radius: 2px; }
.t-cover .nocover { background: var(--navy); color: #fff; font-size: 7px; padding: 4px; overflow: hidden; display: flex; flex-direction: column; }
.t-cover .nocover strong { font-size: 12px; }
.t-title a { font-weight: 700; text-decoration: none; }
.noimg { background: linear-gradient(135deg, #0b1b33, #24426e); color: rgba(255,255,255,.5); display: flex; align-items: center; justify-content: center; }
.noimg svg { width: 20px; height: 20px; }
.nowrap { white-space: nowrap; }
.actions { white-space: nowrap; }
.actions a, .actions .linkbtn { margin-right: 10px; font-size: 13.5px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.badge.pub { background: #e7f6ec; color: #14532d; }
.badge.draft { background: #eef0f3; color: #4b5563; }
.badge.sched { background: #fff4d6; color: #7a5300; }
.badge.star { background: #fdecee; color: var(--red); margin-left: 6px; }
.badge.lang { background: #e8eef8; color: var(--navy); }

.pager { display: flex; gap: 6px; margin-top: 18px; }
.pager a, .pager span { padding: 6px 11px; background: #fff; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; font-size: 14px; }
.pager .cur { background: var(--navy); color: #fff; }

/* Editör */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.editor label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.editor label input, .editor label select, .editor label textarea { margin-top: 5px; }
.editor label.big input { font-size: 20px; font-weight: 700; padding: 12px; }
.editor label.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.editor label.check input { width: auto; margin: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.toolbar { display: flex; gap: 4px; flex-wrap: wrap; background: #fff; border: 1px solid #cfd4dc; border-bottom: 0; border-radius: 4px 4px 0 0; padding: 6px; }
.toolbar button { border: 1px solid var(--line); background: #fafbfc; border-radius: 3px; padding: 5px 10px; cursor: pointer; font-size: 13px; }
.toolbar button:hover { background: #eef0f3; }
.toolbar + textarea { border-radius: 0 0 4px 4px; margin-top: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 16px; margin-bottom: 16px; }
.panel h3 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.panel input[type=file] { padding: 6px; font-size: 13px; }
.preview { width: 100%; border-radius: 4px; margin-bottom: 8px; }
.preview.cover { width: 60%; }
.narrow-form { max-width: 460px; background: #fff; padding: 22px; border: 1px solid var(--line); border-radius: 6px; }
.narrow-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.narrow-form input { margin-top: 5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* Giriş */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #0b1b33, #1d3a66); padding: 20px; }
.login-box { background: #fff; width: 100%; max-width: 380px; padding: 32px; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,.3); border-top: 4px solid var(--red); }
.login-box.wide { max-width: 520px; }
.login-box h1 { margin: 0 0 4px; font-size: 22px; text-transform: uppercase; font-weight: 900; color: var(--navy); }
.login-box label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0; }
.login-box label input { margin-top: 5px; }
.login-box label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.login-box label.check input { width: auto; margin-top: 4px; }
.login-box .btn { width: 100%; padding: 12px; margin-top: 6px; }
.back { text-align: center; margin: 18px 0 0; font-size: 14px; }

@media (max-width: 860px) {
  .editor { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .tbl { display: block; overflow-x: auto; }
}

/* Reklamlar */
.slot-box { background: #fff; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 18px; }
.slot-box > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.slot-box .tbl { border: 0; border-radius: 0; }
.empty-slot { padding: 6px 16px; font-size: 14px; }
.t-ad { width: 130px; }
.t-ad img { max-width: 120px; max-height: 50px; object-fit: contain; border: 1px solid var(--line); }
.code-tag { font: 12px ui-monospace, monospace; background: #eef0f3; padding: 3px 7px; border-radius: 3px; }
.seg { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.seg label { display: flex !important; align-items: center; gap: 8px; background: #fff; border: 1px solid #cfd4dc; border-radius: 4px; padding: 10px 14px; margin: 0 !important; cursor: pointer; }
.seg input { width: auto; margin: 0 !important; }
.hint { font-size: 13px; color: var(--muted); margin: -6px 0 16px; }
.ad-prev { max-height: 120px; width: auto; max-width: 100%; display: block; margin: 6px 0; border: 1px solid var(--line); }
.check { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; font-size: 14px; }
.check input { width: auto; }
.small { font-size: 13px; }

/* Görünüm */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.theme-card { background: #fff; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; }
.theme-card.on { border-color: #16a34a; box-shadow: 0 0 0 3px #dcfce7; }
.theme-demo { border-bottom: 1px solid var(--line); }
.theme-foot { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.swatches { display: flex; gap: 4px; }
.swatches i { width: 26px; height: 18px; border-radius: 3px; border: 1px solid rgba(0,0,0,.1); }
.theme-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Çeviri ve görsel ekleme */
.lang-head { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .05em; }
.lang-pill { display: inline-block; background: var(--navy); color: #fff; padding: 2px 9px; border-radius: 10px; font-size: 12px; text-transform: none; letter-spacing: 0; margin-right: 6px; }
.lang-pill.alt { background: var(--red); color: var(--on-red); }
.trans-box { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 6px; padding: 16px; margin-top: 24px; }
.trans-box > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.trans-box .btn:disabled { opacity: .5; cursor: not-allowed; }
.tb-img { font-weight: 700; background: #fff7ed !important; border-color: #fdba74 !important; }
.tb-status { font-size: 13px; color: var(--muted); align-self: center; margin-left: 6px; }
.badge.lang.alt { background: #fff1e6; color: #9a3412; }
.wide-form { max-width: 640px; }
.inline-block { display: inline-block; margin: 14px 0; }
.mt { margin-top: 28px; }
.settings .panel { max-width: 760px; }
.settings .panel p, .settings ol { font-size: 14px; }
.settings label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 6px; }
.settings label input { margin-top: 5px; }
.settings label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.settings label.check input { width: auto; margin-top: 3px; }
.narrow-form select, .narrow-form textarea { margin-top: 5px; }
