/* ============================================================
   TekTakvim — Bağımsız Uygulama CSS
   ============================================================ */

:root {
  --bg: #f8f9fc;
  --surface: #ffffff;
  --surface-hover: #f3f4f6;
  --border: #e5e7eb;
  --border-light: #f3f4f6;

  --text: #111827;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;

  --accent: #7c3aed;
  --accent-light: #ede9fe;
  --accent-hover: #6d28d9;

  --blue: #3b82f6;
  --green: #10b981;
  --orange: #f59e0b;
  --orange-light: #fef3c7;
  --red: #ef4444;
  --red-light: #fee2e2;

  --uyari-metin: #92400e;
  --tatil-bg: #fdf2f2;
  --tatil-metin: #b91c1c;
  --hatirlatma-renk: #059669;
  --hatirlatma-bg: #d1fae5;
  --hatirlatma-metin: #047857;
  --overlay-panel: rgba(17, 24, 39, .35);
  --overlay-modal: rgba(15, 17, 23, .5);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 12px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.06);
}

@media (prefers-color-scheme: dark) {
  /* Sistem koyu temada, ama kullanıcı yukarıdaki 🌙/☀️ butonuyla elle
     "açık" seçmemişse (data-theme="acik") bu değerler uygulanır. */
  :root:not([data-theme="acik"]) {
    --bg: #0f1115;
    --surface: #1a1d24;
    --surface-hover: #23272f;
    --border: #2e3138;
    --border-light: #262a31;

    --text: #e5e7eb;
    --text-muted: #9ca3af;
    --text-faint: #6b7280;

    --accent: #a78bfa;
    --accent-light: #2e1f52;
    --accent-hover: #c4b5fd;

    --orange-light: #4a3512;
    --red-light: #4c1d1d;

    --uyari-metin: #fcd34d;
    --tatil-bg: #3a1e1e;
    --tatil-metin: #f87171;
    --hatirlatma-renk: #34d399;
    --hatirlatma-bg: #113a2c;
    --hatirlatma-metin: #6ee7b7;
    --overlay-panel: rgba(0, 0, 0, .55);
    --overlay-modal: rgba(0, 0, 0, .65);
  }
}

/* Sistem teması ne olursa olsun, kullanıcı elle "koyu" secmisse (🌙/☀️
   butonu + localStorage) bu degerler her zaman uygulanır. */
:root[data-theme="koyu"] {
  --bg: #0f1115;
  --surface: #1a1d24;
  --surface-hover: #23272f;
  --border: #2e3138;
  --border-light: #262a31;

  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --text-faint: #6b7280;

  --accent: #a78bfa;
  --accent-light: #2e1f52;
  --accent-hover: #c4b5fd;

  --orange-light: #4a3512;
  --red-light: #4c1d1d;

  --uyari-metin: #fcd34d;
  --tatil-bg: #3a1e1e;
  --tatil-metin: #f87171;
  --hatirlatma-renk: #34d399;
  --hatirlatma-bg: #113a2c;
  --hatirlatma-metin: #6ee7b7;
  --overlay-panel: rgba(0, 0, 0, .55);
  --overlay-modal: rgba(0, 0, 0, .65);
}

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

