/* Timer Component Styles - Below Player Info */

.player-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  background: rgba(76, 175, 80, 0.15);
  border-radius: 10px;
  border: 1px solid rgba(76, 175, 80, 0.4);
  font-size: 0.9rem;
  font-weight: bold;
  transition: background 0.2s ease, border-color 0.2s ease;
  margin: 8px auto 0 auto;
  min-height: 30px;
  width: fit-content;
  min-width: 80px;
  opacity: 1;
}

.player-timer.warning {
  background: rgba(255, 152, 0, 0.15);
  border-color: rgba(255, 152, 0, 0.5);
  animation: timerPulse 1s ease-in-out infinite;
}

.player-timer.critical {
  background: rgba(244, 67, 54, 0.15);
  border-color: rgba(244, 67, 54, 0.7);
  animation: timerShake 0.5s ease-in-out infinite;
}

.player-timer.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.timer-icon {
  display: inline-block;
  margin-right: 5px;
  font-size: 0.9rem;
}

.timer-display {
  display: inline-block;
  font-family: 'Courier New', monospace;
  color: #4CAF50;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.player-timer.warning .timer-display {
  color: #ff9800;
}

.player-timer.critical .timer-display {
  color: #f44336;
}

/* Animations */
@keyframes timerPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 1px 4px rgba(255, 152, 0, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.4);
  }
}

@keyframes timerShake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px);
  }
  75% {
    transform: translateX(2px);
  }
}

/* Mobile responsive */
@media (max-width: 600px) {
  .player-timer {
    padding: 5px 10px;
    font-size: 0.85rem;
    min-height: 28px;
    min-width: 75px;
  }
  
  .timer-icon {
    font-size: 0.85rem;
    margin-right: 4px;
  }
  
  .timer-display {
    font-size: 0.85rem;
  }
}

