/* Overlays - Reveal, Get Ready, Settings Panel */

/* Slide Display */
.slide-display {
  padding: 40px 20px;
}

.slide-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary);
}

.slide-content {
  font-size: 1.2rem;
  line-height: 1.6;
  white-space: pre-wrap;
  background: var(--bg-light);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.slide-image img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.slide-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Answer Reveal Overlay */
.reveal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  animation: fadeIn 0.3s ease;
}

.reveal-box {
  background: var(--bg-light);
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.reveal-label {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 15px;
}

.reveal-answer {
  font-size: 2rem;
  font-weight: bold;
  color: var(--secondary);
  padding: 20px;
  background: var(--bg);
  border-radius: 12px;
  border: 3px solid var(--secondary);
}

/* Player personal stats in reveal */
.reveal-your-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.reveal-stat-item {
  text-align: center;
}

.reveal-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.reveal-your-points {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--secondary);
}

.reveal-your-points.wrong {
  color: var(--danger);
}

.reveal-your-points.correct {
  color: var(--secondary);
}

.reveal-your-time {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

.reveal-your-rank {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--warning);
}

.reveal-your-score {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

/* Get Ready Overlay */
.getready-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 200;
}

.getready-content {
  text-align: center;
  animation: pulseIn 0.5s ease;
}

@keyframes pulseIn {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.getready-number {
  font-size: 8rem;
  font-weight: bold;
  color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: numberPop 0.3s ease;
}

@keyframes numberPop {
  0% { transform: scale(0.5); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.getready-text {
  font-size: 2rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 8px;
  margin-top: 20px;
}

.getready-dots {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.getready-dots .dot {
  width: 15px;
  height: 15px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: dotBounce 1.4s infinite ease-in-out both;
}

.getready-dots .dot:nth-child(1) { animation-delay: -0.32s; }
.getready-dots .dot:nth-child(2) { animation-delay: -0.16s; }
.getready-dots .dot:nth-child(3) { animation-delay: 0s; }

@keyframes dotBounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    background: rgba(255, 255, 255, 0.5);
  }
  40% {
    transform: scale(1);
    background: white;
  }
}

/* Multiplier Alert Overlay */
.multiplier-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 250;
  animation: fadeIn 0.2s ease;
}

.multiplier-content {
  text-align: center;
  animation: multiplierPop 0.5s ease;
}

@keyframes multiplierPop {
  0% { transform: scale(0.3) rotate(-10deg); opacity: 0; }
  50% { transform: scale(1.2) rotate(5deg); }
  70% { transform: scale(0.95) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.multiplier-icon {
  font-size: 5rem;
  animation: fireFlicker 0.5s ease infinite alternate;
}

@keyframes fireFlicker {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.multiplier-value {
  font-size: 10rem;
  font-weight: 900;
  color: white;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  line-height: 1;
  animation: multiplierGlow 0.8s ease infinite alternate;
}

@keyframes multiplierGlow {
  from { text-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 60px rgba(255, 255, 255, 0.3); }
  to { text-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 100px rgba(255, 255, 255, 0.6); }
}

.multiplier-text {
  font-size: 3rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 20px;
  margin-top: 10px;
}

/* Reveal Leaderboard (fastest responders) */
.reveal-leaderboard {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.reveal-leaderboard-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.reveal-leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reveal-lb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 8px;
  font-size: 0.9rem;
  border-left: 3px solid var(--secondary);
}

.reveal-lb-item.wrong {
  border-left-color: var(--danger);
  opacity: 0.7;
}

.reveal-lb-pos {
  font-weight: bold;
  color: var(--warning);
  min-width: 20px;
}

.reveal-lb-avatar {
  font-size: 1.1rem;
}

.reveal-lb-name {
  flex: 1;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reveal-lb-time {
  color: var(--text-muted);
  font-size: 0.85rem;
  min-width: 40px;
}

.reveal-lb-points {
  color: var(--secondary);
  font-weight: bold;
  font-size: 0.85rem;
  min-width: 50px;
}

.reveal-lb-item.wrong .reveal-lb-points {
  color: var(--danger);
}

.reveal-lb-rank {
  color: var(--text-muted);
  font-size: 0.8rem;
  min-width: 35px;
  text-align: right;
}

/* Responsive for overlays */
@media (max-width: 600px) {
  .slide-title {
    font-size: 1.5rem;
  }

  .slide-content {
    font-size: 1rem;
    padding: 20px;
  }

  .reveal-answer {
    font-size: 1.5rem;
    padding: 15px;
  }

  .reveal-your-stats {
    gap: 15px;
  }

  .reveal-your-points,
  .reveal-your-rank,
  .reveal-your-score {
    font-size: 1.2rem;
  }

  .reveal-lb-item {
    padding: 6px 10px;
    font-size: 0.85rem;
    gap: 6px;
  }

  .reveal-lb-avatar {
    font-size: 1rem;
  }

  .reveal-lb-time {
    font-size: 0.8rem;
  }
}
