/* =========================================================
   رجاء اليوم — styles for hope.html
   Built on style.css (tokens, fonts, .btn, .eyebrow, .container).
   No external fonts or images. One design for every day.
   ========================================================= */

/* Author rules like .hint { display: block } would otherwise beat the browser's [hidden] rule. */
[hidden] { display: none !important; }

.hope-nav { display: flex; align-items: center; gap: 0.9rem; list-style: none; font-weight: 500; font-size: 0.85rem; }
.hope-nav a, .hope-nav-current { padding: 0.4rem 0.2rem; transition: color 0.2s; white-space: nowrap; }
.hope-nav a:hover { color: var(--red); }
.hope-nav-current { font-weight: 700; color: var(--charcoal); }
.site-header .wordmark { font-size: 1.45rem; }
@media (min-width: 640px) {
  .hope-nav { gap: 1.2rem; font-size: 0.95rem; }
  .site-header .wordmark { font-size: 1.75rem; }
}

main#app { min-height: 70vh; outline: none; padding-bottom: 3rem; }

/* ---- page head ---- */
.hope-top { text-align: center; padding-block: 2.2rem 1.3rem; }
.page-title { font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 900; line-height: 1.3; margin-top: 0.5rem; }
.hope-sub { color: var(--ink); font-size: 1.08rem; margin-top: 0.2rem; }
.hope-date { color: var(--wood); font-weight: 700; font-size: 0.95rem; margin-top: 0.7rem; }
.hope-back { margin-top: 0.8rem; }

/* ---- the day's card: picture with the verse set over it, then the thought and the prayer ---- */
.hope-card { background: var(--warmwhite); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(38, 34, 30, 0.05); overflow: hidden; }

.verse-figure { position: relative; margin: 0; aspect-ratio: 4 / 5; background: var(--charcoal); }
@media (min-width: 640px) { .verse-figure { aspect-ratio: 1 / 1; } }
.verse-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.verse-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 1.6rem 1.4rem;
  background: linear-gradient(to bottom, rgba(24, 20, 16, 0.22), rgba(24, 20, 16, 0.5) 55%, rgba(24, 20, 16, 0.72));
  color: #fff;
}
.verse-text { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.35rem, 5.2vw, 2.05rem); line-height: 1.95; max-width: 26ch; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65); }
.verse-text.verse-mid { font-size: clamp(1.15rem, 4.3vw, 1.6rem); max-width: 30ch; }
.verse-text.verse-long { font-size: clamp(1rem, 3.6vw, 1.32rem); line-height: 1.9; max-width: 36ch; }
.verse-ref { margin-top: 0.9rem; font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; color: var(--gold); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8); }

.hope-body { padding: 1.3rem 1.4rem 1.8rem; }

/* ---- the three steps: verse, thought, prayer; one tap each ---- */
.steps { list-style: none; display: flex; justify-content: center; gap: 0.5rem 1.4rem; flex-wrap: wrap; margin: 0 0 0.6rem; padding: 0; }
.step { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-head); font-weight: 700; font-size: 0.88rem; color: var(--ink); opacity: 0.55; }
.step.is-current, .step.is-done { opacity: 1; }
.step.is-current { color: var(--red); }
.step-dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tint); font-size: 0.78rem; color: var(--charcoal); }
.step.is-current .step-dot { background: var(--red); color: #fff; }
.step.is-done .step-dot { background: var(--gold); color: #fff; }
.next-row { display: flex; justify-content: center; margin-top: 1.1rem; }
.next-btn { min-width: 220px; }
.step-section { scroll-margin-top: 5.5rem; outline: none; margin-top: 1.4rem; }
@media (prefers-reduced-motion: no-preference) {
  .step-section { animation: step-in 0.45s ease both; }
  @keyframes step-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
.hope-theme { display: inline-block; padding: 0.2rem 0.85rem; border-radius: 999px; background: rgba(168, 32, 42, 0.08); color: var(--red); font-size: 0.85rem; font-weight: 700; }
.hope-title { font-size: clamp(1.35rem, 4.5vw, 1.6rem); margin: 0.7rem 0 0.9rem; line-height: 1.45; }
.hope-thought p { color: var(--ink); font-size: 1.08rem; line-height: 1.95; margin-bottom: 0.9rem; }

.hope-prayer { background: var(--tint); border-inline-start: 4px solid var(--gold); border-radius: 14px; padding: 1.1rem 1.3rem 1.2rem; }
.hope-prayer h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.hope-prayer p { color: var(--charcoal); line-height: 1.95; white-space: pre-line; }

.audio-card { background: var(--offwhite); border: 1px solid rgba(38, 34, 30, 0.07); border-radius: 14px; padding: 0.9rem 1.1rem; margin-top: 1.4rem; display: grid; gap: 0.5rem; }
.audio-label { font-family: var(--font-head); font-weight: 700; }
.audio-card audio { width: 100%; }
.muted { color: var(--ink); opacity: 0.75; font-size: 0.95rem; }

.hope-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; margin-top: 1.4rem; }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.95rem; min-height: 44px; }
.btn-ghost { background: transparent; border-color: var(--charcoal); color: var(--charcoal); }
.btn-ghost:hover { background: var(--charcoal); color: var(--warmwhite); }
.copy-note { font-size: 0.9rem; color: var(--wood); font-weight: 600; }
.credit { font-size: 0.8rem; color: var(--ink); opacity: 0.7; margin-top: 1.3rem; }

/* ---- the previous days ---- */
.hope-week { margin-top: 2.4rem; }
.hope-week h2 { font-size: 1.3rem; color: var(--charcoal); padding-inline-start: 0.8rem; border-inline-start: 4px solid var(--gold); margin-bottom: 0.9rem; }
.week-list { list-style: none; display: grid; gap: 0.6rem; }
.week-row { width: 100%; display: flex; align-items: center; gap: 0.9rem; text-align: start; padding: 0.8rem 1rem; background: var(--warmwhite); border: 1px solid rgba(38, 34, 30, 0.08); border-radius: 14px; cursor: pointer; font: inherit; color: inherit; min-height: 60px; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; }
.week-row:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: rgba(168, 32, 42, 0.3); }
.week-row.is-current { outline: 2px solid var(--red); }
.week-date { flex-shrink: 0; font-size: 0.82rem; color: var(--wood); font-weight: 700; white-space: nowrap; }
.week-info { display: flex; flex-direction: column; gap: 0.1rem; }
.week-title { font-family: var(--font-head); font-weight: 600; line-height: 1.5; }
.week-ref { font-size: 0.85rem; color: var(--ink); }

.empty-note { text-align: center; color: var(--ink); padding: 3rem 1rem; }
