/* Corfit içerik paneli — Corfit web ürün dili: Onest, primary #FF383B yalnız vurgu, düz yüzey + ince kenar, gölge yok,
   kart 20 px köşe, düğme/rozet/sekme kapsül. Koyu tema Tailwind Neutral (#0A0A0A sayfa · #171717 kart · #262626 iç · #404040 kenar). */
@font-face { font-family: "Onest"; src: url("/assets/brand/Onest-Variable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
:root {
  --red: #FF383B; --red-ink: #E02F32; --red-soft: #FFECEC;
  --page: #FAFAFA; --card: #FFFFFF; --inner: #F4F4F5; --line: #E8E8E8; --line-2: #D4D4D4;
  --ink: #0A0A0A; --ink-2: #404040; --muted: #737373; --faint: #A3A3A3;
  --ok: #15803D; --ok-bg: #DCFCE7; --warn: #B45309; --warn-bg: #FEF3C7; --info: #1D4ED8; --info-bg: #E0EAFF; --orange: #C2410C; --orange-bg: #FFEDD5; --err: #B91C1C; --err-bg: #FEE2E2;
  --r: 20px; --r-in: 14px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --page: #0A0A0A; --card: #171717; --inner: #262626; --line: #262626; --line-2: #404040;
  --ink: #FAFAFA; --ink-2: #D4D4D4; --muted: #A3A3A3; --faint: #737373; --red-soft: #3A1415;
  --ok: #4ADE80; --ok-bg: #0F2E1C; --warn: #FBBF24; --warn-bg: #33270A; --info: #93B4FF; --info-bg: #15213D; --orange: #FDBA74; --orange-bg: #3A1F0B; --err: #FCA5A5; --err-bg: #3B1212;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--ink); font: 500 14px/1.45 "Onest", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.i { width: 18px; height: 18px; flex: none; vertical-align: -4px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i.sm { width: 15px; height: 15px; vertical-align: -3px; }
.logo-dark { display: none; } :root[data-theme="dark"] .logo-dark { display: inline; } :root[data-theme="dark"] .logo-light { display: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* düğmeler ve rozetler: kapsül */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-ink); border-color: var(--red-ink); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; } :root[data-theme="dark"] .btn.ok { color: #0A0A0A; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--inner); color: var(--ink-2); white-space: nowrap; }
.chip.inceleme { background: var(--inner); color: var(--ink-2); }
.chip.onaylandi, .chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.yayin_onayli, .chip.planlandi, .chip.sirada, .chip.isleniyor, .chip.info { background: var(--info-bg); color: var(--info); }
.chip.yayimlandi { background: var(--ok); color: #fff; } :root[data-theme="dark"] .chip.yayimlandi { color: #0A0A0A; }
.chip.revize, .chip.gecikti, .chip.gecmis { background: var(--orange-bg); color: var(--orange); }
.chip.dogrulama, .chip.uretilecek, .chip.bekliyor, .chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.hata { background: var(--err-bg); color: var(--err); }
.chip.red { background: var(--red); color: #fff; }

/* üst çubuk */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 12px 24px; background: var(--page); border-bottom: 1px solid var(--line); }
.top .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.top .brand img { height: 22px; width: auto; }
.top .brand span { color: var(--muted); font-weight: 600; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--inner); overflow-x: auto; }
.tabs button { height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

main.app { max-width: 1440px; margin: 0 auto; padding: 24px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 24px; } h2 { font-size: 18px; } h3 { font-size: 15px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.pad { padding: 18px 20px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.spacer { flex: 1; }
.sec-head { display: flex; align-items: center; gap: 12px; margin: 8px 0 14px; flex-wrap: wrap; }

/* bugün / sıradaki */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-bottom: 22px; }
.hero .card { display: flex; gap: 16px; padding: 14px; cursor: pointer; text-align: left; }
.hero .label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.hero .t { font-size: 17px; font-weight: 600; margin: 4px 0 8px; }
.thumb { width: 96px; aspect-ratio: 4 / 5; border-radius: var(--r-in); object-fit: cover; background: var(--inner); flex: none; border: 1px solid var(--line); }

/* takvim */
.month { margin-bottom: 26px; }
.grid7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.dow { font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 4px 2px; }
.day { min-height: 210px; display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); text-align: left; cursor: pointer; }
.day.empty { background: transparent; border-style: dashed; cursor: default; }
.day.today { border-color: var(--red); }
.day:hover:not(.empty) { border-color: var(--line-2); }
.day .d { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.day.today .d b { color: var(--red); }
.day img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; background: var(--inner); }
.day .tt { font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.day .meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.fmt { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-in); background: var(--warn-bg); color: var(--warn); margin-bottom: 16px; }
.banner.info { background: var(--info-bg); color: var(--info); }

/* ayrıntı çekmecesi */
.drawer-bg { position: fixed; inset: 0; background: rgba(10, 10, 10, .42); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(980px, 100%); background: var(--page); z-index: 41; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.drawer header { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.drawer .body { overflow: auto; padding: 20px; display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 20px; }
@media (max-width: 860px) { .drawer .body { grid-template-columns: 1fr; } }
.viewer { position: sticky; top: 0; align-self: start; }
.viewer video, .viewer .slide img, .viewer .post img { width: 100%; display: block; border-radius: 16px; background: #000; border: 1px solid var(--line); }
.viewer .post img, .viewer .slide img { background: var(--inner); cursor: zoom-in; }
.slider { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.dots { display: flex; gap: 6px; } .dots span { width: 8px; height: 8px; border-radius: 999px; background: var(--line-2); } .dots span.on { background: var(--red); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .field select, .login input { height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); font-weight: 500; color: var(--ink); }
.field textarea { height: auto; min-height: 180px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checks { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.checks li .ok { color: var(--ok); } .checks li .no { color: var(--faint); }
details { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 14px 18px; }
details summary { cursor: pointer; font-weight: 600; }
details dl { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; margin: 12px 0 0; font-size: 13px; }
details dt { color: var(--muted); }
.files a { display: block; font-size: 13px; color: var(--ink-2); word-break: break-all; }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(10, 10, 10, .9); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }

/* profil önizlemesi */
.ig { max-width: 470px; padding: 0 0 12px; overflow: hidden; }
.ig .head { display: flex; align-items: center; gap: 14px; padding: 16px; }
.ig .head img { width: 64px; height: 64px; border-radius: 999px; border: 1px solid var(--line); }
.ig .hls { display: flex; gap: 14px; padding: 0 16px 14px; overflow-x: auto; }
.ig .hls div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-2); }
.ig .hls img { width: 58px; height: 58px; border-radius: 999px; object-fit: cover; border: 1px solid var(--line-2); }
.ig .g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.ig .g button { position: relative; padding: 0; border: 0; background: var(--inner); aspect-ratio: 4 / 5; cursor: pointer; }
.ig.crop34 .g button { aspect-ratio: 3 / 4; }
.ig .g img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig .g .lab { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(10, 10, 10, .7); padding: 2px 8px; border-radius: 999px; }
.ig .g .kind { position: absolute; right: 6px; top: 6px; color: #fff; }

/* liste/tablolar */
.list { display: grid; gap: 10px; }
.item { display: flex; gap: 14px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.item .thumb { width: 64px; }
.item .grow { flex: 1; min-width: 0; }
.item .why { font-size: 13px; color: var(--ink-2); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.story img, .story video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; background: var(--inner); border: 1px solid var(--line); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 70; background: var(--ink); color: var(--page); padding: 10px 18px; border-radius: 999px; font-weight: 600; }
.toast.err { background: var(--err); color: #fff; }

/* giriş */
body.login { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.login-box { width: min(380px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.login-box img { height: 30px; width: auto; align-self: flex-start; }
.login-box form { display: flex; flex-direction: column; gap: 12px; }
.login-box label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.err { color: var(--err); min-height: 1em; margin: 0; font-size: 13px; }
@media (max-width: 760px) { .top { padding: 10px 14px; flex-wrap: wrap; } main.app { padding: 16px; } .grid7 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dow, .day.empty { display: none; } }

/* ayrıntı çekmecesi: dar ekranda görüntüleyici ekranı kaplamasın, yatay taşma olmasın */
.drawer .body > * { min-width: 0; }
.drawer .body { overflow-x: hidden; }
.drawer header h2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer header .btn { flex: none; }
.viewer video, .viewer .slide img, .viewer .post img { max-height: 72vh; width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; }
@media (max-width: 860px) { .viewer { position: static; } .viewer video, .viewer .slide img, .viewer .post img { max-height: 56vh; } }
.day.empty { min-height: 0; padding: 6px 8px; border-color: transparent; }
.day.empty .d { color: var(--faint); }
