:root {
  --yesil-koyu: #0d3b2e;
  --yesil: #145744;
  --yesil-acik: #1c6e56;
  --altin: #d4af37;
  --krem: #f7f3e8;
  --metin: #2b2b2b;
  --kart: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--krem);
  color: var(--metin);
  min-height: 100vh;
  padding-bottom: 80px;
}

.app-header {
  background: linear-gradient(160deg, var(--yesil-koyu), #14574f);
  color: #fff;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 20px 14px;
  text-align: center;
}
.app-header h1 { font-size: 1.35rem; letter-spacing: 0.5px; }
.konum { font-size: 0.8rem; opacity: 0.85; margin-top: 4px; }

.sayfa { display: none; padding: 16px; max-width: 560px; margin: 0 auto; }
.sayfa.aktif { display: block; }

/* Vakitler */
.sonraki-vakit-kart {
  background: linear-gradient(135deg, var(--yesil-koyu), var(--yesil-acik));
  color: #fff;
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(13, 59, 46, 0.25);
}
.sonraki-vakit-kart .etiket { font-size: 0.8rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 1px; }
.sonraki-vakit-kart .buyuk { font-size: 1.6rem; font-weight: 700; margin: 6px 0; color: var(--altin); }
.geri-sayim { font-size: 2.2rem; font-variant-numeric: tabular-nums; font-weight: 300; }

.hicri { text-align: center; font-size: 0.85rem; color: #6b6b5f; margin: 12px 0; }

.vakit-listesi { list-style: none; }
.vakit-listesi li {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--kart);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  font-size: 1.05rem;
}
.vakit-listesi li.simdiki { border: 2px solid var(--altin); background: #fdf8ea; font-weight: 700; }
.vakit-listesi .saat { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--yesil-koyu); }
.yukleniyor { justify-content: center !important; color: #999; }

/* Kıble */
.kible-kart { text-align: center; }
.pusula-cerceve {
  width: 260px; height: 260px; margin: 20px auto;
  border-radius: 50%;
  background: var(--kart);
  box-shadow: 0 4px 18px rgba(0,0,0,0.12), inset 0 0 0 6px var(--yesil-koyu);
  position: relative;
}
.pusula {
  width: 100%; height: 100%; border-radius: 50%;
  position: relative;
  transition: transform 0.15s ease-out;
}
.pusula-yon {
  position: absolute; font-weight: 700; color: var(--yesil-koyu); font-size: 1.1rem;
}
.pusula-yon.k { top: 14px; left: 50%; transform: translateX(-50%); color: #c0392b; }
.pusula-yon.g { bottom: 14px; left: 50%; transform: translateX(-50%); }
.pusula-yon.d { right: 16px; top: 50%; transform: translateY(-50%); }
.pusula-yon.b { left: 16px; top: 50%; transform: translateY(-50%); }
.kible-ibre {
  position: absolute; top: 50%; left: 50%;
  font-size: 2.6rem;
  transform-origin: center;
}
.kible-ok {
  position: absolute; left: 50%; top: calc(50% - 92px);
  width: 10px; height: 92px;
  background: linear-gradient(to top, rgba(192,57,43,0.1), #c0392b 60%);
  border-radius: 5px;
  transform-origin: 50% 100%;
  transition: background 0.3s;
}
.kible-ok::after {
  content: ""; position: absolute; top: -14px; left: 50%;
  transform: translateX(-50%);
  border-left: 12px solid transparent; border-right: 12px solid transparent;
  border-bottom: 18px solid #c0392b;
  transition: border-bottom-color 0.3s;
}
.hedefte .kible-ok { background: linear-gradient(to top, rgba(30,132,73,0.1), #1e8449 60%); }
.hedefte .kible-ok::after { border-bottom-color: #1e8449; }
.pusula-cerceve.hedefte {
  box-shadow: 0 0 30px rgba(212,175,55,0.9), inset 0 0 0 6px #1e8449;
}
.kible-bilgi.hedefte { color: #1e8449; font-size: 1.15rem; }
.kible-bilgi { font-size: 1rem; margin: 10px 0; color: var(--yesil-koyu); font-weight: 600; }
.ipucu { font-size: 0.8rem; color: #8a8a7d; margin-top: 12px; padding: 0 10px; }

.btn {
  background: var(--yesil-koyu); color: #fff;
  border: none; border-radius: 24px;
  padding: 12px 28px; font-size: 1rem;
  cursor: pointer; margin-top: 8px;
}
.btn:active { background: var(--yesil-acik); }

/* Dualar */
.filtreler { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; }
.filtre {
  border: 1px solid var(--yesil-koyu); background: transparent; color: var(--yesil-koyu);
  border-radius: 20px; padding: 7px 16px; font-size: 0.9rem; white-space: nowrap; cursor: pointer;
}
.filtre.aktif { background: var(--yesil-koyu); color: #fff; }

.dua-kart {
  background: var(--kart);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.07);
  cursor: pointer;
}
.dua-kart h3 { color: var(--yesil-koyu); font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; }
.dua-kart .rozet {
  font-size: 0.7rem; background: #eee8d5; color: #7a6b2f;
  border-radius: 10px; padding: 3px 10px; font-weight: 600;
}
.dua-detay { display: none; margin-top: 12px; }
.dua-kart.acik .dua-detay { display: block; }
.dua-detay .fazilet { font-size: 0.85rem; color: #7d7d6e; font-style: italic; margin-bottom: 12px; }
.dua-detay .arapca {
  font-size: 1.5rem; line-height: 2.4; text-align: right; direction: rtl;
  color: var(--metin); font-family: "Amiri", "Scheherazade New", "Traditional Arabic", serif;
  background: #faf7ee; border-radius: 10px; padding: 14px;
}
.kelime { position: relative; transition: color 0.2s; }
.kelime.okundu { color: #9a9483; }
.kelime.okunan { color: var(--yesil-koyu); font-weight: 700; background: #f3e9c8; border-radius: 4px; }
.ayrac { color: var(--altin); }

.dua-ses {
  display: block; width: 100%; margin-top: 10px;
  background: var(--yesil-koyu); color: #fff;
  border: none; border-radius: 12px;
  padding: 11px; font-size: 0.95rem; cursor: pointer;
}
.dua-ses:active { background: var(--yesil-acik); }
.dua-detay .bolum-baslik {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--altin); font-weight: 700; margin: 14px 0 4px;
}
.dua-detay .okunus { font-size: 0.95rem; line-height: 1.6; color: #444; }
.dua-detay .meal { font-size: 0.95rem; line-height: 1.6; }

.bildirim-btn {
  margin-top: 12px;
  background: rgba(255,255,255,0.15); color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 18px; padding: 7px 16px; font-size: 0.85rem; cursor: pointer;
}
.bildirim-btn.acik { background: var(--altin); border-color: var(--altin); color: var(--yesil-koyu); font-weight: 700; }
.bildirim-ipucu { font-size: 0.75rem; opacity: 0.85; margin-top: 8px; line-height: 1.4; }

/* Tesbih */
.tesbih-kart { text-align: center; }
.zikir-sec {
  width: 100%; padding: 12px; border-radius: 12px;
  border: 1px solid #ddd6c4; background: var(--kart);
  font-size: 1rem; color: var(--metin);
}
.zikir-anlam { font-size: 0.85rem; color: #7d7d6e; margin: 8px 0 14px; font-style: italic; }
.hedef-secim { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; }
.hedef {
  border: 1px solid var(--yesil-koyu); background: transparent; color: var(--yesil-koyu);
  border-radius: 18px; padding: 6px 18px; font-size: 0.95rem; cursor: pointer;
}
.hedef.aktif { background: var(--yesil-koyu); color: #fff; }
.tesbih-alan {
  width: 240px; height: 240px; border-radius: 50%;
  margin: 0 auto; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  background: linear-gradient(135deg, var(--yesil-koyu), var(--yesil-acik));
  color: #fff; border: 6px solid var(--altin);
  box-shadow: 0 6px 20px rgba(13,59,46,0.3);
  cursor: pointer; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.tesbih-alan:active { transform: scale(0.97); }
.tesbih-sayi { font-size: 3.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tesbih-hedef { font-size: 1rem; opacity: 0.8; }
.tesbih-ipucu { font-size: 0.72rem; opacity: 0.6; margin-top: 6px; }
.tesbih-toplam { margin: 16px 0 6px; font-size: 0.9rem; color: #6b6b5f; }
.btn.ikincil { background: transparent; color: var(--yesil-koyu); border: 1px solid var(--yesil-koyu); }

/* Takvim */
.alt-sekmeler { display: flex; gap: 8px; margin-bottom: 14px; }
.alt-sekme {
  flex: 1; border: 1px solid var(--yesil-koyu); background: transparent; color: var(--yesil-koyu);
  border-radius: 12px; padding: 10px; font-size: 0.95rem; cursor: pointer;
}
.alt-sekme.aktif { background: var(--yesil-koyu); color: #fff; font-weight: 700; }
.panel { display: none; }
.panel.aktif { display: block; }
.ay-gezinti { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ay-baslik { font-weight: 700; color: var(--yesil-koyu); font-size: 1.05rem; }
.ay-btn {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: var(--yesil-koyu); color: #fff; font-size: 1.4rem; cursor: pointer;
}
.tablo-kaydir { overflow-x: auto; border-radius: 12px; box-shadow: 0 1px 5px rgba(0,0,0,0.07); }
.aylik-tablo { width: 100%; border-collapse: collapse; background: var(--kart); font-size: 0.82rem; }
.aylik-tablo th {
  background: var(--yesil-koyu); color: #fff; padding: 9px 6px;
  position: sticky; top: 0; font-weight: 600; white-space: nowrap;
}
.aylik-tablo td { padding: 8px 6px; text-align: center; border-bottom: 1px solid #f0ecdf; font-variant-numeric: tabular-nums; white-space: nowrap; }
.aylik-tablo tr.bugun { background: #fdf8ea; font-weight: 700; outline: 2px solid var(--altin); outline-offset: -2px; }
.yukleniyor-kutu { text-align: center; color: #999; padding: 30px 0; }
.dini-liste .dini-kart {
  background: var(--kart); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.dini-kart.kandil { border-left: 4px solid var(--altin); }
.dini-kart.bayram { border-left: 4px solid #c0392b; }
.dini-kart .ad { font-weight: 600; color: var(--yesil-koyu); }
.dini-kart .tarih { font-size: 0.85rem; color: #6b6b5f; }
.dini-kart .kalan {
  font-size: 0.78rem; background: #eee8d5; color: #7a6b2f;
  border-radius: 10px; padding: 4px 10px; white-space: nowrap; font-weight: 600;
}

/* Alt menü */
.alt-menu {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff;
  display: flex;
  border-top: 1px solid #e4e0d3;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.menu-btn {
  flex: 1; background: none; border: none;
  padding: 10px 0 8px; font-size: 0.75rem; color: #8a8a7d; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.menu-btn span { font-size: 1.4rem; }
.menu-btn.aktif { color: var(--yesil-koyu); font-weight: 700; }
