/* Kolay Tecvid — uygulamanın renkleri: yeşil #116049, altın #F8D074 */

/* Arapça metin: uygulamadaki FeyzulFurkan fontu */
@font-face {
  font-family: "FeyzulFurkan";
  src: url("fonts/FeyzulFurkan.woff2") format("woff2");
  font-display: swap;
}

:root {
  --green: #116049;
  --green-dark: #0b4535;
  --green-soft: #e8f1ed;
  --gold: #f8d074;
  --gold-dark: #b8912f;
  --ink: #1c2420;
  --muted: #5d6a64;
  --paper: #fbf8f1;
  --card: #ffffff;
  --line: #e6e0d2;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --arabic: "FeyzulFurkan", "Geeza Pro", "Noto Naskh Arabic", serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e7ebe9;
    --muted: #a3b0aa;
    --paper: #101614;
    --card: #18201d;
    --line: #2a3531;
    --green-soft: #15291f;
    --gold-dark: #f8d074;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
@media (prefers-color-scheme: dark) { a { color: var(--gold); } }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--gold); color: var(--green-dark); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; z-index: 100; }

/* ---------- Üst menü ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--green);
  color: #fff;
  transition: box-shadow .2s;
}
.nav.scrolled { box-shadow: 0 2px 16px rgb(0 0 0 / .18); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.brand img { width: 38px; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav ul a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; opacity: .9; }
.nav ul a:hover, .nav ul a[aria-current="page"] { background: rgb(255 255 255 / .12); opacity: 1; }
.menu-btn { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }

@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav ul {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; background: var(--green-dark); padding: 8px 20px 16px;
    display: none;
  }
  .nav.open ul { display: flex; }
  .nav ul a { display: block; padding: 12px; }
}

/* ---------- Giriş (hero) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #1a7a5e 0%, var(--green) 55%, var(--green-dark) 100%);
  color: #fff; text-align: center;
  padding: 150px 0 170px;
}
.hero .ornament { position: absolute; left: 50%; transform: translateX(-50%); width: min(311px, 70vw); pointer-events: none; }
.hero .ornament.top { top: 0; }
.hero .ornament.bottom { bottom: 0; }
.hero-logo { width: 96px; margin: 0 auto 22px; }
.bismillah { font-family: var(--arabic); font-size: clamp(2.2rem, 7vw, 3rem); line-height: 1.9; color: var(--gold); margin: 0 0 4px; }
.hero h1 { font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.1; margin: 0 0 10px; letter-spacing: .01em; }
.hero .lead { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2.6vw, 1.35rem); opacity: .92; margin: 0 auto 30px; max-width: 34em; }
.author { font-size: .95rem; opacity: .85; margin-top: 26px; }
.author strong { color: var(--gold); font-weight: 600; }

.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; text-decoration: none;
  padding: 9px 18px 9px 14px; border-radius: 12px; border: 1px solid rgb(255 255 255 / .25);
  transition: transform .15s, background .15s;
}
.store:hover { transform: translateY(-2px); background: #111; }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.store small { font-size: .68rem; opacity: .85; }
.store b { font-size: 1.05rem; font-weight: 600; }

/* ---------- Bölümler ---------- */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.eyebrow { display: inline-block; color: var(--gold-dark); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin-bottom: 8px; }
h2 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.2; margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
}
.feature .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green); margin-bottom: 14px;
}
@media (prefers-color-scheme: dark) { .feature .icon { color: var(--gold); } }
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 6px; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Ders listesi */
.lessons-bg { background: var(--green-soft); }
.parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: start; }
.part { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.part summary {
  list-style: none; cursor: pointer; padding: 20px 22px; display: flex; align-items: center; gap: 14px;
}
.part summary::-webkit-details-marker { display: none; }
.part .num {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--green); color: var(--gold); font-family: var(--serif); font-weight: 700;
}
.part summary h3 { font-family: var(--serif); margin: 0; font-size: 1.2rem; flex: 1; }
.part summary .count { color: var(--muted); font-size: .9rem; }
.part summary::after {
  content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s; margin-left: 4px;
}
.part[open] summary::after { transform: rotate(-135deg); }
.part ol { margin: 0; padding: 0 22px 18px 22px; list-style: none; counter-reset: l; }
.part li {
  counter-increment: l; padding: 9px 0; border-top: 1px solid var(--line);
  display: flex; gap: 12px; font-family: var(--serif);
}
.part li::before { content: counter(l) "."; color: var(--gold-dark); min-width: 1.6em; font-variant-numeric: tabular-nums; }

/* Hakkında */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-card {
  background: var(--green); color: #fff; border-radius: 20px; padding: 48px 32px; text-align: center; position: relative; overflow: hidden;
}
.about-card img.logo { width: 80px; margin: 0 auto 18px; }
.about-card .t1 { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; letter-spacing: .04em; margin: 0; }
.about-card .t2 { font-family: var(--serif); font-style: italic; margin: 18px 0 2px; opacity: .9; }
.about-card .t3 { font-family: var(--serif); font-weight: 700; color: var(--gold); font-size: 1.3rem; margin: 0; }
.about p { color: var(--muted); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

/* İndir çağrısı */
.cta { background: var(--green); color: #fff; text-align: center; border-radius: 22px; padding: 56px 24px; }
.cta h2 { color: #fff; }
.cta p { opacity: .9; margin: 0 0 26px; }

/* ---------- Alt bilgi ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Sözleşme sayfaları ---------- */
.doc-head { background: var(--green); color: #fff; padding: 56px 0 48px; text-align: center; }
.doc-head h1 { font-family: var(--serif); font-size: clamp(1.9rem, 5vw, 2.7rem); margin: 0 0 6px; }
.doc-head p { margin: 0; opacity: .85; }
.lang { display: inline-flex; gap: 4px; margin-top: 18px; background: rgb(0 0 0 / .18); padding: 4px; border-radius: 999px; }
.lang a { color: #fff; text-decoration: none; padding: 5px 14px; border-radius: 999px; font-size: .88rem; }
.lang a[aria-current="page"] { background: var(--gold); color: var(--green-dark); font-weight: 600; }

.doc { max-width: 760px; margin: 0 auto; padding: 56px 0 80px; }
.doc h2 { font-size: 1.45rem; margin: 40px 0 10px; padding-top: 8px; }
.doc h2:first-child { margin-top: 0; }
.doc p { margin: 0 0 16px; }
.doc .updated { color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 40px; }

.doc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 760px; margin: 0 auto; padding: 56px 0 80px; }
.doc-link {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s;
}
.doc-link:hover { border-color: var(--green); transform: translateY(-2px); }
.doc-link b { display: block; font-family: var(--serif); font-size: 1.2rem; margin-bottom: 4px; }
.doc-link span { color: var(--muted); font-size: .92rem; }

/* Sayfa açılışında hafif belirme */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
