/* =========================================================
   YMM HAZIRLIK PLATFORMU — STİL
   Tema renkleri app.js içindeki temaUygula() ile değişir.
   ========================================================= */

:root {
  --bg: #f1f5f9;
  --panel: #ffffff;
  --menu-bg: #ffffff;
  --border: #e2e8f0;
  --cizgi: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --brand: #1e3a8a;
  --brand-light: #2563eb;
  --ok: #10b981;
  --warn: #f59e0b;
  --danger: #dc2626;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15,23,42,.08), 0 8px 24px rgba(15,23,42,.04);
  --font: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  --govde-boyut: 15px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: var(--govde-boyut);
}

/* ---------- GİRİŞ EKRANI ---------- */
#girisEkrani {
  display: none; min-height: 100vh; align-items: center; justify-content: center;
  padding: 20px; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
}
.giris-kart {
  background: #fff; border-radius: 18px; padding: 34px; width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.giris-logo { font-size: 44px; text-align: center; }
.giris-kart h1 { font-size: 22px; text-align: center; margin-top: 8px; }
.giris-kart > p { text-align: center; }
.giris-kart label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.giris-kart input {
  width: 100%; padding: 10px 13px; border: 1px solid var(--border);
  border-radius: 9px; font-family: var(--font); font-size: 14.5px;
}
.giris-kart input:focus { outline: 2px solid var(--brand-light); border-color: var(--brand-light); }

.sekme { display: flex; gap: 6px; background: #f1f5f9; padding: 4px; border-radius: 10px; }
.sekme-btn {
  flex: 1; padding: 9px; border: 0; background: transparent; border-radius: 7px;
  font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.sekme-btn.aktif { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

.yonetim-nav {
  display: flex; flex-wrap: wrap; gap: 4px; background: #f1f5f9; padding: 5px;
  border-radius: 10px;
}
.yonetim-nav .sekme-btn { flex: 0 0 auto; padding: 8px 12px; font-size: 13px; }

.hata { color: var(--danger); font-size: 13px; margin-top: 8px; min-height: 18px; }
.giris-uyari {
  margin-top: 22px; padding: 12px; background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 9px; font-size: 12px; color: #92400e; line-height: 1.55;
}
.giris-uyari strong { display: block; margin-bottom: 3px; }

/* ---------- YERLEŞİM ---------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 260px; background: var(--menu-bg); color: var(--text);
  display: flex; flex-direction: column;
  position: fixed; height: 100vh; z-index: 50; transition: transform .22s;
  border-right: 1px solid var(--border);
}
body.menu-gizli .sidebar { transform: translateX(-100%); }
body.menu-gizli .main { margin-left: 0; }

.sidebar-brand { padding: 20px 20px 18px; border-bottom: 1px solid var(--border); margin-bottom: 14px; flex-shrink: 0; }
.brand-lockup { display: flex; align-items: center; gap: 11px; }
.brand-ikon {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; background: var(--brand);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 19px; box-shadow: 0 3px 8px rgba(15,23,42,.18);
}
.sidebar-brand h1 { font-size: 16px; font-weight: 800; color: var(--brand); letter-spacing: -.2px; line-height: 1.2; }
.sidebar-brand span { display: block; font-size: 12px; color: var(--muted); margin-top: 10px; }

.sidebar-nav { flex: 1; overflow-y: auto; min-height: 0; padding-top: 6px; }

.sidebar-bottom { flex-shrink: 0; border-top: 1px solid var(--border); }

.kullanici-kutu {
  margin: 14px 14px 0; padding: 11px 13px; background: var(--bg);
  border-radius: 10px; font-size: 13px;
}
.kullanici-kutu strong { display: block; color: var(--text); }
.kullanici-kutu span { font-size: 11px; color: var(--muted); }

.nav-item {
  display: flex; align-items: center; gap: 10px; margin: 2px 12px; padding: 10px 12px; cursor: pointer;
  font-size: 14px; color: var(--muted); border-radius: 9px; transition: .15s;
}
.nav-item:hover { background: var(--bg); color: var(--text); }
.nav-item.active { background: var(--bg); color: var(--brand); font-weight: 600; }
.nav-bolum-baslik { padding: 16px 20px 6px; margin-top: 8px; border-top: 1px solid var(--border);
  font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }

/* ---------- KENAR ÇUBUĞU AÇILIR PENCERE (flyout) — ör. Yönetim alt
   sekmeleri, ya da yönetimde bir öğeye eklenen özel alt menü. Üzerine
   gelince (hover) açılır. Panel, kenar çubuğunun kaydırma alanının DIŞINA,
   <body>'ye eklenmiş #navFlyoutHost'a JS ile taşınır (bkz. app.js:
   navFlyoutAc) — .sidebar-nav'ın overflow-y:auto'su olduğu için panel
   sidebar'ın içinde kalsaydı kırpılırdı. Tüm temalarda çalışır; macOS
   teması ek görsel cila ekler (bkz. macos-theme.css). */
.brand-logo-img { object-fit: contain; background: #fff; padding: 3px; }
.nav-flyout-baslik { justify-content: space-between; }
.nav-flyout-ok { margin-left: auto; font-size: 10px; color: var(--muted); }
.nav-flyout-host {
  display: none; position: fixed; min-width: 200px; max-width: min(320px, calc(100vw - 16px));
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15,23,42,.16); padding: 6px; z-index: 300;
}
.nav-flyout-host.acik { display: block; }
.nav-flyout-item {
  padding: 8px 11px; font-size: 13px; color: var(--muted);
  cursor: pointer; border-radius: 7px; transition: .12s;
  white-space: normal; word-break: break-word; overflow-wrap: anywhere;
}
.nav-flyout-item:hover { background: var(--bg); color: var(--text); }
.nav-flyout-item.active { background: var(--bg); color: var(--brand); font-weight: 600; }

.sidebar-footer {
  padding: 12px 20px 16px;
  font-size: 12px; color: var(--muted);
}

.main { flex: 1; margin-left: 260px; padding: 26px 30px 60px; max-width: 1500px; transition: margin .22s; }

/* ---------- TİPOGRAFİ ---------- */
.page-title { font-size: 26px; font-weight: 700; letter-spacing: -.5px; margin-bottom: 4px; }
.page-sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
h2.section { font-size: 17px; font-weight: 700; margin: 26px 0 13px; }
h3 { font-size: 15.5px; font-weight: 600; }

/* ---------- KARTLAR ---------- */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 15px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); }

.stat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 17px; }
.stat-label { font-size: 11.5px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .5px; font-weight: 600; }
.stat-value { font-size: 29px; font-weight: 700; letter-spacing: -1px; margin-top: 5px; }
.stat-note { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- İLERLEME ---------- */
.bar { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; margin-top: 9px; }
.bar > i { display: block; height: 100%; background: var(--brand-light); border-radius: 99px; transition: width .4s; }
.bar.ok > i { background: var(--ok); }
.bar.warn > i { background: var(--warn); }

/* ---------- DERS KARTI ---------- */
.course-card { cursor: pointer; transition: .18s; border-left: 4px solid var(--brand-light); }
.course-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(15,23,42,.13); }
.course-card.soluk { opacity: .58; }
.course-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.course-icon { font-size: 25px; }
.course-meta { display: flex; gap: 15px; font-size: 12.5px; color: var(--muted); margin-top: 11px; flex-wrap: wrap; }

/* ---------- ROZET ---------- */
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px;
  font-size: 11px; font-weight: 700; letter-spacing: .3px; }
