/**
 * quiz-modes-styles.css
 * Styles pour les 4 modes de quiz
 */

/* ============================================================================ */
/* QUIZ MODE SELECTOR */
/* ============================================================================ */

.quiz-mode-selector {
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.quiz-mode-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 2rem;
  text-align: center;
}

.quiz-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.quiz-mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.quiz-mode-btn:hover {
  border-color: #6366f1;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
}

.quiz-mode-btn:active {
  transform: translateY(0);
}

.quiz-mode-icon {
  font-size: 3rem;
}

.quiz-mode-content {
  flex: 1;
}

.quiz-mode-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.quiz-mode-desc {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.4;
}

/* ============================================================================ */
/* CHRONO TIMER */
/* ============================================================================ */

.chrono-display {
  padding: 0;
  background: transparent;
  color: var(--quiz-header-text, #1f2937);
  border-radius: 0;
  text-align: center;
}

.chrono-time {
  font-size: 3.5rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
}

.chrono-progress {
  margin-bottom: 1.5rem;
}

.chrono-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.chrono-progress-fill {
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  transition: width 0.3s ease;
}

.chrono-progress-text {
  font-size: 0.875rem;
  opacity: 0.9;
}

.chrono-bonus {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fbbf24;
  margin-top: 1rem;
  animation: pulse 1s infinite;
}

.chrono-best {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.chrono-streak {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fbbf24;
  margin-top: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================================ */
/* CHRONO STATS */
/* ============================================================================ */

.chrono-stats-panel {
  padding: 1.5rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.chrono-stats-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.chrono-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.chrono-stat-item {
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #f3f4f6;
  text-align: center;
}

.chrono-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.chrono-stat-label {
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================================ */
/* FLASH MODE */
/* ============================================================================ */

.flash-display {
  padding: 1.5rem;
  background: transparent;
  color: var(--text-primary);
  border-radius: 12px;
  text-align: center;
}

.flash-time {
  font-size: 4rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
}

.flash-progress {
  margin-bottom: 1rem;
}

.flash-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.flash-progress-fill {
  height: 100%;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.flash-combo {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
  animation: pulse 1s infinite;
}

.flash-bonus {
  font-size: 1rem;
  color: var(--accent-gold);
  font-weight: 600;
}

.flash-time-btn {
  transition: all 0.3s ease !important;
}

.flash-time-btn:hover {
  border-color: var(--accent-gold) !important;
  background-color: rgba(184, 158, 20, 0.1) !important;
  transform: translateY(-2px) !important;
}

.flash-time-btn:active {
  transform: translateY(0) !important;
}

/* Flash Progress Bar (bottom) */
#quizFlashProgressBar {
  display: none;
}

#quizFlashProgressBarContainer {
  height: 8px;
  background: rgba(184, 158, 20, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ============================================================================ */
/* RESPONSIVE */
/* ============================================================================ */

@media (max-width: 768px) {
  .quiz-mode-grid {
    grid-template-columns: 1fr;
  }

  .chrono-time {
    font-size: 2.5rem;
  }
}
