/* vaktijanamaz.com. The brand of the app: night green and gold, with a
   paper-light variant for phones in light mode. Nunito, like the app. */
@font-face { font-family: Nunito; src: url('/nunito-var.woff2') format('woff2'); font-weight: 200 1000; font-display: swap; }

:root {
  color-scheme: dark light;
  --bg: #0a1612;
  --bg-2: #0f3b2d;
  --panel: #12241d;
  --panel-2: #16493a;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4efe3;
  --muted: #9dbbae;
  --gold: #e9c46a;
  --gold-2: #f6d27a;
  --green: #3fa37c;
  --mint: #7ce8bc;
  --orange: #f0932b;
  --red: #ef4a50;
  --w-bg: #0f3b2d;
  --w-cell: #16493a;
  --w-text: #f4efe3;
  --w-muted: #9dbbae;
  --w-accent: #e9c46a;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f1e4;
    --bg-2: #ebe3d0;
    --panel: #fffdf7;
    --panel-2: #efe8d8;
    --line: rgba(0, 0, 0, 0.08);
    --text: #1b2230;
    --muted: #6a7266;
    --gold: #b7862a;
    --gold-2: #a2741f;
    --green: #2f7d5b;
    --mint: #2f7d5b;
    --shadow: 0 24px 60px rgba(40, 30, 10, 0.18);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Nunito, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 15% -10%, rgba(63, 163, 124, 0.22), transparent 60%),
    radial-gradient(800px 700px at 110% 30%, rgba(233, 196, 106, 0.12), transparent 60%);
  pointer-events: none;
}
a { color: var(--gold); }
img { max-width: 100%; height: auto; }
button { font: inherit; }
svg { display: block; }