.badge-A { background: #fee2e2; color: #b91c1c; }
.badge-B { background: #fef3c7; color: #b45309; }
.badge-C { background: #dbeafe; color: #1d4ed8; }
.badge-gray { background: #f1f5f9; color: #475569; }
.badge-ok { background: #d1fae5; color: #047857; }

/* ---------- TABLO ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 10px 12px; background: #f8fafc; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .4px; color: var(--muted); border-bottom: 1px solid var(--border); }
td { padding: 11px 12px; border-bottom: 1px solid var(--cizgi); vertical-align: top; }
tr:hover td { background: #f8fafc; }
tr.bugun td { background: #eff6ff; }

/* ---------- KONU SATIRI ---------- */
.topic-row { display: flex; align-items: center; gap: 13px; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--panel);
  margin-bottom: 8px; cursor: pointer; transition: .15s; }
.topic-row:hover { border-color: var(--brand-light); background: #f8fafc; }
.topic-row.tekrar-satir { border-left: 4px solid var(--danger); }
.topic-row.soluk { opacity: .58; cursor: default; }
.topic-row .grow { flex: 1; min-width: 0; }
.topic-pct { font-weight: 700; font-size: 15px; min-width: 46px; text-align: right; }

/* ---------- BİLGİ KARTLARI — tek seferde bir kart, 3B flip ---------- */
.bilgi-kart-sayac { font-weight: 700; font-size: 14px; color: var(--muted); margin-bottom: 10px; text-align: center; }
.bilgi-kart-tekli { perspective: 1400px; cursor: pointer; min-height: 260px; }
.bilgi-kart-inner { position: relative; width: 100%; height: 100%; min-height: 260px;
  transition: transform .55s cubic-bezier(.4,.15,.2,1); transform-style: preserve-3d; }
.bilgi-kart-tekli.cevrili .bilgi-kart-inner { transform: rotateY(180deg); }
.bilgi-kart-yuz { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel);
  box-shadow: 0 2px 10px rgba(15,23,42,.07); padding: 28px; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center; overflow-y: auto; }
.bilgi-kart-on p { margin-top: 10px; font-size: 17px; line-height: 1.6; }
.bilgi-kart-arka { transform: rotateY(180deg); background: #ecfdf5; }
.bilgi-kart-arka p { margin-top: 4px; }
@keyframes bilgiKartGecSag { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: translateX(0); } }
@keyframes bilgiKartGecSol { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: translateX(0); } }
.bilgi-kart-tekli.slayt-sag { animation: bilgiKartGecSag .28s ease; }
.bilgi-kart-tekli.slayt-sol { animation: bilgiKartGecSol .28s ease; }

.gorev { display: flex; align-items: center; gap: 12px; padding: 12px;
  border: 1px solid var(--border); border-radius: 9px; margin-bottom: 8px; }

/* ---------- BUTON ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px;
  border-radius: 8px; border: 1px solid var(--border); background: var(--panel);
  color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: var(--font); transition: .15s; }
.btn:hover { background: #f8fafc; border-color: #cbd5e1; }
.btn-primary { background: var(--brand-light); border-color: var(--brand-light); color: #fff; }
.btn-primary:hover { filter: brightness(.92); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-sm { padding: 6px 11px; font-size: 13px; }
.btn.genis { width: 100%; justify-content: center; }
.btn.tehlike { color: var(--danger); border-color: #fecaca; }
.btn.tehlike:hover { background: #fef2f2; }
.btn:disabled { opacity: .42; cursor: not-allowed; }
.ikon-btn { border: 0; background: transparent; cursor: pointer; font-size: 15px;
  color: var(--muted); padding: 2px 6px; border-radius: 5px; }
.ikon-btn:hover { background: var(--cizgi); color: var(--text); }

/* ---------- OKUYUCU ---------- */
.reader { display: grid; grid-template-columns: 65% 10px 1fr; gap: 0; align-items: start; }
.reader-main { background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; }
.reader-toolbar { display: flex; align-items: center; gap: 8px; padding: 11px 14px;
  border-bottom: 1px solid var(--border); background: #f8fafc; flex-wrap: wrap; }
.reader-frame { width: 100%; height: 74vh; border: 0; display: block; background: #475569; }
.page-input { width: 62px; padding: 6px 8px; border: 1px solid var(--border);
  border-radius: 7px; text-align: center; font-family: var(--font); font-size: 14px; }

.reader-pdf-alan { display: flex; height: 74vh; background: #475569; }
.pdf-thumb-rail { width: 110px; flex: 0 0 110px; overflow-y: auto; background: #334155;
  padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.pdf-thumb { cursor: pointer; border: 2px solid transparent; border-radius: 6px; padding: 3px;
  text-align: center; background: #1e293b; }
.pdf-thumb canvas { width: 100%; height: auto; display: block; border-radius: 3px; }
.pdf-thumb span { display: block; color: #cbd5e1; font-size: 11px; margin-top: 3px; }
.pdf-thumb:hover { border-color: var(--brand-light); }
.pdf-thumb.aktif { border-color: var(--brand-light); background: #0f172a; }
.pdf-canvas-wrap { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pdf-zoom-cubuk { display: flex; align-items: center; gap: 8px; padding: 6px 10px;
  background: #1e293b; border-bottom: 1px solid #334155; }
.pdf-zoom-cubuk .muted { color: #94a3b8; }
.pdf-canvas-kaydirma { flex: 1; overflow: auto; display: flex; justify-content: center;
  align-items: flex-start; padding: 16px; }
.pdf-canvas-kaydirma canvas { box-shadow: 0 2px 12px rgba(0,0,0,.35); background: #fff; height: fit-content; margin: auto; }

/* Tam ekran, #readerMain yerine #content'e uygulanır (bkz. tamEkran()) —
   çünkü sayfa değiştirmek her seferinde #content'in innerHTML'ini
   yeniden yazar; fullscreen edilen düğüm DOM'dan kopsaydı (ör.
   #readerMain'in kendisi) tarayıcı otomatik olarak tam ekrandan çıkardı.
   #content hiç yeniden oluşturulmadığı için tam ekran, sayfa/küçük resim
   gezinmesinde kesintisiz kalır. */
#content:fullscreen { background: #0f172a; }
#content:fullscreen .breadcrumb { display: none; }
#content:fullscreen .reader { height: 100vh; }
#content:fullscreen .reader-main { height: 100vh; border-radius: 0; border: 0;
  display: flex; flex-direction: column; }
#content:fullscreen .reader-pdf-alan,
#content:fullscreen .reader-frame { flex: 1; height: auto; min-height: 0; }

.ayirici { width: 10px; cursor: col-resize; background: transparent; align-self: stretch;
  position: relative; min-height: 300px; }
.ayirici::after { content: ""; position: absolute; left: 4px; top: 0; bottom: 0;
  width: 2px; background: var(--border); border-radius: 2px; transition: .15s; }
.ayirici:hover::after { background: var(--brand-light); width: 4px; left: 3px; }

/* ---------- SOHBET ---------- */
.chat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column; height: 80vh; position: sticky; top: 16px; }
.chat-head { padding: 12px 15px; border-bottom: 1px solid var(--border); background: #f8fafc;
  border-radius: var(--radius) var(--radius) 0 0; }
.chat-body { flex: 1; overflow-y: auto; padding: 13px; display: flex; flex-direction: column; gap: 10px; }
.msg { padding: 10px 13px; border-radius: 11px; font-size: 13.5px; max-width: 93%; white-space: pre-wrap; }
.msg.user { background: var(--brand-light); color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }
.msg.bot { background: #f1f5f9; color: var(--text); align-self: flex-start; border-bottom-left-radius: 3px; }
.msg .src { display: block; margin-top: 7px; font-size: 11.5px; color: var(--muted);
  border-top: 1px solid var(--border); padding-top: 6px; }
.chat-quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 9px 13px; border-top: 1px solid var(--border); }
.chip { padding: 5px 10px; border: 1px solid var(--border); border-radius: 99px;
  background: var(--panel); font-size: 12px; cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--brand-light); color: var(--brand-light); }
.chat-input { display: flex; gap: 8px; padding: 11px 13px; border-top: 1px solid var(--border); }
.chat-input input { flex: 1; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-family: var(--font); font-size: 14px; }
.chat-input input:focus { outline: 2px solid var(--brand-light); border-color: var(--brand-light); }

/* ---------- SINAV ---------- */
.secenek { display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px;
  border: 1.5px solid var(--border); border-radius: 10px; margin-bottom: 9px;
  cursor: pointer; transition: .13s; font-size: 14.5px; line-height: 1.55; }
.secenek:hover { border-color: var(--brand-light); background: #f8fafc; }
.secenek.secili { border-color: var(--brand-light); background: #eff6ff; }
.secenek.dogru { border-color: var(--ok); background: #ecfdf5; }
.secenek.yanlis { border-color: var(--danger); background: #fef2f2; }
.secenek-harf { flex-shrink: 0; width: 25px; height: 25px; border-radius: 50%;
  background: var(--cizgi); display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700; }
.secenek.secili .secenek-harf { background: var(--brand-light); color: #fff; }
.secenek.dogru .secenek-harf { background: var(--ok); color: #fff; }
.secenek.yanlis .secenek-harf { background: var(--danger); color: #fff; }

.soru-nokta { width: 27px; height: 27px; border-radius: 6px; border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px;
  cursor: pointer; background: var(--panel); transition: .13s; flex: 0 0 auto; }
.soru-nokta:hover { border-color: var(--brand-light); }
.soru-nokta.dolu { background: #dbeafe; border-color: #93c5fd; }
.soru-nokta.aktif { background: var(--brand-light); color: #fff; border-color: var(--brand-light); }
.soru-nokta-serit { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }

/* Önceki/Sonraki yan yana, ortada soru numarası */
.soru-nav-alt { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.soru-nav-alt .soru-nav-sayac { color: var(--muted); font-size: 14px; white-space: nowrap; }

.sonuc-kart { text-align: center; padding: 40px 24px; border-radius: 16px; margin-bottom: 22px; }
.sonuc-kart.basarili { background: linear-gradient(135deg, #d1fae5, #a7f3d0); border: 2px solid var(--ok); }
.sonuc-kart.basarisiz { background: linear-gradient(135deg, #fee2e2, #fecaca); border: 2px solid var(--danger); }
.sonuc-ikon { font-size: 52px; }
.sonuc-kart h1 { font-size: 24px; margin: 10px 0; }
.sonuc-puan { font-size: 62px; font-weight: 800; letter-spacing: -3px; line-height: 1; margin: 14px 0; }
.sonuc-mesaj { max-width: 520px; margin: 12px auto 0; font-size: 14px; }

.yanlis-kutu { padding: 10px 13px; background: #fef2f2; border-radius: 8px;
  font-size: 13.5px; color: #991b1b; }
.dogru-kutu { padding: 10px 13px; background: #f0fdf4; border-radius: 8px;
  font-size: 13.5px; color: #166534; }

/* ---------- AYARLAR ---------- */
.ayar-baslik { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.genis-input { width: 100%; max-width: 440px; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-family: var(--font); font-size: 14px; }
.genis-input:focus { outline: 2px solid var(--brand-light); border-color: var(--brand-light); }
.kaydirac { width: 100%; max-width: 440px; }

.tema-liste { display: flex; gap: 10px; flex-wrap: wrap; }
.tema-kutu { padding: 10px; border: 2px solid var(--border); border-radius: 10px;
  cursor: pointer; text-align: center; font-size: 12.5px; transition: .14s; min-width: 88px; }
.tema-kutu:hover { border-color: var(--brand-light); }
.tema-kutu.secili { border-color: var(--brand-light); background: #eff6ff; font-weight: 600; }
.tema-onizleme { display: flex; height: 22px; border-radius: 5px; overflow: hidden; margin-bottom: 6px; }
.tema-onizleme span { flex: 1; }
.font-kutu { min-width: 110px; }

.ozel-renk-izgara { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.ozel-renk-satir { display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 9px; cursor: pointer; }
.ozel-renk-satir input[type=color] {
  width: 34px; height: 34px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 8px;
  padding: 0; cursor: pointer; background: none;
}
.ozel-renk-satir span { font-size: 13px; }

.ders-secim { display: flex; align-items: center; gap: 11px; padding: 11px 13px;
  border: 1px solid var(--border); border-radius: 9px; margin-bottom: 7px;
  cursor: pointer; transition: .14s; }
.ders-secim:hover { border-color: var(--brand-light); }
.ders-secim.secili { border-color: var(--brand-light); background: #eff6ff; }
.ders-secim input { width: 17px; height: 17px; cursor: pointer; }
.ders-secim .grow { flex: 1; }

.saglayici-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.saglayici { padding: 13px; border: 2px solid var(--border); border-radius: 10px;
  cursor: pointer; transition: .14s; font-size: 13.5px; }
.saglayici:hover { border-color: var(--brand-light); }
.saglayici.secili { border-color: var(--brand-light); background: #eff6ff; }

.onay { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; }
.onay input { width: 16px; height: 16px; cursor: pointer; }

/* ---------- BİLDİRİM ---------- */
.notice { background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  padding: 12px 14px; border-radius: 9px; font-size: 13.5px; }
.notice.hata-notice { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.notice.basari-notice { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.notice.uyari-notice { background: #fffbeb; border-color: #fde68a; color: #92400e; }

.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .icon { font-size: 38px; margin-bottom: 10px; }

/* ---------- İLERLEME RAPORU — ders içi konu bloğu ---------- */
.rapor-ders-baslik { cursor: pointer; margin-bottom: 15px; user-select: none; }
.rapor-ders-toggle { display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--bg); color: var(--brand);
  font-size: 17px; font-weight: 700; flex-shrink: 0; line-height: 1; }
.rapor-konu { border: 1px solid var(--border); border-radius: 9px; padding: 12px 14px; margin-bottom: 8px; }
.rapor-konu-baslik { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.rapor-konu table { font-size: 13px; }

/* ---------- TAKVİM ---------- */
.takvim-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.takvim-hafta-gun { text-align: center; font-size: 11.5px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .3px; padding-bottom: 4px; }
.takvim-gun { min-height: 76px; border: 1px solid var(--border); border-radius: 8px;
  padding: 6px; cursor: pointer; transition: .15s; overflow: hidden; }
.takvim-gun:hover { border-color: var(--brand-light); }
.takvim-gun.bos { border-color: transparent; cursor: default; }
.takvim-gun.bugun { border-color: var(--brand-light); background: #eff6ff; }
.takvim-gun.secili { outline: 2px solid var(--brand); outline-offset: -2px; }
.takvim-gun-no { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.takvim-etiket { margin-top: 4px; font-size: 10.5px; color: #fff; padding: 2px 5px;
  border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .takvim-gun { min-height: 50px; padding: 4px; }
  .takvim-etiket { font-size: 0; padding: 3px; border-radius: 99px; margin-top: 3px; height: 5px; }
}

/* ---------- YARDIMCI ---------- */
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); font-size: 13px; }
.mt { margin-top: 15px; }
.mb { margin-bottom: 15px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--brand-light); cursor: pointer; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
code { background: var(--cizgi); padding: 1px 6px; border-radius: 4px; font-size: 12.5px; }
a { color: var(--brand-light); }

/* ---------- MOBİL ---------- */
@media (max-width: 1100px) {
  .reader { grid-template-columns: 1fr !important; }
  .ayirici { display: none; }
  .chat { height: 460px; position: static; margin-top: 14px; }
}
@media (max-width: 820px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.acik { transform: translateX(0); box-shadow: 4px 0 24px rgba(15,23,42,.15); }
  .main { margin-left: 0; padding: 16px; }
  .menu-toggle { display: inline-flex !important; }
  .page-title { font-size: 21px; }
  .stat-value { font-size: 24px; }
}
.menu-toggle { display: none; position: fixed; top: 11px; left: 11px; z-index: 60;
  background: var(--brand); color: #fff; border: 0; border-radius: 8px;
  padding: 9px 13px; font-size: 17px; cursor: pointer; }

/* =========================================================
   EK İÇERİK TÜRLERİ — özet sayfaları / görseller / fotoromanlar
   (icerik-depo.js ile yönetilir, mevcut stilleri etkilemez)
   ========================================================= */

/* ---------- ÖZET — TAM SAYFA OKUYUCU GÖVDESİ ---------- */
.ozet-oku-govde h3 { font-size: 19px; margin-bottom: 12px; color: var(--brand); }
.ozet-oku-govde .icerik { font-size: 15px; line-height: 1.8; }
.ozet-oku-govde .icerik p { margin: 0 0 12px; }
.ozet-oku-govde .icerik ul, .ozet-oku-govde .icerik ol { margin: 0 0 12px 22px; }
.ozet-oku-govde .icerik blockquote { margin: 0 0 12px; padding: 8px 14px; border-left: 3px solid var(--brand-light);
  background: #f8fafc; color: var(--muted); }
.ozet-oku-govde .icerik img { max-width: 100%; border-radius: 8px; }
.ozet-oku-govde .ozet-gorsel-galeri { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px; margin-top: 16px; }
.ozet-oku-govde .ozet-gorsel-galeri figure { margin: 0; background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; }
.ozet-oku-govde .ozet-gorsel-galeri img { width: 100%; height: auto; object-fit: contain; margin: 0;
  border-radius: 0; background: #f8fafc; display: block; }
.ozet-oku-govde .ozet-gorsel-galeri figcaption { padding: 7px 10px; font-size: 12px; color: var(--muted); }

/* ---------- ÖZET SAYFASI DÜZEN ŞABLONLARI (PowerPoint-benzeri) ---------- */
.ozet-yan-yana { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.ozet-yan-yana .ozet-gorsel-galeri { grid-template-columns: 1fr; margin-top: 0; }
.ozet-iki-sutun .icerik { column-count: 2; column-gap: 30px; }
@media (max-width: 720px) {
  .ozet-yan-yana { grid-template-columns: 1fr; }
  .ozet-iki-sutun .icerik { column-count: 1; }
}

/* ---------- ZENGİN METİN EDİTÖRÜ ---------- */
.editor-sarmalayici { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--panel); }
.editor-arac-cubugu { display: flex; align-items: center; gap: 3px; flex-wrap: wrap;
  padding: 6px 8px; background: #f8fafc; border-bottom: 1px solid var(--border); }
.editor-btn { border: 1px solid transparent; background: transparent; border-radius: 6px;
  min-width: 28px; height: 28px; padding: 0 6px; font-size: 12.5px; font-family: var(--font);
  cursor: pointer; color: var(--text); display: inline-flex; align-items: center; justify-content: center; }
.editor-btn:hover { background: #e2e8f0; }
.editor-ayirici { width: 1px; height: 20px; background: var(--border); margin: 0 3px; }
.editor-renk { width: 26px; height: 26px; padding: 0; border: 1px solid var(--border); border-radius: 6px;
  cursor: pointer; background: none; }
.editor-alan { min-height: 160px; max-height: 420px; overflow-y: auto; padding: 12px 14px;
  font-family: var(--font); font-size: 14.5px; line-height: 1.7; outline: none; }
.editor-alan:focus { background: #fffef8; }
.editor-alan p { margin: 0 0 10px; }
.editor-alan img { max-width: 100%; border-radius: 6px; }

/* ---------- ÖZET GÖRSEL YÖNETİMİ (yönetim ekranı) ---------- */
.ozet-gorsel-onizle-liste { display: flex; flex-wrap: wrap; gap: 10px; }
.ozet-gorsel-onizle { position: relative; width: 100px; }
.ozet-gorsel-onizle img { width: 100%; height: 74px; object-fit: cover; border-radius: 7px; border: 1px solid var(--border); }
.ozet-gorsel-onizle .btn { width: 100%; margin-top: 4px; padding: 3px 6px; font-size: 11px; }

/* ---------- İÇERİK SATIRI (yönetim listeleri) ---------- */
.icerik-satir { display: flex; align-items: center; gap: 12px; padding: 13px 15px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--panel); margin-bottom: 8px; }

/* ---------- GÖRSEL GALERİSİ ---------- */
.galeri { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 13px; }
.galeri figure { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.galeri img { width: 100%; height: 150px; object-fit: cover; cursor: zoom-in; }
.galeri figcaption { padding: 8px 11px; font-size: 12.5px; color: var(--muted); }

/* ---------- FOTOROMAN ---------- */
.foto-liste { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); }
.foto-kart { cursor: pointer; overflow: hidden; }
.foto-kart .kapak { height: 120px; background: #cbd5e1 center/cover no-repeat; display: flex;
  align-items: center; justify-content: center; font-size: 28px; border-radius: 8px; }
.foto-kart .baslik { padding: 9px 2px 0; font-weight: 600; font-size: 13.5px; }
.foto-goruntule { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.85); z-index: 200;
  align-items: center; justify-content: center; padding: 20px; }
.foto-goruntule.acik { display: flex; }
.foto-kare { background: #fff; border-radius: 14px; max-width: 560px; width: 100%; overflow: hidden; }
.foto-kare img { width: 100%; max-height: 400px; object-fit: contain; background: #0f172a; }
.foto-metin { padding: 16px 18px; font-size: 14.5px; }
.foto-kontrol { display: flex; align-items: center; justify-content: space-between; padding: 11px 18px; border-top: 1px solid var(--border); }

/* Kayit formundaki bot tuzagi: insan kullanici gormez, bos kalir. */
.giris-tuzak { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#formGiris[hidden], #formKayit[hidden] { display: none; }
