/* ==========================================================================
   İMAYDER — Sayfa Özel Stilleri
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Ana sayfa: takdim bloğu
   -------------------------------------------------------------------------- */

.intro {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } }

.intro__visual, .intro__media { position: relative; }

.intro__frame {
  position: relative;
  border-radius: var(--r-arch);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--sh-xl);
  background: linear-gradient(160deg, var(--brand-700), var(--brand-900));
}
.intro__frame img { width: 100%; height: 100%; object-fit: cover; }

/* Kemerin çevresindeki ince altın çerçeve */
.intro__frame::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201, 162, 39, 0.55);
  border-radius: var(--r-arch);
  pointer-events: none;
}

.intro__badge {
  position: absolute;
  right: -18px; bottom: 42px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  border: 1px solid var(--border-soft);
  max-width: 250px;
}
.intro__badge-icon {
  width: 46px; height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--gold-50);
  color: var(--gold-600);
}
.intro__badge-num { font-family: var(--font-display); font-size: 1.5rem; color: var(--brand-800); line-height: 1; }
.intro__badge-label { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 3px; }

@media (max-width: 620px) { .intro__badge { right: 0; bottom: 0; } }

.intro__list { display: flex; flex-direction: column; gap: 1.15rem; margin-top: 1.75rem; }
.intro__list-item { display: flex; gap: 0.95rem; align-items: flex-start; }
.intro__list-icon {
  width: 26px; height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-600);
  margin-top: 2px;
}
.intro__list-icon svg { width: 14px; height: 14px; }
.intro__list-title { font-weight: 600; color: var(--ink-800); font-size: var(--fs-md); }
.intro__list-text { font-size: var(--fs-base); color: var(--text-muted); margin-top: 2px; }

/* Hakkımızda bölümündeki küçük özellik listesi (büyük .feature kart bileşeniyle
   isim çakışmasını önlemek için burada özel olarak sıfırlanır/yeniden düzenlenir) */
.feature-list { display: flex; flex-direction: column; gap: 1.15rem; margin-top: 1.75rem; }
.feature-list .feature {
  display: flex;
  grid-template-columns: none;
  gap: 0.95rem;
  align-items: flex-start;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}
.feature-list .feature__icon {
  width: 40px; height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-600);
  margin-top: 2px;
}
.feature-list .feature__icon svg { width: 20px; height: 20px; }
.feature-list .feature > div { min-width: 0; }
.feature-list .feature strong { display: block; font-weight: 600; color: var(--ink-800); font-size: var(--fs-md); margin-bottom: 2px; }
.feature-list .feature p { font-size: var(--fs-base); color: var(--text-muted); margin: 0; }

/* --------------------------------------------------------------------------
   2. Öne çıkan yazı (büyük kart)
   -------------------------------------------------------------------------- */

.feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-md);
}
@media (max-width: 880px) { .feature { grid-template-columns: 1fr; } }

.feature__media {
  position: relative;
  min-height: 340px;
  background: linear-gradient(150deg, var(--brand-700), var(--brand-900));
  overflow: hidden;
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.feature__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(0,0,0,0.12));
}

