/* ============================================
   LexisAI — Kid Theme (Under 10 years old)
   Cute, colorful, playful
   ============================================ */

body.kid-theme {
  --primary: #FF6B9D;
  --primary-light: #FF8FB1;
  --primary-dark: #E84D80;
  --secondary: #4D96FF;
  --accent: #FFD93D;
  --success: #6BCB77;
  --warning: #FFD93D;
  --danger: #FF6B6B;

  --gradient-primary: linear-gradient(135deg, #FF6B9D, #4D96FF);
  --gradient-accent: linear-gradient(135deg, #FFD93D, #FF6B35);
  --gradient-dark: linear-gradient(135deg, #1a1a4e, #2a2a6e);
  
  --bg-primary: #1a1a4e;
  --bg-secondary: #22226e;
  --bg-card: rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(255, 255, 255, 0.1);

  --shadow-glow: 0 0 20px rgba(255, 107, 157, 0.3);
}

body.kid-theme .nav-logo-icon {
  background: var(--gradient-accent);
  box-shadow: 0 0 15px rgba(255, 217, 61, 0.4);
  font-size: 1.4rem;
}

body.kid-theme .hero h1 {
  font-family: 'Comic Sans MS', 'Chalkboard SE', cursive;
}

body.kid-theme .hero-badge {
  background: rgba(255, 107, 157, 0.2);
  border-color: rgba(255, 107, 157, 0.4);
  color: var(--primary-light);
}

body.kid-theme .feature-icon {
  border-radius: var(--radius-xl);
}

body.kid-theme .feature-icon::before {
  background: var(--gradient-accent);
}

body.kid-theme .feature-icon::after {
  background: var(--gradient-accent);
}

body.kid-theme .step-number {
  background: var(--gradient-accent);
  box-shadow: 0 0 20px rgba(255, 217, 61, 0.4);
  font-size: 1.8rem;
}

body.kid-theme .pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 25px rgba(255, 107, 157, 0.3);
}

body.kid-theme .pricing-card.featured::before {
  background: var(--gradient-accent);
}

/* Kid-specific game elements */
body.kid-theme .mic-btn {
  width: 72px;
  height: 72px;
  font-size: 1.8rem;
  background: var(--gradient-accent);
  box-shadow: 0 0 25px rgba(255, 217, 61, 0.4);
}

body.kid-theme .mic-btn.recording {
  background: #FF6B6B;
  box-shadow: 0 0 25px rgba(255, 107, 107, 0.5);
}

/* Cute character avatars */
.kid-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Sparkle effect for kid mode */
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

.sparkle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: sparkle 1.5s ease-in-out infinite;
  pointer-events: none;
}

/* Rainbow progress bar for kids */
.progress-rainbow {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #FF6B6B, #FFD93D, #6BCB77, #4D96FF, #9B59B6);
  position: relative;
  overflow: hidden;
}

.progress-rainbow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Sticker rewards */
.sticker-reward {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  font-size: 2rem;
  border-radius: var(--radius-full);
  background: rgba(255, 217, 61, 0.15);
  border: 2px dashed rgba(255, 217, 61, 0.4);
  animation: bounce 2s ease-in-out infinite;
}

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

/* Cute game card styles */
body.kid-theme .game-card {
  border-radius: var(--radius-xl);
  border: 2px dashed rgba(255, 255, 255, 0.15);
}

body.kid-theme .game-card:hover {
  border-style: solid;
  border-color: var(--primary);
  background: rgba(255, 107, 157, 0.1);
}

body.kid-theme .game-card .game-icon {
  font-size: 2.5rem;
}

/* Kid-friendly buttons */
body.kid-theme .btn-primary {
  background: var(--gradient-accent);
  box-shadow: 0 0 20px rgba(255, 217, 61, 0.3);
}

body.kid-theme .btn-primary:hover {
  box-shadow: 0 0 30px rgba(255, 217, 61, 0.5);
}

/* Fun cursor in kid mode */
body.kid-theme {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ctext y='20' font-size='20'%3E✨%3C/text%3E%3C/svg%3E"), auto;
}

/* Star rating display */
.star-rating {
  display: flex;
  gap: 4px;
}

.star-rating .star {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.2);
  transition: color var(--transition-fast);
}

.star-rating .star.active {
  color: #FFD93D;
  text-shadow: 0 0 10px rgba(255, 217, 61, 0.5);
}
