/* phone-specific styles — imported via components.css via @import? no, let's add directly */

.phone {
  width: 300px;
  height: 620px;
  position: relative;
  filter: drop-shadow(0 30px 60px rgba(15, 77, 42, 0.25))
    drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
  transition: transform 0.6s var(--ease);
}

.phone__frame {
  position: absolute;
  inset: 0;
}

.phone__screen-shell {
  position: absolute;
  /* Tuned viewport area for assets/iphone-case.avif */
  top: 2.6%;
  left: 5.9%;
  right: 5.9%;
  bottom: 3.1%;
  border-radius: 36px;
  overflow: hidden;
  z-index: 1;
}

.phone__case-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 3;
}

.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  background: linear-gradient(180deg, #fbf7ed, #f5efde);
  overflow: hidden;
  position: relative;
  display: block;
}
.phone__stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}
.phone__layer {
  position: absolute;
  inset: 0;
}
.phone__shot {
  position: relative;
  width: 100%;
  height: 100%;
}
.phone__img-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.phone__layer.is-resting {
  animation: phScreenIdle 4s ease-in-out infinite;
}
.phone__layer.is-leaving {
  animation: phScreenOut 0.48s var(--ease) forwards;
}
.phone__layer.is-entering {
  animation: phScreenIn 0.56s var(--ease) forwards;
}
@keyframes phScreenIdle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
@keyframes phScreenOut {
  from {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: blur(0);
  }
  to {
    transform: translateY(-24px) scale(0.94);
    opacity: 0;
    filter: blur(6px);
  }
}
@keyframes phScreenIn {
  from {
    transform: translateY(28px) scale(0.94);
    opacity: 0;
    filter: blur(6px);
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

.phone__ios-status {
  position: absolute;
  top: 12px;
  left: 25px;
  right: 25px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  direction: ltr;
  pointer-events: none;
  color: #4a524b;
}
.phone__ios-time {
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", sans-serif;
  font-size: 9.8px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  padding-left: 0;
}
.phone__ios-right {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding-left: 1px;
  padding-right: 2px;
}
.phone__ios-signal,
.phone__ios-wifi,
.phone__ios-battery {
  display: block;
}
.phone__ios-status.is-dark {
  color: #f3ece0;
}

/* ===== Quran screen ===== */
.scr {
  padding: 0 16px 16px;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  color: #1a1611;
  font-family: var(--ff-ar-ui);
}
.scr__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
}
.scr__icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 77, 42, 0.08);
  color: #0f4d2a;
  border: none;
  display: grid;
  place-items: center;
}
.scr__title {
  text-align: center;
}
.scr__title-ar {
  font-family: var(--ff-ar-display);
  font-size: 17px;
  color: #0b3d22;
  line-height: 1.1;
}
.scr__title-en {
  font-family: var(--ff-en-ui);
  font-size: 10px;
  color: #8a6522;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scr__bismillah {
  text-align: center;
  font-family: var(--ff-ar-display);
  font-size: 18px;
  color: #0b3d22;
  padding: 8px 0;
  border-block: 1px solid rgba(201, 169, 97, 0.35);
  background: rgba(250, 242, 225, 0.6);
  border-radius: 10px;
}

.scr__ayahs {
  font-family: "Amiri", serif;
  font-size: 16px;
  line-height: 2.1;
  text-align: justify;
  color: #1a1611;
  padding: 0 4px;
  overflow: hidden;
}
.scr__ayah-mark {
  display: inline-flex;
  position: relative;
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-inline: 2px;
}
.scr__ayah-mark span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--ff-ar-ui);
  font-size: 9px;
  font-weight: 700;
  color: #0b3d22;
}

.scr__tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 10px 8px;
  background: rgba(15, 77, 42, 0.06);
  border-radius: 14px;
  border: 1px solid rgba(15, 77, 42, 0.1);
}
.scr__tab {
  padding: 8px;
  display: grid;
  place-items: center;
  color: #6b6252;
  border-radius: 10px;
}
.scr__tab.is-active {
  background: #0f4d2a;
  color: #e6cf9a;
}

/* ===== List/Reciters screen ===== */
.scr--list {
  grid-template-rows: auto auto 1fr;
}
.scr__search {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(0, 0, 0, 0.04);
  padding: 10px 14px;
  border-radius: 10px;
  color: #8a6522;
  font-size: 13px;
}
.scr__list {
  display: grid;
  gap: 8px;
  overflow: hidden;
}
.scr__list-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: rgba(251, 247, 237, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(15, 77, 42, 0.08);
}
.scr__list-row.is-active {
  background: rgba(15, 77, 42, 0.08);
  border-color: rgba(15, 77, 42, 0.25);
}
.scr__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #0f4d2a, #0b3d22);
  color: #e6cf9a;
  display: grid;
  place-items: center;
  font-family: var(--ff-ar-display);
  font-size: 15px;
}
.scr__list-info {
  display: grid;
  line-height: 1.2;
  min-width: 0;
}
.scr__list-name {
  font-family: var(--ff-ar-display);
  font-size: 14px;
  color: #1a1611;
}
.scr__list-meta {
  font-size: 10px;
  color: #8a6522;
}
.scr__play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0f4d2a;
  color: #e6cf9a;
  border: none;
  display: grid;
  place-items: center;
}