.feature__body {
  padding: clamp(1.75rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.feature__title { font-size: var(--fs-2xl); line-height: 1.24; }
.feature__title a { color: var(--heading); }
.feature__title a:hover { color: var(--brand-600); }
.feature__text { color: var(--text-muted); font-size: var(--fs-md); line-height: 1.72; }

/* --------------------------------------------------------------------------
   3. Kıssa kartı (özel — hisse vurgulu)
   -------------------------------------------------------------------------- */

.kissa-card {
  position: relative;
  background: var(--paper-warm);
  border: 1px solid var(--gold-100);
  border-radius: var(--r-lg);
  padding: 1.9rem 1.75rem;
  overflow: hidden;
  isolation: isolate;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.kissa-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }

.kissa-card::before {
  content: '“';
  position: absolute;
  top: -20px; right: 14px;
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 1;
  color: var(--gold-300);
  opacity: 0.35;
  z-index: -1;
}

.kissa-card__title { font-size: var(--fs-xl); }
.kissa-card__title a { color: var(--brand-900); }
.kissa-card__title a:hover { color: var(--brand-600); }
.kissa-card__text { color: var(--ink-600); font-size: var(--fs-base); flex: 1; }

.kissa-card__lesson {
  margin-top: auto;
  padding: 0.95rem 1.15rem;
  background: rgba(255,255,255,0.72);
  border-left: 3px solid var(--gold-500);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--fs-sm);
  line-height: 1.62;
  color: var(--ink-700);
}
.kissa-card__lesson strong {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 0.35rem;
}

/* Hisse kutusu (detay sayfası) */
.hisse-box {
  position: relative;
  margin-block: 2.5rem;
  padding: 2rem 2rem 2rem 2.5rem;
  background: linear-gradient(120deg, var(--gold-50), var(--paper-warm));
  border: 1px solid var(--gold-100);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.hisse-box::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--gold-500), var(--gold-300));
}
.hisse-box__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 0.85rem;
}
.hisse-box__label svg { width: 16px; height: 16px; }
.hisse-box__text {
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.68;
  color: var(--brand-900);
}

/* Ana sayfa: İmam Mâtürîdî tanıtım şeridi (besmele altı, bölümler üstü) */
.founder-strip {
  background: linear-gradient(120deg, var(--gold-50), var(--paper-warm));
  border-top: 1px solid var(--gold-100);
  border-bottom: 1px solid var(--gold-100);
}
.founder-strip__in {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding-block: 1.75rem;
}
.founder-strip__icon {
  flex: none;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-700);
  box-shadow: var(--sh-sm);
}
.founder-strip__body { flex: 1 1 auto; min-width: 0; }
.founder-strip__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--brand-900);
  margin-bottom: 0.35rem;
}
.founder-strip__text {
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--text-muted);
}
.founder-strip__text a {
  display: inline-block;
  margin-left: 0.4rem;
  color: var(--gold-700);
  font-weight: 600;
  white-space: nowrap;
}
.founder-strip__text a:hover { color: var(--gold-600); text-decoration: underline; }
@media (max-width: 600px) {
  .founder-strip__in { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
}

/* --------------------------------------------------------------------------
   4. Dua kartı
   -------------------------------------------------------------------------- */

.dua-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.dua-card:hover { box-shadow: var(--sh-md); border-color: var(--brand-200); }

.dua-card__head {
  padding: 1.25rem 1.6rem;
  background: linear-gradient(120deg, var(--brand-800), var(--brand-700));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.dua-card__title { color: #fff; font-size: var(--fs-lg); margin: 0; }
.dua-card__title a { color: #fff; }
.dua-card__body { padding: 1.6rem; }

.dua-arabic {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: center;
  font-size: 1.75rem;
  line-height: 2.4;
  color: var(--brand-900);
  padding: 1.25rem 0;
  border-bottom: 1px dashed var(--border);
}

.dua-block { padding-top: 1.15rem; }
.dua-block + .dua-block { border-top: 1px dashed var(--border); margin-top: 1.15rem; }
.dua-block__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.5rem;
}
.dua-block__text { color: var(--ink-700); line-height: 1.78; }
.dua-block--translit .dua-block__text { font-style: italic; color: var(--brand-700); }

.dua-card__foot {
  padding: 1rem 1.6rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   5. Siyer zaman çizelgesi
   -------------------------------------------------------------------------- */

.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 11px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-300), var(--gold-300), var(--brand-200));
}

.tl-item { position: relative; padding-bottom: 2.5rem; }
.tl-item:last-child { padding-bottom: 0; }

.tl-item__dot {
  position: absolute;
  left: -2.5rem; top: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand-500);
  display: grid;
  place-items: center;
  transition: all var(--dur-base) var(--ease-out);
}
.tl-item__dot::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-500);
  transition: background-color var(--dur-base) var(--ease-out);
}
.tl-item:hover .tl-item__dot { border-color: var(--gold-500); transform: scale(1.15); }
.tl-item:hover .tl-item__dot::after { background: var(--gold-500); }

