@charset "UTF-8";
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: clip;
  width: 100vw;
  max-width: 100%;
}

html {
  font-family: "Georgia", "Merriweather", "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.6;
}

body {
  color: #bbb;
  background-color: #151515;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

::selection {
  background: #a41818;
  color: #fff;
}

a {
  color: #5865F2;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}
a strong {
  color: inherit;
}
a:hover, a:focus {
  color: #a41818;
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: .5rem;
  font-weight: bold;
  line-height: 1.25;
  color: #e0e0e0;
  text-rendering: optimizeLegibility;
  font-family: sans-serif;
}

h1 {
  font-size: 2rem;
}

h2 {
  margin-top: 1.5rem;
  font-size: 1.5rem;
}

h3 {
  margin-top: 1.5rem;
  font-size: 1.25rem;
}

h4, h5, h6 {
  margin-top: 1rem;
  font-size: 1rem;
}

p {
  margin-top: 0;
  margin-bottom: 1.2rem;
}

strong {
  color: #fff;
}

ul, ol, dl {
  margin-top: 0;
  margin-bottom: 1rem;
}

hr {
  border: 0;
  border-top: 1px solid #333;
  margin: 2rem auto;
  width: 50%;
}

img {
  display: block;
  max-width: 100%;
  margin: 0 auto 1rem;
  border-radius: 5px;
  border: 1px solid #333;
}

blockquote {
  padding: .5rem 1rem;
  margin: 1.5rem 0;
  color: #888;
  border-left: .25rem solid #a41818;
  background: rgba(255, 255, 255, 0.05);
  font-style: italic;
  border-radius: 0 4px 4px 0;
}
blockquote p:last-child {
  margin-bottom: 0;
}

.container {
  max-width: 36rem;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 2rem;
}

.chapter-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.chapter-list li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #252525;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
}

.chapter-list a {
  text-decoration: none;
  color: #ccc;
  flex: 1;
  display: block;
  transition: all 0.2s ease;
}

.chapter-list a:hover {
  color: #a41818;
  padding-left: 8px;
}

input[type="text"]#chapterSearch {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  background-color: #1a1a1a;
  border: 1px solid #444;
  color: #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
input[type="text"]#chapterSearch:focus {
  outline: none;
  border-color: #a41818;
}
input[type="text"]#chapterSearch::placeholder {
  color: #555;
}

.reading-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: sans-serif;
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #222;
  width: 100%;
}

.font-adjusters {
  display: flex;
  align-items: center;
  gap: 8px;
}
.font-adjusters #currentFontSize {
  color: #ccc;
  font-weight: bold;
  min-width: 40px;
  text-align: center;
  font-size: 0.9rem;
}
.font-adjusters button {
  background-color: #2a2a2a;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}
.font-adjusters button:hover {
  background-color: #a41818;
}
.font-adjusters button:focus {
  outline: none;
}

.chapter-body {
  transition: font-size 0.15s ease-in-out;
}

.chapter-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 3.5rem 0 2rem 0;
  padding-top: 2rem;
  border-top: 1px solid #252525;
  width: 100%;
  box-sizing: border-box;
  gap: 10px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: sans-serif;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  border: none;
  background-color: #2a2a2a;
  color: #fff;
  flex: 1;
  box-sizing: border-box;
}
.nav-btn:hover {
  background-color: #444;
  color: #fff;
}
.nav-btn.archive-btn {
  background-color: #a41818;
  color: white;
}
.nav-btn.archive-btn:hover {
  background-color: #c21c1c;
}
.nav-btn.disabled {
  background-color: #151515;
  color: #555;
  border: 1px solid #333;
  pointer-events: none;
}

@media (max-width: 600px) {
  .chapter-nav {
    flex-direction: column;
    gap: 10px;
  }

  .nav-btn {
    width: 100%;
    margin: 0;
  }
}
.dynamic-spoiler {
  filter: blur(6px);
  opacity: 0.6;
  user-select: none;
  pointer-events: none;
  transition: filter 0.8s ease, opacity 0.8s ease;
  background-color: rgba(21, 21, 21, 0.5);
  padding: 0 4px;
  border-radius: 3px;
}

.dynamic-spoiler.unlocked {
  filter: blur(0);
  opacity: 1;
  user-select: auto;
  pointer-events: auto;
  background-color: transparent;
}

.quick-access-hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-bottom: 3.5rem;
  border-top: 1px solid #252525;
  border-bottom: 1px solid #252525;
  padding: 2rem 0;
}

