/* NurVakit — gece laciverti ve hilal altını; açık modda net beyaz zemin.
   Dış font yüklenmez (hız ve KVKK); sistem yazı tipleri kullanılır. */

:root {
  --paper: #f4f6fa;
  --surface: #ffffff;
  --ink: #0f1b2d;
  --muted: #4a5a70;
  --line: #dfe5ee;
  --brand: #16365f;
  --brand-strong: #0e2440;
  --link: #1d4f91;
  --link-hover: #1d4f91;
  --night: #13233a;
  --night-2: #1d3454;
  --night-ink: #eef3f7;
  --night-muted: #a9bccd;
  --gold: #d6b25e;
  --gold-strong: #8a6510;
  --gold-soft: #fff1cc;
  --gold-ink: #5c4100;
  --tag: #e3ecf8;
  --focus: #1d4f91;
  --field-border: #8593a8;

  --serif: "NurVakit Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;

  --s-1: .8rem; --s0: 1rem; --s1: 1.25rem; --s2: 1.563rem; --s3: 1.953rem; --s4: 2.441rem; --s5: 3.052rem;
  --wrap: 72rem;
  --radius-s: 6px; --radius-l: 18px;
  color-scheme: light;
}

/* Koyu mod: lacivert gece zemini, altın vurgular */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1a2b;
    --surface: #15243a;
    --ink: #eef3f7;
    --muted: #a9bccd;
    --line: #26395a;
    --brand: #e2be6a;
    --brand-strong: #f0d38f;
    --link: #e2be6a;
    --link-hover: #e2be6a;
    --gold-strong: #e2be6a;
    --gold-soft: #3a3322;
    --gold-ink: #f3d891;
    --tag: #2a4468;
    --focus: #e2be6a;
    --field-border: #5d7699;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  font-variant-numeric: tabular-nums;
}
img, svg { max-width: 100%; }
/* Bağlantılar: metin renginde, ince alt çizgi; üzerine gelince vurgu rengi. Altın yalnızca vurgu ve düğmelerde. */
a { color: var(--ink); text-decoration-line: underline; text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .2em; }
a:hover { color: var(--link-hover); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.005em; }
h1 { font-size: clamp(var(--s3), 5vw, var(--s5)); }
h2 { font-size: clamp(var(--s1), 3vw, var(--s3)); }
h3 { font-size: var(--s1); }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: var(--s-1); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--surface); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; }

/* Yazı tipleri (siteye gömülü, SIL OFL; dışarıdan yüklenmez) ---------------- */
@font-face { font-family: "NurVakit Serif"; src: url("/assets/fonts/lora.woff") format("woff"); font-weight: 400 700; font-display: swap; }

/* Header ------------------------------------------------------------------ */
.site-header { background: var(--night); color: var(--night-ink); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: inherit; text-decoration: none; font: 600 var(--s1)/1 var(--serif); }
.logo:hover { color: inherit; }
.logo-mark { width: 1.75rem; height: 1.75rem; color: var(--night-ink); }
.main-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; }
.main-nav a { display: block; padding: .5rem .7rem; color: var(--night-muted); text-decoration: none; border-radius: var(--radius-s); white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--night-ink); background: var(--night-2); }
@media (max-width: 52rem) {
  /* Telefonda menü tek satır, yana kaydırılır */
  .header-row { padding-block: .5rem 0; gap: .25rem; }
  .main-nav { width: 100%; margin-inline: -1rem; width: calc(100% + 2rem); }
  .main-nav ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 0 1rem .5rem;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .main-nav ul::-webkit-scrollbar { display: none; }
  .main-nav a { padding: .45rem .65rem; }
}

/* Breadcrumbs ------------------------------------------------------------ */
.crumbs { width: min(100% - 2rem, var(--wrap)); margin: 1rem auto 0; font-size: var(--s-1); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: 0; padding: 0; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--line); }