/* ===== Prayer screen ===== */
.scr--prayer {
  grid-template-rows: auto auto auto 1fr;
}
.scr__prayer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 4px;
}
.scr__prayer-hijri {
  font-family: var(--ff-ar-display);
  font-size: 15px;
  color: #0b3d22;
}
.scr__prayer-greg {
  font-size: 10px;
  color: #8a6522;
}
.scr__prayer-loc {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #0b3d22;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 77, 42, 0.08);
}
.scr__prayer-next {
  background: linear-gradient(160deg, #0f4d2a, #072e18);
  border-radius: 14px;
  padding: 14px;
  color: #fbf7ed;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.scr__prayer-next::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pattern-bg);
  background-size: 80px 80px;
  opacity: 0.06;
}
.scr__prayer-next-label {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e6cf9a;
  font-family: var(--ff-en-ui);
}
.scr__prayer-next-name {
  font-family: var(--ff-ar-display);
  font-size: 20px;
  margin-top: 2px;
}
.scr__prayer-next-time {
  font-family: var(--ff-en-ui);
  font-weight: 300;
  font-size: 36px;
  color: #e6cf9a;
  letter-spacing: -0.03em;
  line-height: 1;
}
.scr__prayer-next-count {
  font-size: 10px;
  color: rgba(251, 247, 237, 0.7);
  margin-top: 4px;
}
.scr__prayer-list {
  display: grid;
  gap: 4px;
}
.scr__prayer-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  color: #1a1611;
}
.scr__prayer-row.is-past {
  opacity: 0.5;
}
.scr__prayer-row.is-next {
  background: rgba(201, 169, 97, 0.18);
  border: 1px solid rgba(201, 169, 97, 0.4);
}
.scr__prayer-row span {
  font-family: var(--ff-ar-display);
  font-size: 14px;
}
.scr__prayer-row-time {
  font-family: var(--ff-en-ui);
  font-weight: 300;
  font-size: 14px;
  color: #8a6522;
}
.scr__prayer-row svg {
  color: #a88639;
}

/* ===== Azkar screen ===== */
.scr--azkar {
  grid-template-rows: auto 1fr auto;
}
.scr__azkar-card {
  background: linear-gradient(180deg, #faf2e1, #f5e9cf);
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}
.scr__azkar-counter {
  position: relative;
  width: 100px;
  height: 100px;
}
.scr__azkar-ring svg {
  width: 100%;
  height: 100%;
}
.scr__azkar-count {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--ff-en-display);
  font-size: 34px;
  color: #0b3d22;
  font-weight: 600;
}
.scr__azkar-count small {
  font-size: 14px;
  color: #8a6522;
}
.scr__azkar-text {
  font-family: var(--ff-ar-display);
  font-size: 14px;
  line-height: 1.9;
  color: #1a1611;
}
.scr__azkar-tag {
  font-size: 10px;
  color: #8a6522;
  padding: 4px 10px;
  border: 1px solid rgba(201, 169, 97, 0.35);
  border-radius: 999px;
}
.scr__azkar-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.scr__azkar-step {
  height: 4px;
  border-radius: 2px;
  background: rgba(15, 77, 42, 0.15);
}
.scr__azkar-step.is-done {
  background: #0f4d2a;
}
.scr__azkar-step.is-active {
  background: #c9a961;
}

/* ===== Qibla screen ===== */
.scr--qibla {
  grid-template-rows: auto 1fr auto;
}
.scr__qibla {
  display: grid;
  place-items: center;
  gap: 16px;
  padding: 12px 0;
}
.scr__qibla-compass {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fbf7ed, #f0e6cf);
  border: 2px solid #c9a961;
  position: relative;
  box-shadow:
    inset 0 0 30px rgba(201, 169, 97, 0.2),
    0 10px 30px rgba(15, 77, 42, 0.15);
}
.scr__qibla-ring {
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(168, 134, 57, 0.5);
  border-radius: 50%;
}
.scr__qibla-dots {
  position: absolute;
  inset: 0;
}
.scr__qibla-dots span {
  position: absolute;
  top: 50%;
  inset-inline-start: 50%;
  width: 1px;
  height: 4px;
  background: rgba(15, 77, 42, 0.3);
  transform-origin: center;
}
.scr__qibla-dots span:nth-child(9n + 1) {
  height: 8px;
  background: #0f4d2a;
}
.scr__qibla-needle {
  position: absolute;
  top: 50%;
  inset-inline-start: 50%;
  width: 3px;
  height: 76px;
  background: linear-gradient(to top, transparent, #0f4d2a);
  transform-origin: bottom center;
  transform: translate(-50%, -100%) rotate(35deg);
  border-radius: 2px;
}
.scr__qibla-needle::before {
  content: "";
  position: absolute;
  top: -10px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-inline: 6px solid transparent;
  border-bottom: 12px solid #0f4d2a;
}
.scr__qibla-kaaba {
  position: absolute;
  top: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
}
.scr__qibla-info {
  display: flex;
  gap: 16px;
  padding-top: 4px;
}
.scr__qibla-info > div {
  text-align: center;
  display: grid;
}
.scr__qibla-info b {
  font-family: var(--ff-en-display);
  font-size: 20px;
  color: #0b3d22;
}
.scr__qibla-info small {
  font-size: 10px;
  color: #8a6522;
}