.tl-item__year {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-700);
  background: var(--gold-50);
  padding: 0.3rem 0.8rem;
  border-radius: var(--r-pill);
  margin-bottom: 0.75rem;
}

.tl-item__card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 1.5rem 1.65rem;
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.tl-item:hover .tl-item__card { box-shadow: var(--sh-md); border-color: var(--brand-200); transform: translateX(4px); }
.tl-item__title { font-size: var(--fs-xl); margin-bottom: 0.55rem; }
.tl-item__title a { color: var(--heading); }
.tl-item__title a:hover { color: var(--brand-600); }
.tl-item__text { color: var(--text-muted); font-size: var(--fs-base); }
.tl-item__period {
  font-size: var(--fs-xs);
  color: var(--text-faint);
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

@media (max-width: 560px) {
  .timeline { padding-left: 1.9rem; }
  .timeline::before { left: 7px; }
  .tl-item__dot { left: -1.9rem; width: 18px; height: 18px; }
  .tl-item__card { padding: 1.15rem 1.25rem; }
}

/* --------------------------------------------------------------------------
   6. Kur'an modülü
   -------------------------------------------------------------------------- */

.surah-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 1rem;
}

.surah-tile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  transition: all var(--dur-base) var(--ease-out);
}
.surah-tile:hover {
  border-color: var(--brand-300);
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}

.surah-tile__num {
  width: 44px; height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  transform: rotate(45deg);
  border-radius: var(--r-xs);
  transition: all var(--dur-base) var(--ease-out);
}
.surah-tile__num span { transform: rotate(-45deg); }
.surah-tile:hover .surah-tile__num { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }

.surah-tile__info { flex: 1; min-width: 0; }
.surah-tile__name { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--heading); line-height: 1.25; }
.surah-tile__meta { font-size: var(--fs-xs); color: var(--text-faint); margin-top: 3px; }
.surah-tile__arabic {
  font-family: var(--font-arabic);
  direction: rtl;
  font-size: 1.35rem;
  color: var(--brand-500);
  flex: none;
  transition: color var(--dur-base) var(--ease-out);
}
.surah-tile:hover .surah-tile__arabic { color: var(--gold-600); }

/* Sure okuma başlığı */
.surah-head {
  position: relative;
  text-align: center;
  padding: clamp(2rem, 4vw, 3.25rem) clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(700px 260px at 50% 0%, rgba(26,123,163,0.3), transparent 65%),
    linear-gradient(145deg, var(--brand-900), var(--brand-800));
  border-radius: var(--r-xl);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.surah-head .motif-grid { opacity: 0.3; z-index: -1; }
.surah-head__in { position: relative; z-index: 1; }
.surah-head__arabic {
  font-family: var(--font-arabic);
  direction: rtl;
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--gold-300);
  line-height: 1.5;
}
.surah-head__name { color: #fff; font-size: var(--fs-2xl); margin-top: 0.5rem; }
.surah-head__meta {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.15rem;
}

/* Besmele */
.besmele {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: center;
  font-family: var(--font-arabic);
  direction: rtl;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  color: var(--brand-800);
  padding: 2rem 1rem;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 1rem;
}
.besmele .ornament { flex: 1 1 auto; max-width: 160px; order: 1; }
.besmele p.arabic { margin: 0; flex: none; direction: rtl; order: 1; }
.besmele small { order: 3; flex-basis: 100%; direction: ltr; font-family: var(--font-body, inherit); font-size: var(--fs-sm); color: var(--text-muted); }

/* Ayet satırı */
.ayah {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border-soft);
  scroll-margin-top: calc(var(--header-h) + 20px);
  transition: background-color var(--dur-base) var(--ease-out);
}
.ayah__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.ayah:target, .ayah.is-active {
  background: var(--gold-50);
  border-radius: var(--r-md);
  padding-inline: 1.15rem;
  box-shadow: inset 0 0 0 1px var(--gold-100);
}

