/* ============ FONTLAR (yerel — internetsiz çalışır) ============ */
@font-face { font-family: 'Noto Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/noto-sans-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Noto Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/noto-sans-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Noto Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/noto-sans-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Noto Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/noto-sans-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Noto Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/noto-sans-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Noto Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/noto-sans-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Amiri Quran'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/amiri-quran-arabic-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Scheherazade New'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/scheherazade-new-arabic-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Scheherazade New'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/scheherazade-new-arabic-700-normal.woff2) format('woff2'); }

/* ============ RENKLER (İznik: lacivert, turkuaz, mercan, krem) ============ */
/* --altin adı eski; artık mercan kırmızısı vurgu rengidir. */
:root {
  --zemin: #f8f2e6;
  --zemin-2: #efe6d3;
  --kart: #fffcf5;
  --yazi: #1a2233;
  --yazi-soluk: #525c6e;
  --cizgi: #e0d5bf;
  --ana: #1e3a6e;
  --ana-koyu: #142a52;
  --ana-acik: #e3eaf4;
  --altin: #b3432c;
  --altin-acik: #f8e5dd;
  --turkuaz: #1d7d8c;
  --uyari: #8a5a00;
  --uyari-zemin: #fbf0d6;
  --hata: #a33a2a;
  --dogru: #2f7a4a;
  --golge: 0 1px 2px rgba(30, 40, 70, .06), 0 4px 14px rgba(30, 40, 70, .07);
  --desen-karo: url(../img/karo.svg);
  --desen-bordur: url(../img/bordur.svg);
  --desen-isik: 1;
  --yuvarlak: 14px;
  --font: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-ar: 'Scheherazade New', 'Amiri Quran', 'Traditional Arabic', serif;
  --font-kuran: 'Amiri Quran', 'Scheherazade New', 'Traditional Arabic', serif;
  --menu-gen: 248px;
  --alt-menu-yuk: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --zemin: #0e1626; --zemin-2: #16213a; --kart: #17233b; --yazi: #ece7dc; --yazi-soluk: #a9b3c5;
    --cizgi: #2a3756; --ana: #6cc4d1; --ana-koyu: #95d7e1; --ana-acik: #1a3149; --altin: #ee8d74;
    --altin-acik: #3a2521; --turkuaz: #6cc4d1; --uyari: #e8c472; --uyari-zemin: #302a1a; --hata: #f08a78; --dogru: #7fcf98;
    --golge: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.25);
    --desen-karo: url(../img/karo-koyu.svg); --desen-bordur: url(../img/bordur-koyu.svg); --desen-isik: .55;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --zemin: #0e1626; --zemin-2: #16213a; --kart: #17233b; --yazi: #ece7dc; --yazi-soluk: #a9b3c5;
    --cizgi: #2a3756; --ana: #6cc4d1; --ana-koyu: #95d7e1; --ana-acik: #1a3149; --altin: #ee8d74;
    --altin-acik: #3a2521; --turkuaz: #6cc4d1; --uyari: #e8c472; --uyari-zemin: #302a1a; --hata: #f08a78; --dogru: #7fcf98;
    --golge: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.25);
    --desen-karo: url(../img/karo-koyu.svg); --desen-bordur: url(../img/bordur-koyu.svg); --desen-isik: .55;
    color-scheme: dark;
}

/* ============ YAZI BOYUTU (4 kademe) ============ */
html { font-size: 112.5%; }                 /* 18px */
html[data-boyut="1"] { font-size: 125%; }   /* 20px */
html[data-boyut="2"] { font-size: 137.5%; } /* 22px */
html[data-boyut="3"] { font-size: 156.25%; }/* 25px */