main, .top, .foot { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar ---------- */
.top { display: flex; align-items: center; gap: 12px; padding: 18px 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; font-size: 18px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.brand span { white-space: nowrap; }
@media (max-width: 480px) { .brand span { display: none; } }
.lang { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px; }
.pick {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 800;
}
.pick svg, .pin svg { width: 18px; height: 18px; color: var(--gold); }
.pick.big { padding: 10px 18px; font-size: 18px; }
.pick small { color: var(--muted); font-weight: 700; font-size: 12px; margin-left: 2px; }

/* ---------- Hero / live ---------- */
.eyebrow { color: var(--gold); font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; margin: 0 0 8px; }
.hero { padding: 28px 0 10px; text-align: center; }
.hero h1 { font-size: clamp(32px, 6vw, 60px); line-height: 1.04; margin: 0 0 8px; font-weight: 1000; letter-spacing: -0.02em; }
.hero .date { color: var(--muted); margin: 0 0 18px; font-weight: 700; }
.live {
  background: linear-gradient(170deg, var(--bg-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px 18px 16px;
  box-shadow: var(--shadow);
}
.live-head { display: flex; justify-content: center; margin-bottom: 8px; }
.count-wrap { margin: 6px 0 16px; }
.count-label { color: var(--muted); font-weight: 700; }
.count-label b { color: var(--text); }
.count { font-size: clamp(54px, 13vw, 112px); font-weight: 1000; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; margin-top: 4px; }
html:not(.live) .count { opacity: 0.35; }
.tcards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.tcard {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 18px;
  padding: 12px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0;
}
.tcard .ticon svg { width: 26px; height: 26px; color: var(--muted); }
.tcard .tname { font-size: 12px; font-weight: 800; color: var(--muted); text-align: center; line-height: 1.15; min-height: 2.3em; display: flex; align-items: center; }
.tcard .tval { font-size: clamp(18px, 3.4vw, 30px); font-weight: 1000; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.tcard .trel { font-size: 11px; color: var(--muted); font-weight: 700; min-height: 1.3em; }
.tcard.is-next { background: var(--gold); border-color: transparent; color: #1b1405; }
.tcard.is-next .ticon svg, .tcard.is-next .tname, .tcard.is-next .trel { color: rgba(27, 20, 5, 0.75); }
.tcard.is-past { opacity: 0.55; }
.live-note { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
@media (max-width: 640px) {
  .tcards { grid-template-columns: repeat(3, 1fr); }
  .tcard .tname { min-height: 0; }
}

/* ---------- Sections ---------- */
section { padding: 56px 0 10px; }
.sec-head { max-width: 760px; margin: 0 auto 26px; text-align: center; }
.sec-head h2, .plus-card h2 { font-size: clamp(26px, 4.4vw, 42px); line-height: 1.08; margin: 0 0 10px; font-weight: 1000; letter-spacing: -0.02em; }
.lead { color: var(--muted); font-size: 17px; margin: 0; }

/* ---------- Widgets, live ---------- */
.wgrid { display: grid; grid-template-columns: 230px 1fr; grid-template-rows: auto auto; gap: 16px; align-items: stretch; }
.wg {
  background: var(--w-bg); color: var(--w-text); border-radius: 26px; padding: 16px;
  box-shadow: var(--shadow); font-variant-numeric: tabular-nums; position: relative;
}
.wg-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.wg-label { color: var(--w-accent); font-size: 11px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.wg-name { font-size: 18px; font-weight: 800; }
.wg-time { color: var(--w-muted); font-weight: 700; font-size: 14px; }
.wg-count { font-size: 32px; font-weight: 1000; letter-spacing: -0.02em; line-height: 1.1; }
.wg-place { color: var(--w-muted); font-weight: 700; font-size: 13px; }
.wg-date { color: var(--w-muted); font-size: 12px; }
.wg-right { text-align: right; }
.wg-square { grid-column: 1; grid-row: 1; aspect-ratio: 1; display: flex; flex-direction: column; justify-content: space-between; }
.wg-wide { grid-column: 2; grid-row: 1; }
.wg-wide .wg-place { color: var(--w-text); font-size: 15px; }
.wg-cells { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 12px; }
.cell { background: var(--w-cell); border-radius: 12px; padding: 7px 2px 6px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.cell span { font-size: 10px; font-weight: 700; line-height: 1.1; min-height: 2.2em; display: flex; align-items: flex-end; }
.cell svg { width: 15px; height: 15px; }
.cell b { font-size: 14px; font-weight: 900; }
.cell.on { background: var(--w-accent); color: #1b1405; }
.cell.past { opacity: 0.5; }
.ring {
  --p: 0; width: 36px; height: 36px; border-radius: 50%; flex: none; position: relative; display: grid; place-items: center;
  background: conic-gradient(var(--w-accent) calc(var(--p) * 360deg), var(--w-cell) 0);
}
.ring::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--w-bg); }
.ring svg { width: 18px; height: 18px; position: relative; color: var(--w-accent); }
.ring-mono { background: conic-gradient(#fff calc(var(--p) * 360deg), rgba(255, 255, 255, 0.25) 0); width: 44px; height: 44px; }
.ring-mono::before { background: #0a1612; }
.ring-mono svg { color: #fff; width: 22px; height: 22px; }
.wg-bar { grid-column: 2; grid-row: 2; }
.wg-bar .wg-top { align-items: center; }
.bar-icon svg { width: 26px; height: 26px; color: var(--tone, var(--green)); }
.bar-text { flex: 1; min-width: 0; }
.bar-left { color: var(--w-muted); font-size: 13px; font-weight: 700; }
.bar-btn {
  border: 1.5px solid var(--tone, var(--green)); color: var(--tone, var(--green)); background: color-mix(in srgb, var(--tone, var(--green)) 18%, transparent);
  border-radius: 999px; padding: 5px 12px; font-weight: 800; font-size: 13px; cursor: pointer;
}
.bar-btn i { display: none; font-style: normal; }
.bar-track { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); margin-top: 14px; overflow: hidden; }
.bar-track i { display: block; height: 100%; width: 60%; background: var(--tone, var(--green)); border-radius: 4px; transition: width 1s linear; }
.wg-bar[data-tone='soon'] { --tone: var(--orange); }
.wg-bar[data-tone='late'] { --tone: var(--red); }
.wg-bar[data-tone='idle'] { --tone: var(--w-muted); }
.wg-bar.prayed { --tone: #aab5c6; }
.wg-bar.prayed .bar-btn { background: var(--w-cell); color: var(--w-text); padding: 5px 10px; }
.wg-bar.prayed .bar-btn i { display: inline; }
.wg-bar.prayed .bar-btn span { display: none; }
.wg-bar.prayed .bar-left::before { content: ''; }
.wg-lock {
  grid-column: 1; grid-row: 2; display: flex; align-items: center; gap: 10px; background: rgba(22, 32, 27, 0.82);
  backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; padding: 12px 14px;
}
.wg-lock .wg-name { font-size: 15px; opacity: 0.85; }
.wg-lock .wg-count { font-size: 24px; }
@media (max-width: 760px) {
  .wgrid { grid-template-columns: 1fr; grid-template-rows: none; }
  .wg-square, .wg-wide, .wg-bar, .wg-lock { grid-column: auto; grid-row: auto; }
  .wg-square { aspect-ratio: auto; gap: 4px; }
}

/* ---------- Badges ---------- */
.badges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 28px 0 0; }
.badge {
  display: inline-flex; flex-direction: column; text-decoration: none; background: var(--text); color: var(--bg);
  border-radius: 14px; padding: 10px 20px; min-width: 180px; line-height: 1.1;
}
.b-small { font-size: 11px; font-weight: 700; opacity: 0.75; }
.b-big { font-size: 20px; font-weight: 1000; }

/* ---------- Features ---------- */
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.fgrid article { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.fgrid h3 { margin: 0 0 6px; font-size: 17px; }
.fgrid p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Screenshots ---------- */
.shots { padding-top: 24px; }
.shot-row { display: flex; gap: 14px; overflow-x: auto; padding: 10px 4px 18px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.shot-row img { width: 230px; flex: none; border-radius: 22px; scroll-snap-align: center; box-shadow: var(--shadow); }

/* ---------- Plus ---------- */
.plus-card {
  background: linear-gradient(150deg, color-mix(in srgb, var(--gold) 22%, var(--panel)), var(--panel));
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); border-radius: 28px; padding: 32px 24px; text-align: center; max-width: 820px; margin: 0 auto;
}
.plus-card p { max-width: 640px; margin: 0 auto 12px; color: var(--muted); }
.donate { color: var(--text) !important; font-weight: 700; }
.donate b { color: var(--gold); font-size: 1.3em; }

/* ---------- Year ---------- */
.months details { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 8px; overflow: hidden; }
.months summary { cursor: pointer; padding: 12px 16px; font-weight: 900; list-style: none; display: flex; justify-content: space-between; }
.months summary::after { content: '+'; color: var(--gold); }
.months details[open] summary::after { content: '−'; }
.months table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14px; }
.months th, .months td { padding: 6px 4px; text-align: center; border-top: 1px solid var(--line); }
.months thead th { font-size: 11px; color: var(--muted); border-top: 0; }
.months tbody th { text-align: left; padding-left: 14px; white-space: nowrap; }
.months tbody th small { color: var(--muted); font-weight: 700; margin-left: 3px; }
.months tr.today { background: color-mix(in srgb, var(--gold) 22%, transparent); font-weight: 900; }
@media (max-width: 560px) { .months table { font-size: 12px; } .months th, .months td { padding: 5px 2px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 800; font-size: 17px; }
.faq p { margin: 0 0 14px; color: var(--muted); }

/* ---------- Places ---------- */
.pl-group h3 { margin: 18px 0 8px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pl-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-list a { text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 700; }
.pl-list a:hover { border-color: var(--gold); }

/* ---------- Picker ---------- */
.picker { border: 0; border-radius: 22px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: 80vh; background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.picker::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); }
.picker-head { display: flex; gap: 8px; padding: 14px; border-bottom: 1px solid var(--line); margin: 0; position: sticky; top: 0; background: var(--panel); flex-wrap: wrap; }
.picker-head input { flex: 1; min-width: 160px; font: inherit; border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 12px; padding: 10px 12px; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 12px; padding: 10px 14px; font-weight: 800; cursor: pointer; background: var(--gold); color: #1b1405; }
.btn.ghost { background: var(--panel-2); color: var(--text); }
.btn svg { width: 16px; height: 16px; }
.picker .x { border: 0; background: transparent; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 6px; }
.picker-list { padding: 8px 14px 14px; display: flex; flex-direction: column; }
.picker-group { margin: 14px 0 4px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 900; }
.picker-list a { color: var(--text); text-decoration: none; padding: 9px 6px; border-bottom: 1px solid var(--line); font-weight: 700; }
.picker-list a.on { color: var(--gold); }

/* ---------- Footer / legal ---------- */
.foot { color: var(--muted); font-size: 14px; padding: 40px 20px 50px; border-top: 1px solid var(--line); margin-top: 50px; }
.prose { max-width: 760px; padding: 20px 20px 40px; }
.prose h1 { font-size: 34px; line-height: 1.1; }
.prose h2 { font-size: 20px; margin-top: 28px; }
.prose p, .prose li { color: var(--text); opacity: 0.9; }
.tl-dr { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; }

/* ---------- Per-place facts ---------- */
.facts { max-width: 760px; margin: 22px auto 0; text-align: left; color: var(--muted); font-size: 15px; }
.facts p { margin: 0 0 10px; }
.facts .near b { color: var(--text); }
.facts .near small { color: var(--muted); }
