/* Maktabat Ward — Design Variant B: "Bolder Modern"
   Additive layer only. Same palette, same layout, same features.
   Goals: gradient headlines, glass bars, chunkier cards, lively entrances. */

/* ---------- glass topbar + tabbar ---------- */
.topbar {
  background: rgba(255,251,246,.72) !important;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 6px 24px -10px rgba(35,64,63,.18);
}
.mobile-tabbar {
  background: rgba(255,251,246,.8) !important;
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}

/* ---------- gradient display headlines ---------- */
.hero-copy h1, .hero-copy .hero-title, .hero-tagline,
.section-head h2, .section-head .section-title,
.modal-card h2, .child-greet strong {
  background: linear-gradient(120deg, #D94E78 10%, #8B4BAE 55%, #145B59 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ---------- chunkier cards with colored lift ---------- */
.game-card, .explore-card, .garden-card, .challenge-featured-card,
.chest-banner, .achievements-box, .letter-tile {
  border-radius: 22px;
  box-shadow: 0 3px 8px rgba(35,64,63,.05), 0 18px 34px -14px rgba(35,64,63,.16);
  transition: transform .26s cubic-bezier(.3,1.5,.45,1), box-shadow .3s ease;
}
.game-card:hover, .explore-card:hover, .garden-card:hover,
.letter-tile:hover, .challenge-featured-card:hover {
  transform: translateY(-6px) rotate(-.4deg);
  box-shadow: 0 8px 16px rgba(35,64,63,.08), 0 28px 48px -16px rgba(139,75,174,.28);
}
.game-card:active, .explore-card:active, .letter-tile:active { transform: scale(.97); }

/* ---------- entrance pop for rendered content ---------- */
@keyframes wardCardIn {
  from { transform: translateY(16px) scale(.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.game-card, .explore-card, .garden-card, .letter-tile,
.badge-coin, .goal-row, .dhikr-card, .ayah-row {
  animation: wardCardIn .45s cubic-bezier(.3,1.35,.45,1) backwards;
}
.game-card:nth-child(2), .explore-card:nth-child(2), .letter-tile:nth-child(2) { animation-delay: .05s; }
.game-card:nth-child(3), .explore-card:nth-child(3), .letter-tile:nth-child(3) { animation-delay: .1s; }
.game-card:nth-child(4), .explore-card:nth-child(4), .letter-tile:nth-child(4) { animation-delay: .15s; }
.game-card:nth-child(5), .explore-card:nth-child(5), .letter-tile:nth-child(5) { animation-delay: .2s; }
.game-card:nth-child(6), .explore-card:nth-child(6), .letter-tile:nth-child(6) { animation-delay: .25s; }

/* ---------- pill buttons: bolder gradient + bounce ---------- */
.btn-primary {
  background-image: linear-gradient(135deg, #E4648C, #D94E78 55%, #C23A66);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.5), 0 8px 20px -6px rgba(217,78,120,.45);
  transition: transform .2s cubic-bezier(.34,1.5,.5,1), box-shadow .25s ease, filter .2s ease;
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.05); }
.btn-primary:active { transform: scale(.96); }

/* ---------- hero: richer gradient wash (keeps the illustration) ---------- */
.hero-banner {
  background-image:
    linear-gradient(140deg, rgba(217,78,120,.10), rgba(139,75,174,.08) 45%, rgba(20,91,89,.10)),
    url(assets/ui/hero-scene.webp);
}

/* ---------- modal pop ---------- */
.modal-card { animation: wardCardIn .35s cubic-bezier(.3,1.35,.45,1); }

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .game-card, .explore-card, .garden-card, .letter-tile,
  .badge-coin, .goal-row, .dhikr-card, .ayah-row, .modal-card { animation: none; }
  * { transition-duration: .01ms !important; }
}
