/*
  namazgah.com — tek stil dosyası.

  Palet uygulamayla aynı (src/theme/index.ts): kırmızı, kum, yumurta kabuğu,
  yeşilsiz kömür siyahı. YEŞİL / TEAL / MAVİ YOK. Ölçülen kontrastlar (WCAG):
    mürekkep / sayfa 15,6   gövde / sayfa 9,9   soluk / sayfa 6,6
    kırmızı / sayfa  6,1    yumurta / kırmızı 5,4   kum / kömür 10,4
  Önbellek: nginx bu dosyaya 10 yıllık ömür veriyor. Adresindeki sürüm eki
  (?v=…) yükleme betiğiyle kendiliğinden değişir; elle bir şey yapma.
*/
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(yazi/Poppins-400.ttf) format("truetype"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(yazi/Poppins-600.ttf) format("truetype"); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url(yazi/Poppins-700.ttf) format("truetype"); }

:root {
  color-scheme: light;
  --sayfa: #FCF6F0; --kum: #F3E7DC; --yumusak: #EAD6C6; --kum-koyu: #E6CBB8; --cizgi: #E6D5C7;
  --kirmizi: #AC3032; --kirmizi-koyu: #8E2729; --yumurta: #F2E9D2;
  --murekkep: #1F1C1B; --govde: #423D3B; --soluk: #5E5754;
  --komur: #242120; --derin: #141312;
  --kose: 18px; --golge: 0 6px 20px rgba(31, 28, 27, .07); --golge-buyuk: 0 14px 34px rgba(31, 28, 27, .13);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--sayfa); color: var(--govde);
  font: 400 16px/1.6 Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--kirmizi); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { color: var(--murekkep); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(1.7rem, 5.2vw, 2.6rem); }
h2 { font-size: clamp(1.25rem, 3.6vw, 1.6rem); }
p { margin: 0 0 .8rem; }
svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Tarayıcının mavi odak çerçevesi yok; klavyeyle gezene kırmızı halka kalıyor. */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--kirmizi); outline-offset: 3px; border-radius: 6px; }
a, button, input { -webkit-tap-highlight-color: transparent; }

.sarmal { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 20px; }
.dar { max-width: 46rem; }
.orta { text-align: center; }
.orta .dugmeler { justify-content: center; }
.gizli { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.atla { position: absolute; left: -999px; top: 8px; background: var(--komur); color: var(--yumurta); padding: 8px 14px; border-radius: 10px; z-index: 20; }
.atla:focus { left: 8px; }
.soluk { color: var(--soluk); font-size: .9rem; }
.ust-yazi { font-size: .7rem; font-weight: 600; letter-spacing: .12em; color: var(--kirmizi); margin: 0 0 .5rem; }

/* ── Üst çubuk ── */
.ust { position: sticky; top: 0; z-index: 10; background: rgba(252, 246, 240, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--cizgi); }
.ust-ic { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; }
.marka { display: flex; align-items: center; gap: 10px; min-height: 44px; flex: none; color: var(--murekkep); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.marka:hover { text-decoration: none; }
.marka img { display: block; }
.menu { display: flex; align-items: center; gap: 6px; }
.menu a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--govde); font-weight: 600; font-size: .9rem; transition: background .2s, color .2s; }
.menu a:hover, .menu a[aria-current] { background: var(--yumusak); color: var(--murekkep); text-decoration: none; }
.menu .menu-vurgu { background: var(--kirmizi); color: var(--yumurta); }
.menu .menu-vurgu:hover { background: var(--kirmizi-koyu); color: var(--yumurta); }

/* ── Kırıntı ── */
.kirinti { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding-top: 18px; font-size: .82rem; color: var(--soluk); }
.kirinti a, .kirinti [aria-current] { display: inline-flex; align-items: center; min-height: 40px; }
.kirinti a { color: var(--soluk); }
.kirinti [aria-current] { color: var(--murekkep); font-weight: 600; }

