/* ============================================================
   Cohero Media OS — panel teması (marka: navy + flow gradyanı)
   ============================================================ */
:root {
  --ink: #0F1A3D;
  --ink-2: #1B274F;
  --violet: #8B23BE;
  --magenta: #D81E77;
  --orange: #F76B04;
  --teal: #12A79C;
  --cloud: #FBFAFD;
  --mist: #F3F0F8;
  --line: #E6E1F0;
  --slate: #5A5570;
  --slate-2: #837E96;
  --flow: linear-gradient(90deg, var(--violet), var(--magenta) 34%, var(--orange) 68%, var(--teal));
  --shadow-sm: 0 1px 2px rgba(15,26,61,.05), 0 2px 8px rgba(15,26,61,.04);
  --shadow-md: 0 4px 12px rgba(15,26,61,.06), 0 12px 32px rgba(15,26,61,.07);
  --radius: 14px;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--mist); color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 14px; line-height: 1.55;
}
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: var(--mist); padding: 2px 6px; border-radius: 6px; font-size: 12px; }

/* ---------- İskelet: sol menü + ana alan ---------- */
.shell { display: flex; min-height: 100vh; }
.side {
  width: 232px; flex: none; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.side-brand { display: flex; align-items: center; gap: 8px; padding: 18px 16px 14px; }
.side-logo { height: 30px; width: auto; }
.side-os {
  font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #fff;
  background: var(--flow); padding: 2px 7px; border-radius: 999px;
}
.side-nav { flex: 1; padding: 8px 10px; overflow-y: auto; }
.nav-sect {
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.42); padding: 16px 10px 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
  color: rgba(255,255,255,.78); font-weight: 600; font-size: 13.5px; margin-bottom: 2px;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.nav-item.on { background: rgba(255,255,255,.12); color: #fff; }
.nav-ico { width: 18px; text-align: center; opacity: .9; }
.side-user { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.1); }
.side-user-name { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.btn-link {
  background: none; border: 0; color: rgba(255,255,255,.6); font: inherit;
  font-size: 12.5px; cursor: pointer; padding: 0;
}
.btn-link:hover { color: #fff; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 56px; background: #fff; display: flex; align-items: center; gap: 12px;
  padding: 0 22px; border-bottom: 1px solid var(--line);
}
.topbar-title { font-size: 17px; font-weight: 800; margin: 0; }
.flowline { height: 3px; background: var(--flow); }
.burger { display: none; background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--ink); }
.content { padding: 22px; max-width: 1200px; width: 100%; }

/* ---------- Kartlar ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.card-label { font-size: 12.5px; font-weight: 600; color: var(--slate); }
.card-num { font-size: 30px; font-weight: 800; margin-top: 2px; }
.card-link { font-size: 12.5px; font-weight: 700; }

.panelbox { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.box-title { font-size: 15px; font-weight: 800; margin: 0 0 10px; }
.plainlist { margin: 0 0 14px; padding-left: 18px; }
.plainlist li { margin-bottom: 4px; }
.muted { color: var(--slate-2); }

/* ---------- Butonlar & formlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border: 0; border-radius: 999px; font-weight: 700; font-size: 14px;
  cursor: pointer; color: #fff; background: var(--ink); font-family: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-flow { background: var(--flow); background-size: 140% 100%; }
.btn-block { width: 100%; }
.fld-label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 4px; }
.fld {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 14px; background: #fff;
}
.fld:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,35,190,.12); }

/* ---------- Çipler (ton: DB'den) ---------- */
.chip {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.chip-go   { background: #e6f7ef; color: #0f7a45; }
.chip-wait { background: #fff4dd; color: #8a5a00; }
.chip-neg  { background: #fde8e8; color: #b91c1c; }
.chip-off  { background: var(--mist); color: var(--slate-2); }

/* ---------- Kalıcı bilgi bandı (flash DEĞİL — otomatik kaybolmaz) ---------- */
.band-info {
  padding: 11px 14px; border-radius: 10px; font-size: 13px; font-weight: 600;
  background: #eef7f1; color: #0f5c38; border: 1px solid #cdeeda; margin-bottom: 16px;
  line-height: 1.55;
}

/* ---------- Flash ---------- */
.flash { padding: 11px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; margin-bottom: 14px; }
.flash-ok  { background: #e6f7ef; color: #0f7a45; }
.flash-err { background: #fde8e8; color: #b91c1c; }

/* ---------- Boş durum ---------- */
.empty { text-align: center; padding: 46px 16px; color: var(--slate); }
.empty-title { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.empty-sub { font-size: 13.5px; max-width: 44ch; margin: 0 auto; }

/* ---------- Giriş sayfası ---------- */
.login-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--mist); padding: 20px;
}
.login-card {
  width: 100%; max-width: 380px; background: #fff; border-radius: 18px;
  padding: 32px 30px; box-shadow: var(--shadow-md);
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, #8B23BE, #D81E77, #F76B04, #12A79C) 1;
}
.login-logo { height: 40px; width: auto; display: block; margin: 0 auto 6px; }
.login-os { text-align: center; font-size: 13px; color: var(--slate); margin-bottom: 18px; }
.login-os b { color: var(--ink); }

/* ---------- Tablolar (modüller için hazır) ---------- */
.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.tbl th {
  text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--slate-2); padding: 10px 14px;
  border-bottom: 1px solid var(--line); background: #fff;
}
.tbl td { padding: 11px 14px; border-bottom: 1px solid #F1EEF7; font-size: 13.5px; vertical-align: middle; }
.tbl tr:hover td { background: #FBFAFD; }
.tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Kanban ---------- */
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 14px; align-items: flex-start; }
.kcol { flex: 0 0 230px; background: #ECE8F4; border-radius: var(--radius); padding: 10px; }
.kcol-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; padding: 0 2px; }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; box-shadow: var(--shadow-sm); }
.kcard-title { font-weight: 700; font-size: 13px; line-height: 1.35; }
.kcard-meta { font-size: 11.5px; color: var(--slate-2); margin-top: 3px; }
.kcard-links { display: flex; gap: 10px; margin-top: 6px; font-size: 11.5px; font-weight: 700; }
.kcard-actions { display: flex; gap: 8px; align-items: center; margin-top: 8px; }

/* ---------- Yayın takvimi ---------- */
.calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-2); padding: 2px 6px; }
.cal-cell { background: #fff; border: 1px solid var(--line); border-radius: 10px; min-height: 92px; padding: 6px; }
.cal-off { background: transparent; border-color: transparent; }
.cal-today { border-color: var(--violet); box-shadow: 0 0 0 2px rgba(139,35,190,.15); }
.cal-daynum { font-size: 11.5px; font-weight: 700; color: var(--slate-2); margin-bottom: 4px; }
.cal-item { display: block; font-size: 11px; font-weight: 600; border-radius: 6px; padding: 2px 6px; margin-bottom: 3px;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.cal-item:hover { text-decoration: none; filter: brightness(.95); }
.cal-shoot { background: var(--ink); color: #fff; }
.tone-go   { background: #e6f7ef; color: #0f7a45; }
.tone-wait { background: #fff4dd; color: #8a5a00; }
.tone-neg  { background: #fde8e8; color: #b91c1c; }
.tone-off  { background: var(--mist); color: var(--slate-2); }
@media (max-width: 860px) { .calgrid { grid-template-columns: repeat(2, 1fr); } .cal-dow { display: none; } .cal-off { display: none; } }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .side { position: fixed; left: -240px; z-index: 50; transition: left .22s ease; }
  .side.open { left: 0; box-shadow: 0 0 0 100vmax rgba(15,26,61,.35); }
  .burger { display: inline-flex; }
  .content { padding: 14px; }
}
