/**
 * TRAINERS SPECIFIC STYLES
 * Trainer-specific UI overrides and extensions.
 */

/* Find Error Mode Styles */
.options.find-error-mode .sentence-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    font-size: 1.5rem;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
}

.word-chunk-btn {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 60px;
    font-size: 1.1rem;
}

.word-chunk-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

.word-chunk-btn:disabled {
    cursor: not-allowed;
}

.word-chunk-btn.correct {
    background: rgba(76, 175, 80, 0.8);
    border-color: #4CAF50;
    color: white;
    animation: pulse-correct 0.6s ease;
}

.word-chunk-btn.wrong {
    background: rgba(244, 67, 54, 0.8);
    border-color: #F44336;
    color: white;
    animation: shake-wrong 0.5s ease;
}

@keyframes pulse-correct {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes shake-wrong {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

/* Feedback Styles */
.feedback {
  text-align: center;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  font-weight: 600;
}

.feedback.correct {
  background: rgba(76, 175, 80, 0.2);
  border: 2px solid #4CAF50;
  color: #4CAF50;
}

.feedback.wrong {
  background: rgba(244, 67, 54, 0.2);
  border: 2px solid #F44336;
  color: #F44336;
}

.feedback.hidden {
  display: none;
}

/* ─── Next Button (after wrong answer) ─── */
.next-btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
  animation: fadeSlideUp 0.3s ease-out;
}

.next-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 52px;          /* comfortable mobile touch target */
}

.next-btn:active {
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

@media (hover: hover) {
  .next-btn:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  }
}

/* countdown bar inside the button */
.next-btn .countdown-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255,255,255,0.5);
  border-radius: 0 0 14px 14px;
  animation: countdownShrink 6s linear forwards;
}

.next-btn {
  position: relative;
  overflow: hidden;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes countdownShrink {
  from { width: 100%; }
  to   { width: 0%; }
}
