/* Understanding Dashboard Styles - Bright & Child-Friendly Blue Theme */

.understanding-dashboard {
  min-height: 100vh;
  background: linear-gradient(225deg, #e0f2fe 0%, #dbeafe 30%, #e0e7ff 60%, #fae8ff 100%);
  font-family: var(--body-font);
  color: #111827;
}

/* Header */
.understanding-header {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(147, 197, 253, 0.8);
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.1);
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0;
}

.understanding-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 3rem;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.understanding-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.understanding-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 8px;
  color: #4b5563;
  transition: background 0.15s ease;
  text-decoration: none;
}

.back-button:hover {
  background: rgba(59, 130, 246, 0.1);
}

.back-icon {
  width: 18px;
  height: 18px;
  color: #3b82f6;
}

.understanding-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.understanding-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

/* Main container */
.understanding-main {
  max-width: 1024px;
  margin: 0 auto;
  padding: 28px 20px;
}

/* Stats Section - Bright and playful */
.understanding-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(191, 219, 254, 0.85);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.18);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 24px;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: #6b7280;
}

/* Levels Section - Fun and inviting */
.understanding-levels {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.12);
  padding: 24px;
  border: 1px solid rgba(191, 219, 254, 0.85);
}

.section-title {
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #111827;
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.level-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #bae6fd;
  border-radius: 20px;
  padding: 20px;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.level-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.level-card:hover::before {
  opacity: 1;
}

.level-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

.level-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.level-icon {
  flex-shrink: 0;
  font-size: 48px;
  filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.2));
}

.level-info {
  flex: 1;
}

.level-name {
  font-family: var(--heading-font);
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px 0;
}

.level-topic {
  font-size: 13px;
  color: #3b82f6;
  font-weight: 600;
  margin: 0;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.level-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.level-detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
  padding: 6px 10px;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 8px;
}

.level-detail-item svg {
  width: 16px;
  height: 16px;
  color: #3b82f6;
}

/* Session Styles - Bright and engaging */
.understanding-session {
  min-height: 100vh;
  background: linear-gradient(225deg, #e0f2fe 0%, #dbeafe 30%, #e0e7ff 60%, #fae8ff 100%);
  font-family: var(--body-font);
}

.session-header {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(147, 197, 253, 0.8);
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.1);
  padding: 0;
}

.session-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.session-title {
  font-family: var(--heading-font);
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.session-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin: 4px 0 0 0;
}

.session-progress-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.session-score {
  font-size: 14px;
  font-weight: 600;
  color: #3b82f6;
  padding: 6px 12px;
  background: #fff;
  border-radius: 12px;
  border: 2px solid #bae6fd;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(191, 219, 254, 0.4);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 50%, #fbbf24 100%);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.session-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 20px;
}

/* Question Card - Vibrant and playful */
.question-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.12);
  padding: 32px;
  border: 1px solid rgba(191, 219, 254, 0.85);
}

.story-section {
  text-align: center;
  margin-bottom: 32px;
  padding: 24px;
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 50%, #f3e8ff 100%);
  border-radius: 20px;
  border: 3px solid #93c5fd;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
  position: relative;
  overflow: hidden;
}

.story-section::before {
  content: '✨';
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 24px;
  animation: twinkle 2s ease-in-out infinite;
}

.story-section::after {
  content: '✨';
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 24px;
  animation: twinkle 2s ease-in-out infinite 1s;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.story-icon {
  font-size: 64px;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.3));
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.story-text {
  font-size: 18px;
  line-height: 1.6;
  color: #111827;
  margin: 0;
  font-weight: 500;
}

.question-section {
  margin-top: 24px;
}

.question-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 16px;
  border-left: 4px solid #f59e0b;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.2);
}

.question-text {
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin: 0;
  flex: 1;
}

/* Answer Options - Bright and interactive */
.answer-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.answer-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-size: 16px;
  color: #111827;
  position: relative;
  overflow: hidden;
}

