/* Yazı Tipi Yükleme */
@font-face {
  font-family: 'Scheherazade';
  src: url('fonts/ScheherazadeNew-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Amiri";
  src: url("fonts/Amiri-Regular.ttf") format("ttf"),
       url("fonts/Amiri-Bold.ttf") format("ttf");
  font-weight: bold;
  font-style: normal;
}

/* Ana Arapça Paragraf Yapısı */
.arabic {
  font-family: "Amiri", "Scheherazade", serif;
  font-size: 1.4rem;
  direction: rtl;
  text-align: right;
  margin: 18px 0 8px;
  line-height: 2.0; /* Harakelerin birbirine girmemesi için önemli */
  color: #222;
}

/* Author Yapısı */
.author {
  font-family: "Amiri", "Scheherazade", serif;
  font-size: 1.5rem;
  direction: rtl;
  text-align: center;
  font-weight: bold;
  margin: 18px 0 8px;
  line-height: 2.2; /* Harakelerin birbirine girmemesi için önemli */
  color: #013220;
}

/* Sayfa Ortasındaki Vurgulu Metinler (Ayet, Hadis, Kelime-i Tevhid) */
.arabic-center {
  font-family: "Amiri", "Scheherazade", serif;
  font-size: 1.4rem;
  text-align: center;
  font-weight: bold;
  margin: 25px 0;
  display: block;
}

/* Besmele Stili */
.besmele {
  font-family: "Amiri", "Scheherazade", serif;
  text-align: center;
  font-size: 1.6rem;
  font-weight: bold;
  margin: 20px 0;
  color: #000;
  display: block;
}

/* Arapça Bölüm Başlıkları (Mavi Başlıklar) */
.arabic-h2 {
  color: #0000CC;
  font-family: "Georgia", serif; /* Başlıklar latin fontuyla daha okunaklı olabilir */
  font-size: 1.7rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
  margin-top: 40px;
  direction: rtl;
  text-align: right;
  font-weight: bold;
}

/* Sayfa Altındaki Küçük Notlar/Dipnotlar */
.arabic-notes {
  font-family: "Amiri", "Scheherazade", serif;
  font-size: 1.1rem;
  font-weight: bold;
  color: #666;
  border-top: 1px dashed #ccc;
  margin-top: 20px;
  padding-top: 10px;
  direction: rtl;
  text-align: right;
}

/* =========================
   Dil Değiştirme Düğmesi
   ========================= */

.lang-switch {
  position: sticky;
  top: 10px;
  display: flex;
  justify-content: flex-end;
  padding: 8px 12px;
  z-index: 999;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.85rem;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}

.lang-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.lang-ar {
  font-family: "Amiri", "Scheherazade", serif;
  font-size: 1rem;
  direction: rtl;
}

.lang-tr {
  font-family: inherit;
}

/* Mobil */
@media (max-width: 600px) {
  .lang-btn {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
}

html[dir="rtl"] .lang-switch {
  justify-content: flex-start;
}
