/* Junior Mode */
.junior-mode {
  background: linear-gradient(135deg, #ffeaa7 0%, #3498db 100%);
  font-family: "Comic Neue", cursive;
  min-height: 100vh;
}

/* Nav */
.navbar {
  background: rgba(12, 36, 97, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
}

.navbar-brand {
  font-family: "Fredoka One", cursive;
  font-size: 1.8rem;
}

.brand-text {
  color: #4cd137;
}

.nav-link {
  font-weight: 500;
  margin: 0 10px;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #4cd137 !important;
}

/*  Hero */
.junior-hero {
  padding: 100px 0 50px;
}

.junior-title {
  font-family: "Fredoka One", cursive;
  font-size: 3rem;
  color: #2d3436;
  text-shadow: 2px 2px 0 #ffeaa7;
}

.junior-subtitle {
  font-size: 1.3rem;
  color: #636e72;
  margin-bottom: 30px;
}

/* Avatar  */
.kid-avatar {
  background: white;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.avatars {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.avatar-btn {
  padding: 12px 20px;
  border: 3px solid #ddd;
  border-radius: 15px;
  background: white;
  font-weight: bold;
  transition: all 0.3s;
}

.avatar-btn.active {
  border-color: #4cd137;
  background: #e8f5e9;
  transform: scale(1.05);
}

.avatar-btn:hover:not(.active) {
  border-color: #a29bfe;
}

.hero-character img {
  max-height: 400px;
  object-fit: contain;
}

/* Chat  */
.chat-box {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border: 3px solid #0984e3;
  margin: 30px auto;
}

.chat-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 3px dashed #dfe6e9;
}

.chat-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid #4cd137;
  box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.message {
  display: flex;
  align-items: flex-end;
  margin-bottom: 25px;
}

.message.left {
  justify-content: flex-start;
}

.message.right {
  justify-content: flex-end;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
}

.left .avatar {
  border-color: #4cd137;
  margin-right: 15px;
}

.right .avatar {
  border-color: #3498db;
  margin-left: 15px;
  order: 2;
}

.bubble {
  max-width: 70%;
  padding: 15px 20px;
  border-radius: 20px;
  line-height: 1.5;
}

.left .bubble {
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  border-top-left-radius: 5px;
  border-left: 4px solid #4cd137;
}

.right .bubble {
  background: linear-gradient(135deg, #ebf5fb, #e3f2fd);
  border-top-right-radius: 5px;
  border-right: 4px solid #3498db;
  box-shadow: 0 3px 10px rgba(52, 152, 219, 0.1);
}

.message-time {
  font-size: 0.75rem;
  color: #95a5a6;
  display: block;
  margin-top: 8px;
}

.safety-list,
.danger-list {
  margin: 15px 0;
}

.safety-item,
.danger-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  border-left: 3px solid #e74c3c;
}

.safety-item i,
.danger-item i {
  margin-top: 3px;
}

/* Quiz  */
.choices,
.quiz-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px 0;
}

.choice-btn,
.scenario-option,
.quiz-btn {
  padding: 15px;
  border: 3px solid #ddd;
  border-radius: 15px;
  background: white;
  text-align: left;
  transition: all 0.3s;
}

.choice-btn:hover,
.scenario-option:hover,
.quiz-btn:hover {
  border-color: #a29bfe;
  transform: translateX(5px);
}

/* Help Section */
.help-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.help-badge {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  border-radius: 20px;
  font-weight: 600;
}

.help-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 20px;
  padding: 30px;
  height: 100%;
  border-color: #4cd137;
  box-shadow: 0 15px 30px rgba(76, 209, 55, 0.1);
}

/* Progress Section */
.progress-card,
.badges-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.progress-bar {
  background: #4cd137;
  border-radius: 10px;
}

.badges-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}

.badge-item {
  width: 45%;
  padding: 15px;
  text-align: center;
  border: 3px solid #ddd;
  border-radius: 15px;
  background: #f8f9fa;
  opacity: 0.5;
}

.badge-item.earned {
  border-color: #4cd137;
  background: #e8f5e9;
  opacity: 1;
  transform: scale(1.05);
}

/* Parent Section */
.parent-card {
  background: linear-gradient(135deg, #0984e3 0%, #489dd6 100%);
  border-radius: 20px;
  padding: 30px;
  color: white;
}

/* Footer */
.junior-footer {
  background: #2d3436;
  color: white;
  padding: 30px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .junior-title {
    font-size: 2.2rem;
  }

  .avatars {
    flex-direction: column;
  }

  .badges-container {
    grid-template-columns: 1fr;
  }

  .bubble {
    max-width: 85%;
  }

  .message {
    font-size: 15px;
    flex-direction: column;
    align-items: flex-start;
  }



  .right .bubble {
    margin-left: 0;
  }
}