/* ── Düğmeler ── */
.dugmeler { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.2rem; }
.dugme {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 22px;
  border-radius: 999px; font: 600 .98rem/1 Poppins, system-ui, sans-serif; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.dugme:hover { text-decoration: none; transform: translateY(-2px); }
.dugme:active { transform: scale(.97); }
.dugme-dolu { background: linear-gradient(135deg, var(--kirmizi), var(--kirmizi-koyu)); color: var(--yumurta); box-shadow: 0 8px 22px rgba(172, 48, 50, .28); }
.dugme-cizgi { border-color: var(--kirmizi); color: var(--kirmizi); background: transparent; }
.dugme-cizgi:hover { background: rgba(172, 48, 50, .06); }

/* ── Bölümler ── */
.bolum { padding-top: 48px; padding-bottom: 8px; animation: yuksel .5s ease both; }
.bolum.ilk { padding-top: 16px; }
.bolum:last-child { padding-bottom: 64px; }
.bolum-alt { color: var(--soluk); margin: .5rem 0 1.4rem; max-width: 44rem; }
@keyframes yuksel { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── Ana sayfa girişi ── */
.kahraman { background: linear-gradient(180deg, var(--kum), var(--sayfa)); overflow: hidden; }
.kahraman-ic { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: center; padding-top: 34px; padding-bottom: 28px; }
.kahraman-metin { animation: yuksel .55s ease both; }
.kahraman-alt { font-size: 1.05rem; color: var(--govde); margin: .9rem 0 0; max-width: 34rem; }

.arama { display: flex; margin-top: 1.4rem; max-width: 30rem; background: #fff; border: 1.5px solid var(--cizgi); border-radius: 999px; padding: 4px; transition: border-color .2s, box-shadow .2s; }
.arama.genis { max-width: 40rem; margin-bottom: 1.2rem; }
.arama:focus-within { border-color: var(--kirmizi); box-shadow: 0 0 0 4px rgba(172, 48, 50, .1); }
.arama input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 16px; height: 46px; font: 400 1rem Poppins, system-ui, sans-serif; color: var(--murekkep); }
.arama input::placeholder { color: var(--soluk); }
.arama input:focus-visible { outline: none; }
.arama button { width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; background: var(--kirmizi); color: var(--yumurta); cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .15s; }
.arama button:hover { background: var(--kirmizi-koyu); }
.arama button:active { transform: scale(.94); }
.arama button svg { width: 20px; height: 20px; }

/* ── Radar (ana sayfadaki süs ve "yakınımdakiler") ── */
.radar-sus, .radar { position: relative; width: min(100%, 420px); aspect-ratio: 1 / 1; margin: 8px auto 0; }
.radar { margin-top: 22px; overflow: hidden; border-radius: 28px; }
.halka { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(31, 28, 27, .1); border-radius: 50%; transform: translate(-50%, -50%); }
.h1 { width: 30%; height: 30%; } .h2 { width: 58%; height: 58%; } .h3 { width: 86%; height: 86%; } .h4 { width: 116%; height: 116%; }
.ben { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--kirmizi); border: 3px solid #fff; box-shadow: var(--golge); z-index: 2; }
.nabiz { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; background: var(--kirmizi); opacity: 0; animation: nabiz 2.2s ease-out infinite; }
.nabiz.gec { animation-delay: 1.1s; }
@keyframes nabiz { from { transform: scale(.3); opacity: .32; } to { transform: scale(1.2); opacity: 0; } }
.kuzey { position: absolute; left: 50%; top: 6px; transform: translateX(-50%); font-size: .68rem; font-weight: 600; color: var(--soluk); }

.radar-sus .karo { position: absolute; width: 15%; aspect-ratio: 1; border-radius: 26%; background: var(--komur); box-shadow: var(--golge); animation: belir .5s ease both; }
.radar-sus .k1 { left: 70%; top: 14%; animation-delay: .25s; } .radar-sus .k2 { left: 76%; top: 52%; animation-delay: .35s; }
.radar-sus .k3 { left: 12%; top: 72%; animation-delay: .45s; } .radar-sus .k4 { left: 40%; top: 78%; animation-delay: .55s; }
.radar-sus .buyuk { width: 32%; left: 8%; top: 26%; border-radius: 18%; box-shadow: var(--golge-buyuk); animation-delay: .15s; }
.radar-sus .buyuk::after { content: ""; position: absolute; left: 14%; bottom: 14%; width: 56%; height: 22%; border-radius: 999px; background: var(--kirmizi); }
@keyframes belir { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

.radar .nokta { position: absolute; z-index: 3; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--govde); font-size: .68rem; font-weight: 600; animation: belir .4s ease both; }
.radar .nokta:hover { text-decoration: none; }
.radar .nokta i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--komur); color: var(--kum-koyu); box-shadow: var(--golge); font-style: normal; transition: transform .18s; }
.radar .nokta:hover i { transform: scale(1.08); }
.radar .nokta.en-yakin i { width: 58px; height: 58px; border-radius: 18px; background: var(--kirmizi); color: var(--yumurta); box-shadow: var(--golge-buyuk); }
.radar .nokta svg { width: 22px; height: 22px; }

/* ── İl / ilçe ızgarası ── */
.il-izgara { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
/* Izgara hücresi içeriği kadar büyümesin: "Afyonkarahisar" 360 pt'lik ekranda sayfayı yana kaydırıyordu. */
.il-izgara li { min-width: 0; }
/* Ad üstte, sayı altta: yan yana iken 155 pt'lik hücrede ada 73 pt kalıyor,
   "Afyonkarah / isar", "Büyükçekm / ece" diye bölünüyordu. Alt alta 127 pt kalıyor. */
.il-izgara span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; line-height: 1.25; }
.il-izgara a { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 62px; padding: 9px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--cizgi); color: var(--murekkep); font-weight: 600; font-size: .95rem; transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.il-izgara a:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--golge); border-color: var(--kum-koyu); }
.il-izgara small { font-size: .78rem; font-weight: 400; color: var(--soluk); }

