/* Ayah cards promo — the entry point to /studio.
 *
 * Kept in its own file rather than appended to app-v46.css so it stays
 * reviewable and can be lifted onto other page types (surah, reciter) without
 * dragging in the whole app stylesheet.
 *
 * The card shows a REAL server render, not a mockup. If the render fails the
 * image collapses and the card still reads as text, so the layout never breaks.
 */

.ayah-promo {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin: 22px 0 8px;
  padding: 22px 24px;
  border: 1px solid var(--hair, rgba(0, 0, 0, 0.09));
  border-radius: 18px;
  background:
    radial-gradient(120% 140% at 88% 12%, rgba(47, 214, 166, 0.09), rgba(0, 0, 0, 0) 62%),
    var(--surface-2, rgba(0, 0, 0, 0.02));
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 160ms cubic-bezier(0.23, 1, 0.32, 1),
              transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.ayah-promo:hover { border-color: rgba(47, 214, 166, 0.42); }
.ayah-promo:active { transform: scale(0.994); }

.ayah-promo-copy { display: grid; gap: 7px; min-width: 0; }
.ayah-promo-copy b {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.014em;
}
.ayah-promo-copy > span:not(.ayah-promo-cta) {
  font-size: 14.5px;
  line-height: 1.55;
  opacity: 0.72;
  max-width: 46ch;
  text-wrap: pretty;
}

.ayah-promo-cta {
  margin-top: 4px;
  font-size: 14.5px;
  font-weight: 650;
  color: #0E8F68;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* No arrow glued to the end of the sentence. "Open the studio →" is one of the
   tells that makes a page read as generated rather than written, and the arrow
   was carrying no information — the whole card is the link and its hover state
   already says so. */

/* The shot is a tall 9:16 card. It is cropped and pinned to the bottom right
   so it reads as a peek at something larger, which is what makes the card
   feel like a window rather than a thumbnail. */
.ayah-promo-shot {
  display: block;
  width: 108px;
  height: 168px;
  border-radius: 12px;
  overflow: hidden;
  flex: none;
  border: 1px solid var(--hair, rgba(0, 0, 0, 0.09));
  background: rgba(0, 0, 0, 0.05);
  transform: rotate(2.2deg);
  transition: transform 220ms cubic-bezier(0.23, 1, 0.32, 1);
}
.ayah-promo:hover .ayah-promo-shot { transform: rotate(0deg) scale(1.035); }
.ayah-promo-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

@media (max-width: 620px) {
  .ayah-promo { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .ayah-promo-shot { width: 100%; height: 132px; transform: none; }
  .ayah-promo-shot img { object-position: center 26%; }
  .ayah-promo:hover .ayah-promo-shot { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ayah-promo, .ayah-promo-shot { transition: none; }
}

/* Dark theme: the app swaps on [data-theme]. Keep the promo readable. */
[data-theme="dark"] .ayah-promo {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(120% 140% at 88% 12%, rgba(47, 214, 166, 0.12), rgba(0, 0, 0, 0) 62%),
    rgba(255, 255, 255, 0.035);
}
[data-theme="dark"] .ayah-promo-cta { color: #4BE3B8; }