html, body {
  min-height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ─── ÜST BAR ────────────────────────────────────────────── */

.ust-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.ust-bar-marka {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.marka-logo {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: linear-gradient(135deg, var(--accent), #a855f7);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(124, 58, 237, .35);
}

.marka-yazi { display: flex; flex-direction: column; }
.marka-ad { font-size: 16px; font-weight: 700; }
.marka-slogan { font-size: 11px; color: var(--text-muted); }

.ust-bar-eylemler { display: flex; align-items: center; gap: 8px; }

.tema-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.tema-btn:hover { border-color: var(--accent); background: var(--surface-hover); }

.kullanici-etiketi {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}

.kullanici-etiketi:hover { background: var(--surface-hover); color: var(--accent); }

.giris-link, .kayit-link {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background .15s, border-color .15s;
}

.giris-link { color: var(--text); border: 1px solid var(--border); }
.giris-link:hover { border-color: var(--accent); background: var(--surface-hover); }

.kayit-link { color: #fff; background: var(--accent); }
.kayit-link:hover { background: var(--accent-hover); }

/* ─── SAYFA ──────────────────────────────────────────────── */

.ana-icerik { padding: 24px 28px 60px; max-width: 1100px; margin: 0 auto; }

.dogrulama-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border: 1px solid var(--uyari-metin, #b45309);
  background: var(--tatil-bg);
  color: var(--tatil-metin);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
}

.dogrulama-banner--basari {
  border-color: var(--hatirlatma-renk);
  background: var(--hatirlatma-bg);
  color: var(--hatirlatma-metin);
}

.dogrulama-banner form { margin: 0; }

.dogrulama-banner-btn {
  padding: 6px 12px;
  border: 1px solid currentColor;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.dogrulama-banner-btn:hover { background: rgba(0, 0, 0, .06); }

.sayfa-basligi {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.sayfa-basligi h1 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 3px; }
.sayfa-basligi p { font-size: 13px; color: var(--text-muted); }

.sayfa-basligi-eylemler { display: flex; align-items: flex-start; gap: 8px; flex-shrink: 0; }

.yazdir-btn, .panel-toggle-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.yazdir-btn:hover, .panel-toggle-btn:hover { border-color: var(--accent); color: var(--accent); }

.uyari-kutusu {
  padding: 12px 16px;
  border: 1px solid var(--orange-light);
  border-radius: var(--radius);
  background: var(--orange-light);
  color: var(--uyari-metin);
  font-size: 12.5px;
  margin-bottom: 16px;
}

.uyari-kutusu code {
  background: rgba(0,0,0,.06);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ─── BİLDİRİM AYARLARI ──────────────────────────────────── */

.bildirim-sayfa-govde {
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(260px, 320px);
  align-items: start;
  gap: 20px;
}

.bildirim-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.bildirim-yan {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 20px;
}

.bildirim-yan-kart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.bildirim-yan-baslik {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.bildirim-durum-satir {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 7px 0;
  border-bottom: 1px solid var(--border-light);
}

.bildirim-durum-satir:last-child { border-bottom: none; padding-bottom: 0; }

.bildirim-durum-deger {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  max-width: 65%;
  overflow-wrap: break-word;
}

.bildirim-rozet {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}

.bildirim-rozet-acik { color: var(--hatirlatma-metin); background: var(--hatirlatma-bg); }
.bildirim-rozet-kapali { color: var(--text-faint); background: var(--border-light); }

.bildirim-nasil-liste {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  padding-left: 18px;
  margin: 0;
}

.bildirim-nasil-liste li { line-height: 1.5; }
.bildirim-nasil-liste strong { color: var(--text); }

@media (max-width: 860px) {
  .bildirim-sayfa-govde { grid-template-columns: 1fr; }
  .bildirim-yan { position: static; }
}

.bildirim-acik-toggle {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--text);
  cursor: pointer; user-select: none;
}

.bildirim-acik-toggle input { accent-color: var(--accent); width: 17px; height: 17px; cursor: pointer; }

.bildirim-alan { display: flex; flex-direction: column; gap: 6px; }

.bildirim-etiket { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }

.bildirim-input {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
}

.bildirim-input:focus { border-color: var(--accent); }

.bildirim-satir { display: flex; gap: 16px; flex-wrap: wrap; }
.bildirim-satir .bildirim-alan { flex: 1 1 180px; }

.bildirim-favori-toggle { color: var(--text); font-size: 13.5px; }

.bildirim-kurum-baslik {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.bildirim-kurum-eylemler { display: flex; align-items: center; gap: 10px; }

.bildirim-kurum-liste {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 2px 14px;
  max-height: 240px; overflow-y: auto;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.bildirim-kurum-liste .kurum-secenegi { padding: 5px 6px; border-radius: var(--radius-sm); }

.bildirim-kurum-not { font-size: 12px; color: var(--text-faint); margin: 0; }

.bildirim-son-gonderim { font-size: 12px; color: var(--text-faint); }

.bildirim-kaydet-btn { align-self: flex-start; padding: 9px 22px; font-size: 13px; }

/* ─── PROFİL SAYFASI ─────────────────────────────────────────── */

.profil-tehlikeli-bolge { border-color: var(--tatil-metin); }

.profil-sil-btn {
  padding: 8px 18px;
  border: 1px solid var(--tatil-metin);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--tatil-metin);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.profil-sil-btn:hover { background: var(--tatil-metin); color: #fff; }

.profil-cikis-formu { margin-top: 20px; }

.profil-cikis-btn {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.profil-cikis-btn:hover { border-color: var(--tatil-metin); color: var(--tatil-metin); background: var(--tatil-bg); }

/* ─── ARAÇ ÇUBUĞU ────────────────────────────────────────── */

.arac-cubugu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.ay-gezinme { display: flex; align-items: center; gap: 10px; }

.nav-btn {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  background: var(--bg);
  transition: background .15s, border-color .15s;
}

.nav-btn:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }

.ay-baslik { font-size: 15px; font-weight: 700; min-width: 130px; text-align: center; }

.ay-yil-secici { display: flex; align-items: center; gap: 6px; }

.ay-select, .yil-select {
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  outline: none;
}

.ay-select:focus, .yil-select:focus { border-color: var(--accent); }
.ay-select { min-width: 108px; }
.yil-select { min-width: 76px; }

.bugun-btn {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  background: var(--accent-light);
}

.bugun-btn:hover { opacity: .75; }

.filtreler { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.filtre-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

.takip-toggle {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted);
  cursor: pointer; user-select: none;
}

.takip-toggle input { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }

.arama-formu { flex: 1 1 200px; min-width: 160px; }

.arama-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
}

.arama-input:focus { border-color: var(--accent); }
.arama-input::placeholder { color: var(--text-faint); }

.arama-sonuc-basligi {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; font-size: 13px; color: var(--text-muted);
}

.arama-kapat { font-size: 12.5px; color: var(--accent); text-decoration: none; }
.arama-kapat:hover { text-decoration: underline; }

.arama-sonuc-liste { margin-bottom: 8px; }

.kurum-dropdown { position: relative; }

.kurum-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.kurum-dropdown-btn:hover { border-color: var(--accent); }
.kurum-dropdown-ok { font-size: 10px; color: var(--text-faint); }

.kurum-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
}

.kurum-dropdown-panel.acik { display: block; }

.kurum-dropdown-liste {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.kurum-secenegi {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
}

.kurum-secenegi:hover { background: var(--surface-hover); }
.kurum-secenegi input { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; }

.kurum-dropdown-alt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}

.kurum-dropdown-alt-sol { display: flex; align-items: center; gap: 10px; }

.kurum-temizle {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  border: none;
  background: none;
  font-family: inherit;
  padding: 0;
  cursor: pointer;
}

.kurum-temizle:hover { color: var(--accent); }

.kurum-uygula-btn {
  padding: 6px 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}

.kurum-uygula-btn:hover { background: var(--accent-hover); }

/* ─── LEJANT ─────────────────────────────────────────────── */

.profil-btn {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}

.profil-btn:hover { border-color: var(--accent); background: var(--accent-light); }
.profil-btn--aktif { border-color: var(--accent); background: var(--accent-light); color: var(--accent); font-weight: 600; }

.lejant {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-bottom: 16px; font-size: 12px; color: var(--text-muted);
}

.lejant-oge { display: flex; align-items: center; gap: 6px; }

.nokta { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.nokta--acil     { background: var(--red); }
.nokta--yaklasan { background: var(--orange); }
.nokta--normal   { background: var(--accent); }
.nokta--gecmis   { background: var(--text-faint); }
.nokta--hatirlatma { background: var(--hatirlatma-renk); }

/* ─── TAKVİM ─────────────────────────────────────────────── */

.takvim-kapsayici {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.hafta-gunleri {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.gun-adi {
  padding: 10px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
}

.hafta-satiri {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--border-light);
}

.hafta-satiri:last-child { border-bottom: none; }

.gun-hucresi {
  min-width: 0;
  min-height: 120px;
  padding: 6px;
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.gun-hucresi:last-child { border-right: none; }
.gun-hucresi--disarida { background: var(--bg); opacity: .5; }
.gun-hucresi--bugun { background: var(--accent-light); }
.gun-hucresi--tatil { background: var(--tatil-bg); }
.gun-hucresi--tatil.gun-hucresi--bugun { background: var(--accent-light); }

.gun-ust { display: flex; align-items: center; justify-content: space-between; }

.gun-no { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.gun-hucresi--bugun .gun-no { color: var(--accent); font-weight: 700; }

.gun-tatil {
  font-size: 10px;
  font-weight: 600;
  color: var(--tatil-metin);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hatirlatma-ekle-btn {
  width: 18px; height: 18px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .12s, background .12s, color .12s;
}

.gun-hucresi:hover .hatirlatma-ekle-btn { opacity: 1; }
.hatirlatma-ekle-btn:hover { background: var(--accent-light); color: var(--accent); }

.gun-olaylari { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.olay-cip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border: none;
  border-radius: 5px;
  font-size: 11px;
  font-family: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  transition: filter .15s;
}

.olay-cip:hover { filter: brightness(.96); }
.olay-ikon { flex-shrink: 0; font-size: 10.5px; }
.olay-baslik { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.olay-cip--acil     { background: var(--red-light);    color: var(--tatil-metin); }
.olay-cip--yaklasan { background: var(--orange-light); color: var(--uyari-metin); }
.olay-cip--normal   { background: var(--accent-light); color: var(--accent); }
.olay-cip--gecmis   { background: var(--border-light); color: var(--text-faint); }
.olay-cip--hatirlatma { background: var(--hatirlatma-bg); color: var(--hatirlatma-metin); }

.olay-fazla {
  font-size: 10.5px;
  color: var(--text-faint);
  padding: 0 6px;
  border: none;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.olay-fazla:hover { color: var(--accent); text-decoration: underline; }

.gun-detay-liste {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 60vh;
  overflow-y: auto;
  margin-top: 12px;
}

.gun-detay-liste .olay-cip {
  white-space: normal;
  font-size: 13px;
  padding: 9px 12px;
  height: auto;
  min-height: auto;
  overflow: visible;
  align-items: flex-start;
  flex-shrink: 0;
}

.gun-detay-liste .olay-ikon { margin-top: 1px; }

.gun-detay-liste .olay-baslik {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.4;
}

/* ─── YAKLAŞAN ÖLAY KARTLARI (yan panel içinde kullanılır) ──── */

.yaklasan-kart {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, transform .15s;
}

.yaklasan-kart:hover { box-shadow: var(--shadow); transform: translateY(-1px); }

.yaklasan-ikon { flex-shrink: 0; font-size: 18px; }

.yaklasan-metin { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.yaklasan-kart-baslik {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yaklasan-kart-alt { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.yaklasan-kart--acil     { border-left: 3px solid var(--red); }
.yaklasan-kart--yaklasan { border-left: 3px solid var(--orange); }
.yaklasan-kart--normal   { border-left: 3px solid var(--accent); }
.yaklasan-kart--gecmis   { border-left: 3px solid var(--text-faint); }

/* ─── YAKLAŞAN & PROFİLLER YAN PANELİ ────────────────────── */

.yan-panel-ortusu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--overlay-panel);
  z-index: 200;
}

.yan-panel-ortusu.acik { display: block; }

.yan-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(360px, 92vw);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .25s ease;
}

.yan-panel-ortusu.acik .yan-panel { transform: translateX(0); }

.yan-panel-ust {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}

.yan-panel-ust h2 { font-size: 16px; font-weight: 700; }

.yan-panel-kapat {
  border: none; background: none; cursor: pointer;
  font-size: 15px; color: var(--text-muted); padding: 4px;
  line-height: 1;
}

.yan-panel-kapat:hover { color: var(--text); }

.yan-panel-bolum { margin-bottom: 24px; }
.yan-panel-bolum:last-child { margin-bottom: 0; }

.yan-panel-baslik {
  font-size: 11.5px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: 10px;
}

.yan-panel-profil-liste { display: flex; flex-direction: column; gap: 6px; }
.yan-panel-profil-liste .profil-btn { text-align: left; border-radius: var(--radius-sm); }

.yan-panel-yaklasan-liste { display: flex; flex-direction: column; gap: 8px; }

.yan-panel-bos { font-size: 12.5px; color: var(--text-faint); }

/* ─── MODAL ──────────────────────────────────────────────── */

.modal-ortusu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--overlay-modal);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-ortusu.acik { display: flex; }

.modal-kutu {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  max-width: 440px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.modal-kapat {
  position: absolute;
  top: 14px; right: 14px;
  width: 28px; height: 28px;
  border: none;
  background: var(--surface-hover);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
}

.modal-kapat:hover { background: var(--red-light); color: var(--red); }

.modal-ust { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding-right: 24px; }

.modal-kurum {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--accent);
}

.modal-durum {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  background: var(--surface-hover); padding: 2px 8px; border-radius: 99px;
}

.guncellendi-rozeti {
  font-size: 11px;
  font-weight: 600;
  color: var(--hatirlatma-metin);
}

.guncellendi-rozeti--modal {
  background: var(--hatirlatma-bg);
  padding: 2px 8px;
  border-radius: 99px;
}

.modal-baslik { font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; padding-right: 24px; }
.modal-tarih { font-size: 12.5px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.modal-ozet { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 18px; }

.modal-eylemler {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-bottom: 16px; border-bottom: 1px solid var(--border-light); margin: 14px 0 16px;
}

.modal-eylemler form { margin: 0; }

.modal-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: background .15s, color .15s, border-color .15s;
}

.modal-btn--birincil { background: var(--accent); color: #fff; border-color: var(--accent); }
.modal-btn--birincil:hover { background: var(--accent-hover); }

.modal-btn--tehlike { background: var(--red-light); color: var(--red); border-color: var(--red-light); }
.modal-btn--tehlike:hover { background: var(--red); color: #fff; }

.modal-ekle-etiket {
  display: block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-faint); margin-bottom: 8px;
}

.modal-ekle-linkler { display: flex; gap: 8px; flex-wrap: wrap; }

.ekle-btn {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  background: var(--bg);
  transition: border-color .15s, color .15s;
}

.ekle-btn:hover { border-color: var(--accent); color: var(--accent); }

.hm-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 12px 0 5px;
}

#hmForm input[type="text"], #hmForm textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  resize: vertical;
}

#hmForm input[type="text"]:focus, #hmForm textarea:focus { border-color: var(--accent); }

/* ─── YAZDIR ─────────────────────────────────────────────── */

/* ─── ALT BİLGİ ──────────────────────────────────────────── */

.alt-bilgi {
  max-width: 1100px;
  margin: 8px auto 0;
  padding: 18px 28px 28px;
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: .01em;
}

.alt-bilgi strong {
  color: var(--accent);
  font-weight: 600;
}

.alt-bilgi a {
  color: var(--text-faint);
  text-decoration: underline;
}

.alt-bilgi a:hover,
.alt-bilgi a:focus-visible {
  color: var(--accent);
}

/* ─── GİRİŞ / KAYIT / ŞİFRE SAYFALARI ────────────────────────── */

.auth-sayfa {
  display: flex;
  justify-content: center;
  padding: 48px 16px;
}

.auth-kart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px 32px;
  max-width: 400px;
  width: 100%;
}

.auth-logo {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: linear-gradient(135deg, var(--accent), #a855f7);
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(124, 58, 237, .35);
}

.auth-baslik { font-size: 21px; font-weight: 700; text-align: center; margin-bottom: 6px; }
.auth-alt { font-size: 13px; color: var(--text-muted); text-align: center; margin-bottom: 26px; line-height: 1.5; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.auth-eylem-satiri {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -6px;
}

.auth-sifremi-unuttum { font-size: 12.5px; color: var(--text-muted); text-decoration: none; }
.auth-sifremi-unuttum:hover { color: var(--accent); text-decoration: underline; }

.auth-gonder-btn {
  width: 100%;
  padding: 11px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  margin-top: 6px;
}

.auth-gonder-btn:hover { background: var(--accent-hover); }

.auth-alt-eylem {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
}

.auth-alt-eylem a { color: var(--accent); font-weight: 600; text-decoration: none; }
.auth-alt-eylem a:hover { text-decoration: underline; }

.auth-geri {
  display: block;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-faint);
  text-decoration: none;
  margin-top: 18px;
}
.auth-geri:hover { color: var(--accent); }

.auth-mesaj-kutusu {
  border: 1px solid var(--hatirlatma-renk);
  background: var(--hatirlatma-bg);
  color: var(--hatirlatma-metin);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.auth-hata-kutusu {
  border: 1px solid var(--tatil-metin);
  background: var(--tatil-bg);
  color: var(--tatil-metin);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.5;
}

@media print {
  .ust-bar, .arac-cubugu form, .yazdir-btn, .panel-toggle-btn, .yan-panel-ortusu, .hatirlatma-ekle-btn, .modal-ortusu, .alt-bilgi {
    display: none !important;
  }
  body, .takvim-kapsayici, .gun-hucresi { background: #fff !important; color: #000 !important; }
  .ana-icerik { padding: 0 !important; max-width: none !important; }
  .hafta-satiri { break-inside: avoid; }
}

/* ─── MOBİL ──────────────────────────────────────────────── */

@media (max-width: 900px) {
  .gun-hucresi { min-height: 84px; }
  /* Sadece ay takviminin KUCUK gun hucrelerinde basligi gizle (yer yok) -
     gun-detay penceresi ve yaklasan panelindeki kartlar bundan etkilenmemeli,
     onlarda basligi gormek zaten butun amac. */
  .gun-olaylari .olay-baslik { display: none; }
  .gun-olaylari .olay-cip { justify-content: center; padding: 4px; }
  .hatirlatma-ekle-btn { opacity: 1; }
}

@media (max-width: 600px) {
  .ust-bar { padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
  .ana-icerik { padding: 16px 14px 40px; }
  .arac-cubugu { flex-direction: column; align-items: stretch; }
  .ay-gezinme { justify-content: center; }
  .gun-hucresi { min-height: 64px; }
  .gun-adi { font-size: 9.5px; padding: 8px 2px; }
}

/* ─── ERİŞİLEBİLİRLİK ────────────────────────────────────── */

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 1000;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* Klavye ile gezinen kullanıcılar için her yerde görünür odak halkası.
   Kaynak sırası nedeniyle, formlardaki `outline: none` kuralları da
   burada geçersiz kılınıyor (fare tıklamasında halka görünmez, sadece
   Tab ile gezinirken). */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