.hub-card {
  background: #151515;
  padding: 20px 15px;
  border-radius: 8px;
  color: #ccc;
  text-decoration: none;
  border: 1px solid #222;
  text-align: center;
  transition: all 0.25s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hub-card h3 {
  margin: 0 0 10px 0;
  font-size: 1.15rem;
}
.hub-card span {
  font-size: 0.85rem;
  color: #777;
  transition: color 0.25s ease;
}
.hub-card:hover {
  background: #1a1a1a;
  border-color: #555;
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}
.hub-card:hover span {
  color: #bbb;
}

.chapter-date {
  color: #666;
  font-size: 0.85rem;
  min-width: 95px;
  display: inline-block;
  font-family: monospace;
}

.imperium-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(21, 21, 21, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #333;
  width: 100%;
  padding: 12px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.header-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.header-brand .header-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  transform: translateY(3px);
}
.header-brand .header-title {
  font-family: 'Georgia', serif;
  font-size: 1.15rem;
  font-weight: bold;
  color: #e0e0e0;
  line-height: 1;
  transition: color 0.2s ease;
}
.header-brand:hover .header-title {
  color: #d4af37;
}

.header-content {
  justify-content: flex-start;
  gap: 14px;
}

.menu-dugmesi {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 7px;
  margin-left: -7px;
  background: none;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.menu-dugmesi span {
  display: block;
  height: 2px;
  background: #ccc;
  border-radius: 1px;
  transition: background 0.2s ease;
}
.menu-dugmesi:hover span, .menu-dugmesi:focus-visible span {
  background: #d4af37;
}
.menu-dugmesi:focus-visible {
  outline: 1px solid #d4af37;
}

.yan-menu-perde {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.yan-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1200;
  width: min(300px, 82vw);
  display: flex;
  flex-direction: column;
  background: #151515;
  border-right: 2px solid #a41818;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
  font-family: sans-serif;
  overflow-y: auto;
  transform: translateX(-105%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
}

body.menu-acik {
  overflow: hidden;
}
body.menu-acik .yan-menu {
  transform: none;
  visibility: visible;
  transition: transform 0.25s ease;
}
body.menu-acik .yan-menu-perde {
  opacity: 1;
}

.yan-menu-ust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #333;
}

.yan-menu-baslik {
  font-family: 'Georgia', serif;
  font-weight: bold;
  color: #e0e0e0;
}

.yan-menu-kapat {
  background: none;
  border: 0;
  color: #999;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.yan-menu-kapat:hover {
  color: #d4af37;
}

.yan-menu-devam {
  display: block;
  margin: 16px 20px 4px;
  padding: 10px 14px;
  border: 1px solid #333;
  border-left: 3px solid #d4af37;
  border-radius: 4px;
  text-decoration: none;
  color: #e0e0e0;
  font-weight: bold;
}
.yan-menu-devam small {
  display: block;
  font-weight: normal;
  color: #888;
  font-size: 0.8rem;
  margin-bottom: 2px;
}
.yan-menu-devam:hover {
  background: #1d1d1d;
}
.yan-menu-devam[hidden] {
  display: none;
}

.yan-menu-liste {
  list-style: none;
  margin: 12px 0;
  padding: 0;
}
.yan-menu-liste a {
  display: block;
  padding: 12px 20px;
  color: #ccc;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color 0.2s ease, background 0.2s ease;
}
.yan-menu-liste a:hover {
  color: #d4af37;
  background: #1d1d1d;
  border-left-color: #a41818;
}

.yan-menu-alt {
  margin-top: auto;
  padding: 16px 20px 24px;
  border-top: 1px solid #333;
  display: flex;
  gap: 10px;
}
.yan-menu-alt a {
  flex: 1;
  text-align: center;
  padding: 9px 6px;
  border-radius: 4px;
  color: #fff;
  font-weight: bold;
  font-size: 0.9rem;
  white-space: nowrap;
  text-decoration: none;
}
.yan-menu-alt .yan-menu-discord {
  background: #5865F2;
}
.yan-menu-alt .yan-menu-destek {
  background: #a41818;
}

@media (max-width: 600px) {
  .header-brand .header-title {
    font-size: 1rem;
  }

  .header-content {
    padding: 0 15px;
  }
}
.giris {
  text-align: center;
  margin: 3rem 0 4rem 0;
}
.giris.giris-404 {
  margin-bottom: 3rem;
}

.giris-baslik {
  font-size: clamp(2rem, 8vw, 3.2rem);
  margin-bottom: 10px;
  color: #e0e0e0;
  font-family: 'Georgia', serif;
  border-bottom: none;
  padding-bottom: 0;
}
.giris-baslik.hata-baslik {
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  margin: 18px 0 10px 0;
}

.giris-alt {
  font-size: 1.25rem;
  color: #888;
  font-style: italic;
  max-width: 80%;
  margin: 0 auto;
}
.giris-alt.hata-alt {
  font-size: 1.15rem;
  margin: 0 auto 1.5rem auto;
}

.hata-kodu {
  font-size: clamp(4rem, 16vw, 7rem);
  font-family: 'Georgia', serif;
  color: #a41818;
  line-height: 1;
  letter-spacing: 0.05em;
}

.hata-not {
  font-size: 0.95rem;
  color: #666;
  max-width: 80%;
  margin: 0 auto;
}

.takvim-kutusu {
  text-align: center;
  margin: 0 auto 3rem;
  background: #131313;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #333;
  max-width: 600px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.takvim-baslik {
  color: #d4af37;
  margin-top: 0;
  font-family: 'Georgia', serif;
  border-bottom: none;
  padding-bottom: 5px;
}

.takvim-metin {
  color: #bbb;
  margin-bottom: 0;
  font-size: 1.05rem;
}

.gun-adi {
  text-transform: capitalize;
}

.giris-dugmeler {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 3rem;
}

.giris-dugme {
  background: #1c1c1c;
  color: #e0e0e0;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.1rem;
  border: 1px solid #333;
}

.giris-dugme-devam {
  display: none;
  background: #a41818;
  color: white;
  border-color: #c21c1c;
}

.hub-card h3 {
  color: #e0e0e0;
}

.hub-card h3.altin {
  color: #d4af37;
}

.latest-updates h2 {
  border-bottom: 2px solid #a41818;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.bolum-basligi {
  color: #e0e0e0;
  margin-bottom: 10px;
  font-family: sans-serif;
  font-size: 2rem;
  border-bottom: 2px solid #a41818;
  padding-bottom: 10px;
}

.bolum-ayrac {
  border: 0;
  border-top: 1px solid #333;
  margin: 40px 0;
}

.imperium-footer {
  background: #151515;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #333;
  text-align: center;
  color: #ccc;
  font-family: sans-serif;
}
.imperium-footer h3.kirmizi {
  color: #a41818;
  margin-top: 0;
}
.imperium-footer h3.altin {
  color: #d4af37;
  margin-top: 10px;
}

.alt-dugme {
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  display: inline-block;
  margin: 5px;
}
.alt-dugme.discord {
  background: #5865F2;
}
.alt-dugme.destek {
  background: #a41818;
}

.alt-not {
  font-size: 0.8em;
  margin-top: 15px;
  color: #666;
}

.yorumlar {
  margin-top: 50px;
}

.search-container {
  margin-bottom: 20px;
}

.arama-kutusu {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  background: #1a1a1a;
  border: 1px solid #444;
  color: #ddd;
  border-radius: 4px;
}

.filter-container {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filtre-satiri {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filtre-secim {
  flex: 1;
  min-width: 180px;
  padding: 10px 12px;
  font-size: 14px;
  background: #1a1a1a;
  border: 1px solid #444;
  color: #ddd;
  border-radius: 4px;
}
.filtre-secim.dar {
  min-width: 160px;
}

.filtre-sifirla {
  padding: 10px 18px;
  font-size: 14px;
  background: #222;
  border: 1px solid #444;
  color: #aaa;
  border-radius: 4px;
  cursor: pointer;
}

.sonuc-sayisi {
  margin: 0;
  font-size: 0.85em;
  color: #666;
}

.sonuc-yok {
  display: none;
  color: #666;
  text-align: center;
  padding: 40px 0;
}

.uyari-seridi {
  background: #a41818;
  color: white;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-weight: bold;
}

.ust-bosluk,
.nasil-kutusu .govde p.ust-bosluk {
  margin-top: 12px;
}

.geri-baglanti {
  margin: 0 0 12px;
  font-size: 0.9em;
}

.spoiler-dugmesi {
  padding: 12px;
  font-size: 15px;
  background: #4a0000;
  border: 1px solid #a41818;
  color: #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  transition: all 0.3s ease;
}
.spoiler-dugmesi.acik {
  background: #1a1a1a;
  border-color: #444;
}

.terim-listesi {
  list-style-type: none;
  padding: 0;
}

.glossary-item {
  background: #151515;
  border: 1px solid #333;
  margin-bottom: 15px;
  padding: 15px;
  border-radius: 8px;
}

.term-title {
  margin-top: 0;
  color: #d4af37;
}

.terim-ingilizce {
  font-size: 0.7em;
  color: #666;
}

.kategori-rozet,
.yol-grubu-rozet,
.bolgesel-rozet {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.8em;
  margin-bottom: 10px;
}

.kategori-rozet {
  background: #222;
  color: #888;
}

.yol-grubu-rozet {
  background: #2b1b3d;
  color: #a882d4;
  margin-left: 5px;
  border: 1px solid #4a3463;
}

.bolgesel-rozet {
  background: #1b2b3d;
  color: #82b4d4;
  padding: 2px 6px;
  font-size: 0.75em;
  margin-bottom: 0;
  margin-left: 6px;
  border: 1px solid #34527f;
}

.spoiler-detay {
  cursor: pointer;
}

.spoiler-ozet {
  color: #a41818;
  font-weight: bold;
  outline: none;
}

.spoiler-metin {
  margin-top: 10px;
  color: #ccc;
}

.terim-aciklama {
  color: #ccc;
  margin-bottom: 0;
}

.terim-dipnot {
  margin: 10px 0 0;
  font-size: 0.8em;
  color: #6e6e6e;
}

.mertebe-listesi {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  border-top: 1px dashed #333;
  padding-top: 10px;
}

.sequence-row {
  margin-bottom: 8px;
  font-size: 0.95em;
}

.mertebe-etiket {
  color: #888;
}

.kaynak-secim.kutulu {
  padding: 8px 12px;
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 4px;
}

.sozluk-sayfasi .dynamic-spoiler {
  filter: blur(5px);
  opacity: 0.6;
  user-select: none;
  cursor: pointer;
  background-color: rgba(21, 21, 21, 0.8);
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.4s ease;
  display: inline-block;
}

.sozluk-sayfasi .dynamic-spoiler.unlocked {
  filter: blur(0) !important;
  opacity: 1 !important;
  user-select: auto !important;
  background-color: transparent !important;
}

.hidden-sequence {
  display: none !important;
}

/* Ekran okuyucular icin gorunmez ama okunur etiket */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.sozluk-sayfasi.spoiler-mode-active .dynamic-spoiler {
  filter: blur(0) !important;
  opacity: 1 !important;
  background-color: transparent !important;
  user-select: auto !important;
}

body.sozluk-sayfasi.spoiler-mode-active .hidden-sequence {
  display: list-item !important;
}

/* --- Bölüm ayarı --- */
.bolum-kutusu {
  background: #12100a;
  border: 1px solid #4a3d1a;
  border-radius: 6px;
  padding: 14px 16px;
}

.bolum-kutusu label {
  display: block;
  color: #d4af37;
  font-size: 0.9em;
  font-weight: bold;
  margin-bottom: 8px;
}

.bolum-satir {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.bolum-kutusu input[type="number"] {
  width: 110px;
  padding: 9px 10px;
  font-size: 15px;
  background: #1a1a1a;
  border: 1px solid #444;
  color: #ddd;
  border-radius: 4px;
}

.bolum-btn {
  padding: 9px 14px;
  font-size: 14px;
  background: #241f10;
  border: 1px solid #4a3d1a;
  color: #d4bb63;
  border-radius: 4px;
  cursor: pointer;
}

.bolum-btn:hover {
  background: #2f2814;
}

.bolum-btn.ikincil {
  background: #1a1a1a;
  border-color: #333;
  color: #888;
}

.bolum-durum {
  margin: 10px 0 0;
  font-size: 0.85em;
  color: #8a8a8a;
}

.bolum-durum strong {
  color: #d4bb63;
}

.bolum-uyari {
  margin: 10px 0 0;
  font-size: 0.85em;
  color: #c98a3a;
}

/* --- Nasil okunur kutusu --- */
.nasil-kutusu {
  background: #12100a;
  border: 1px solid #4a3d1a;
  border-radius: 6px;
  margin-bottom: 20px;
  padding: 0 16px;
}

.nasil-kutusu > summary {
  color: #d4af37;
  font-weight: bold;
  cursor: pointer;
  padding: 14px 0;
  outline: none;
  list-style: none;
  font-size: 0.95em;
}

.nasil-kutusu > summary::-webkit-details-marker {
  display: none;
}

.nasil-kutusu > summary::before {
  content: "▸ ";
}

.nasil-kutusu[open] > summary::before {
  content: "▾ ";
}

.nasil-kutusu .govde {
  border-top: 1px solid #2e2716;
  padding: 14px 0 18px;
  color: #b9b3a2;
  font-size: 0.88em;
  line-height: 1.6;
}

.nasil-kutusu .govde p {
  margin: 0 0 12px;
}

.nasil-kutusu .govde p:last-child {
  margin-bottom: 0;
}

.nasil-kutusu h4 {
  color: #d4bb63;
  font-size: 0.92em;
  margin: 18px 0 8px;
}

.nasil-kutusu h4:first-child {
  margin-top: 0;
}

.nasil-kutusu code {
  background: #1f1a10;
  color: #d4bb63;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.92em;
}

.rozet-cetvel {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 10px 0 0;
}

.rozet-cetvel > div {
  display: flex;
  gap: 9px;
  align-items: baseline;
  flex-wrap: wrap;
}

.rozet-cetvel .rozet {
  margin: 0;
  flex-shrink: 0;
  cursor: default;
}

.nasil-kutusu a {
  color: #c9a227;
}

/* --- Ek kaynak anahtarlari --- */
.kaynak-kutusu {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 4px;
}

.kaynak-kutusu > span {
  font-size: 0.78em;
  color: #777;
  letter-spacing: 0.02em;
}

.kaynak-secim {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85em;
  color: #bbb;
  cursor: pointer;
}

.kaynak-secim input {
  accent-color: #a882d4;
  cursor: pointer;
  margin: 0;
}

.kaynak-secim:hover {
  color: #ddd;
}

/* --- Kaynak / müdahale rozetleri --- */
.rozet {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.8em;
  margin-bottom: 10px;
  margin-left: 5px;
  border: 1px solid transparent;
  cursor: help;
}

.rozet-ekleme {
  background: #2a2010;
  color: #d4a747;
  border-color: #574117;
}

.rozet-degisiklik {
  background: #2a1810;
  color: #d4863f;
  border-color: #5c3d1f;
}

.rozet-birlestirme {
  background: #1e2436;
  color: #8fa0d4;
  border-color: #35406e;
}

.rozet-ozgun {
  background: #2a1418;
  color: #d48a94;
  border-color: #572329;
}

.rozet-beyani {
  background: #241f2e;
  color: #a99ac4;
  border-color: #443a5c;
}

.rozet-coi {
  background: #2e2418;
  color: #c4a882;
  border-color: #5c4a34;
}

.rozet-karma {
  background: #1e2422;
  color: #8fb3a8;
  border-color: #35514a;
}

.rozet-denetim {
  background: #1a1a1a;
  color: #666;
  border-color: #333;
}

.rozet-sistem {
  background: #0f2430;
  color: #7ec4e0;
  border-color: #1c4a5c;
  cursor: pointer;
  text-decoration: none;
}

.rozet-sistem:hover {
  background: #16323f;
}

.rozet-mini {
  font-size: 0.72em;
  padding: 2px 6px;
  margin-bottom: 0;
}

.notu-parca {
  margin-top: 8px !important;
  border-left-color: #6b5520 !important;
}

.notu-parca.parca-kilitli {
  display: none !important;
}

body.sozluk-sayfasi.spoiler-mode-active .notu-parca.parca-kilitli {
  display: block !important;
}

.notu-parca-etiket {
  display: block;
  font-size: 0.85em;
  color: #8a7a4a;
  margin-bottom: 4px;
  font-style: italic;
}

.kaynak-ref {
  margin-top: 8px;
  font-size: 0.82em;
  color: #8a7a4a;
  font-style: italic;
}

/* --- Çevirmen Notu (Translator's Note) styles --- */
.cevirmen-notu-toggle,
.mertebe-notu {
  margin-top: 10px;
  display: block;
}

.cevirmen-notu-toggle summary,
.mertebe-notu summary {
  color: #c9a227;
  font-weight: bold;
  outline: none;
  cursor: pointer;
  font-size: 0.85em;
  list-style: none;
}

.cevirmen-notu-toggle summary::-webkit-details-marker,
.mertebe-notu summary::-webkit-details-marker {
  display: none;
}

.cevirmen-notu-toggle summary::before,
.mertebe-notu summary::before {
  content: "▸ ";
}

.cevirmen-notu-toggle[open] summary::before,
.mertebe-notu[open] summary::before {
  content: "▾ ";
}

.cevirmen-notu-toggle p,
.mertebe-notu p {
  margin-top: 8px;
  margin-bottom: 0;
  padding: 10px 12px;
  background: #1f1a10;
  border-left: 3px solid #4a3d1a;
  color: #d4bb63;
  font-size: 0.88em;
  line-height: 1.5;
  border-radius: 4px;
}

.mertebe-notu {
  margin-left: 4px;
}

.cevirmen-notu-toggle.notu-locked,
.mertebe-notu.notu-locked {
  display: none !important;
}

body.sozluk-sayfasi.spoiler-mode-active .cevirmen-notu-toggle.notu-locked,
body.sozluk-sayfasi.spoiler-mode-active .mertebe-notu.notu-locked {
  display: block !important;
}

.yol-grubu-rozet.grup-kilitli {
  display: none !important;
}

body.sozluk-sayfasi.spoiler-mode-active .yol-grubu-rozet.grup-kilitli {
  display: inline-block !important;
}

.rozet.rozet-sabit {
  cursor: default;
}

.cince-etiket {
  font-size: 0.65em;
  color: #777;
  font-weight: normal;
  margin-left: 6px;
}

.turkce-yok {
  color: #777;
  font-style: italic;
  font-size: 0.85em;
}

.rozet-tur-salahiyet {
  background: #2a2010;
  color: #d4a747;
  border-color: #574117;
  cursor: default;
}

.rozet-tur-alt {
  background: #1e2436;
  color: #8fa0d4;
  border-color: #35406e;
  cursor: default;
}

.rozet-tur-simge {
  background: #1e2422;
  color: #8fb3a8;
  border-color: #35514a;
  cursor: default;
}

.rozet-tur-kabiliyet {
  background: #241f2e;
  color: #a99ac4;
  border-color: #443a5c;
  cursor: default;
}

.rozet-tur-hukumranlik {
  background: #2a1418;
  color: #d48a94;
  border-color: #572329;
  cursor: default;
}

.rozet-tur-mertebe {
  background: #2e2418;
  color: #c4a882;
  border-color: #5c4a34;
  cursor: default;
}

.rozet-tur-yeganelik {
  background: #142a26;
  color: #7fd4c0;
  border-color: #23574d;
  cursor: default;
}

.rozet-tur-burada {
  background: #1a1a1a;
  color: #999;
  border-color: #333;
  margin-left: 6px;
}

.tuzak-kutusu {
  margin: 4px 0 0;
  padding: 8px 12px;
  background: #1c1710;
  border-left: 3px solid #6b5520;
  color: #b9a76a;
  font-size: 0.85em;
  line-height: 1.5;
  border-radius: 4px;
}

.gecis-listesi {
  list-style: none;
  padding: 10px 0 0;
  margin: 15px 0 0;
  border-top: 1px dashed #333;
}

.gecis-satir {
  margin-bottom: 10px;
  font-size: 0.95em;
  line-height: 1.55;
}

.gecis-yol {
  color: #bbb;
  font-weight: bold;
}

.gecis-mertebe {
  color: #888;
  margin-left: 6px;
  font-size: 0.9em;
}

.yg-rozet {
  display: inline-block;
  background: #2b1b3d;
  color: #a882d4;
  border: 1px solid #4a3463;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.75em;
  margin-left: 6px;
}

.gecis-not {
  margin: 4px 0 0 0;
  color: #ccc;
}

.capraz {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.85em;
  color: #777;
}

.capraz-link {
  color: #c9a227;
  text-decoration: none;
  border-bottom: 1px dotted #6b5520;
  cursor: pointer;
}

.capraz-link:hover {
  color: #e3c14a;
}

.capraz-link.capraz-kilitli {
  color: #666;
  border-bottom-color: #444;
  cursor: not-allowed;
}

.salahiyet-item {
  scroll-margin-top: 16px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.salahiyet-item.vurgu {
  border-color: #d4af37 !important;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.35);
}

.kab-yol {
  scroll-margin-top: 16px;
}

.kab-yol-baslik {
  margin-bottom: 8px;
  font-size: 1.3em;
}

.kab-yol-giris {
  margin-bottom: 10px;
}

.kab-kapili.kab-kilitli {
  display: none !important;
}

body.kabiliyet-sayfasi.spoiler-mode-active .kab-kapili.kab-kilitli {
  display: block !important;
}

.kab-kilit-bilgi {
  margin: 8px 0 0;
  font-size: 0.82em;
  color: #6e6e6e;
  font-style: italic;
}

.kab-mertebe {
  border-top: 1px dashed #333;
  padding: 10px 0 2px;
  scroll-margin-top: 16px;
}
.kab-mertebe > summary {
  cursor: pointer;
  list-style: none;
  outline: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.kab-mertebe > summary::-webkit-details-marker {
  display: none;
}
.kab-mertebe > summary::before {
  content: "▸";
  color: #c9a227;
}
.kab-mertebe[open] > summary::before {
  content: "▾";
}
.kab-mertebe > summary:focus-visible {
  outline: 1px solid #6b5520;
  outline-offset: 3px;
}

.kab-mertebe-adi {
  color: #d4af37;
  font-weight: bold;
  font-size: 1.05em;
}

.kab-sayi {
  color: #666;
  font-size: 0.8em;
  margin-left: auto;
}

.kab-govde {
  padding: 6px 0 10px 16px;
}

.kab-mertebe-giris p {
  color: #b9b3a2;
  margin: 6px 0;
  line-height: 1.55;
}

.kab-liste {
  list-style: none;
  margin: 8px 0 12px;
  padding: 0;
}

.kab-satir {
  padding: 9px 0 9px 12px;
  border-left: 2px solid #2c2c2c;
  margin-bottom: 8px;
}

.kab-ad {
  margin: 0 0 3px;
  color: #e0d3a0;
  font-size: 1em;
}

.kab-tarif {
  margin: 0;
  color: #ccc;
  line-height: 1.6;
}

.kab-alt {
  margin: 6px 0 0;
  padding-left: 20px;
  color: #a9a9a9;
  font-size: 0.93em;
  line-height: 1.55;
}
.kab-alt li {
  margin-bottom: 4px;
}

.kab-cince {
  display: none;
  margin: 4px 0 0;
  color: #77705c;
  font-size: 0.88em;
  line-height: 1.6;
}

body.kab-cince-acik .kab-cince {
  display: block;
}

.kab-not {
  display: block;
  margin: 6px 0 0;
  padding: 7px 10px;
  background: #1f1a10;
  border-left: 3px solid #4a3d1a;
  color: #d4bb63;
  font-size: 0.86em;
  line-height: 1.5;
  border-radius: 4px;
}

.kab-not.kab-acik {
  background: #2a1810;
  border-left-color: #5c3d1f;
  color: #d4863f;
}

.kab-ek {
  margin-top: 8px;
}
.kab-ek > summary {
  color: #c9a227;
  font-weight: bold;
  font-size: 0.85em;
  cursor: pointer;
  list-style: none;
  outline: none;
}
.kab-ek > summary::-webkit-details-marker {
  display: none;
}
.kab-ek > summary::before {
  content: "▸ ";
}
.kab-ek[open] > summary::before {
  content: "▾ ";
}
.kab-ek > summary:focus-visible {
  outline: 1px solid #6b5520;
  outline-offset: 3px;
}

.kab-ek-govde {
  margin-top: 8px;
  padding: 10px 12px;
  background: #121212;
  border: 1px solid #262626;
  border-radius: 4px;
  color: #c4c4c4;
  font-size: 0.92em;
  line-height: 1.6;
}
.kab-ek-govde p {
  margin: 0 0 8px;
}
.kab-ek-govde p:last-child {
  margin-bottom: 0;
}
.kab-ek-govde h5 {
  margin: 12px 0 5px;
  color: #9a8a55;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.kab-ek-govde h5:first-child {
  margin-top: 0;
}
.kab-ek-govde ul {
  margin: 0;
  padding-left: 20px;
}
.kab-ek-govde li {
  margin-bottom: 4px;
}
.kab-ek-govde strong {
  color: #ddd;
}

.kab-malzeme-tarif {
  display: block;
  color: #8d8d8d;
  font-size: 0.93em;
}

.kab-kunye {
  margin: 10px 0 0;
}
.kab-kunye dt {
  color: #9a8a55;
  font-size: 0.82em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.kab-kunye dd {
  margin: 2px 0 8px;
}
.kab-kunye dd:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .kab-govde {
    padding-left: 6px;
  }

  .kab-sayi {
    margin-left: 0;
  }
}
.uyari-seridi.sk-spoiler-uyari {
  font-weight: normal;
  line-height: 1.6;
}

.sk-spoiler-uyari strong {
  display: block;
  margin-bottom: 4px;
}

.sk-intro {
  color: #b9b3a2;
  font-size: 0.95em;
  line-height: 1.7;
  margin-bottom: 24px;
}

.sk-intro code {
  background: #1f1a10;
  color: #d4bb63;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.92em;
}

.sk-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding: 14px;
  background: #12100a;
  border: 1px solid #4a3d1a;
  border-radius: 6px;
}

.sk-nav a {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 0.82em;
  text-decoration: none;
  background: #1f1a10;
  color: #d4bb63;
  border: 1px solid #4a3d1a;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.sk-nav a:hover {
  background: #2f2814;
  border-color: #6b5520;
}

.kural-blok {
  background: #151515;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 20px;
  scroll-margin-top: 20px;
  transition: background-color 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.kural-blok.kural-vurgu {
  background-color: #201a0a;
  border-color: #6b5520;
  box-shadow: 0 0 0 2px #4a3d1a, 0 0 24px rgba(212, 175, 55, 0.15);
}

.kural-blok h2 {
  color: #d4af37;
  margin-top: 0;
  font-size: 1.15em;
}

.kural-blok .kural-no {
  color: #6e6e6e;
  font-weight: normal;
  font-size: 0.75em;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 2px;
}

.kural-blok h3 {
  color: #c9b06a;
  font-size: 0.98em;
  margin: 18px 0 6px;
  scroll-margin-top: 20px;
}

.kural-blok p {
  color: #ccc;
  font-size: 0.92em;
  line-height: 1.65;
}

.kural-blok code {
  background: #1f1a10;
  color: #d4bb63;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.92em;
}

.kural-blok ul {
  margin: 10px 0;
  padding-left: 22px;
  color: #ccc;
  font-size: 0.92em;
  line-height: 1.65;
}

.kural-blok li {
  margin-bottom: 6px;
}

.kural-test {
  margin-top: 12px;
  padding: 10px 12px;
  background: #1a1a1a;
  border-left: 3px solid #4a3d1a;
  border-radius: 4px;
  color: #a89a6a;
  font-size: 0.85em;
  font-style: italic;
}

.kural-test ol {
  margin: 6px 0 0;
  padding-left: 20px;
}

.kural-test li {
  margin-bottom: 4px;
}

.sk-bolum {
  color: #d4af37;
  font-size: 1.05em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 36px 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #4a3d1a;
}

.kural-ornekler {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.kural-ornek {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 3px;
  font-size: 0.78em;
  background: #1f1a10;
  color: #d4bb63;
  border: 1px solid #4a3d1a;
}

.cilt {
  margin-bottom: 14px;
  border: 1px solid #333;
  border-radius: 6px;
  background: #131313;
}
.cilt > summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  font-family: sans-serif;
}
.cilt > summary::-webkit-details-marker {
  display: none;
}
.cilt > summary::before {
  content: "▸";
  color: #a41818;
  margin-right: 4px;
}
.cilt[open] > summary {
  border-bottom: 1px solid #333;
}
.cilt[open] > summary::before {
  content: "▾";
}
.cilt .chapter-list {
  margin: 0;
  padding: 6px 16px 10px;
}

.cilt-baslik {
  flex: 1;
  color: #d4af37;
  font-weight: bold;
}

.cilt-aralik {
  color: #777;
  font-size: 0.85em;
  white-space: nowrap;
}

.okuma-ilerleme {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: #a41818;
  transition: width 0.1s linear;
}

.sonraki-tarih {
  text-align: center;
  color: #888;
  font-family: sans-serif;
  font-size: 0.9rem;
  margin: 12px 0 0;
}
.sonraki-tarih[hidden] {
  display: none;
}

.font-adjusters .ayar-dugmesi {
  font-size: 1rem;
  padding: 4px 10px;
}

.okuma-ayarlari {
  margin: -1rem 0 2rem;
  padding: 14px 16px;
  border: 1px solid #333;
  border-radius: 6px;
  background: #131313;
  font-family: sans-serif;
  font-size: 0.85rem;
  color: #999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.okuma-ayarlari[hidden] {
  display: none;
}

.ayar-satiri {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ayar-secenekler {
  display: flex;
  gap: 4px;
}
.ayar-secenekler button {
  background: #222;
  color: #bbb;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 0.85rem;
  cursor: pointer;
}
.ayar-secenekler button:hover {
  border-color: #a41818;
}
.ayar-secenekler button.secili {
  background: #a41818;
  border-color: #a41818;
  color: #fff;
}

@media (max-width: 600px) {
  .ayar-genislik {
    display: none;
  }
}
html[data-satir="sik"] .chapter-body {
  line-height: 1.45;
}

html[data-satir="genis"] .chapter-body {
  line-height: 1.95;
}

html[data-genislik="dar"] .bolum-sayfasi .container {
  max-width: 30rem;
}

html[data-genislik="genis"] .bolum-sayfasi .container {
  max-width: 46rem;
}

html[data-tema="sepya"] body.bolum-sayfasi {
  background-color: #f3ead6;
  color: #3d3326;
}
html[data-tema="sepya"] body.bolum-sayfasi ::selection {
  background: #a41818;
  color: #fff;
}
html[data-tema="sepya"] body.bolum-sayfasi .imperium-header {
  background-color: rgba(243, 234, 214, 0.92);
  border-bottom-color: #d9ccb0;
  box-shadow: 0 4px 15px rgba(80, 60, 30, 0.12);
}
html[data-tema="sepya"] body.bolum-sayfasi .header-brand .header-title {
  color: #2e2519;
}
html[data-tema="sepya"] body.bolum-sayfasi .header-logo {
  border-radius: 4px;
  background: #151515;
}
html[data-tema="sepya"] body.bolum-sayfasi .menu-dugmesi span {
  background: #5a4a36;
}
html[data-tema="sepya"] body.bolum-sayfasi .bolum-basligi {
  color: #2e2519;
}
html[data-tema="sepya"] body.bolum-sayfasi .reading-meta-bar {
  color: #7a6a52;
  border-bottom-color: #d9ccb0;
}
html[data-tema="sepya"] body.bolum-sayfasi .font-adjusters #currentFontSize {
  color: #3d3326;
}
html[data-tema="sepya"] body.bolum-sayfasi .font-adjusters button {
  background-color: #e4d8bd;
  color: #3d3326;
}
html[data-tema="sepya"] body.bolum-sayfasi .font-adjusters button:hover {
  background-color: #a41818;
  color: #fff;
}
html[data-tema="sepya"] body.bolum-sayfasi .okuma-ayarlari {
  background: #ece1c8;
  border-color: #d9ccb0;
  color: #6b5b44;
}
html[data-tema="sepya"] body.bolum-sayfasi .ayar-secenekler button {
  background: #f3ead6;
  color: #4a3d2c;
  border-color: #d0c2a4;
}
html[data-tema="sepya"] body.bolum-sayfasi .ayar-secenekler button.secili {
  background: #a41818;
  border-color: #a41818;
  color: #fff;
}
html[data-tema="sepya"] body.bolum-sayfasi h1, html[data-tema="sepya"] body.bolum-sayfasi h2, html[data-tema="sepya"] body.bolum-sayfasi h3, html[data-tema="sepya"] body.bolum-sayfasi h4, html[data-tema="sepya"] body.bolum-sayfasi h5, html[data-tema="sepya"] body.bolum-sayfasi h6 {
  color: #2e2519;
}
html[data-tema="sepya"] body.bolum-sayfasi strong {
  color: #1f180f;
}
html[data-tema="sepya"] body.bolum-sayfasi blockquote {
  color: #5e5040;
  background: rgba(120, 90, 40, 0.07);
}
html[data-tema="sepya"] body.bolum-sayfasi hr, html[data-tema="sepya"] body.bolum-sayfasi .bolum-ayrac {
  border-top-color: #d9ccb0;
}
html[data-tema="sepya"] body.bolum-sayfasi .chapter-nav {
  border-top-color: #d9ccb0;
}
html[data-tema="sepya"] body.bolum-sayfasi .nav-btn {
  background-color: #e4d8bd;
  color: #3d3326;
}
html[data-tema="sepya"] body.bolum-sayfasi .nav-btn:hover {
  background-color: #d6c8a8;
  color: #2e2519;
}
html[data-tema="sepya"] body.bolum-sayfasi .nav-btn.archive-btn {
  background-color: #a41818;
  color: #fff;
}
html[data-tema="sepya"] body.bolum-sayfasi .nav-btn.disabled {
  background-color: transparent;
  color: #a89878;
  border-color: #d9ccb0;
}
html[data-tema="sepya"] body.bolum-sayfasi .sonraki-tarih {
  color: #7a6a52;
}
html[data-tema="sepya"] body.bolum-sayfasi .imperium-footer {
  background: #ece1c8;
  border-color: #d9ccb0;
  color: #4a3d2c;
}
html[data-tema="sepya"] body.bolum-sayfasi .imperium-footer h3.kirmizi {
  color: #a41818;
}
html[data-tema="sepya"] body.bolum-sayfasi .imperium-footer h3.altin {
  color: #8a6a12;
}
html[data-tema="sepya"] body.bolum-sayfasi .alt-not {
  color: #8a7a60;
}
