/* Quran frame — Arabic ayah + English translation, editorial feel.
   Edge-tap zones for prev/next ayah. */

.quran-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.quran-content {
  max-width: 460px;
  padding: 4px 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Adapt text alignment based on quietSide */
.frame[data-text-side="left"] .quran-content {
  margin-right: auto;
  text-align: left;
}

.frame[data-text-side="right"] .quran-content {
  margin-left: auto;
  text-align: right;
}

.frame[data-text-side="center"] .quran-content {
  margin: 0 auto;
  text-align: center;
}

.quran-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-eyebrow);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--splash-text-3);
  text-shadow: var(--splash-shadow);
  margin-bottom: 8px;
}

.frame[data-text-side="right"] .quran-eyebrow {
  justify-content: flex-end;
}

.frame[data-text-side="center"] .quran-eyebrow {
  justify-content: center;
}

.quran-eyebrow .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(216, 180, 106, 0.6);
}

.ayah-arabic {
  font-family: var(--font-arabic);
  font-size: 26px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--splash-text);
  direction: rtl;
  text-align: right;
  margin: 0 0 10px;
  text-shadow: var(--splash-shadow);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ayah-translation {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.42;
  color: var(--splash-text);
  text-shadow: var(--splash-shadow);
  letter-spacing: -0.005em;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ayah-cap {
  font-size: var(--t-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--splash-text-2);
  text-shadow: var(--splash-shadow);
  font-weight: 600;
  margin-bottom: 4px;
}

.ayah-context {
  font-size: 11px;
  font-style: italic;
  color: var(--splash-text-3);
  text-shadow: var(--splash-shadow);
  letter-spacing: 0.01em;
  line-height: 1.35;
  padding-top: 6px;
  margin-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Edge nav zones */
.edge-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  z-index: var(--z-content);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 240ms var(--ease-out);
}

.edge-zone.prev {
  left: 0;
  justify-content: flex-start;
  padding-left: 8px;
}

.edge-zone.next {
  right: 0;
  justify-content: flex-end;
  padding-right: 8px;
}

.edge-zone svg {
  width: 16px;
  height: 16px;
  color: var(--text-2);
}

.frame:hover .edge-zone,
.edge-zone:focus-visible,
.edge-zone:active {
  opacity: 0.7;
}

@media (max-width: 512px) and (max-height: 320px) {
  .ayah-arabic {
    font-size: 22px;
    line-height: 1.6;
  }

  .ayah-translation {
    font-size: 14px;
  }

  .quran-content {
    padding: 4px 8px;
    max-width: 90%;
  }
}