/* ============ TEMEL ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--zemin); color: var(--yazi);
  font-family: var(--font); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: var(--ana); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--altin); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.atla { position: absolute; left: -999px; top: 0; background: var(--ana); color: #fff; padding: .6rem 1rem; z-index: 100; }
.atla:focus { left: 1rem; top: 1rem; }

/* Arapça */
.ar, [lang="ar"] { font-family: var(--font-ar); direction: rtl; unicode-bidi: isolate; }
.ar-metin { font-size: 1.6rem; line-height: 2.2; }        /* 18px tabanda ≈ 29px */
.kuran-metin { font-family: var(--font-kuran); font-size: 1.75rem; line-height: 2.5; }

/* ============ YERLEŞİM ============ */
.kabuk { min-height: 100vh; min-height: 100dvh; }
main {
  padding: 1.25rem 1rem calc(var(--alt-menu-yuk) + 1.5rem + env(safe-area-inset-bottom));
  max-width: 980px; margin: 0 auto; outline: none;
}

/* Menü — telefonda altta sekme çubuğu */
.menu {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--kart); border-top: 1px solid var(--cizgi);
  padding-bottom: env(safe-area-inset-bottom);
}
.menu .marka { display: none; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; }
.menu li { flex: 1; }
.menu ul a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: var(--alt-menu-yuk); padding: 6px 2px; text-decoration: none;
  color: var(--yazi-soluk); font-size: clamp(12px, .72rem, 14px); font-weight: 600;
}
.menu .ikon { width: 26px; height: 26px; }
.menu a[aria-current="page"] { color: var(--ana); }

/* Bilgisayar ve geniş tablet — yan menü */
@media (min-width: 900px) {
  .kabuk { display: grid; grid-template-columns: var(--menu-gen) 1fr; }
  .menu {
    position: sticky; top: 0; height: 100vh; height: 100dvh; border-top: 0; border-right: 1px solid var(--cizgi);
    padding: 1.25rem .75rem;
  }
  .menu .marka {
    display: flex; align-items: center; gap: .6rem; padding: .25rem .6rem 1.25rem;
    text-decoration: none; color: var(--yazi); font-weight: 700; font-size: 1.05rem;
  }
  .menu .marka img { border-radius: 10px; }
  .menu ul { flex-direction: column; gap: 4px; }
  .menu ul a {
    flex-direction: row; justify-content: flex-start; gap: .8rem; min-height: 50px; padding: .5rem .8rem;
    border-radius: 12px; font-size: 1rem;
  }
  .menu ul a:hover { background: var(--zemin-2); color: var(--yazi); }
  .menu a[aria-current="page"] { background: var(--ana-acik); }
  main { padding: 2rem 2rem 3rem; width: 100%; }
}


/* ============ İKONLAR (SVG dosyaları; rengi yazı renginden alır → temaya uyar) ============ */
.ikon {
  display: inline-block; flex: 0 0 auto; width: 1.4em; height: 1.4em; background-color: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
}
.ikon-bugun { --m: url(../icons/sekme/bugun.svg); }
.ikon-kuran { --m: url(../icons/sekme/kuran.svg); }
.ikon-dersler { --m: url(../icons/sekme/dersler.svg); }
.ikon-testler { --m: url(../icons/sekme/testler.svg); }
.ikon-ayarlar { --m: url(../icons/sekme/ayarlar.svg); }
.ikon-imsak { --m: url(../icons/vakit/imsak.svg); }
.ikon-gunes { --m: url(../icons/vakit/gunes.svg); }
.ikon-ogle { --m: url(../icons/vakit/ogle.svg); }
.ikon-ikindi { --m: url(../icons/vakit/ikindi.svg); }
.ikon-aksam { --m: url(../icons/vakit/aksam.svg); }
.ikon-yatsi { --m: url(../icons/vakit/yatsi.svg); }