.ayah__num {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  font-size: var(--fs-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex: none;
  align-self: start;
  position: relative;
}
.ayah__num::before, .ayah__num::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid var(--brand-200);
  border-radius: 50%;
  opacity: 0.6;
}

.ayah__arabic {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
  font-size: var(--quran-size, 1.9rem);
  line-height: 2.5;
  color: var(--brand-900);
  margin-bottom: 1rem;
}

.ayah__translit {
  font-style: italic;
  color: var(--brand-600);
  font-size: var(--fs-base);
  line-height: 1.72;
  padding-bottom: 0.9rem;
}

.ayah__translation {
  color: var(--ink-700);
  font-size: 1.03rem;
  line-height: 1.82;
}

.ayah__tools {
  display: flex;
  gap: 0.4rem;
  margin-top: 1rem;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.ayah:hover .ayah__tools, .ayah:focus-within .ayah__tools { opacity: 1; }
.ayah__tool {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--bg-alt);
  color: var(--ink-500);
  transition: all var(--dur-fast) var(--ease-out);
}
.ayah__tool:hover { background: var(--brand-600); color: #fff; }
.ayah__tool svg { width: 15px; height: 15px; }

.ayah__tafsir {
  margin-top: 1.15rem;
  padding: 1.15rem 1.35rem;
  background: var(--bg-alt);
  border-radius: var(--r-sm);
  font-size: var(--fs-base);
  color: var(--ink-600);
  line-height: 1.78;
  border-left: 3px solid var(--brand-300);
}

@media (max-width: 600px) {
  .ayah { grid-template-columns: 1fr; gap: 0.85rem; }
  .ayah__num { width: 38px; height: 38px; }
  .ayah__arabic { font-size: 1.6rem; line-height: 2.3; }
  .ayah__tools { opacity: 1; }
}

/* Okuyucu araç çubuğu */
.reader-bar {
  position: sticky;
  top: calc(var(--header-h) + 10px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-sm);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.reader-bar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
}
.reader-bar__left, .reader-bar__right { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.reader-bar__group { display: flex; align-items: center; gap: 0.4rem; }
.reader-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-600);
  background: transparent;
  transition: all var(--dur-fast) var(--ease-out);
}
.reader-bar__btn:hover { background: var(--brand-50); color: var(--brand-700); }
.reader-bar__btn.is-active { background: var(--brand-600); color: #fff; }
.reader-bar__btn svg { width: 15px; height: 15px; }

/* Sure gezinme */
.surah-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}
.surah-nav__link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.15rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  transition: all var(--dur-base) var(--ease-out);
}
.surah-nav__link:hover { border-color: var(--brand-300); box-shadow: var(--sh-sm); }
.surah-nav__link--next { justify-content: flex-end; text-align: right; }
.surah-nav__label { font-size: var(--fs-xs); color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.surah-nav__name { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--heading); }
@media (max-width: 560px) { .surah-nav { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   7. Soru-Cevap modülü
   -------------------------------------------------------------------------- */

.qa-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.qa-hero__in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  grid-column: 1 / -1;
}
@media (max-width: 900px) {
  .qa-hero, .qa-hero__in { grid-template-columns: 1fr; }
}

.ask-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.ask-card__head {
  padding: 1.6rem 1.85rem;
  background: linear-gradient(125deg, var(--brand-800), var(--brand-600));
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.ask-card__head .motif-grid { opacity: 0.4; z-index: -1; }
.ask-card__head h3 { color: #fff; margin-bottom: 0.3rem; }
.ask-card__head p { color: rgba(255,255,255,0.78); font-size: var(--fs-sm); }
.ask-card__body { padding: 1.85rem; }

.ask-steps { display: flex; flex-direction: column; gap: 1.5rem; }
.ask-step { display: flex; gap: 1.15rem; align-items: flex-start; }
.ask-step__num {
  width: 42px; height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--r-arch);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.ask-step__title { font-weight: 600; color: var(--ink-800); font-size: var(--fs-md); margin-bottom: 0.25rem; }
.ask-step__text { font-size: var(--fs-base); color: var(--text-muted); }

/* Soru-cevap listesi */
.qa-item {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.qa-item + .qa-item { margin-top: 1.15rem; }
.qa-item:hover { box-shadow: var(--sh-md); border-color: var(--brand-200); }

.qa-item__q {
  display: flex;
  gap: 1.1rem;
  padding: 1.5rem 1.75rem;
  align-items: flex-start;
}
.qa-item__mark {
  width: 40px; height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: 1.2rem;
  background: var(--brand-600);
  color: #fff;
}
.qa-item__mark--a { background: var(--gold-500); color: var(--brand-900); }

.qa-item__title { font-size: var(--fs-lg); margin-bottom: 0.4rem; }
.qa-item__title a { color: var(--heading); }
.qa-item__title a:hover { color: var(--brand-600); }
.qa-item__text { color: var(--text-muted); font-size: var(--fs-base); }

.qa-item__a {
  display: flex;
  gap: 1.1rem;
  padding: 1.5rem 1.75rem;
  background: var(--paper-warm);
  border-top: 1px solid var(--gold-100);
  align-items: flex-start;
}

.qa-item__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.75rem;
  border-top: 1px solid var(--border-soft);
  font-size: var(--fs-xs);
  color: var(--text-faint);
  background: var(--bg-alt);
}
.qa-item__meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.qa-item__meta svg { width: 13px; height: 13px; }

@media (max-width: 560px) {
  .qa-item__q, .qa-item__a { padding: 1.15rem 1.15rem; gap: 0.85rem; }
  .qa-item__meta { padding-inline: 1.15rem; }
  .qa-item__mark { width: 32px; height: 32px; font-size: 1rem; }
}

/* Takip kodu kutusu */
.ref-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--success-bg);
  border: 1px dashed var(--success);
  border-radius: var(--r-md);
}
.ref-box__code {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--success);
}

