body {
  font-family: "Bookman Old Style", serif;
  font-size: 1.0em;
  line-height: 1.3;
  background-color: #EEEEEE;
  color: #000;
}

p {
  margin: 0.8em 0;
  text-align: justify;
}

.mavi { color: #0000FF; }
.kirmizi { color: #CC3300; }

.ayet { 
  font-family: "Bookman Old Style", serif;
  font-size: 1em;
  color: #0B6605; 
  font-weight: normal;
}

.baslik {
  font-family: "Bookman Old Style", serif;
  font-size: 1.3em;
  text-align: center;
  color: #0B6605;
  font-weight: bold;
}
.metin {
  margin: 20px 5%;
  font-family: "Bookman Old Style", serif;
  font-size: 1.8em;
  text-align: justify;
  line-height: 1.3;
}

.mavi {
  color: #0000FF;
}

.kirmizi {
  color: #CC3300;
}

.siir {
  font-family: "Lucida Calligraphy", serif;
  font-size: 0.9em;
  color: #373737;
  font-weight: normal;
}

.hadis {
  font-family: "Bookman Old Style", serif;
  font-size: 1em;
  color: #b50a0c;
  font-weight: normal;
}

.kudsi {
  font-family: "Bookman Old Style", serif;
  font-size: 1em;
  color: #0a0b99;
  font-weight: normal;
}

.baslik-yesil {
  font-family: "Bookman Old Style", serif;
  font-size: 1.3em;   /* Masaüstü varsayılan */
  color: #008000;
  display: block;
  text-align: center;
  font-weight: bold;
  margin: 1px 0%;
}

/* Mobil için (max 600px) */
@media (max-width: 600px) {
  .baslik-yesil {
    font-size: 1.1em;  /* Mobilde biraz daha küçük */
    margin: 10px 0%;
  }
}

/* Tablet için istersen (isteğe bağlı) */
@media (max-width: 900px) and (min-width: 601px) {
  .baslik-yesil {
    font-size: 1.0em;
  }
}


.sup {
  vertical-align: super;
}

.tercume-link {
  text-decoration: none;
  color: #526803; /* İstersen rengi değiştirebilirsin */
}

.tercume-link { padding-bottom: 30px; }

/* Alt kısımdaki link çizgisini temizlemek için */
.alt-linkler a { text-decoration: none; border: none; }
.alt-linkler a:hover { text-decoration: underline; }
.alt-linkler img { vertical-align: middle; border: none; }


.sticky-top {
    position: -webkit-sticky; /* Safari için */
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white; /* Arkadan geçen yazıların görünmemesi için */
    border-bottom: 1px solid #ddd;
    box-shadow: 0 1px 0px rgba(0,0,0,0.1); /* Hafif gölge şık durur */
    padding-bottom: 0px;
}

/* Tablo yapısının bozulmaması için genişlik ayarı */
.sticky-container {
    width: 100%;
    margin: 0 auto;
}

/* Ses çaların dışarı taşmasını engeller */
audio {
    width: 100%;
    max-width: 100%;
}

/* Tablonun yüzdelerini kesinleştirir */
.sticky-top table, .content-table {
    table-layout: fixed; /* Hücre genişliklerini zorunlu tutar */
    width: 100% !important;
}

/* Mobilde yanlardaki %13'lük boşluk çok fazla, bunu daraltalım */
@media screen and (max-width: 600px) {
    .side-space {
        width: 3% !important; /* Mobilde kenar boşluğunu %3'e düşürür */
    }
    .main-content {
        width: 90% !important; /* Metin alanını %90'a çıkarır */
    }
}

input[type="text"],
input[type="search"],
textarea,
select {
  font-size: 16px;
}

/* ============================================================
   4. GECE MODU AYARLARI (NAVBAR DAHİL)
   ============================================================ */
body.dark-mode { background-color: #1a1a1a !important; color: #eeeeee !important; }

/* Gece Modunda Navbar Karartma */
body.dark-mode .navbar {
  background-color: #252525 !important;
  border-color: #444 !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

body.dark-mode .navbar td, body.dark-mode .sticky-top td { 
    color: #4eb548 !important; 
}

body.dark-mode .navbar input {
  background-color: #333 !important;
  color: #fff !important;
  border: 1px solid #555 !important;
}

/* Gece Modu Metin Renkleri */
body.dark-mode p, body.dark-mode .metin { color: #eeeeee !important; }
body.dark-mode .ayet { color: #4eb548 !important; }
body.dark-mode .hadis, body.dark-mode .kirmizi { color: #ff6b6b !important; }
body.dark-mode .kudsi, body.dark-mode .mavi { color: #748ffc !important; }

/* Gece Modu Butonu (SOLDA) */
#themeToggle {
    left: 20px !important;
    right: auto !important; /* Sağa kaymasını engeller */
    padding: 8px 10px !important;
    border-radius: 50px !important;
    background: #333 !important;
    color: #fff !important;
    border: 2px solid #666 !important;
    font-weight: bold !important;
    height: auto !important;
    line-height: normal !important;
}

/* Modlara Göre Buton ve Scroll Renkleri */
body.dark-mode #themeToggle { background: #eeeeee !important; color: #000 !important; border-color: #ccc !important; }
#custom-mobile-scroll.dark { background: rgba(255, 255, 255, 0.8) !important; }

body.dark-mode table, 
body.dark-mode .content-table, 
body.dark-mode div, 
body.dark-mode td {
    background-color: transparent !important; 
    /* Eğer transparent işe yaramazsa burayı #1a1a1a yapın */
}

body.dark-mode .sticky-top {
    background-color: #1a1a1a !important;
    border-bottom: 1px solid #444 !important;
}

/* ============================================================
   EKSTRA: DÜĞME GÖRÜNÜRLÜK VE ANİMASYON SİSTEMİ 
   (Tasarımı bozmadan sadece düğmeleri aktif eder)
   ============================================================ */

/* 1. Düğmelerin Temel Konumu ve Gizliliği */
.floating-btn, #themeToggle, #custom-mobile-scroll {
    position: fixed !important;
    z-index: 100000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
    transition: all 0.6s ease-in-out !important;
    bottom: -100px !important; /* Ekranın altında gizli başlar */
}

/* 2. Geri Dön Butonu Özel Konumu */
.floating-btn {
    right: 30px !important;
    left: auto !important;
    width: 43px;
    height: 28px;
}

/* 3. İnce Scroll Çubuğu Temeli */
#custom-mobile-scroll {
    right: 2px;
    width: 6px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
}

/* 4. AKTİFLEŞTİRME: JS tetiklediğinde görünür yapan kısım (KRİTİK) */
.floating-btn.visible, #themeToggle.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    bottom: 30px !important; /* Ekranın içine yükselir */
}

#custom-mobile-scroll.active {
    opacity: 1 !important;
    visibility: visible !important;
    bottom: 0 !important;
}

/* 5. Gece Modu İçin Scroll Rengi */
#custom-mobile-scroll.dark { 
    background: rgba(255, 255, 255, 0.8) !important; 
}

/* Gece Modu Butonunu biraz AŞAĞI almak için (Mevcut: 20px) */
#themeToggle.show {
    bottom: 20px !important; /* Bu değeri azalttıkça aşağı iner */
}

/* Mobilde linkler daha sıkışık olabilir, ekstra boşluk ekleyelim */
@media (max-width: 600px) {
    body {
        padding-bottom: 30px !important;
    }
}

/* iPhone ve Safari için placeholder gizleme */
input:focus::-webkit-input-placeholder {
    color: transparent !important;
}

/* Diğer tarayıcılar için standart */
input:focus::placeholder {
    color: transparent !important;
}