:root {
  --brand: #0F4C3A;
  --brand-dark: #07332A;
  --gold: #D2A852;
  --gold-soft: #E9D3A0;
  --paper: #F5F3EE;
  --card: #FFFFFF;
  --ink: #15171A;
  --muted: #5E636B;
  --line: #E6E2D9;
  --on-dark: #F2F1EC;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Aktif vakte göre sahne renkleri (uygulamayla aynı) */
  --g1: #141A2E;
  --g2: #2A3352;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #101114; --card: #1A1B20; --ink: #F2F1EC; --muted: #A2A5AC; --line: #2A2C33; }
}
body[data-prayer="imsak"]   { --g1: #1E2A47; --g2: #34436E; }
body[data-prayer="sunrise"] { --g1: #4A3B6B; --g2: #8A6A7A; }
body[data-prayer="dhuhr"]   { --g1: #1F5F4B; --g2: #3D8B72; }
body[data-prayer="asr"]     { --g1: #7A5A2E; --g2: #B08A4E; }
body[data-prayer="maghrib"] { --g1: #5A3448; --g2: #9B5C6E; }
body[data-prayer="isha"]    { --g1: #141A2E; --g2: #2A3352; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, p { margin: 0; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 20px; }
[hidden] { display: none !important; }
.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; }

/* ---------- Sahne ---------- */
.stage {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  color: var(--on-dark);
  background:
    radial-gradient(1100px 600px at 50% -10%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(165deg, var(--g1) 0%, var(--g2) 100%);
  transition: background .8s ease;
  padding-inline: max(20px, env(safe-area-inset-left));
  padding-bottom: env(safe-area-inset-bottom);
}
.stage::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(210,168,82,.55), transparent);
}
.bar { display: flex; align-items: center; justify-content: space-between; max-width: 1040px; width: 100%; margin: 0 auto; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.25rem; }
.brand img { border-radius: 9px; }
.bar-link { font-size: .9rem; text-decoration: none; padding: 7px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(242,241,236,.35); }
.bar-link:hover { background: rgba(255,255,255,.08); }

.stage-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-block: 12px 28px; width: 100%; max-width: 1040px; margin: 0 auto; }

.place { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.place h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.1; letter-spacing: -.01em; cursor: pointer; }
.place-suffix { display: block; font-family: var(--sans); font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; opacity: .65; margin-top: 6px; }
.place-sub {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: rgba(0,0,0,.18); border: 0; border-radius: 999px; padding: 6px 14px; font-size: .92rem;
}
.place-sub:hover { background: rgba(0,0,0,.3); }
.place-sub svg { width: 16px; height: 16px; opacity: .8; }
.place-change { opacity: .7; }
.place-change::before { content: "· "; }
@media (max-width: 480px) { .place-change { display: none; } }

.dates { margin-top: 18px; font-size: .95rem; opacity: .78; min-height: 1.5em; }

.count { margin-top: clamp(20px, 5vh, 44px); }
.count-label { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); }
.count-value { display: flex; justify-content: center; gap: clamp(10px, 3vw, 26px); margin-top: 6px; font-variant-numeric: tabular-nums; }
.count-value span { font-size: clamp(1rem, 2.4vw, 1.3rem); opacity: .9; }
.count-value b { font-family: var(--serif); font-weight: 500; font-size: clamp(3.4rem, 16vw, 6.8rem); line-height: 1; letter-spacing: -.02em; margin-right: 4px; opacity: 1; }

.tiles {
  list-style: none; margin: clamp(24px, 5vh, 44px) 0 0; padding: 0; width: 100%; max-width: 440px;
  display: flex; flex-direction: column; gap: 6px;
}
.tiles li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 20px; border-radius: 14px;
  background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  transition: background .3s ease;
}
.tiles span { font-size: 1.05rem; opacity: .85; }
.tiles time { font-variant-numeric: tabular-nums; font-size: 1.3rem; font-weight: 600; }
.tiles li.is-past { opacity: .55; }
.tiles li.is-current { background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 1px rgba(210,168,82,.75); opacity: 1; }
.tiles li.is-current span { opacity: 1; color: var(--gold-soft); }
.note { margin-top: 14px; font-size: .8rem; opacity: .6; min-height: 1.3em; }

.app-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap;
  width: 100%; max-width: 1040px; margin: 0 auto 20px; padding: 14px 16px;
  border-radius: 20px; background: rgba(0,0,0,.22); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  scroll-margin-top: 20px;
}
.app-strip-text { display: flex; align-items: center; gap: 12px; }
.app-strip-text img { border-radius: 11px; }
.app-strip-text p { display: flex; flex-direction: column; line-height: 1.3; }
.app-strip-text span { font-size: .85rem; opacity: .7; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-width: 150px; padding: 8px 14px;
  border-radius: 12px; background: #000; color: #fff; text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.store:hover { background: #111; }
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 600; }
.store small { font-weight: 400; font-size: .66rem; opacity: .75; }
@media (max-width: 640px) { .app-strip { flex-direction: column; align-items: stretch; } .stores { width: 100%; } .store { flex: 1; min-width: 0; justify-content: center; } }

