/* Custom styles for English A1 Learning App */

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(59, 130, 246, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

.recording-pulse {
  animation: pulse-ring 1.5s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

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

.animate-bounce-short {
  animation: bounce-short 1s ease-in-out infinite;
}

/* Drag and Drop Tile Styles */
.word-tile {
  cursor: grab;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
  touch-action: none;
}

.word-tile:active {
  cursor: grabbing;
}

.word-tile.dragging {
  opacity: 0.5;
  transform: scale(1.08) rotate(3deg);
}

.drop-slot {
  min-height: 52px;
  transition: all 0.2s ease;
}

.drop-slot.drag-over {
  border-color: #3b82f6;
  background-color: #eff6ff;
  transform: scale(1.02);
}

/* Custom Slider Style */
input[type="range"] {
  accent-color: #4f46e5;
}

/* Card Glow Effect */
.card-hover-glow {
  transition: all 0.25s ease;
}

.card-hover-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px -5px rgba(99, 102, 241, 0.15), 0 8px 10px -6px rgba(99, 102, 241, 0.1);
}

/* Speech Word Highlighting */
.word-correct {
  color: #16a34a;
  background-color: #dcfce7;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
}

.word-wrong {
  color: #dc2626;
  background-color: #fee2e2;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: underline wavy #ef4444;
}