/* --------------------------------------------------------------------------
   8. Ders kartı (medya)
   -------------------------------------------------------------------------- */

.lesson-card { position: relative; }
.lesson-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}
.play-btn {
  width: 62px; height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--brand-700);
  box-shadow: var(--sh-lg);
  transition: transform var(--dur-base) var(--ease-spring), background-color var(--dur-fast) var(--ease-out);
}
.play-btn svg { width: 22px; height: 22px; margin-left: 3px; }
.lesson-card:hover .play-btn { transform: scale(1.12); background: var(--gold-500); color: var(--brand-900); }

.play-btn::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  animation: pulse-ring 2.2s var(--ease-out) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

.lesson-card__duration {
  position: absolute;
  right: 0.85rem; bottom: 0.85rem;
  z-index: 2;
  padding: 0.25rem 0.65rem;
  border-radius: var(--r-xs);
  background: rgba(6,41,58,0.82);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(4px);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-900);
  box-shadow: var(--sh-lg);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --------------------------------------------------------------------------
   9. Yazı detay
   -------------------------------------------------------------------------- */

.article-head { position: relative; margin-bottom: 2.25rem; overflow: hidden; isolation: isolate; }
.article-head__in { position: relative; z-index: 1; }
.article-head__title { font-size: var(--fs-3xl); margin-block: 0.85rem 1rem; }
.article-head__sub {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--text-muted);
  line-height: 1.55;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
  padding-block: 1.15rem;
  margin-top: 1.35rem;
  border-block: 1px solid var(--border-soft);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.article-meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.article-meta svg { width: 15px; height: 15px; opacity: 0.65; }