/* ============ İZNİK DESENLERİ ============ */
/* Başlık altında lale bordürü */
.sayfa-baslik::after {
  content: ''; display: block; height: 20px; margin-top: .9rem; border-radius: 4px;
  background: var(--desen-bordur) left center / auto 20px repeat-x;
  opacity: var(--desen-isik);
}
/* Bugün ekranının üst bandı: sağda çini karosu, sola doğru solar */
.vitrin {
  position: relative; overflow: hidden; border-radius: var(--yuvarlak); margin-bottom: 1.25rem;
  background: var(--kart); border: 1px solid var(--cizgi); box-shadow: var(--golge);
  padding: 1.2rem 1.2rem 1.1rem;
}
.vitrin::before {
  content: ''; position: absolute; inset: 0 0 0 35%;
  background: var(--desen-karo) right top / 88px 88px repeat;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 70%); mask-image: linear-gradient(to right, transparent, #000 70%);
  opacity: var(--desen-isik);
}
.vitrin > * { position: relative; }
.vitrin h1 { margin: 0; }
.vitrin .selam { margin: 0 0 .1rem; }
.vitrin .sayfa-baslik { margin: 0; }
.vitrin .sayfa-baslik::after { display: none; }
@media (max-width: 520px) { .vitrin::before { inset: 0 0 0 58%; } }
/* Yan menünün altında küçük karo bandı (bilgisayar) */
@media (min-width: 900px) {
  .menu { display: flex; flex-direction: column; }
  .menu::after {
    content: ''; margin: auto -.75rem -1.25rem; height: 72px;
    background: var(--desen-karo) center top / 48px 48px repeat-x;
    -webkit-mask-image: linear-gradient(to top, #000, transparent); mask-image: linear-gradient(to top, #000, transparent);
    opacity: calc(var(--desen-isik) * .8);
  }
}
.lale-motif { display: block; width: 64px; height: 68px; margin: 0 auto .6rem; }

/* ============ BİLEŞENLER ============ */
.sayfa-baslik { margin-bottom: 1.25rem; }
.sayfa-baslik h1 { margin-bottom: .15em; }
.sayfa-baslik p { color: var(--yazi-soluk); margin: 0; }
.geri { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; margin-bottom: .25rem; text-decoration: none; font-weight: 600; }

.kart {
  background: var(--kart); border: 1px solid var(--cizgi); border-radius: var(--yuvarlak);
  padding: 1.1rem 1.2rem; box-shadow: var(--golge); margin-bottom: 1rem;
}
.kart h2 { font-size: 1.1rem; display: flex; align-items: center; gap: .5rem; }
.kart-ust { color: var(--altin); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .35rem; }
.izgara { display: grid; gap: 1rem; }
@media (min-width: 700px) { .izgara.iki { grid-template-columns: 1fr 1fr; } .izgara.iki > .kart { margin-bottom: 0; } }

.soluk { color: var(--yazi-soluk); }
.kucuk { font-size: .88rem; }

.dugme {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .5rem 1.1rem; border-radius: 12px; border: 1px solid transparent;
  background: var(--ana); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer;
}
:root[data-theme="dark"] .dugme { color: #0e1626; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dugme { color: #0e1626; } }
.dugme:hover { background: var(--ana-koyu); }
.dugme.ikincil { background: transparent; color: var(--ana); border-color: var(--cizgi); }
.dugme.ikincil:hover { background: var(--zemin-2); }
:root[data-theme="dark"] .dugme.ikincil { color: var(--ana); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dugme.ikincil { color: var(--ana); } }
.dugme[disabled] { opacity: .5; cursor: not-allowed; }

.etiket { display: inline-block; font-size: .75rem; font-weight: 600; padding: .1rem .55rem; border-radius: 999px; background: var(--zemin-2); color: var(--yazi-soluk); vertical-align: middle; }
.etiket.taslak { background: var(--uyari-zemin); color: var(--uyari); }
.etiket.yakinda { background: var(--altin-acik); color: var(--altin); }

.bilgi { background: var(--altin-acik); border-left: 4px solid var(--altin); padding: .8rem 1rem; border-radius: 10px; margin: 1rem 0; }

/* Liste (dersler, sureler, ayar alt sayfaları) */
.liste { list-style: none; margin: 0; padding: 0; background: var(--kart); border: 1px solid var(--cizgi); border-radius: var(--yuvarlak); overflow: hidden; box-shadow: var(--golge); }
.liste li + li { border-top: 1px solid var(--cizgi); }
.liste a, .liste .satir {
  display: flex; align-items: center; gap: .8rem; min-height: 56px; padding: .65rem 1rem;
  text-decoration: none; color: var(--yazi);
}
.liste a:hover { background: var(--zemin-2); }
.liste .no { flex: 0 0 auto; min-width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--ana-acik); color: var(--ana); font-weight: 700; font-size: .85rem; }
.liste .metin { flex: 1; min-width: 0; }
.liste .alt { display: block; color: var(--yazi-soluk); font-size: .85rem; }
.liste .ok { color: var(--yazi-soluk); flex: 0 0 auto; }
.bolum-baslik { margin: 1.5rem 0 .6rem; font-size: .9rem; color: var(--yazi-soluk); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* Yol kartları (Dersler ana sayfası) */
.yollar { display: grid; gap: 1rem; }
@media (min-width: 700px) { .yollar { grid-template-columns: 1fr 1fr; } }
.yol { display: block; text-decoration: none; color: var(--yazi); margin: 0; }
.yol:hover { border-color: var(--ana); }
.yol h2 { margin-bottom: .2rem; }
.yol .ar { color: var(--altin); font-size: 1.4rem; }

/* Katlanabilir bölüm */
details.katla { border: 1px solid var(--cizgi); border-radius: 12px; background: var(--kart); margin: .6rem 0; }
details.katla > summary { cursor: pointer; min-height: 48px; padding: .6rem 1rem; font-weight: 600; display: flex; align-items: center; gap: .5rem; list-style: none; }
details.katla > summary::-webkit-details-marker { display: none; }
details.katla > summary::before { content: '▸'; color: var(--altin); transition: transform .15s; }
details.katla[open] > summary::before { transform: rotate(90deg); }
details.katla > .ic { padding: 0 1rem 1rem; }

/* ============ FORM / AYARLAR ============ */
.ayar { padding: 1rem 0; border-top: 1px solid var(--cizgi); }
.ayar:first-of-type { border-top: 0; padding-top: 0; }
.ayar > .ad { font-weight: 700; display: block; margin-bottom: .2rem; }
.ayar > .aciklama { color: var(--yazi-soluk); font-size: .88rem; margin-bottom: .6rem; }
.secim { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; padding: 0; margin: 0; }
.secim label {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; min-width: 46px;
  padding: .4rem 1rem; border: 1px solid var(--cizgi); border-radius: 12px; cursor: pointer; background: var(--kart);
}
.secim input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.secim label:has(input:checked) { background: var(--ana); border-color: var(--ana); color: #fff; font-weight: 600; }
:root[data-theme="dark"] .secim label:has(input:checked) { color: #0e1626; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .secim label:has(input:checked) { color: #0e1626; } }
.secim label:has(input:focus-visible) { outline: 3px solid var(--altin); outline-offset: 2px; }
.anahtar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 46px; cursor: pointer; }
.anahtar input { width: 26px; height: 26px; accent-color: var(--ana); flex: 0 0 auto; }
select, input[type="number"] {
  min-height: 46px; padding: .4rem .8rem; border: 1px solid var(--cizgi); border-radius: 12px; background: var(--kart); max-width: 100%;
}

/* Rehber adımları */
.adimlar { counter-reset: adim; list-style: none; padding: 0; margin: 0; }
.adimlar li { counter-increment: adim; position: relative; padding: .3rem 0 .9rem 3rem; }
.adimlar li::before {
  content: counter(adim); position: absolute; left: 0; top: .1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--ana); color: #fff; display: grid; place-items: center; font-weight: 700;
}
.simge { display: inline-flex; vertical-align: middle; padding: 0 .3rem; border: 1px solid var(--cizgi); border-radius: 6px; background: var(--zemin-2); font-size: .9em; }

/* ============ GÜNCELLEME UYARISI ============ */
.guncelleme {
  position: fixed; z-index: 50; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--alt-menu-yuk) + 12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 1rem; padding: .6rem .7rem .6rem 1.1rem;
  background: var(--yazi); color: var(--zemin); border-radius: 14px; box-shadow: var(--golge);
  width: max-content; max-width: calc(100vw - 32px);
}
@media (min-width: 900px) { .guncelleme { bottom: 24px; left: calc(50% + var(--menu-gen) / 2); } }

/* ============ BUGÜN ============ */
.selam { color: var(--yazi-soluk); }
.vakitler { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .6rem; }
.vakit { text-align: center; padding: .5rem .25rem; border-radius: 10px; background: var(--zemin-2); }
.vakit .ikon { width: 28px; height: 28px; color: var(--turkuaz); display: block; margin: 0 auto .15rem; }
.vakit b { display: block; font-size: 1.15rem; }
.vakit span { font-size: .8rem; color: var(--yazi-soluk); }
.vakit.simdi { background: var(--ana-acik); box-shadow: inset 0 0 0 2px var(--turkuaz); }
.vakit.simdi span { color: var(--yazi); font-weight: 600; }
@media (min-width: 700px) { .vakitler { grid-template-columns: repeat(6, 1fr); } }
.ezan-ust { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.ezan-ust h2 { margin-bottom: .2rem; }
.geri-sayim { margin: .2rem 0 .4rem; font-size: 1.05rem; }
.geri-sayim b { font-size: 1.35rem; font-variant-numeric: tabular-nums; color: var(--altin); letter-spacing: .02em; }
.sehir-secici { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.sehir-secici select { flex: 1 1 14rem; }
.konum-durum:empty { display: none; }
.konum-durum { margin: .5rem 0 0; }
.gunluk { display: flex; flex-direction: column; }
.gunluk h2 { flex-wrap: wrap; }
.gunluk-ar { margin: .2rem 0 .6rem; text-align: right; }
.gunluk-ar.kuran-metin { font-size: 1.75rem; line-height: 2.3; }
.gunluk-meal { font-size: 1.05rem; }
.gunluk .kaynak { color: var(--yazi-soluk); font-size: .92rem; }
.gunluk-alt { margin-top: auto; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding-top: .4rem; }

/* ============ KUR'AN ============ */
.gizli { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.etiket.onayli { background: color-mix(in srgb, var(--dogru) 15%, transparent); color: var(--dogru); }
.arama { display: flex; gap: .5rem; margin-bottom: 1rem; }
.arama input, .sure-suz, .ayete-git input {
  flex: 1; min-width: 0; min-height: 48px; padding: .4rem .9rem; border: 1px solid var(--cizgi); border-radius: 12px; background: var(--kart);
}
.sure-suz { width: 100%; margin: .5rem 0 .75rem; }
.sure-ar { font-size: 1.35rem; color: var(--ana); flex: 0 0 auto; }
.devam { margin-bottom: 1rem; }
.cipler { display: flex; flex-wrap: wrap; gap: .4rem; }
.cip {
  display: inline-flex; align-items: center; min-height: 40px; padding: .2rem .75rem; border-radius: 999px;
  background: var(--ana-acik); color: var(--ana); text-decoration: none; font-weight: 600; font-size: .9rem;
}
.cip:hover { background: var(--ana); color: var(--kart); }

.sure-arac { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-bottom: .5rem; }
.ayete-git { display: flex; align-items: center; gap: .5rem; }
.ayete-git label { font-weight: 600; white-space: nowrap; }
.ayete-git input { width: 6.5rem; flex: 0 0 auto; }
.arama.sure-ici { flex: 1 1 14rem; margin: 0; }
.kucuk-anahtar { gap: .6rem; font-weight: 600; }
.sure-ici-sonuc { margin: .25rem 0 .5rem; }
.besmele { text-align: center; margin: .5rem 0 1rem; color: var(--ana); }

.ayetler { display: flex; flex-direction: column; gap: .9rem; }
.ayet {
  background: var(--kart); border: 1px solid var(--cizgi); border-radius: var(--yuvarlak); box-shadow: var(--golge);
  padding: .7rem 1rem 1rem; scroll-margin-top: 1rem;
}
.ayet.isik { animation: isik 1.6s ease-out; }
@keyframes isik { from { box-shadow: 0 0 0 4px var(--altin); } to { box-shadow: var(--golge); } }
.ayet-ust { display: flex; align-items: center; gap: .5rem; }
.ayet-no { font-weight: 700; color: var(--ana); font-size: .9rem; background: var(--ana-acik); border-radius: 999px; padding: .1rem .6rem; }
.yildiz {
  margin-left: auto; min-width: 44px; min-height: 44px; border: 0; background: none; cursor: pointer;
  font-size: 1.4rem; color: var(--altin); border-radius: 10px;
}
.yildiz:hover { background: var(--zemin-2); }
.ayet-metin { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .1rem .35rem; line-height: 2.3; padding: .2rem 0; }
.kelime {
  display: inline-flex; flex-direction: column; align-items: center; min-height: 44px;
  border: 0; background: none; padding: 0 .2rem; margin: 0; border-radius: 10px; cursor: pointer;
  font: inherit; color: inherit; line-height: inherit;
}
.kelime:hover { background: var(--zemin-2); }
.kelime.secili, .kelime.vurgu { background: var(--altin-acik); box-shadow: inset 0 -3px 0 var(--altin); }
.kelime.bulundu { background: var(--ana-acik); box-shadow: inset 0 -3px 0 var(--ana); }
.kelime .durak { color: var(--altin); }
.kelime .km {
  font-family: var(--font); direction: ltr; font-size: .72rem; line-height: 1.25; color: var(--yazi-soluk);
  max-width: 9rem; text-align: center; margin: -.35rem 0 .35rem;
}
.meal-gizli .km { display: none; }
.ayet-son { color: var(--ana); font-size: .85em; align-self: center; }
.meal { border-top: 1px solid var(--cizgi); margin-top: .5rem; padding-top: .6rem; }
.meal p { margin: 0; }
.ayet-alt { margin: .6rem 0 0; }
.sure-gecis { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }

/* Kelime paneli: telefonda alttan açılır, bilgisayarda sağdan */
.panel-kok { position: fixed; inset: 0; z-index: 60; }
.panel-perde { position: absolute; inset: 0; background: rgba(10, 16, 30, .45); }
.panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; max-height: 86dvh; overflow: auto;
  background: var(--kart); border-radius: 18px 18px 0 0; box-shadow: 0 -6px 30px rgba(0,0,0,.25);
  padding: .6rem 1.2rem calc(1.2rem + env(safe-area-inset-bottom));
  animation: yukari .18s ease-out;
}
@keyframes yukari { from { transform: translateY(30px); opacity: .4; } }
@media (min-width: 900px) {
  .panel { left: auto; top: 0; width: min(460px, 92vw); max-height: none; border-radius: 0; padding: 1rem 1.5rem 2rem; animation-name: soldan; }
  @keyframes soldan { from { transform: translateX(30px); opacity: .4; } }
}
body.panel-acik { overflow: hidden; }
.panel-ust { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.kapat { min-width: 44px; min-height: 44px; border: 0; background: var(--zemin-2); border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.panel-kelime { font-family: var(--font-kuran); font-size: 2.8rem; line-height: 1.9; text-align: center; margin: .2rem 0; color: var(--ana); }
.okunus { text-align: center; font-style: italic; color: var(--yazi-soluk); margin: -.4rem 0 .4rem; }
.panel-meal { text-align: center; font-weight: 600; font-size: 1.1rem; }
.p-liste { margin: .5rem 0; }
.p-satir { display: grid; grid-template-columns: 7.5rem 1fr; gap: .6rem; padding: .55rem 0; border-top: 1px solid var(--cizgi); }
.p-satir dt { color: var(--yazi-soluk); font-weight: 600; font-size: .9rem; }
.p-satir dd { margin: 0; }
.p-satir dd.ar { font-size: 1.5rem; line-height: 1.6; text-align: right; }
.kok { font-size: 1.6rem; font-weight: 700; color: var(--altin); margin-left: .5rem; }
.kok-bag { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.p-bolum { border-top: 1px solid var(--cizgi); padding-top: .6rem; margin-top: .4rem; }
.p-bolum h3 { font-size: 1rem; margin-bottom: .3rem; }
.ders-baglari { list-style: none; padding: 0; margin: 0; }
.ders-baglari a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; }
.panel-alt { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; border-top: 1px solid var(--cizgi); margin-top: .8rem; padding-top: .8rem; }
.panel-alt .yer-bilgisi { margin-left: auto; }
.yer-bilgisi { display: inline-block; font-size: .85rem; color: var(--yazi-soluk); border: 1px dashed var(--cizgi); border-radius: 6px; padding: .15rem .55rem; user-select: all; }
.yer-satir { margin-top: 1.5rem; }
.kucuk.dugme, .dugme.kucuk { min-height: 40px; padding: .3rem .8rem; font-size: .88rem; }
.arama-kelime { font-family: var(--font-kuran); font-size: 1.5rem; line-height: 1.8; }
.kok-buyuk { font-size: 3rem; text-align: center; color: var(--altin); margin: 0 0 .5rem; letter-spacing: .3em; }
@media (max-width: 520px) { .p-satir { grid-template-columns: 1fr; gap: .1rem; } .p-satir dd.ar { text-align: left; } }

/* Yükleniyor / boş durum */
.bos { text-align: center; color: var(--yazi-soluk); padding: 2rem 1rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ============ DERS SAYFASI ============ */
.ders-terim { font-size: 1.5rem; color: var(--altin); margin-inline-end: .4rem; }
.ders-bolum { margin: 1.6rem 0; }
.ders-bolum > h2 { font-size: 1.15rem; margin-bottom: .6rem; padding-bottom: .3rem; border-bottom: 2px solid var(--ana-acik); }
.ders-tanim { font-size: 1.08rem; }
.ar-ic { font-size: 1.35em; line-height: 1.4; font-family: var(--font-ar); }
.ders-liste { padding-inline-start: 1.3rem; margin: .4rem 0 .8rem; }
.ders-liste li { margin: .35rem 0; }
.ders-liste.dikkat { list-style: none; padding: 0; }
.ders-liste.dikkat li { padding: .6rem .9rem; border-left: 4px solid var(--hata); background: var(--kart); border-radius: 8px; margin: .5rem 0; }
.tablo-kap { overflow-x: auto; margin: .6rem 0 1rem; }
.ders-tablo { width: 100%; border-collapse: collapse; background: var(--kart); border: 1px solid var(--cizgi); border-radius: 10px; overflow: hidden; }
.ders-tablo th, .ders-tablo td { padding: .55rem .75rem; border-bottom: 1px solid var(--cizgi); text-align: start; vertical-align: top; }
.ders-tablo th { background: var(--ana-acik); color: var(--ana); font-size: .9rem; }
.ders-tablo tr:last-child td { border-bottom: 0; }
/* Dar ekranda tablo satırları kart olur */
@media (max-width: 600px) {
  .ders-tablo thead { display: none; }
  .ders-tablo, .ders-tablo tbody, .ders-tablo tr, .ders-tablo td { display: block; width: 100%; }
  .ders-tablo tr { border-bottom: 2px solid var(--cizgi); padding: .3rem 0; }
  .ders-tablo td { border: 0; padding: .25rem .75rem; }
  .ders-tablo td::before { content: attr(data-baslik); display: block; font-size: .78rem; font-weight: 700; color: var(--yazi-soluk); }
}
.ornek { display: block; text-decoration: none; color: var(--yazi); }
.ornek:hover { border-color: var(--ana); }
.ders-ayet { margin: 0 0 .5rem; text-align: right; }
.ders-ayet mark.isaret { background: var(--altin-acik); color: inherit; box-shadow: inset 0 -3px 0 var(--altin); border-radius: 4px; padding: 0 .1em; }
.ornek-alt { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }
.ders-gezinti { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-top: 1.5rem; }
.ders-gezinti .dugme { max-width: 100%; white-space: normal; text-align: start; }

/* Mini test */
.soru-no { font-size: .8rem; font-weight: 700; color: var(--altin); margin: 0 0 .4rem; }
.soru-metin { font-weight: 600; }
.secenekler { display: grid; gap: .5rem; }
.secenek {
  min-height: 48px; padding: .55rem .9rem; text-align: start; border: 1px solid var(--cizgi); border-radius: 12px;
  background: var(--zemin); color: var(--yazi); cursor: pointer; font: inherit;
}
.secenek:hover:not([disabled]) { border-color: var(--ana); }
.secenek[disabled] { cursor: default; }
.secenek.dogru { border-color: var(--dogru); background: color-mix(in srgb, var(--dogru) 14%, var(--kart)); font-weight: 600; }
.secenek.yanlis { border-color: var(--hata); background: color-mix(in srgb, var(--hata) 14%, var(--kart)); }
.soru-aciklama { margin-top: .7rem; padding: .6rem .8rem; background: var(--zemin-2); border-radius: 10px; }

/* ============ TESTLER ============ */
.dugmeler { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.soru-ders { color: var(--yazi-soluk); font-weight: 600; }
.puan { flex: 0 0 auto; display: inline-block; min-width: 3.2rem; text-align: center; padding: .15rem .5rem; border-radius: 999px; font-weight: 700; font-size: .88rem; }
.puan.iyi { background: color-mix(in srgb, var(--dogru) 16%, transparent); color: var(--dogru); }
.puan.orta { background: color-mix(in srgb, var(--altin) 18%, transparent); color: var(--altin); }
.puan.zayif { background: color-mix(in srgb, var(--hata) 15%, transparent); color: var(--hata); }
.zayif-satir { flex-wrap: wrap; }
.zayif-satir .metin { flex: 1 1 12rem; }
.zayif-dugmeler { display: flex; gap: .4rem; flex-wrap: wrap; }
.baglanti-dugme { background: none; border: 0; padding: .6rem .2rem; min-height: 44px; color: var(--ana); text-decoration: underline; cursor: pointer; font: inherit; }
.form-uyari { color: var(--hata); font-weight: 600; }
#deneme-form .ayar:first-of-type { border-top: 0; }
#deneme-form .dugme { margin-top: .6rem; }
/* Liste içindeki düğmeler: ".liste a" kuralının satır görünümünü almasın */
.liste .zayif-dugmeler a.dugme { display: inline-flex; min-height: 44px; padding: .3rem .8rem; gap: .4rem; color: #fff; }
.liste .zayif-dugmeler a.dugme.ikincil { color: var(--ana); }
:root[data-theme="dark"] .liste .zayif-dugmeler a.dugme:not(.ikincil) { color: #0e1626; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .liste .zayif-dugmeler a.dugme:not(.ikincil) { color: #0e1626; } }
