
/* =========================================================
   IQRANIX QURAN AUDIO — RECITER SELECTION
   Royal Sapphire + Champagne Gold
   Fixed full-screen layout
========================================================= */

:root {
  --navy: #091747;
  --navy-deep: #050d28;
  --navy-card: #0d2c8e;
  --blue: #1746a2;
  --blue-light: #3b82f6;
  --champagne: #f1d9a0;
  --gold: #d8b66d;
  --white: #f6f7ff;
  --muted: #aab7d8;
  --glass: rgba(255, 255, 255, 0.055);
  --border: rgba(241, 217, 160, 0.2);
}

/* RESET */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white);
  font-family: "DM Sans", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

/* MAIN PAGE */

.reciters-page {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: 650px;
  margin: 0 auto;
  padding:
    max(12px, env(safe-area-inset-top))
    18px
    max(10px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;

  background:
    radial-gradient(
      ellipse at 50% 30%,
      rgba(23, 70, 162, 0.36),
      transparent 55%
    ),
    radial-gradient(
      ellipse at 0% 90%,
      rgba(59, 130, 246, 0.12),
      transparent 40%
    ),
    linear-gradient(
      155deg,
      #091747 0%,
      #071234 55%,
      #050d28 100%
    );
}

/* SUBTLE BACKGROUND LIGHTS */

.reciters-page::before,
.reciters-page::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(85px);
  pointer-events: none;
}

.reciters-page::before {
  top: 20%;
  left: -110px;
  background: rgba(59, 130, 246, 0.28);
}

.reciters-page::after {
  right: -110px;
  bottom: 10%;
  background: rgba(23, 70, 162, 0.35);
}

/* HEADER */

.reciters-header {
  flex: 0 0 auto;
  min-height: 72px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.back-button,
.header-decoration {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--glass);
  color: var(--champagne);
}

.back-button {
  text-decoration: none;
  transition: background 0.2s ease;
}

.back-button:active {
  background: rgba(241, 217, 160, 0.15);
}

.back-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-decoration svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linejoin: round;
}

.brand-heading {
  text-align: center;
}

.brand-heading h1 {
  color: var(--champagne);
  font-family: "Playfair Display", serif;
  font-size: clamp(23px, 6vw, 31px);
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 1.2;
}

.brand-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3.5px;
}

/* INTRODUCTION */

.reciters-intro {
  flex: 0 0 auto;
  text-align: center;
  padding: 17px 0 15px;
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 5px;
}

.reciters-intro h2 {
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-size: clamp(21px, 5.5vw, 28px);
  font-weight: 600;
  line-height: 1.3;
}

.reciters-intro p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.5px;
}

/* RECITER GRID */

.reciters-grid {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 5px;
  align-items: center;
  justify-items: center;
  padding: 5px 0;
  overflow: hidden;
}

/* RECITER CARD */

.reciter-card {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--white);
  text-decoration: none;
  text-align: center;
  border-radius: 18px;
  padding: 5px 2px;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.reciter-card:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.07);
}

/* PORTRAIT CIRCLE */

.reciter-image {
  position: relative;
  width: clamp(58px, 19vw, 94px);
  aspect-ratio: 1 / 1;
  flex: 0 1 auto;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(
    140deg,
    #fff0c6,
    #c49a50,
    #f6e4b6,
    #9b7438
  );
  box-shadow:
    0 0 0 3px rgba(241, 217, 160, 0.08),
    0 5px 22px rgba(0, 0, 0, 0.3),
    0 0 18px rgba(216, 182, 109, 0.12);
  overflow: hidden;
}

.reciter-image img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: #10265d;
}

/* RECITER NAME */

.reciter-name {
  width: 100%;
  max-width: 115px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f4f0e6;
  font-size: clamp(9px, 2.7vw, 11px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.1px;
  text-wrap: balance;
}

/* FOOTER */

.reciters-footer {
  flex: 0 0 auto;
  min-height: 43px;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-top: 1px solid var(--border);
}

.reciters-footer span {
  color: var(--champagne);
  font-size: 14px;
  direction: rtl;
}

.reciters-footer p {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 3px;
}

/* SMALL PHONES */

@media (max-height: 740px) {
  .reciters-header {
    min-height: 60px;
    padding-bottom: 8px;
  }

  .back-button,
  .header-decoration {
    width: 39px;
    height: 39px;
  }

  .reciters-intro {
    padding: 10px 0 7px;
  }

  .reciters-grid {
    row-gap: 2px;
  }

  .reciter-card {
    gap: 4px;
  }

  .reciter-image {
    width: clamp(50px, 16vw, 72px);
  }

  .reciter-name {
    font-size: 9px;
    min-height: 25px;
  }

  .reciters-footer {
    min-height: 36px;
    padding-top: 5px;
  }
}

/* VERY NARROW SCREENS */

@media (max-width: 350px) {
  .reciters-page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .reciters-grid {
    column-gap: 5px;
  }

  .reciter-image {
    width: 55px;
  }

  .reciter-name {
    font-size: 8px;
  }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