.article-cover {
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 2.25rem;
  box-shadow: var(--sh-md);
  aspect-ratio: 16 / 9;
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

/* Paylaş */
.share {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding-block: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border-soft);
}
.share__label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-700); margin-right: 0.35rem; }
.share__btn {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--ink-500);
  border: 1px solid var(--border-soft);
  transition: all var(--dur-fast) var(--ease-out);
}
.share__btn:hover { background: var(--brand-600); color: #fff; border-color: var(--brand-600); transform: translateY(-2px); }
.share__btn svg { width: 17px; height: 17px; }

/* İçindekiler */
.toc {
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 1.35rem 1.5rem;
  margin-bottom: 2rem;
}
.toc__title {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: 0.85rem;
}
.toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 0.55rem; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 0.6rem; font-size: var(--fs-base); color: var(--ink-600); }
.toc a::before { content: counter(toc) '.'; color: var(--gold-600); font-weight: 600; flex: none; }
.toc a:hover { color: var(--brand-600); }

/* --------------------------------------------------------------------------
   10. İletişim
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-item {
  display: flex;
  gap: 1.1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.contact-item:last-child { border-bottom: 0; }
.contact-item__icon {
  width: 46px; height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--r-arch);
  background: var(--brand-50);
  color: var(--brand-600);
}
.contact-item__icon svg { width: 20px; height: 20px; }
.contact-item__label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-faint); }
.contact-item__value { font-size: var(--fs-md); color: var(--ink-800); font-weight: 500; margin-top: 3px; }

.map-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --------------------------------------------------------------------------
   11. Hata sayfaları
   -------------------------------------------------------------------------- */

.error-page {
  min-height: 76vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 10rem);
  line-height: 1;
  color: var(--brand-100);
  letter-spacing: -0.03em;
}
.error-title { font-size: var(--fs-2xl); margin-top: -0.4em; }
.error-text { color: var(--text-muted); max-width: 46ch; margin: 1rem auto 2rem; }

/* ==========================================================================
   12. Kur'an-ı Kerim Mushaf & Tefsir Görünümü (Kuran-ı Mecid Birebir Tasarım)
   ========================================================================== */

@font-face {
  font-family: 'KuranFont';
  src: url('/assets/fonts/shaikh_hamdullah_mushaf.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'KuranFontAbay';
  src: url('/assets/fonts/kk_abay.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'PoliticaFont';
  src: url('/assets/fonts/politica.ttf') format('truetype');
  font-display: swap;
}

.kuran-reading-area {
  background-color: #ecf0f5;
  min-height: calc(100vh - 180px);
  padding: 18px 12px 60px;
  font-family: 'Source Sans Pro', 'Plus Jakarta Sans', -apple-system, sans-serif;
  color: #222;
}

/* Top brown toolbar (#sidebarTop) */
#sidebarTop {
  background-color: #7e5923;
  border-bottom: 2px solid #5e3e11;
  padding: 10px 16px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

#menuSearch {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

#menuSearch .search-icon {
  color: #fff;
  font-size: 15px;
}

#search_results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 320px;
  max-height: 380px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #7e5923;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  z-index: 1000;
  margin-top: 6px;
}

.search-result-item {
  display: block;
  padding: 8px 12px;
  border-bottom: 1px solid #f0e6d6;
  text-decoration: none;
  transition: background-color 0.15s;
}

.search-result-item:hover {
  background-color: #fff7d7;
}

.search-result-item .item-title {
  font-size: 13px;
  font-weight: bold;
  color: #7e5923;
  margin-bottom: 2px;
}

.search-result-item .item-text {
  font-size: 12px;
  color: #555;
  line-height: 1.35;
}

#search_input {
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #684313;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13.5px;
  color: #222;
  width: 190px;
  transition: all 0.2s ease;
  outline: none;
}

#search_input:focus {
  width: 230px;
  background-color: #fff;
  border-color: #4a2c07;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.kuran-search-btn {
  background: #5c3c12;
  border: 1px solid #452a06;
  color: #fff;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.kuran-search-btn:hover {
  background: #462c0a;
}

#ustMenuBlok {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.kuran-select {
  background-color: #7e5923 !important;
  border: 1px solid #684313 !important;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  padding: 6px 10px;
  outline: none;
  cursor: pointer;
  transition: background-color 0.2s;
  max-width: 100%;
}

