/* ==========================================================================
   Child-Friendly Interactive Interface Styles
   تنسيقات الشاشة التفاعلية والمبهجة للطفل
   ========================================================================== */

.child-app-viewport {
  min-height: 100vh;
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 50%, #fef3c7 100%);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Floating Stars Header */
.child-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
}

.child-stars-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
  border: 2px solid #fde68a;
  font-size: 1.3rem;
  font-weight: 900;
  color: #b45309;
}

.star-icon-anim {
  animation: starTwinkle 1.8s infinite alternate;
}

@keyframes starTwinkle {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.25) rotate(15deg); }
}

.child-specialist-avatar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.specialist-headshot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 2px solid #60a5fa;
}

.specialist-name-tag {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e3a8a;
}

/* Child Welcome Screen */
.child-welcome-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.welcome-balloon-box {
  font-size: 4.5rem;
  margin-bottom: 1rem;
  animation: floatBalloon 3s ease-in-out infinite;
}

@keyframes floatBalloon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.welcome-hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: #1e3a8a;
  margin-bottom: 0.5rem;
}

.welcome-hero-subtitle {
  font-size: 1.35rem;
  color: #475569;
  max-width: 550px;
  margin-bottom: 2rem;
}

.btn-child-start {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  font-size: 1.8rem;
  font-weight: 900;
  padding: 1.25rem 3.5rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-child-start:hover {
  transform: scale(1.08);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.5);
}

.btn-child-start:active {
  transform: scale(0.96);
}

/* Active Child Activity Stage */
.child-active-card {
  max-width: 860px;
  width: 90%;
  margin: 2rem auto;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  padding: 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.child-main-illustration {
  width: 280px;
  height: 280px;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

/* Child Cue Visual Banner (Animated Speech Bubble when Specialist triggers a cue) */
.child-cue-bubble {
  background: #f0fdf4;
  border: 3px dashed #86efac;
  border-radius: var(--radius-lg);
  padding: 1rem 1.75rem;
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #166534;
  display: none;
  animation: bounceIn 0.4s ease-out forwards;
}

.child-cue-bubble.active {
  display: flex;
  align-items: center;
  gap: 12px;
}

@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.85); }
  70% { transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

/* Child Multiple Choices Options (Level 9 Cue) */
.child-choices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  width: 100%;
  margin-top: 1.5rem;
}

.btn-child-choice {
  background: #fff;
  border: 3px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  font-size: 1.3rem;
  font-weight: 800;
  font-family: inherit;
  color: #1e293b;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  box-shadow: var(--shadow-sm);
}

.btn-child-choice:hover {
  border-color: #3b82f6;
  background: #eff6ff;
  transform: translateY(-4px);
}

/* Fullscreen Confetti Particle Canvas */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}
