/* Season Timer Component */

.season-timer {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(20, 20, 30, 0.95), rgba(10, 10, 15, 0.98));
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.season-timer-loading {
  padding: 1rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-style: italic;
}

/* Current Season */
.season-current,
.season-next {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  min-width: 280px;
}

.season-current {
  border-left: 3px solid var(--gold, #d4af37);
}

.season-next {
  border-left: 3px solid #a855f7;
}

.season-label,
.next-season-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.season-badge {
  background: linear-gradient(135deg, var(--gold, #d4af37), #b8860b);
  color: #000;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.season-badge.ended {
  background: linear-gradient(135deg, #666, #444);
  color: #fff;
}

.next-badge {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.season-name,
.next-name {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 500;
}

/* Countdown Section */
.season-countdown,
.next-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.countdown-title {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.countdown-timer {
  display: flex;
  gap: 0.5rem;
}

.countdown-timer.next .countdown-value {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(124, 58, 237, 0.2));
  border-color: rgba(168, 85, 247, 0.4);
}

.countdown-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
}

.countdown-value {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(184, 134, 11, 0.15));
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Orbitron', monospace;
  color: #fff;
  min-width: 50px;
  text-align: center;
}

.countdown-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

.countdown-date {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Season Ended State */
.season-ended {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
}

/* Responsive */
@media (max-width: 640px) {
  .season-timer {
    flex-direction: column;
    padding: 1rem;
  }

  .season-current,
  .season-next {
    min-width: 100%;
    padding: 1rem;
  }

  .countdown-value {
    font-size: 1.25rem;
    padding: 0.4rem 0.5rem;
    min-width: 42px;
  }

  .countdown-segment {
    min-width: 42px;
  }
}

/* Animation for urgency when time is low */
@keyframes pulse-urgent {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.countdown-timer.urgent .countdown-value {
  animation: pulse-urgent 1s ease-in-out infinite;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.3));
  border-color: rgba(239, 68, 68, 0.5);
}