.kuran-select:focus {
  border-color: #ffffff !important;
}

.kuran-select option {
  background-color: #684313;
  color: #ffffff;
}

/* Main Reading Card */
.kuranBackground {
  border: 1px solid #aaaaaa;
  background-color: #FFF7D7;
  border-radius: 4px;
  color: #222222;
  box-shadow: 0 1px 10px 0 rgba(50, 50, 50, 0.45);
  padding: 16px;
  display: block;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  transition: max-width 0.3s ease;
  position: relative;
}

.kuranBackground.wide {
  max-width: 1400px;
}

.contentBorder {
  position: relative;
  padding: 18px 24px;
  border: 10px solid #895926;
  box-shadow: 0 0 3px 3px rgba(0, 0, 0, 0.18);
  border-radius: 4px;
  background: #FFF7D7;
  min-height: 520px;
  overflow: hidden;
}

/* Header inside card */
.altUstBlok {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: 'PoliticaFont', 'Source Sans Pro', sans-serif;
  border-bottom: 1px solid rgba(137, 89, 38, 0.25);
  padding-bottom: 10px;
}

.sureIsmi {
  font-size: 15pt;
  font-weight: bold;
  color: #424242;
  flex: 1;
  text-align: left;
}

.sayfalama {
  font-size: 15pt;
  color: #424242;
  flex: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.sayfalama a {
  color: #424242;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  transition: all 0.2s;
  user-select: none;
  font-size: 16px;
}

.sayfalama a:hover:not(.disabled) {
  background: rgba(137, 89, 38, 0.15);
  color: #895926;
}

.sayfalama a.disabled {
  color: #b0b0b0;
  cursor: not-allowed;
}

.sayfalama b {
  font-weight: bold;
  color: #222;
}

.cuzNo {
  font-size: 15pt;
  color: #424242;
  flex: 1;
  text-align: right;
}

.arabic.sureIsmi {
  font-family: 'KuranFont', serif;
  font-size: 18pt;
  text-align: right;
  direction: rtl;
}

.arabic.cuzNo {
  font-family: 'PoliticaFont', serif;
  text-align: left;
}

/* Surah banner (.besmeleNumber) */
.besmeleNumber {
  text-align: center;
  position: relative;
  margin: 12px 0 20px;
  padding: 10px 0;
}

.sureBackground {
  z-index: 1;
  position: absolute;
  width: 100%;
  height: 100%;
  max-width: 522px;
  max-height: 175px;
  background-image: url('/assets/img/quran/sure_background.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  top: -12px;
  left: calc(50% - 261px);
  opacity: 0.4;
  pointer-events: none;
}

.SureHeader {
  position: relative;
  display: block;
  width: 100%;
  margin: 10px auto;
  text-align: center;
}

.SureHeaderText {
  text-align: center;
  background-image: url('/assets/img/quran/sureHeader.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  height: auto;
  color: #ffffff;
  width: 100%;
  line-height: 90px;
  font-size: 18pt;
  font-family: 'KuranFont', serif;
}

.SureHeaderText.sadecekuran {
  background-image: none;
  color: #7e5923;
  line-height: 50px;
}

.ustText {
  position: relative;
  z-index: 2;
  display: inline-block;
  font-family: 'PoliticaFont', 'Source Sans Pro', sans-serif;
  font-size: 14pt;
  color: #424242;
}

.ayetbasliksayi {
  font-family: 'PoliticaFont', sans-serif;
  font-size: 14pt;
  color: #424242;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.koyukirmizi {
  color: #860000;
  font-weight: bold;
}

.koyusiyah {
  color: #000000;
  font-weight: normal;
}

.normalsiyah {
  color: #424242;
  font-weight: normal;
}

.pol {
  font-family: 'PoliticaFont', sans-serif !important;
}

/* Verses */
.sureler.ar.fontsize {
  font-family: 'KuranFont', 'Amiri Quran', serif !important;
  font-size: 27px;
  line-height: 65px;
  direction: rtl;
  text-align: justify;
  word-wrap: break-word;
  color: #111;
  margin-top: 10px;
}

.qfont .sureler.ar.fontsize {
  font-family: 'KuranFontAbay', serif !important;
}

.contentBorder.arapca {
  text-align: justify;
  direction: rtl;
  word-wrap: break-word;
  font-family: 'KuranFont', 'Amiri Quran', serif !important;
  font-size: 27px;
  line-height: 65px;
}

.contentBorder.arapca .sureler {
  display: inline;
}

.contentBorder.arapca .word {
  display: inline;
}

.word {
  display: inline;
}

.otherNumber {
  display: inline;
  color: #a67638;
  font-weight: normal;
  font-size: 14pt;
  margin-left: 5px;
  margin-right: 5px;
  user-select: none;
}

.otherNumber.rtl {
  position: relative;
  top: 0;
  margin-right: 0;
  float: right;
  direction: rtl;
  unicode-bidi: isolate;
  line-height: 65px;
}

.otherNumber.ar.lihe {
  font-family: 'KuranFont', serif;
  font-size: 18pt;
  color: #895926;
  margin-right: 6px;
  display: inline-block;
  line-height: 1;
}

.ayettr {
  font-family: 'Open Sans Condensed', 'Plus Jakarta Sans', sans-serif;
  font-size: 14pt;
  line-height: 1.5;
  color: #860000;
  display: block;
  margin: 8px 0 14px;
  text-align: justify;
}

.detail {
  padding: 10px 0 4px;
  display: block;
  font-size: 11.5pt;
  color: #52565a;
  line-height: 1.45;
  font-family: 'Plus Jakarta Sans', sans-serif;
  border-left: 2px solid #895926;
  padding-left: 12px;
  margin-top: 6px;
}

.ul_li {
  font-size: 11pt;
  font-weight: 600;
  color: #52565a;
  margin: 4px 0 4px 15px;
}

hr.aralik {
  background-color: #9b815d;
  border: none;
  height: 1px;
  margin: 15px 0;
}

.sureler.selected,
.ayettr.selected {
  background-color: #f7f0ca !important;
  border-radius: 4px;
  box-shadow: 0 0 0 4px #f7f0ca;
}

/* Split view (Kur'an ve Tefsir Ayrı Sayfa) */
.contentTrAr {
  position: relative;
  width: 100%;
}

.contentOther {
  position: relative;
  width: 100%;
}

.contentAr {
  position: relative;
  width: 100%;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .split-layout {
    grid-template-columns: 1fr;
  }
}

/* Bottom Nav bar under reading card */
.kuran-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 920px;
  margin: 20px auto 0;
  padding: 0 10px;
  color: #52565a;
  font-size: 14px;
}

.kuran-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #7e5923;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  transition: background 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.kuran-nav-btn:hover {
  background: #684313;
}

.kuran-nav-btn.disabled {
  background: #a89885;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Loading overlay */
#kuran-loader {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(255, 247, 215, 0.75);
  z-index: 50;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

#kuran-loader.active {
  display: flex;
}

.kuran-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #895926;
  border-top-color: transparent;
  border-radius: 50%;
  animation: kuran-spin 0.8s linear infinite;
}

@keyframes kuran-spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  #sidebarTop {
    flex-direction: column;
    align-items: stretch;
  }
  #ustMenuBlok {
    justify-content: space-between;
  }
  .kuran-select {
    flex: 1 1 45%;
    font-size: 12px;
    padding: 6px 8px;
  }
  #search_input {
    width: 100%;
  }
  #search_input:focus {
    width: 100%;
  }
  .kuranBackground {
    padding: 8px;
  }
  .contentBorder {
    padding: 12px;
    border-width: 6px;
  }
  .sureler.ar.fontsize {
    font-size: 21px;
    line-height: 48px;
  }
  .contentBorder.arapca {
    font-size: 21px;
    line-height: 48px;
  }
  .SureHeaderText {
    font-size: 14pt;
    line-height: 60px;
  }
}
