/* =========================================================
   Ibadah page — hero phone
   Kept here, not in the shared styles.css, so the page never depends on
   that file being re-uploaded or re-cached.
   ========================================================= */

/* the frame takes its height from the 720x1479 screenshot */
.ibadah-hero .phone { height: auto; }
.ibadah-hero .phone-shot {
  display: block;
  width: 100%; height: auto;
  aspect-ratio: 720 / 1479;
  border-radius: 32px;
  object-fit: cover; object-position: top;
}

/* keep the chips over the screenshot's header and tab bar, clear of the prayer cards */
.ibadah-hero .card-a { top: 2px; left: 0; }
.ibadah-hero .card-b { top: auto; bottom: 30px; right: 0; }
@media (min-width: 900px) { .ibadah-hero .card-a { left: -36px; } }
@media (max-width: 760px) {
  .ibadah-hero .card-a { top: 2px; left: 0; }
  .ibadah-hero .card-b { bottom: 30px; right: 0; }
}

/* =========================================================
   Ibadah page — What's new
   ========================================================= */

.whats-new { margin-top: 110px; }

.wn-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px 40px; flex-wrap: wrap; margin-bottom: 32px;
}
.wn-head .section-head { margin-bottom: 0; }
.wn-head .section-head p:not(.eyebrow) { color: rgba(255,255,255,.75); margin: 0; }

.wn-lang {
  display: inline-flex; padding: 4px; gap: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
}
.wn-lang button {
  padding: 8px 16px; border: 0; border-radius: 999px;
  background: transparent; color: rgba(255,255,255,.75);
  font-family: inherit; font-size: .88rem; font-weight: 600;
  cursor: pointer; transition: background .2s, color .2s;
}
.wn-lang button:hover { color: #fff; }
.wn-lang button[aria-pressed="true"] { background: var(--accent); color: #2e1065; }

.wn-controls { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 16px; }
.wn-arrow {
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
  color: #fff; cursor: pointer;
  transition: background .2s, border-color .2s, opacity .2s;
}
.wn-arrow:hover:not(:disabled) { background: rgba(255,255,255,.12); border-color: rgba(167,139,250,.5); }
.wn-arrow:disabled { opacity: .35; cursor: default; }
.wn-arrow svg { width: 20px; height: 20px; }

.wn-track {
  display: flex; gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(167,139,250,.4) transparent;
}
.wn-track::-webkit-scrollbar { height: 6px; }
.wn-track::-webkit-scrollbar-track { background: transparent; }
.wn-track::-webkit-scrollbar-thumb { background: rgba(167,139,250,.4); border-radius: 999px; }

.wn-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 16px;
  transition: background .25s, border-color .25s;
}
.wn-card:hover { background: rgba(255,255,255,.09); border-color: rgba(167,139,250,.5); }
.wn-card h4 { font-size: 1.12rem; margin-top: 12px; }
.wn-card p { color: rgba(255,255,255,.68); margin: 0; font-size: .96rem; }

.wn-shot {
  display: block; width: 100%; padding: 0;
  border: 0; border-radius: 16px;
  background: rgba(255,255,255,.06);
  cursor: zoom-in; overflow: hidden;
}
.wn-shot img {
  width: 100%; height: auto;
  aspect-ratio: 1080 / 2424;
  object-fit: cover; object-position: top;
  border-radius: 16px;
}
.wn-shot:focus-visible,
.wn-lang button:focus-visible,
.wn-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wn-pill {
  display: inline-block; margin-top: 16px;
  padding: 4px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .02em;
  background: rgba(167,139,250,.15); color: var(--accent);
}

/* loading skeletons */
.wn-skeleton .sk {
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255,255,255,.06) 25%, rgba(255,255,255,.14) 50%, rgba(255,255,255,.06) 75%);
  background-size: 200% 100%;
  animation: wn-shimmer 1.4s linear infinite;
}
.wn-skeleton .sk-shot { aspect-ratio: 1080 / 2424; border-radius: 16px; }
.wn-skeleton .sk-pill { width: 90px; height: 22px; margin-top: 16px; border-radius: 999px; }
.wn-skeleton .sk-line { height: 16px; margin-top: 12px; }
.wn-skeleton .sk-line.short { width: 60%; }
@keyframes wn-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* lightbox */
.wn-lightbox {
  padding: 0; border: 0;
  background: transparent; color: #fff;
  max-width: 95vw; max-height: 95vh;
  overflow: visible;
}
.wn-lightbox::backdrop { background: rgba(14, 6, 32, .88); }
.wn-lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; }
.wn-lightbox img {
  max-height: calc(90vh - 60px); max-width: 90vw;
  width: auto; height: auto;
  border-radius: 20px;
}
.wn-lightbox figcaption { font-weight: 700; font-size: 1.05rem; text-align: center; }
.wn-close {
  position: absolute; top: -14px; right: -14px;
  display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  border-radius: 50%; border: 0;
  background: #fff; color: var(--ink);
  cursor: pointer; box-shadow: var(--shadow);
}
.wn-close svg { width: 18px; height: 18px; }
.wn-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 760px) {
  .whats-new { margin-top: 80px; }
  .wn-card { flex-basis: min(78vw, 280px); }
  .wn-close { top: 8px; right: 8px; }
}

/* people swipe the track on small screens */
@media (max-width: 699px) {
  .wn-controls { display: none; }
}

/* the footer email is wider than its half-width column on phones */
@media (max-width: 760px) {
  .footer-grid > div { min-width: 0; }
  .footer-grid a { overflow-wrap: anywhere; }
}