/* ---------- Tanıtım ---------- */
.about { padding-block: 72px; text-align: center; }
.eyebrow { color: #A5822F; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; font-weight: 600; margin-bottom: 14px; }
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--gold); } }
.about h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.12; }
.about h2 em { color: var(--brand); font-style: italic; }
@media (prefers-color-scheme: dark) { .about h2 em { color: var(--gold); } }
.lead { margin: 18px auto 28px; max-width: 34em; color: var(--muted); font-size: 1.08rem; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .92rem; }

.foot { border-top: 1px solid var(--line); padding-block: 22px; color: var(--muted); font-size: .9rem; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- Konum seçici ---------- */
.picker {
  position: fixed; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(5, 10, 12, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.picker-card {
  width: 100%; max-width: 460px; height: min(640px, 100%);
  display: flex; flex-direction: column;
  background: var(--card); color: var(--ink); border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
}
@media (max-width: 520px) {
  .picker { padding: 0; align-items: flex-end; }
  .picker-card { max-width: none; height: 92svh; border-radius: 22px 22px 0 0; }
}
.picker-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 8px; }
.picker-titles { flex: 1; min-width: 0; }
.picker-titles h2 { font-size: 1.15rem; }
.crumb { background: none; border: 0; padding: 0; color: var(--muted); font-size: .88rem; cursor: pointer; text-align: left; }
.crumb:hover { color: var(--ink); text-decoration: underline; }
.icon-btn { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; cursor: pointer; }
.icon-btn:hover { background: var(--paper); }
.icon-btn svg { width: 22px; height: 22px; }
.picker-tools { display: flex; gap: 8px; padding: 4px 14px 12px; border-bottom: 1px solid var(--line); }
.picker-tools input {
  flex: 1; min-width: 0; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 16px;
}
.picker-tools input:focus { outline: none; border-color: var(--gold); }
.locate {
  display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 0 12px; border-radius: 12px;
  border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: .88rem; white-space: nowrap;
}
.locate:hover { border-color: var(--gold); }
.locate svg { width: 18px; height: 18px; color: var(--brand); }
@media (prefers-color-scheme: dark) { .locate svg { color: var(--gold); } }
.locate.busy { opacity: .5; pointer-events: none; }
@media (max-width: 380px) { .locate { font-size: 0; gap: 0; } }
.picker-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.picker-list li button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 12px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; text-align: left; font-size: 1rem;
}
.picker-list li button:hover, .picker-list li button:focus-visible { background: var(--paper); outline: none; }
.picker-list li button small { color: var(--muted); font-size: .8rem; }
.picker-list li button::after { content: "›"; color: var(--muted); font-size: 1.2rem; line-height: 1; }
.picker-list li.leaf button::after { content: ""; }
.picker-list .msg { padding: 18px 12px; color: var(--muted); text-align: center; }
.picker-list .group { padding: 12px 12px 4px; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Yasal sayfa ---------- */
.top { background: var(--brand-dark); color: var(--on-dark); }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.top-nav a { text-decoration: none; }
.btn { display: inline-flex; padding: 8px 16px; border-radius: 999px; background: var(--gold); color: var(--brand-dark); font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--gold-soft); }
.btn-sm { font-size: .9rem; }
.legal { padding-block: 48px 72px; }
.narrow { max-width: 760px; }
.legal h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 6px; }
.legal h2 { font-size: 1.15rem; margin: 30px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 10px; }
.legal .updated { font-size: .9rem; margin-bottom: 18px; }
.foot .brand { font-size: 1rem; color: var(--ink); }
.foot .brand img { border-radius: 7px; }
.copy { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