/* ── Cami listesi ── */
.cami-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 28px; }
.cami-liste a { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 9px 2px; border-bottom: 1px solid var(--cizgi); color: var(--murekkep); transition: padding .18s ease; }
.cami-liste a:hover { text-decoration: none; padding-left: 8px; }
.cami-rozet { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--yumusak); color: var(--kirmizi); display: grid; place-items: center; }
.cami-rozet svg { width: 20px; height: 20px; }
.cami-ad { flex: 1; min-width: 0; font-weight: 600; font-size: .95rem; line-height: 1.35; }
.cami-ad small { display: block; font-weight: 400; font-size: .8rem; color: var(--soluk); }
.cami-ad.adsiz { font-weight: 400; color: var(--govde); }
.ok { color: var(--soluk); font-size: 1.3rem; line-height: 1; }

.sayfalama { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.sayfalama a, .sayfalama span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; font-weight: 600; font-size: .9rem; }
.sayfalama a { background: #fff; border: 1px solid var(--cizgi); color: var(--murekkep); }
.sayfalama a:hover { text-decoration: none; border-color: var(--kirmizi); }
.sayfalama span { background: var(--kirmizi); color: var(--yumurta); }

/* ── Kartlar ve cami sayfası ── */
.kart { background: #fff; border: 1px solid var(--cizgi); border-radius: 22px; padding: 22px; margin-bottom: 16px; box-shadow: var(--golge); }
.kart-baslik { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--soluk); margin-bottom: 14px; }
.kart p:last-child { margin-bottom: 0; }
.cami-sayfa header { margin-bottom: 22px; }
.cami-sayfa section > h2 { margin: 30px 0 10px; }
.cami-izgara { display: grid; grid-template-columns: 1fr; gap: 16px; }
.cami-izgara .kart { margin: 0; }
.bilgi { margin: 0; }
.bilgi > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--cizgi); }
.bilgi > div:last-child { border-bottom: 0; }
.bilgi dt { color: var(--soluk); font-size: .9rem; }
.bilgi dd { margin: 0; color: var(--murekkep); font-weight: 600; text-align: right; }
.harita { position: relative; padding: 0; overflow: hidden; min-height: 300px; background: var(--kum); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; padding-bottom: 22px; }
.harita iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; z-index: 3; background: var(--kum); }
.harita .ben { top: 38%; }
.harita .halka { top: 38%; }
.harita .h1 { width: 110px; height: 110px; } .harita .h2 { width: 210px; height: 210px; } .harita .h3 { width: 320px; height: 320px; }
.harita .dugme { position: relative; z-index: 2; }
.harita-baglanti { position: relative; z-index: 2; display: inline-flex; align-items: center; min-height: 40px; font-size: .85rem; font-weight: 600; }

/* ── Uygulama bandı ── */
.uygulama { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; margin-bottom: 64px; padding: 28px 24px; background: var(--komur); border-radius: 28px; color: var(--kum-koyu); width: calc(100% - 40px); }
.uygulama h2 { color: var(--yumurta); margin-bottom: .6rem; }
.uygulama .ust-yazi { color: #EA7678; }
.uygulama .soluk { color: var(--kum-koyu); opacity: .8; margin: 0; }
.uygulama img { flex: none; border-radius: 26px; box-shadow: var(--golge-buyuk); }

.gizlilik-notu { margin-top: 26px; max-width: 44rem; }
.yakin .dugme[hidden], [hidden] { display: none !important; }

/* ── Alt ── */
.alt { background: var(--derin); color: var(--kum-koyu); margin-top: 40px; padding: 40px 0 44px; font-size: .9rem; }
.alt-ic { display: grid; gap: 22px; }
.alt-marka { color: var(--yumurta); font-weight: 700; font-size: 1.1rem; margin-bottom: .3rem; }
.alt nav { display: flex; flex-direction: column; }
.alt a { color: var(--yumurta); display: inline-flex; align-items: center; min-height: 40px; }
.alt-kaynak { font-size: .8rem; opacity: .85; margin: 0; }
.alt-kaynak a { display: inline; min-height: 0; text-decoration: underline; }

@media (min-width: 820px) {
  .kahraman-ic { grid-template-columns: 1.1fr .9fr; padding-top: 56px; padding-bottom: 48px; }
  .cami-izgara { grid-template-columns: 1fr 1.25fr; }
  .alt-ic { grid-template-columns: 1.2fr 1fr; }
  .alt-kaynak { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .il-izgara a { font-size: .9rem; }
  .menu a { font-size: .86rem; padding: 0 13px; }
  .uygulama { flex-direction: column-reverse; align-items: flex-start; }
  .uygulama img { width: 84px; height: 84px; border-radius: 20px; }
  .menu a:not(.menu-vurgu) { padding: 0 10px; }
  .ust-ic { gap: 6px; }
  .dugmeler .dugme { flex: 1 1 auto; }
}
/* 340 pt altında üç öğe sığmıyor: "Camiler" düşer (ana sayfada ve altta bağlantısı var). */
@media (max-width: 339px) {
  .menu a:not(.menu-vurgu) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