/* Hero: canlı sayaç ve günün yayı ----------------------------------------- */
.hero {
  background:
    radial-gradient(120% 80% at 80% 120%, #26476b 0%, transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  color: var(--night-ink);
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}
.crumbs + .hero { margin-top: 1rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1rem, 4vw, 3rem); align-items: center; }
.hero h1 { margin-bottom: .35em; max-width: 18ch; }
.hero-date { margin: 0; color: var(--night-ink); }
.hero-place { margin: 0 0 1.5rem; color: var(--night-muted); }
.countdown-label { margin: 0; font-family: var(--serif); font-size: var(--s1); color: var(--gold); }
.countdown-clock {
  margin: .1em 0 .15em;
  font: 600 clamp(3rem, 11vw, 5.5rem)/1 var(--sans);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums lining-nums;
}
.countdown-sub { color: var(--night-muted); margin-bottom: 0; }
.hero a, .calc-result a { color: var(--gold); }
.hero :focus-visible, .site-header :focus-visible, .calc-result :focus-visible { outline-color: var(--gold); }
.hero a:hover, .calc-result a:hover { color: #ecd08f; }

.day-arc { display: block; width: 100%; height: auto; overflow: visible; }
.arc-horizon { stroke: #3a5478; stroke-width: 1; }
.arc-path { fill: none; stroke: #3a5478; stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.arc-fast { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; opacity: .9; }
.arc-dot { fill: var(--night); stroke: var(--night-muted); stroke-width: 2; }
.arc-dot--imsak, .arc-dot--iftar { fill: var(--gold); stroke: var(--gold); }
.arc-label { fill: var(--night-muted); font: 500 15px/1 var(--sans); }
.arc-time { fill: var(--night-ink); font-weight: 600; }
.arc-now circle:first-child { fill: rgba(214, 178, 94, .25); }
.arc-now-core { fill: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .arc-now circle:first-child { animation: pulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes pulse { 50% { transform: scale(1.35); opacity: .5; } }
}

.picker { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1.5rem; }
.picker select {
  font: inherit; color: var(--night-ink); background: var(--night-2); border: 1px solid #3a5478;
  border-radius: var(--radius-s); padding: .6rem 2rem .6rem .75rem; min-height: 2.75rem;
}
.picker-msg { flex-basis: 100%; margin: 0; min-height: 1.4em; color: var(--night-muted); font-size: var(--s-1); }

@media (max-width: 48rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-arc { order: 2; max-width: 30rem; }
  .arc-label { display: none; } /* saatler hemen alttaki şeritte */
  .arc-dot { stroke-width: 3; }
}

/* Vakit şeridi ------------------------------------------------------------ */
.strip-wrap { margin-top: -1px; }
.vakit-strip {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 var(--radius-l) var(--radius-l); overflow: hidden;
}
.vakit-strip li { padding: .9rem .75rem; display: flex; flex-direction: column; gap: .15rem; border-left: 1px solid var(--line); }
.vakit-strip li:first-child { border-left: 0; }
.vakit-name { color: var(--muted); font-size: var(--s-1); }
.vakit-name small { font-size: inherit; }
.vakit-time { font: 600 var(--s2)/1.1 var(--sans); }
.vakit-strip li.is-next { background: var(--gold-soft); box-shadow: inset 0 3px 0 var(--gold); }
.vakit-strip li.is-next .vakit-name { color: var(--gold-ink); font-weight: 700; }
@media (max-width: 40rem) {
  .vakit-strip { grid-template-columns: repeat(3, 1fr); }
  .vakit-strip li:nth-child(4) { border-left: 0; }
  .vakit-strip li:nth-child(n+4) { border-top: 1px solid var(--line); }
}

/* Bölümler ------------------------------------------------------------- */
.section { margin-block: clamp(2.5rem, 6vw, 4rem); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.section-head h2 { margin: 0; }
.lead { font-size: var(--s1); max-width: 60ch; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 48rem) { .two-col { grid-template-columns: 1fr; } }
.h-space { margin-top: 2rem; }
.page-head { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 { max-width: 22ch; }

/* Butonlar ------------------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem;
  padding: .6rem 1.1rem; border-radius: var(--radius-s); border: 1px solid transparent;
  background: var(--brand); color: #fff; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--brand-strong); color: #fff; }
.button--light { background: var(--gold); color: var(--night); }
.button--light:hover { background: #e4c57a; color: var(--night); }
.button--quiet { background: transparent; color: var(--brand); border-color: var(--line); }
.button--quiet:hover { background: var(--tag); color: var(--brand-strong); }
@media (prefers-color-scheme: dark) { .button { color: var(--night); } .button:hover { color: var(--night); } .button--quiet { color: var(--brand); } }

/* Tablolar ------------------------------------------------------------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.imsakiye { width: 100%; border-collapse: collapse; min-width: 40rem; }
.imsakiye caption { text-align: left; padding: .9rem 1rem; font-family: var(--serif); font-size: var(--s1); }
.imsakiye th, .imsakiye td { padding: .55rem .8rem; text-align: left; border-top: 1px solid var(--line); white-space: nowrap; }
.imsakiye thead th { font-size: var(--s-1); color: var(--muted); font-weight: 600; background: var(--paper); }
.imsakiye tbody th { font-weight: 600; }
.imsakiye .col-key { font-weight: 600; }
.imsakiye thead .col-key { color: var(--ink); }
.imsakiye tr.row-note { background: var(--gold-soft); }
.imsakiye tr.is-today { background: var(--tag); box-shadow: inset 4px 0 0 var(--brand); }
.tag { display: inline-block; margin-left: .35rem; padding: .05rem .45rem; border-radius: 99px; background: var(--tag); color: var(--ink); font-size: var(--s-1); font-weight: 600; }

details.month summary { cursor: pointer; list-style: none; }
details.month summary::-webkit-details-marker { display: none; }
details.month summary h2 { display: inline; }
details.month summary::after { content: "Göster"; margin-left: .75rem; color: var(--brand); font-size: var(--s-1); font-weight: 600; }
details.month[open] summary::after { content: "Gizle"; }
details.month .table-scroll { margin-top: 1rem; }

/* Listeler ------------------------------------------------------------- */
.neighbor-list, .link-list, .guide-list, .feature-list { list-style: none; margin: 0; padding: 0; }
.neighbor-list li { display: grid; grid-template-columns: 1fr auto 4.5rem; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.neighbor-list li span:last-child { text-align: right; }
.link-list li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.guide-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.guide-list a { font: 600 var(--s1)/1.3 var(--serif); }
.guide-list p { margin: .3rem 0 0; color: var(--muted); }
.guide-groups { display: grid; gap: 2.5rem; }
.feature-list li { padding: .6rem 0; border-bottom: 1px solid var(--line); }

.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 30rem) { .facts div { grid-template-columns: 1fr; gap: 0; } }

.city-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .25rem 1rem; }
.city-grid a { display: block; padding: .45rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.city-grid a:hover { color: var(--brand); border-color: var(--brand); }
.filter { display: flex; flex-direction: column; gap: .25rem; }
.filter label { font-size: var(--s-1); color: var(--muted); }
input:not([type]), input[type="text"], input[type="search"], input[type="number"], input[type="email"], input[type="date"] {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--field-border);
  border-radius: var(--radius-s); padding: .6rem .75rem; min-height: 2.75rem; width: 100%;
}
.filter input { min-width: 16rem; }
.empty { color: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--gold); }
.timeline li { position: relative; display: grid; grid-template-columns: 14rem 1fr; gap: 1rem; padding: .7rem 0 .7rem 1.25rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 1.05rem; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.tl-date { font-weight: 600; }
@media (max-width: 36rem) { .timeline li { grid-template-columns: 1fr; gap: 0; } }
.ramadan-count { font: 600 var(--s2)/1.2 var(--serif); color: var(--brand); min-height: 1.2em; }

.faq h3 { margin-top: 1.5rem; }
.faq p { max-width: 65ch; }

/* Rehber yazıları ----------------------------------------------------- */
.article { max-width: 46rem; }
.article-cat { margin: 0 0 .5rem; font-weight: 600; }
.article-cat a { text-decoration: none; }
.prose { font-size: 1.0625rem; line-height: 1.7; }
.prose h2 { margin-top: 2rem; }
.prose li { margin-bottom: .45rem; }
.note, .review-banner {
  border-left: 4px solid var(--gold); background: var(--surface); padding: .9rem 1.1rem; margin: 1.25rem 0; border-radius: 0 var(--radius-s) var(--radius-s) 0;
}
.note p { margin: 0; }
.review-banner { border-color: var(--gold-strong); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1rem 1.25rem; margin: 1.5rem 0; }
.toc p { margin: 0 0 .4rem; font-weight: 600; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.sources { margin-top: 2.5rem; font-size: var(--s-1); color: var(--muted); }
.sources h2 { font-size: var(--s1); color: var(--ink); }
.related { margin-top: 2rem; }

/* Formlar ve hesaplayıcılar ------------------------------------------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 48rem) { .calc { grid-template-columns: 1fr; } }
.calc-form fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
.calc-form legend { font: 600 var(--s1)/1.3 var(--serif); margin-bottom: .5rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; }
.hint { margin: .3rem 0 0; color: var(--muted); font-size: var(--s-1); }
.field.has-error input { border-color: #b3261e; }
.field-error { margin: .3rem 0 0; color: #b3261e; font-size: var(--s-1); font-weight: 600; }
@media (prefers-color-scheme: dark) { .field-error { color: #f2b8b5; } .field.has-error input { border-color: #f2b8b5; } }
.calc-result { position: sticky; top: 1rem; background: var(--night); color: var(--night-ink); border-radius: var(--radius-l); padding: 1.5rem; }
.calc-result .muted { color: var(--night-muted); }
.result-big { font: 600 var(--s4)/1.1 var(--sans); margin: .2rem 0 .6rem; }
.result-rows { margin: 0; }
.result-rows div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid #2e4767; }
.result-rows dt { color: var(--night-muted); }
.result-rows dd { margin: 0; font-weight: 600; }
.check { display: flex; gap: .6rem; align-items: flex-start; margin: 1rem 0; }
.check input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; flex: none; }
.form-msg { margin-top: .75rem; font-weight: 600; min-height: 1.5em; }
.form-msg.is-error { color: #b3261e; }
.form-msg.is-ok { color: var(--brand); }

/* Uygulama çağrısı ---------------------------------------------------- */
.app-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  margin-block: clamp(2.5rem, 6vw, 4rem); padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface);
}
.app-cta h2 { margin-bottom: .3em; }
.app-cta p { margin: 0; max-width: 55ch; color: var(--muted); }

/* Footer ------------------------------------------------------------- */
.logo--footer { color: var(--ink); }
.logo--footer .logo-mark { color: var(--brand); }

/* Yazdırma: yalnızca imsakiye tablosu -------------------------------- */
@media print {
  .site-header, .site-footer, .hero, .strip-wrap, .crumbs, .app-cta, .faq, .two-col, details.month, [data-print], .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .table-scroll { border: 0; overflow: visible; }
  .imsakiye { min-width: 0; }
  .imsakiye th, .imsakiye td { padding: 3pt 6pt; border-top: .5pt solid #999; }
  .imsakiye tr.is-today { box-shadow: none; background: none; }
  .lead { font-size: 10pt; }
}

/* Paylaşım ---------------------------------------------------------- */
.share { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 2.5rem); align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(1rem, 3vw, 1.75rem); }
.share-preview { display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px -12px rgba(19, 35, 58, .5); transform: rotate(-2deg); }
.share-preview img { display: block; width: 100%; height: auto; }
.share h2 { margin-bottom: .4em; }
.share p { max-width: 55ch; }
.share-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.button--wa { background: #1f7a4d; }
.button--wa:hover { background: #17633e; }
@media (prefers-color-scheme: dark) { .button--wa { background: #3fb67a; } .button--wa:hover { background: #5cc790; } }
@media (max-width: 40rem) { .share { grid-template-columns: 1fr; } .share-preview { width: 9rem; margin-inline: auto; } }

/* Dini günler listesi ------------------------------------------------ */
.day-list { list-style: none; margin: 0; padding: 0; }
.day-list li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.day-list li:target { background: var(--tag); }
.day-list h2 { font-size: var(--s2); margin-bottom: .3em; }
.day-list p { max-width: 62ch; margin-bottom: .4em; }
.day-date { display: flex; flex-direction: column; line-height: 1.3; }
.day-num { font: 600 var(--s4)/1 var(--serif); color: var(--brand); }
.day-list li.is-past { opacity: .6; }
.day-list li.is-next .day-num { color: var(--gold-strong); }
@media (max-width: 36rem) { .day-list li { grid-template-columns: 1fr; gap: .5rem; } .day-date { flex-direction: row; gap: .5rem; align-items: baseline; } }
.site-footer p a { white-space: nowrap; }
@media print { .share { display: none !important; } }

/* Ortak hatim ------------------------------------------------------- */
.hatim-app { margin-top: 1.5rem; }
.hatim-forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 48rem) { .hatim-forms { grid-template-columns: 1fr; } }
.hatim-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(1rem, 3vw, 1.5rem); }
.hatim-card h2 { font-size: var(--s1); margin: 0 0 1rem; }
.hatim-invite-note { background: var(--gold-soft); color: var(--gold-ink); border-radius: var(--radius-s); padding: .75rem 1rem; }
.code-input { font: 700 1.35rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.hatim-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.hatim-row { display: grid; gap: .35rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); color: var(--ink); text-decoration: none; }
.hatim-row:hover { border-color: var(--brand); color: var(--ink); }
.hatim-row-title { font-weight: 700; font-size: var(--s1); }
.bar { display: block; height: .5rem; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--brand); }
.bar--night { background: #3a5478; margin: .2rem 0 .8rem; height: .65rem; }
.bar--night > span { background: var(--gold); }
.back-link { font-weight: 600; }
.hatim-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem; background: var(--night); color: var(--night-ink); border-radius: var(--radius-l); padding: clamp(1.25rem, 4vw, 2rem); }
.hatim-head h2 { color: var(--night-ink); margin: .1rem 0 .3rem; }
.hatim-head p { margin: .2rem 0; }
.hatim-head .result-big { margin: .2rem 0 .4rem; }
.muted-night { color: var(--night-muted); }
.hatim-head .mine { color: var(--gold); font-weight: 700; }
.hatim-invite .code { font: 800 var(--s3)/1.1 var(--sans); letter-spacing: .12em; margin: .1rem 0 .8rem; }
.hatim-head :focus-visible { outline-color: var(--gold); }
@media (max-width: 48rem) { .hatim-head { grid-template-columns: 1fr; } }
.hatim-done { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; background: var(--gold-soft); color: var(--gold-ink); border-radius: var(--radius-l); padding: 1rem 1.25rem; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; padding: 0; margin: .5rem 0 .75rem; font-size: var(--s-1); }
.legend li::before { content: ""; display: inline-block; width: .9rem; height: .9rem; border-radius: 4px; margin-right: .4rem; vertical-align: -2px; border: 1px solid var(--line); background: var(--surface); }
.legend .is-taken::before { background: var(--tag); border-color: var(--tag); }
.legend .is-done::before { background: var(--gold-soft); border-color: var(--gold-soft); }
.juz-grid { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .5rem; }
@media (max-width: 30rem) { .juz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.juz { width: 100%; min-height: 4.25rem; display: grid; align-content: start; gap: .1rem; text-align: left; padding: .55rem .7rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; cursor: pointer; }
.juz:hover { border-color: var(--brand); }
.juz-no { font: 800 var(--s1)/1.1 var(--sans); color: var(--ink); }
.juz-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.juz.is-taken { background: var(--tag); border-color: var(--tag); color: var(--ink); font-weight: 600; }
.juz.is-done { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--gold-ink); font-weight: 600; }
.juz.is-done .juz-no { color: var(--gold-ink); }
.juz.is-done .juz-no::after { content: " ✓"; font-size: .9em; }
.juz.is-mine { border: 2px solid var(--brand); }
.hatim-members { margin: 1.5rem 0 1rem; }
.hatim-members summary { cursor: pointer; font-weight: 700; }
.hatim-members ul { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .25rem; }
.hatim-members li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.member-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
.link-button { background: none; border: 0; padding: 0; color: var(--link); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.hatim-footer-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.button--quiet.danger { color: #b3261e; }
@media (prefers-color-scheme: dark) { .button--quiet.danger { color: #f2b8b5; } }
.juz-dialog { border: 0; border-radius: var(--radius-l); padding: 1.5rem; width: min(26rem, calc(100% - 2rem)); background: var(--surface); color: var(--ink); }
.juz-dialog::backdrop { background: rgba(14, 26, 43, .55); }
.juz-dialog h3 { margin: 0 0 .25rem; }
.dialog-actions, .assign { display: grid; gap: .5rem; margin-top: 1rem; }
.steps { padding-left: 1.25rem; max-width: 65ch; }
.steps li { margin-bottom: .6rem; }

/* Arama ve dualar ---------------------------------------------------- */
.search-box { margin-top: 1rem; max-width: 32rem; }
.search-box label { display: block; font-weight: 600; margin-bottom: .3rem; }
.search-box input { width: 100%; font-size: 1.05rem; }
.dua-groups > div + div { margin-top: 2rem; }
.dua-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .5rem; }
.dua-list a { display: flex; flex-direction: column; gap: .3rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); color: var(--ink); text-decoration: none; }
.dua-list a:hover { border-color: var(--brand); color: var(--ink); }
.dua-title { font-weight: 700; }
.dua-ar { color: var(--muted); font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Arapça: Amiri (SIL OFL, /assets/fonts/OFL-Amiri.txt), yalnızca Arapça harflere sahip sayfalarda indirilir */
@font-face { font-family: "NurVakit Arabic"; src: url("/assets/fonts/amiri-arabic.woff") format("woff"); font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
.arabic, .dua-ar { font-family: "NurVakit Arabic", "Amiri", "Scheherazade New", "Noto Naskh Arabic", "Geeza Pro", "Traditional Arabic", "Arabic Typesetting", serif; }
.arabic { font-size: clamp(1.6rem, 4.5vw, 2.1rem); line-height: 2.1; text-align: right; margin: .25rem 0; }
.arabic--besmele { text-align: center; font-size: clamp(1.4rem, 4vw, 1.8rem); color: var(--muted); }
.dua-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(1rem, 3vw, 1.5rem); margin-bottom: 1rem; }
.dua-block h2 { font-size: var(--s0); font-family: var(--sans); color: var(--muted); margin: 0 0 .5rem; text-transform: none; }
.dua-listen audio { width: 100%; margin-top: .25rem; }
.dua-has-audio { color: var(--gold, currentColor); font-size: .85em; }
.okunus { font-size: 1.15rem; line-height: 1.7; }
.today-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.today-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.25rem; }
.today-card h3 { margin: .1rem 0 .4rem; font-size: var(--s1); }
.today-kind { margin: 0 0 .4rem; font-size: var(--s-1); font-weight: 700; color: var(--gold-strong); }
.arabic--small { font-size: 1.5rem; line-height: 1.9; }

/* Kaydet, yazı boyutu, günlük arşiv */
:root { --read-scale: 1; }
.prose, .dua-block p, .day-item p { font-size: calc(1em * var(--read-scale)); }
.arabic { font-size: calc(clamp(1.6rem, 4.5vw, 2.1rem) * var(--read-scale)); }
.size-tools { display: inline-flex; gap: .25rem; }
[data-fav][aria-pressed="true"] { background: var(--gold-soft); color: var(--gold-ink); border-color: var(--gold-soft); }
.fav-filter { margin: .75rem 0 0; }
.page-head .share-actions { margin-top: .75rem; }
.day { margin-bottom: 2rem; }
.day h2 { font-size: var(--s1); margin-bottom: .75rem; }
.day-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.day-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1rem 1.25rem; }
.day-item h3 { margin: .1rem 0 .4rem; font-size: var(--s0); }
.fav-hidden { display: none !important; }
.arabic.arabic--small { font-size: calc(1.5rem * var(--read-scale)); }
.arabic.arabic--besmele { font-size: calc(clamp(1.4rem, 4vw, 1.8rem) * var(--read-scale)); }
.explore-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .75rem; }
.explore-grid a { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); color: var(--ink); text-decoration: none; height: 100%; }
.explore-grid a:hover { border-color: var(--brand); color: var(--ink); }
.explore-grid strong { font-size: var(--s1); }
.explore-grid span { color: var(--muted); }

/* ===== Ortak düzen ve yeni ana sayfa (Kasım 2026) ===================== */
/* Hero: sol sayaç, sağ vakit panosu (gün yayı kaldırıldı) */
@media (min-width: 48.01rem) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
@media (max-width: 48rem) { .hero-grid { grid-template-columns: 1fr; } .vakit-board { order: 2; } }
.vakit-board { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: #2c4566; border: 1px solid #2c4566; border-radius: var(--radius-l); overflow: hidden; align-self: center; }
.vakit-board li { background: rgba(19, 35, 58, .72); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .2rem; }
.vakit-board .vakit-name { color: var(--night-muted); font-size: var(--s-1); }
.vakit-board .vakit-time { font: 600 clamp(1.5rem, 3vw, 2rem)/1.1 var(--sans); color: var(--night-ink); font-variant-numeric: tabular-nums; }
.vakit-board li.is-next { background: var(--gold); }
.vakit-board li.is-next .vakit-name, .vakit-board li.is-next .vakit-time { color: var(--night); }
.vakit-board li.is-next .vakit-name { font-weight: 700; }
@media (max-width: 48rem) { .vakit-board li { padding: .75rem .85rem; } }

/* İl seçimi: arama, büyük şehirler, açılır tam liste */
.city-chips { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.city-chips a { display: inline-block; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 600; }
.city-chips a:hover { border-color: var(--brand); }
.all-cities summary { cursor: pointer; font-weight: 700; padding: .5rem 0; }
.all-cities[open] summary { margin-bottom: .75rem; }
.city-grid a { text-decoration: none; }

/* Listelerdeki bağlantılar: alt çizgisiz satırlar */
.link-list a, .guide-list a, .footer-col a, .footer-links a, .neighbor-list a, .explore-grid a, .dua-list a, .hatim-row { text-decoration: none; }
.link-list a:hover, .guide-list a:hover, .footer-col a:hover, .footer-links a:hover { text-decoration: underline; }

/* Alt bilgi: 4 sütun + alt satır */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 2rem; margin-top: 3rem; background: var(--surface); }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.footer-col h2 { font-size: var(--s0); font-family: var(--sans); font-weight: 700; margin: 0 0 .75rem; }
.footer-col h2 a { color: var(--ink); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-col li { display: flex; flex-direction: column; font-size: .95rem; }
.footer-col li span { color: var(--muted); font-size: var(--s-1); }
.footer-col a { color: var(--ink); }
.footer-bottom { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; font-size: var(--s-1); max-width: 60ch; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: var(--s-1); }
.footer-links a { color: var(--muted); }
@media (max-width: 60rem) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-bottom { grid-template-columns: 1fr; } }
@media (max-width: 30rem) { .footer-cols { grid-template-columns: 1fr; } }

.today-grid { align-items: start; }
.today > p { margin-top: 1rem; }
.today-card h3 a { text-decoration: none; }
.explore-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
@media (min-width: 60rem) { .explore-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hero a { color: var(--night-ink); text-decoration-color: color-mix(in srgb, var(--night-ink) 45%, transparent); }
.hero a:hover { color: var(--gold); }

/* Tek düzen: okuma sayfaları da diğer sayfalarla aynı sol kenardan başlar, metin sütunu dar kalır */
.wrap.article { max-width: none; }
.article > * { max-width: 46rem; }
.article > .related, .article > .page-head { max-width: 46rem; }
/* Dua sayfasında Arapça metin her zaman büyük (genel paragraf kuralı ezmesin) */
.dua-block p.arabic { font-size: calc(clamp(1.7rem, 4.5vw, 2.2rem) * var(--read-scale)); line-height: 2.1; }
.dua-block p.arabic--besmele { font-size: calc(clamp(1.4rem, 4vw, 1.8rem) * var(--read-scale)); }
.page-head { padding-bottom: .5rem; }
.page-head .lead { color: var(--muted); }

/* Paylaşım kartları (resim olarak paylaş) */
.hero-card-btn { display: inline-block; margin-top: 1rem; padding: 0; background: none; border: 0; color: var(--gold); font: 500 var(--s-1)/1.4 var(--sans); text-decoration: underline; text-decoration-color: rgba(214, 178, 94, .45); text-underline-offset: .2em; cursor: pointer; }
.hero-card-btn:hover { text-decoration-color: var(--gold); }
.card-btn { margin-top: .5rem; padding: 0; background: none; border: 0; color: var(--muted); font: 500 var(--s-1)/1.4 var(--sans); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .2em; cursor: pointer; }
.card-btn:hover { color: var(--ink); text-decoration-color: currentColor; }
.card-dialog { border: 0; border-radius: var(--radius-l); padding: 1.25rem; width: min(26rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); background: var(--surface); color: var(--ink); }
.card-dialog::backdrop { background: rgba(14, 26, 43, .55); }
.card-dialog h2 { font-size: var(--s1); margin: 0 0 .75rem; }
.card-preview { display: flex; justify-content: center; }
.card-preview canvas { width: auto; height: auto; max-width: 100%; max-height: 52dvh; border-radius: 8px; box-shadow: 0 4px 16px rgba(14, 26, 43, .18); }
.card-options { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button { padding: .4rem .9rem; background: none; border: 0; color: var(--ink); font: 500 var(--s-1)/1.2 var(--sans); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.card-actions { display: flex; flex-wrap: wrap; } .card-actions > * { flex: 1 1 7rem; }
.card-actions [hidden] { display: none; }
.card-actions .button { text-align: center; }
@media (prefers-color-scheme: dark) { .seg button[aria-pressed="true"] { background: var(--gold); color: var(--night); } }

/* Reklam alanları: az, açıkça etiketli, sayfa kaymaz -------------------------------- */
.ad-slot { width: min(var(--wrap), 100% - 2rem); margin: clamp(2rem, 5vw, 3rem) auto; }
.article .ad-slot { width: 100%; margin-inline: 0; }
.ad-label { margin: 0 0 .35rem; font: 500 var(--s-1)/1.2 var(--sans); color: var(--muted); }
.ad-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1rem; align-items: center; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); color: var(--ink); text-decoration: none; }
.ad-card[hidden] { display: none; }
.ad-card:hover { border-color: var(--field-border); }
.ad-card img { width: 100%; height: auto; aspect-ratio: 1200 / 628; object-fit: cover; border-radius: 10px; }
.ad-card:not(:has(img)) { grid-template-columns: 1fr; }
.ad-body { display: grid; gap: .25rem; }
.ad-title { font: 600 var(--s1)/1.3 var(--serif); }
.ad-text { color: var(--muted); }
.ad-by { font-size: var(--s-1); color: var(--muted); }
.ad-slot--adsense ins { min-height: 250px; }
.promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding: clamp(1.1rem, 3vw, 1.6rem); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.promo-title { margin: 0 0 .25rem; font: 600 var(--s1)/1.3 var(--serif); }
.promo-text { margin: 0; max-width: 58ch; color: var(--muted); }
@media (max-width: 40rem) { .ad-card { grid-template-columns: 1fr; } }
@media print { .ad-slot { display: none !important; } }

/* Çerez onayı: alt köşede, içerik üstünü kapatmaz; Kabul ve Reddet eşit görünür */
.consent { position: fixed; inset: auto 1rem 1rem 1rem; z-index: 50; max-width: 40rem; margin-inline: auto; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); color: var(--ink); box-shadow: 0 8px 28px rgba(14, 26, 43, .18); }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 .75rem; font-size: var(--s-1); }
.consent-actions { display: flex; gap: .5rem; }
.consent-actions .button { flex: 1; }
.link-button { padding: 0; background: none; border: 0; font: inherit; color: inherit; text-decoration: underline; text-decoration-color: var(--line); cursor: pointer; }
.legal .prose h2 { scroll-margin-top: 1rem; }

/* Duyuru bandı (panelden) */
.announce { background: var(--gold-soft); color: var(--gold-ink); font-size: var(--s-1); }
.announce .wrap { padding-block: .55rem; }
.announce a { color: inherit; font-weight: 600; }
@media (prefers-color-scheme: dark) { .announce { background: #3a3322; color: #f3d891; } }

/* İftar menüleri ve Ramazan günlüğü */
.menu-list { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.menu-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1rem 1.25rem; }
.menu-card h2 { font-size: var(--s1, 1.1rem); margin: 0 0 .5rem; }
.menu-day { color: var(--gold-strong); }
.menu-items { display: grid; gap: .25rem; margin: 0 0 .5rem; }
.menu-items div { display: grid; grid-template-columns: 6.5rem 1fr; gap: .5rem; }
.menu-items dt { color: var(--muted); }
.menu-items dd { margin: 0; }
.menu-more { border-top: 1px solid var(--line); padding-top: .5rem; margin-top: .5rem; }
.menu-more summary { cursor: pointer; color: var(--gold-strong); font-weight: 600; }
.shop-list { margin: .5rem 0; padding-left: 1.1rem; columns: 2 12rem; column-gap: 1.5rem; }
.shop-list li { break-inside: avoid; }
.sahur-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.sahur-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1rem 1.25rem; }
.sahur-block h2 { font-size: var(--s1, 1.1rem); margin: 0 0 .5rem; }
.sahur-block ul { margin: 0; padding-left: 1.1rem; }
.journal-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.journal-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: .75rem; text-align: center; }
.journal-stats strong { display: block; font-size: 1.5rem; }
.journal-stats span { color: var(--muted); font-size: .85rem; }
.journal td, .journal th { vertical-align: middle; }
.journal input[type=number] { width: 5rem; }
.journal tr.is-today { background: color-mix(in srgb, var(--gold) 15%, transparent); }
.journal tr.is-future { opacity: .55; }
@media (max-width: 30rem) { .journal-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.journal :disabled { opacity: .45; cursor: not-allowed; }
.journal th .muted { display: block; font-weight: 400; }
