/**
 * NoorNama — Name Page Stylesheet (First Light Premium Theme)
 * Scoped to the "Name" content type. Engineered for massive whitespace and typographic excellence.
 */
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --c-dawn: #FCFCFA;
  --c-slate: #232830;
  --c-sky: #3E6E8E;
  --c-saffron: #C98A2B;
  --c-mist: #E8ECEE;
  --c-sage: #7A9A88;
  
  --f-body: 'Outfit', sans-serif;
  --f-arabic: 'Amiri', serif;
}

/* Base resets & layout */
.nnp-name-page {
  font-family: var(--f-body);
  color: var(--c-slate);
  max-width: 800px;
  margin: 0 auto 100px;
  padding: 0 24px;
  line-height: 1.6;
}

/* Hero Section (Signature Element) */
.nnp-hero {
  height: 80vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--c-mist);
}

.nnp-arabic {
  font-family: var(--f-arabic);
  font-size: clamp(4.5rem, 10vw, 8rem);
  color: var(--c-slate);
  line-height: 1.1;
  margin: 0;
  /* CRITICAL: Never letter-space Arabic! */
  letter-spacing: 0;
  font-weight: 400;
}

.nnp-pron {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--c-sky);
  margin-top: 16px;
  margin-bottom: 32px;
  text-transform: capitalize;
}

/* Badges */
.nnp-meta-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.nnp-badge {
  background-color: var(--c-mist);
  color: var(--c-slate);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nnp-badge-gender-boy::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--c-sky);
}
.nnp-badge-gender-girl::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--c-saffron);
}

/* Headings within content */
.nnp-name-page h2 {
  font-family: var(--f-body);
  font-size: 2rem;
  color: var(--c-slate);
  text-align: left;
  margin: 3rem 0 1.5rem;
  font-weight: 500;
}

.nnp-name-page h3 {
  font-family: var(--f-body);
  font-size: 1.5rem;
  color: var(--c-slate);
  margin: 2rem 0 1rem;
  font-weight: 500;
}

/* Body text */
.nnp-name-page p {
  font-size: 1.125rem;
  color: var(--c-slate);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 66ch;
}

/* Data Tables */
.nnp-data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  border: 1px solid var(--c-mist);
  border-radius: 8px;
  overflow: hidden;
}
.nnp-data-table th, .nnp-data-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--c-mist);
}
.nnp-data-table th {
  background-color: var(--c-dawn);
  font-weight: 500;
  color: var(--c-slate);
  width: 35%;
}
.nnp-data-table td {
  background-color: #fff;
}

/* Audio Player */
.nnp-audio-wrap {
  margin: 24px 0;
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--c-mist);
}
.nnp-audio-wrap audio {
  width: 100%;
  height: 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nnp-hero {
    height: 60vh;
    min-height: 400px;
  }
  .nnp-arabic {
    font-size: clamp(3rem, 12vw, 5rem);
  }
  .nnp-name-page {
    padding: 0 16px;
  }
  .nnp-data-table th, .nnp-data-table td {
    padding: 12px 16px;
  }
}
