/* 99 Names of Allah – Kids Course v2.1.0 */
#nna-app {
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: #fff;
  color: #0f172a;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}
#nna-app * { box-sizing: border-box; }

/* Loading / error */
.nna-loading, .nna-error {
  text-align: center;
  padding: 3rem 1rem;
  font-size: 1.1rem;
  color: #64748b;
}
.nna-error { color: #dc2626; }

/* ── Typography helpers ── */
.nna-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  margin: .5rem 0;
  letter-spacing: -0.02em;
}
.nna-gradient {
  background: linear-gradient(135deg, #f43f5e, #f97316, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nna-subtitle  { color: #475569; font-size: 1rem; margin: .25rem 0 0; max-width: 560px; }
.nna-sec-title { font-size: 1.35rem; font-weight: 900; margin: 0 0 .6rem; }
.nna-pill {
  display: inline-flex;
  background: #fef3c7;
  color: #92400e;
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 999px;
  margin-bottom: .5rem;
}

/* ── Home ── */
.nna-header { text-align: center; padding: 2.5rem 0 1.5rem; }
.nna-stats  { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin: 1.25rem 0; }
@media (min-width: 500px) { .nna-stats { grid-template-columns: repeat(4, 1fr); } }
.nna-stat   { border-radius: 1rem; padding: .75rem 1rem; }
.nna-stat--rose   { background: #fff1f2; color: #be123c; }
.nna-stat--green  { background: #f0fdf4; color: #166534; }
.nna-stat--sky    { background: #f0f9ff; color: #075985; }
.nna-stat--violet { background: #f5f3ff; color: #5b21b6; }
.nna-stat-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; opacity: .75; }
.nna-stat-value { font-size: 1.6rem; font-weight: 900; }

.nna-progress-wrap  { margin: .75rem 0 1.5rem; }
.nna-progress-label { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; color: #475569; margin-bottom: .35rem; }
.nna-progress-bar   { height: 12px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.nna-progress-fill  { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #34d399, #38bdf8, #818cf8); transition: width .4s ease; }

.nna-badges-section { margin-bottom: 1.5rem; }
.nna-badges         { display: flex; flex-wrap: wrap; gap: .5rem; }
.nna-badge {
  display: flex; align-items: center; gap: .4rem;
  border: 2px solid #e2e8f0;
  border-radius: 999px;
  padding: .4rem .75rem;
  font-size: .8rem; font-weight: 700;
  color: #94a3b8;
  background: #f8fafc;
}
.nna-badge--earned { border-color: #f59e0b; background: #fffbeb; color: #92400e; }
.nna-badge-emoji   { font-size: 1.1rem; }
.nna-badge-day     { font-size: .7rem; opacity: .6; }

.nna-days-section { margin-bottom: 2rem; }
.nna-days-grid    { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; }
@media (min-width: 440px) { .nna-days-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 680px) { .nna-days-grid { grid-template-columns: repeat(5, 1fr); } }

.nna-day-card {
  position: relative;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  padding: .9rem .75rem;
  text-align: left;
  background: #fff;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  width: 100%;
}
.nna-day-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.nna-day-card--done { border-color: #4ade80; background: #f0fdf4; }
.nna-day-check { position: absolute; top: .35rem; right: .5rem; font-size: 1rem; }
.nna-day-num   { font-size: .7rem; font-weight: 700; text-transform: uppercase; color: #64748b; }
.nna-day-title { font-size: .85rem; font-weight: 900; line-height: 1.2; margin: .2rem 0 .5rem; }
.nna-day-dots  { display: flex; align-items: center; gap: .25rem; }
.nna-dot       { width: 18px; height: 6px; border-radius: 999px; background: #e2e8f0; }
.nna-dot--done { background: #4ade80; }
.nna-day-cnt   { margin-left: auto; font-size: .7rem; font-weight: 700; color: #64748b; }

.nna-footer { text-align: center; padding: 1.5rem 0; color: #94a3b8; font-size: .82rem; border-top: 1px solid #f1f5f9; margin-top: .5rem; }

/* ── Day screen ── */
.nna-day-screen  { padding: 1.5rem 0; }
.nna-day-header  { text-align: center; padding: 1.25rem 0; }
.nna-back-btn    {
  border: none; background: #f1f5f9; border-radius: 999px;
  padding: .45rem 1rem; font-size: .85rem; font-weight: 700;
  cursor: pointer; color: #475569;
}
.nna-back-btn:hover { background: #e2e8f0; }

.nna-name-cards { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.25rem; }
.nna-name-card  {
  position: relative;
  border: none;
  border-radius: 1.5rem;
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  color: #fff;
  text-align: left;
  transition: transform .15s, box-shadow .15s;
  width: 100%;
}
.nna-name-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.card-rose  { background: linear-gradient(135deg, #f43f5e, #fb923c); }
.card-sky   { background: linear-gradient(135deg, #38bdf8, #818cf8); }
.card-green { background: linear-gradient(135deg, #4ade80, #14b8a6); }

.nna-done-badge {
  position: absolute; top: .5rem; right: .75rem;
  background: rgba(255,255,255,.25);
  border-radius: 999px; padding: .2rem .6rem;
  font-size: .75rem; font-weight: 700;
}
.nna-name-card-body        { flex: 1; }
.nna-name-transliteration  { font-size: 1.4rem; font-weight: 900; }
.nna-name-meaning          { font-size: .85rem; opacity: .92; margin-top: .15rem; }
.nna-name-arabic           {
  font-family: 'Amiri', 'Scheherazade New', 'Noto Naskh Arabic', serif;
  font-size: 2.5rem; font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,.2);
  line-height: 1;
  flex-shrink: 0;
}

/* ── Name screen ── */
.nna-name-screen { padding: 1.25rem 0 3rem; }
.nna-name-nav    { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.nna-name-pos    { font-size: .8rem; font-weight: 700; color: #64748b; }

.nna-arabic-card {
  background: linear-gradient(135deg, #fff7ed, #fff1f2, #f5f3ff);
  border-radius: 1.5rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.nna-arabic-text {
  font-family: 'Amiri', 'Scheherazade New', 'Noto Naskh Arabic', serif;
  font-size: clamp(3rem, 12vw, 5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: .5rem;
}
.nna-translit { font-size: 1.8rem; font-weight: 900; margin-bottom: .75rem; }
.nna-meaning  { font-size: 1rem; font-weight: 700; color: #334155; max-width: 400px; margin: .75rem auto 0; }

/* ── Play button ── */
.nna-play-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #f43f5e;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: .65rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .1s, opacity .2s;
  box-shadow: 0 4px 14px rgba(244,63,94,.35);
}
.nna-play-btn:hover:not(:disabled)  { transform: scale(1.04); }
.nna-play-btn:active:not(:disabled) { transform: scale(.97); }
.nna-play-btn:disabled              { opacity: .6; cursor: default; box-shadow: none; }

.nna-play-btn.nna-btn--loading  { background: #94a3b8; cursor: wait; }
.nna-play-btn.nna-btn--playing  { background: #16a34a; box-shadow: 0 4px 14px rgba(22,163,74,.35); }
.nna-play-btn.nna-btn--error    { background: #dc2626; }
.nna-play-btn--na               { background: #64748b; box-shadow: none; }

/* ── Story ── */
.nna-story-section { margin-bottom: 1.5rem; }
.nna-story {
  background: #f0f9ff;
  border: 2px solid #bae6fd;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  line-height: 1.65;
  color: #0c4a6e;
}

/* ── Quiz ── */
.nna-quiz-section  { margin-bottom: 1.5rem; }
.nna-quiz-q        { font-weight: 700; color: #1e293b; margin: 0 0 .75rem; }
.nna-quiz-options  { display: flex; flex-direction: column; gap: .5rem; }
.nna-opt {
  border: 2px solid #e2e8f0;
  background: #fff;
  border-radius: 1rem;
  padding: .75rem 1rem;
  text-align: left;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  width: 100%;
}
.nna-opt:hover:not(:disabled) { border-color: #4ade80; background: #f0fdf4; }
.nna-opt--correct { border-color: #22c55e !important; background: #f0fdf4 !important; color: #166534; }
.nna-opt--wrong   { border-color: #f87171 !important; background: #fff1f2 !important; color: #991b1b; }
.nna-opt--dim     { opacity: .5; }
.nna-retry-btn    { background: none; border: none; color: #f43f5e; font-weight: 700; font-size: .85rem; cursor: pointer; text-decoration: underline; margin-top: .35rem; padding: 0; }

/* ── Ayah hunt ── */
.nna-ayah-section  { margin-bottom: 1.5rem; }
.nna-ayah-hint     { font-size: .9rem; font-weight: 600; color: #475569; margin: 0 0 .75rem; }
.nna-ayah-options  { display: flex; flex-direction: column; gap: .65rem; }
.nna-ayah-opt {
  border: 2px solid #e2e8f0;
  background: #fff;
  border-radius: 1rem;
  padding: .9rem 1rem;
  text-align: right;
  cursor: pointer;
  width: 100%;
  transition: border-color .15s, background .15s;
}
.nna-ayah-opt:hover:not(:disabled) { border-color: #4ade80; background: #f0fdf4; }
.nna-ayah-arabic {
  font-family: 'Amiri', 'Scheherazade New', 'Noto Naskh Arabic', serif;
  font-size: 1.3rem;
  margin-bottom: .3rem;
  line-height: 1.6;
  color: #1e293b;
}
.nna-ayah-meta  { font-size: .75rem; font-weight: 700; color: #64748b; text-align: left; }
.nna-ayah-trans { font-size: .85rem; color: #475569; text-align: left; margin-top: .2rem; font-style: italic; }

/* ── Finish / complete ── */
.nna-finish-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  border: none;
  border-radius: 1rem;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  margin-top: 1.25rem;
  transition: transform .1s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(245,158,11,.4);
}
.nna-finish-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,158,11,.5); }

.nna-complete-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #f0fdf4;
  border: 2px solid #4ade80;
  border-radius: 1rem;
  padding: 1rem;
  font-weight: 700;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.nna-next-btn {
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}
