/* Zikr Break — the guide pages (/99-names-of-allah, /umrah-guide, /blog/…).
   Plain, fast, readable pages search engines can index: no JavaScript, one
   stylesheet, the app's own colours. Generated by tests/build-pages.mjs. */

:root {
  --bg: #f6faf8;
  --surface: #ffffff;
  --surface-2: #eef6f2;
  --text: #0b1d17;
  --muted: #4b5f58;
  --line: #dbe7e1;
  --brand: #0f766e;
  --brand-2: #10b981;
  --gold: #b7791f;
  --shadow: 0 1px 2px rgba(11, 29, 23, 0.06), 0 8px 24px -12px rgba(11, 29, 23, 0.18);
  --radius: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07110e;
    --surface: #0e1c17;
    --surface-2: #12261f;
    --text: #ecf5f1;
    --muted: #9fb5ad;
    --line: #1f3a31;
    --brand: #34d399;
    --brand-2: #10b981;
    --gold: #f5c76a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -14px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  line-height: 1.7;
  font-size: 1.02rem;
}
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }

/* ---- header ---- */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head-in {
  max-width: 68rem; margin: 0 auto; padding: 0.7rem 1.1rem;
  display: flex; align-items: center; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.site-nav { display: flex; gap: 0.25rem 1rem; flex-wrap: wrap; margin-inline-start: auto; font-size: 0.92rem; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand); }
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.1rem; border-radius: 999px; font-weight: 700; text-decoration: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  box-shadow: 0 8px 20px -10px rgba(16, 185, 129, 0.8);
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); box-shadow: none; }
@media (max-width: 760px) {
  .site-nav { display: none; }
  .site-head .btn { margin-inline-start: auto; padding: 0.5rem 0.9rem; font-size: 0.9rem; }
}

/* ---- hero ---- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(16, 185, 129, 0.22), transparent 60%),
    radial-gradient(800px 360px at -10% 120%, rgba(245, 199, 106, 0.16), transparent 60%),
    var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.hero-in { max-width: 52rem; margin: 0 auto; padding: 2.6rem 1.2rem 2.2rem; }
.crumbs { font-size: 0.86rem; color: var(--muted); margin: 0 0 0.9rem; }
.crumbs a { color: var(--muted); }
h1 { font-size: clamp(1.9rem, 5.2vw, 2.8rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.7rem; }
.lede { font-size: 1.12rem; color: var(--muted); margin: 0 0 1.4rem; max-width: 44rem; }
.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.meta-line { font-size: 0.85rem; color: var(--muted); margin-top: 1.1rem; }

/* ---- content ---- */
main.page { max-width: 52rem; margin: 0 auto; padding: 1.8rem 1.2rem 3rem; }
main.page.wide { max-width: 68rem; }
h2 { font-size: clamp(1.35rem, 3.4vw, 1.7rem); line-height: 1.25; letter-spacing: -0.01em; margin: 2.6rem 0 0.8rem; }
h3 { font-size: 1.12rem; margin: 1.8rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin: 0.35rem 0; }
blockquote {
  margin: 1.4rem 0; padding: 1rem 1.2rem; border-inline-start: 4px solid var(--brand-2);
  background: var(--surface); border-radius: 0 12px 12px 0; box-shadow: var(--shadow);
}
blockquote p { margin: 0; }
blockquote cite { display: block; margin-top: 0.4rem; font-size: 0.88rem; color: var(--muted); font-style: normal; }
.note { font-size: 0.93rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1.1rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.3rem; box-shadow: var(--shadow); }
.toc strong { display: block; margin-bottom: 0.3rem; }
.toc ol { margin: 0; padding-inline-start: 1.2rem; }

/* Arabic is always shown as Arabic, right to left. */
.ar {
  font-family: "Amiri", "Noto Naskh Arabic", "Geeza Pro", "Traditional Arabic", serif;
  direction: rtl; text-align: right; font-size: 1.55rem; line-height: 2; color: var(--text);
}
.ur { font-family: "Noto Naskh Arabic", "Jameel Noori Nastaleeq", "Segoe UI", serif; direction: rtl; text-align: right; color: var(--muted); }

/* ---- cards and grids ---- */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); margin: 1.2rem 0; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card .tag { display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--brand); background: var(--surface-2); border-radius: 999px; padding: 0.15rem 0.6rem; margin-bottom: 0.5rem; }
.dhikr { margin: 1.1rem 0; }
.dhikr .ar { margin: 0.4rem 0 0.6rem; }
.dhikr .en { margin: 0 0 0.4rem; }
.dhikr .src { font-size: 0.84rem; color: var(--muted); }
.times { float: inline-end; font-weight: 800; color: var(--gold); }

.names { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); margin: 1.2rem 0; padding: 0; list-style: none; }
.name {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.9rem 1rem 0.85rem; box-shadow: var(--shadow); margin: 0;
}
.name .n { position: absolute; inset-inline-start: 0.9rem; top: 0.75rem; font-size: 0.78rem; font-weight: 800; color: var(--muted); }
.name .ar { font-size: 1.9rem; line-height: 1.6; margin: 0; }
.name .tr { font-weight: 800; margin: 0.15rem 0 0; }
.name .en { margin: 0; color: var(--muted); font-size: 0.95rem; }
.name .ur { margin: 0.2rem 0 0; font-size: 1rem; }

table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: 0.95rem; background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
th, td { text-align: start; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: 0.86rem; }
tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.step { position: relative; padding-inline-start: 3.2rem; margin: 1.6rem 0; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; inset-inline-start: 0; top: 0.1rem;
  width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.step h3 { margin: 0 0 0.3rem; }
.step .sub { color: var(--muted); margin: 0 0 0.6rem; }
.who { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold); margin-inline-end: 0.35rem; }

/* ---- FAQ ---- */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 0.6rem 0; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 0.85rem 1.1rem; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: inline-end; color: var(--brand); font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 1.1rem 0.9rem; }

/* ---- call to action ---- */
.cta {
  margin: 2.6rem 0 1rem; padding: 1.5rem 1.4rem; border-radius: 20px; color: #fff;
  background:
    radial-gradient(600px 220px at 100% 0%, rgba(253, 230, 138, 0.25), transparent 60%),
    linear-gradient(135deg, #0f766e, #10b981 60%, #34d399);
  box-shadow: 0 18px 40px -20px rgba(15, 118, 110, 0.9);
}
.cta h2 { color: #fff; margin: 0 0 0.4rem; }
.cta p { color: rgba(255, 255, 255, 0.92); }
.cta .btn { background: #fff; color: #0f766e; box-shadow: none; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.8); }

/* ---- related + footer ---- */
.related { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); padding: 0; list-style: none; }
.related a { display: block; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem 1rem; text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.related a strong { display: block; color: var(--brand); }
.related a span { font-size: 0.9rem; color: var(--muted); }
.site-foot { border-top: 1px solid var(--line); background: var(--surface-2); }
.site-foot-in { max-width: 68rem; margin: 0 auto; padding: 1.8rem 1.2rem 2.4rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); font-size: 0.92rem; color: var(--muted); }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: 0.25rem 0; }
.site-foot a { color: var(--muted); }
.site-foot strong { color: var(--text); }

@media (prefers-reduced-motion: no-preference) {
  .btn, .related a { transition: transform 0.15s ease, filter 0.15s ease; }
  .btn:hover, .related a:hover { transform: translateY(-1px); }
}
@media print {
  .site-head, .cta, .site-foot, .hero-actions { display: none; }
}
