@font-face { font-family: Lora; src: url(/fonts/Lora-Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Lora; src: url(/fonts/Lora-Italic.ttf) format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: Lora; src: url(/fonts/Lora-SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Amiri; src: url(/fonts/AmiriQuran.ttf) format('truetype'); font-display: swap; }

:root {
  color-scheme: dark;
  --night: #0c1613;
  --night-soft: #13211d;
  --card: #1a2b26;
  --card-hi: #20342e;
  --line: rgba(241, 231, 210, 0.12);
  --gold: #e3b25b;
  --gold-hi: #f0c878;
  --gold-soft: rgba(227, 178, 91, 0.14);
  --paper: #f1e7d2;
  --muted: rgba(241, 231, 210, 0.66);
  --faint: rgba(241, 231, 210, 0.42);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  background-image: radial-gradient(1200px 640px at 70% -10%, rgba(227, 178, 91, 0.13), transparent 60%);
  background-repeat: no-repeat;
  color: var(--paper);
  font: 17px/1.65 Lora, Georgia, 'Times New Roman', serif;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
[lang='ar'] { font-family: Amiri, serif; direction: rtl; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.soft { color: var(--muted); margin: 0; }
.fine { color: var(--faint); font-size: 14px; margin: 14px 0 0; }

/* Header */
header.top { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; background: rgba(12, 22, 19, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; font-weight: 600; font-size: 20px; letter-spacing: 0.5px; }
.brand svg { width: 18px; height: 33px; }
nav.links { display: flex; gap: 22px; }
nav.links a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav.links a:hover, nav.links a[aria-current='page'] { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid var(--gold);
  background: var(--gold); color: var(--night); font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer; transition: transform 0.15s, background 0.15s;
}
.btn:hover { background: var(--gold-hi); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 20px; height: 20px; }
.btn.ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn.small { padding: 8px 16px; font-size: 14px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta.center { justify-content: center; }

.pill { display: inline-block; background: var(--gold-soft); border: 1px solid rgba(227, 178, 91, 0.35); color: var(--paper); border-radius: 999px; padding: 5px 14px; font-size: 14px; }

.stores { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-width: 168px; justify-content: center;
  padding: 11px 22px; border-radius: 14px; text-decoration: none;
  background: var(--gold); color: var(--night); font-weight: 600;
}
.store small { display: block; font-size: 11px; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; opacity: 0.75; line-height: 1.2; }
.store span { line-height: 1.25; text-align: left; }
.store.soon { background: transparent; color: var(--muted); border: 1px solid var(--line); }

/* Hero */
.hero { padding-block: 64px 48px; }
.hero.split .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.basmala { color: var(--gold); font-size: 28px; line-height: 2; opacity: 0.9; margin: 0 0 10px; text-align: left; }
.hero h1 { font-size: clamp(40px, 6.4vw, 62px); line-height: 1.08; margin: 18px 0 0; font-weight: 600; letter-spacing: -0.5px; }
.lead { color: var(--muted); font-size: 19px; max-width: 560px; margin: 18px 0 0; }
.hero-art { position: relative; display: grid; place-items: center; }
.glow { position: absolute; width: 120%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(227, 178, 91, 0.26), transparent 62%); animation: nefes 6s ease-in-out infinite; }
@keyframes nefes { 50% { transform: scale(1.06); opacity: 0.8; } }

.phone {
  position: relative; width: min(330px, 86vw); aspect-ratio: 9 / 18.5;
  border-radius: 46px; padding: 12px; background: #0a0f0d;
  border: 1px solid rgba(241, 231, 210, 0.16);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(227, 178, 91, 0.1), inset 0 0 0 2px #1d2622;
  transform: rotate(-2deg);
}
.screen {
  height: 100%; border-radius: 36px; overflow: hidden; display: flex; flex-direction: column;
  background: radial-gradient(420px 300px at 50% 30%, rgba(227, 178, 91, 0.14), transparent 70%), var(--night);
}
.app-top { display: flex; justify-content: space-between; align-items: center; padding: 30px 22px 0; font-size: 14px; color: var(--muted); letter-spacing: 0.5px; }
.flame { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); }
.flame svg { width: 10px; height: 19px; }
.gunun { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 24px; text-align: center; }
.gunun .ar { font-size: 27px; line-height: 2.1; margin: 0; color: var(--paper); text-align: center; }
.gunun .tr { font-style: italic; color: var(--muted); font-size: 15.5px; line-height: 1.6; margin: 18px 0 0; }
.gunun .ref { color: var(--gold); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin: 14px 0 0; }
.app-tabs { display: flex; justify-content: space-around; padding: 14px 10px 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.app-tabs .on { color: var(--gold); }

/* Sections */
.block { padding: 56px 0; }
.head { max-width: 640px; margin-bottom: 26px; }
h2 { font-size: clamp(27px, 4.2vw, 36px); line-height: 1.2; font-weight: 600; margin: 0 0 10px; }
h3 { font-weight: 600; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 7px 16px; font-size: 15px; cursor: pointer; transition: all 0.15s;
}
.chips button:hover { color: var(--paper); border-color: rgba(227, 178, 91, 0.5); }
.chips button[aria-selected='true'] { background: var(--gold); border-color: var(--gold); color: var(--night); font-weight: 600; }

.select select {
  appearance: none; -webkit-appearance: none; font: inherit; font-size: 15px; color: var(--paper);
  background: var(--night-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23e3b25b' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center / 12px;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 38px 8px 16px; cursor: pointer; max-width: 100%;
}

/* Player */
.player { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.player-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.verses { max-height: 520px; overflow-y: auto; padding: 8px; scrollbar-width: thin; }
.verse {
  display: block; width: 100%; text-align: right; background: transparent; border: 1px solid transparent;
  border-radius: 16px; padding: 16px 18px; cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.verse:hover { background: rgba(241, 231, 210, 0.03); }
.verse.on { background: var(--gold-soft); border-color: rgba(227, 178, 91, 0.35); }
.verse .ar { display: block; font-size: 30px; line-height: 2.2; color: var(--paper); }
.verse .ar > span { transition: color 0.15s, text-shadow 0.15s; border-radius: 6px; }
.verse .ar > span.lit { color: var(--gold-hi); text-shadow: 0 0 18px rgba(227, 178, 91, 0.6); }
.verse .no {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(227, 178, 91, 0.5); color: var(--gold); font-family: Lora, serif; font-size: 13px; vertical-align: middle;
}
.verse .tr { display: block; direction: ltr; text-align: left; color: var(--muted); font-size: 16px; margin-top: 6px; font-family: Lora, serif; }
.player-foot { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--night-soft); }
.play {
  flex: none; width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--gold); color: var(--night);
  box-shadow: 0 0 26px rgba(227, 178, 91, 0.35); transition: transform 0.15s;
}
.play:active { transform: scale(0.94); }
.play svg { width: 24px; height: 24px; }
.now { font-size: 15px; }

/* Prayer times */
.vakit { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.vakit-kart, .kible-kart { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.vakit-ust { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.sayac {
  margin: 20px 0 16px; padding: 20px; border-radius: 18px; text-align: center;
  background: linear-gradient(135deg, #3d3220, #22362f 55%, #14221e); border: 1px solid rgba(227, 178, 91, 0.4);
}
.sayac small { display: block; color: var(--muted); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.sayac b { display: block; font-size: 30px; color: var(--gold); margin: 2px 0; }
.kalan { font-size: 18px; font-variant-numeric: tabular-nums; }
.vakitler { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vakitler li { display: flex; flex-direction: column; align-items: center; padding: 12px 6px; border-radius: 14px; background: var(--night-soft); border: 1px solid transparent; }
.vakitler li span { color: var(--muted); font-size: 14px; }
.vakitler li b { font-size: 20px; font-variant-numeric: tabular-nums; }
.vakitler li.gecti { opacity: 0.5; }
.vakitler li.siradaki { border-color: var(--gold); background: var(--gold-soft); }
.vakitler li.siradaki b { color: var(--gold); }
.kible-kart { display: flex; flex-direction: column; align-items: center; text-align: center; }
.kible-kart h3 { margin: 0 0 16px; color: var(--gold); font-size: 19px; }
.pusula {
  position: relative; width: 180px; height: 180px; border-radius: 50%;
  border: 1px solid rgba(227, 178, 91, 0.45); background: radial-gradient(circle, rgba(227, 178, 91, 0.1), transparent 70%);
  box-shadow: inset 0 0 0 10px var(--night-soft);
}
.pusula .k { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font-size: 13px; color: var(--muted); }
.ok { width: 100%; height: 100%; transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.kible-yazi { margin-top: 16px; font-size: 15px; }

/* Duas */
.dua .chips { margin-bottom: 14px; }
.dua-kart { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.dua-ust { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.dua-ust h3 { margin: 0; font-size: 22px; color: var(--gold); }
.anahtar { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; color: var(--muted); }
.anahtar input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--night-soft); border: 1px solid var(--line); position: relative; cursor: pointer; transition: background 0.2s; margin: 0; }
.anahtar input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform 0.2s, background 0.2s; }
.anahtar input:checked { background: var(--gold); border-color: var(--gold); }
.anahtar input:checked::after { transform: translateX(18px); background: var(--night); }
.satir { padding: 16px 0; border-bottom: 1px solid var(--line); outline-offset: 4px; }
.satir .ar { font-size: 28px; line-height: 2.1; margin: 0; text-align: right; }
.satir .okunus { font-style: italic; color: var(--muted); margin: 4px 0 0; }
.sinav .satir { cursor: pointer; }
.sinav .satir:not(.acik) .ar, .sinav .satir:not(.acik) .okunus { filter: blur(9px); opacity: 0.55; user-select: none; }
.satir .ar, .satir .okunus { transition: filter 0.35s, opacity 0.35s; }
.sinav .satir:not(.acik)::after { content: 'Hatırla, sonra dokun'; display: block; text-align: center; color: var(--gold); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin-top: -6px; }
.anlam { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: var(--night-soft); }
.anlam small { color: var(--gold); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.anlam p { margin: 4px 0 0; color: var(--paper); }

/* Esmâ */
.isimler { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.isim {
  position: relative; height: 150px; border: 0; padding: 0; background: none; cursor: pointer; perspective: 800px;
}
.yuz {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 18px; border: 1px solid var(--line); background: var(--card); padding: 12px; text-align: center;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.yuz.on .ar { font-size: 40px; color: var(--gold); line-height: 1.6; }
.yuz.arka { transform: rotateY(180deg); background: linear-gradient(160deg, #2a3a2f, #1a2b26); border-color: rgba(227, 178, 91, 0.4); }
.yuz.arka b { color: var(--gold); font-size: 17px; }
.yuz.arka small { color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 4px; }
.isim.acik .on { transform: rotateY(-180deg); }
.isim.acik .arka { transform: rotateY(0); }
.isim:hover .yuz.on { border-color: rgba(227, 178, 91, 0.45); }
.isim-alt { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* Hifz and zikir */
.araclar { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.arac { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.arac h2 { font-size: 27px; }
.etiket { display: inline-block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--night); background: var(--gold); border-radius: 999px; padding: 3px 10px; margin-bottom: 10px; font-weight: 600; }
.adimlar { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 12px; }
.adimlar li { display: flex; gap: 14px; align-items: flex-start; }
.adimlar p { margin: 2px 0 0; color: var(--muted); font-size: 15.5px; }
.num { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font-size: 15px; }
.cuzler { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.cuzler span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; background: var(--night-soft); color: var(--faint); font-size: 12px; }
.cuzler .tam { background: var(--gold); color: var(--night); font-weight: 600; }
.cuzler .yarim { background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold); }
.zikir { display: flex; flex-direction: column; align-items: center; text-align: center; }
.tesbih {
  position: relative; width: 210px; height: 210px; margin: 20px 0 14px; border-radius: 50%; border: 0; cursor: pointer;
  background: radial-gradient(circle, #22362f, #14221e 70%); display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(227, 178, 91, 0.15); transition: transform 0.12s; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.tesbih:active { transform: scale(0.96); }
.tesbih svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.tesbih circle { fill: none; stroke-width: 6; }
.tesbih .iz { stroke: rgba(241, 231, 210, 0.08); }
.tesbih .dolu { stroke: var(--gold); stroke-linecap: round; transition: stroke-dasharray 0.2s; }
.z-ar { font-size: 26px; color: var(--gold); line-height: 1.6; }
.z-ad { font-size: 15px; color: var(--muted); }
.z-say { font-size: 40px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tesbih.nabiz { animation: nabiz 0.6s ease-out; }
@keyframes nabiz { 0% { box-shadow: 0 0 0 0 rgba(227, 178, 91, 0.6); } 100% { box-shadow: 0 0 0 30px rgba(227, 178, 91, 0); } }

/* Feature cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.card .glyph { display: block; font-size: 34px; color: var(--gold); line-height: 1.9; text-align: left; opacity: 0.9; }
.card h3 { margin: 6px 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

.values { position: relative; text-align: center; background: linear-gradient(135deg, #3d3220, #22362f 55%, #14221e); border: 1px solid rgba(227, 178, 91, 0.45); border-radius: 28px; padding: 44px 32px; box-shadow: 0 0 60px rgba(227, 178, 91, 0.12); }
.values p { color: var(--paper); font-style: italic; font-size: 18px; margin: 0 auto 22px; max-width: 680px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.values .sign { color: var(--muted); margin: 22px auto 0; font-style: normal; font-size: 16px; }
.lamp {
  width: 104px; height: 104px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle, rgba(227, 178, 91, 0.2), rgba(227, 178, 91, 0.04) 70%);
  box-shadow: 0 0 70px rgba(227, 178, 91, 0.3);
}
.lamp svg { width: 36px; height: 66px; }

.kivilcim {
  position: fixed; z-index: 50; width: 6px; height: 6px; border-radius: 50%; pointer-events: none;
  background: var(--gold-hi); box-shadow: 0 0 10px var(--gold);
  animation: kivilcim 1.3s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes kivilcim { to { transform: translate(var(--x), var(--y)) scale(0.2); opacity: 0; } }

/* Text pages */
.page { padding-block: 56px 72px; }
.page h1 { font-size: clamp(34px, 6vw, 44px); margin: 0 0 4px; font-weight: 600; }
.page h2 { font-size: 21px; color: var(--gold); margin: 34px 0 6px; }
.page p { color: var(--muted); margin: 0 0 12px; }
.page p strong { color: var(--paper); font-weight: 600; }
.updated { color: var(--faint); font-size: 14px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 56px 0; }
.contact { display: grid; gap: 12px; margin: 24px 0 8px; }
.contact a.card { display: flex; align-items: center; justify-content: space-between; text-decoration: none; color: var(--paper); }
.contact small { display: block; color: var(--faint); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; color: var(--paper); }
details p { margin: 10px 0 0; }
.hero:not(.split) h1 { margin-top: 0; }
.hero:not(.split) .lead { margin-inline: auto; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; margin-top: 24px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .hero.split .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: 2; }
  .vakit, .araclar { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .isimler { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  nav.links { gap: 14px; }
  nav.links a { font-size: 14px; }
  .hero { padding-block: 36px 32px; }
  .basmala { font-size: 23px; }
  .lead { font-size: 17px; }
  .cta .btn { flex: 1 1 100%; }
  .block { padding: 40px 0; }
  .grid { grid-template-columns: 1fr; }
  .verse .ar { font-size: 25px; }
  .satir .ar { font-size: 24px; }
  .player-bar, .player-foot { padding-inline: 14px; }
  .verse { padding: 12px; }
  .vakitler li b { font-size: 18px; }
  .values { padding: 32px 20px; }
  .arac, .dua-kart, .vakit-kart { padding: 18px; }
  .isim { height: 136px; }
  .phone { width: min(270px, 76vw); }
  .gunun .ar { font-size: 24px; }
  .yuz.on .ar { font-size: 34px; }
}
