/* ========== gamification.css - Quiz ACF SRD ========== */
#last-badge-display {
  transition: all 0.5s ease;
  animation: popIn 0.5s ease-out;
}

#badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

#badge-name {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95em;
  line-height: 1.2;
}

#badge-desc {
  font-size: 0.8em;
  color: var(--text-light);
  line-height: 1.2;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

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


/* ==================== SYSTÈME DE VIES ==================== */
.lives-container {
  display: flex;
  gap: 5px;
  align-items: center;
}

.life-heart {
  font-size: 1.5em;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.life-heart.full {
  animation: heartBeat 1s ease-in-out;
}

.life-heart.empty {
  filter: grayscale(100%);
  opacity: 0.4;
}

.life-heart.losing {
  animation: heartBreak 0.5s ease-out forwards;
}

@keyframes heartBeat {

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

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

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

  50% {
    transform: scale(1.5) rotate(15deg);
    opacity: 0.5;
  }

  100% {
    transform: scale(0.8);
    opacity: 0.4;
    filter: grayscale(100%);
  }
}

.lives-timer {
  font-size: 0.75em;
  color: var(--text-light);
  margin-left: 5px;
}

/* ==================== BADGES ÉVÉNEMENTIELS ==================== */
.badge-rarity-common {
  border: 2px solid #bdc3c7;
}

.badge-rarity-rare {
  border: 2px solid #3498db;
  box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.badge-rarity-epic {
  border: 2px solid #9b59b6;
  box-shadow: 0 0 15px rgba(155, 89, 182, 0.6);
}

.badge-rarity-legendary {
  border: 2px solid #f39c12;
  box-shadow: 0 0 20px rgba(243, 156, 18, 0.7);
  animation: legendaryGlow 2s ease-in-out infinite;
}

@keyframes legendaryGlow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.7);
  }

  50% {
    box-shadow: 0 0 35px rgba(243, 156, 18, 1);
  }
}

.event-badge-banner {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 15px;
}

/* ==================== MODAL VIES ==================== */
.no-lives-modal {
  text-align: center;
  padding: 30px;
}

.no-lives-hearts {
  font-size: 3em;
  margin-bottom: 20px;
}

.no-lives-message {
  font-size: 1.2em;
  color: var(--text);
  margin-bottom: 20px;
}

.no-lives-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wait-timer-display {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary);
  margin: 15px 0;
}