.answer-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.answer-option:hover:not(:disabled)::before {
  opacity: 1;
}

.answer-option:hover:not(:disabled) {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-color: #3b82f6;
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.answer-option.selected {
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.answer-option.correct {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-color: #22c55e;
  color: #15803d;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.answer-option.incorrect {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-color: #ef4444;
  color: #991b1b;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.answer-option:disabled {
  cursor: not-allowed;
}

.option-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border-radius: 10px;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  z-index: 1;
}

.answer-option.correct .option-letter {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.answer-option.incorrect .option-letter {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.option-text {
  flex: 1;
  font-weight: 500;
  z-index: 1;
}

.option-icon {
  flex-shrink: 0;
  color: #22c55e;
  z-index: 1;
  animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Hint Section - Cheerful */
.hint-section {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  border-radius: 12px;
  border: 2px dashed #93c5fd;
  color: #1e40af;
  font-size: 14px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.hint-section svg {
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

/* Feedback Section - Celebratory */
.feedback-section {
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.feedback-section.correct {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border: 2px solid #22c55e;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.2);
}

.feedback-section.incorrect {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 2px solid #ef4444;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.2);
}

.feedback-icon {
  font-size: 32px;
  flex-shrink: 0;
  animation: bounceIn 0.5s ease;
}

.feedback-text {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  flex: 1;
}

.feedback-section.correct .feedback-text {
  color: #15803d;
}

.feedback-section.incorrect .feedback-text {
  color: #991b1b;
}

/* Action Buttons - Playful and inviting */
.question-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.submit-button,
.next-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.submit-button::before,
.next-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

.submit-button:hover::before,
.next-button:hover::before {
  width: 300px;
  height: 300px;
}

.submit-button {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.next-button {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.next-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
}

/* Celebration Card - Extra festive */
.celebration-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2);
  padding: 48px;
  text-align: center;
  border: 2px solid #93c5fd;
  max-width: 600px;
  margin: 40px auto;
  position: relative;
  overflow: hidden;
}

.celebration-card::before {
  content: '🎉';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 40px;
  animation: rotate 3s linear infinite;
}

.celebration-card::after {
  content: '🌟';
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 40px;
  animation: rotate 3s linear infinite reverse;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.celebration-icon {
  font-size: 80px;
  margin-bottom: 24px;
  animation: bounce 1s ease infinite;
  filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

.celebration-title {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 12px 0;
}

.celebration-message {
  font-size: 18px;
  color: #6b7280;
  margin-bottom: 32px;
}

.celebration-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
  padding: 24px;
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 50%, #f3e8ff 100%);
  border-radius: 20px;
  border: 2px solid #93c5fd;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
}

.celebration-stat {
  text-align: center;
}

.celebration-stat-value {
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.celebration-stat-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.celebration-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.primary-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: #6b7280;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.secondary-button:hover {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
  border-color: #3b82f6;
  color: #3b82f6;
  transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {

  .understanding-header-inner,
  .session-header-inner {
    padding: 0 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .understanding-main,
  .session-main {
    padding: 20px 16px;
  }

  .understanding-stats {
    grid-template-columns: 1fr;
  }

  .levels-grid {
    grid-template-columns: 1fr;
  }

  .question-card {
    padding: 20px;
  }

  .story-section {
    padding: 16px;
  }

  .story-icon {
    font-size: 48px;
  }

  .story-text {
    font-size: 16px;
  }

  .question-text {
    font-size: 18px;
  }

  .answer-option {
    padding: 12px 16px;
    font-size: 15px;
  }

  .celebration-card {
    padding: 32px 20px;
  }

  .celebration-icon {
    font-size: 64px;
  }

  .celebration-title {
    font-size: 24px;
  }

  .celebration-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .celebration-actions {
    width: 100%;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    justify-content: center;
  }
}