/* =Countdown Timer block
*/
.block-countdown-timer {
  padding: 2rem 0;
}

.countdown-timer-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
}

.countdown-segment {
  flex: 1;
  text-align: center;
  min-width: 80px;
  padding: 20px 30px;
  background: var(--wp--preset--color--primary-bg);
  border-radius: var(--wp--custom--border-radius--medium);
}

.countdown-number {
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--wp--preset--color--foreground);
  margin-bottom: 0.5rem;
  font-family: var(--wp--preset--font-family--primary);
}

.countdown-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wp--preset--color--foreground);
  font-weight: 900;
}

.countdown-segment {
  position: relative;
}

/* Remove separator after last visible segment */
.countdown-segment:last-child::after {
  display: none;
}

/* Expired message */
.countdown-expired-message {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--wp--preset--color--primary, #000);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .countdown-timer-display {
    gap: .5rem;
  }
  
  .countdown-segment {
    min-width: 60px;
    padding: 12px 16px;
  }
  
  .countdown-number {
    font-size: 1.75rem;
  }
  
  .countdown-segment:not(:last-child)::after {
    font-size: 2rem;
    right: -0.5rem;
  }
  
  .countdown-label {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .countdown-number {
    font-size: 1.5rem;
  }
  
  .countdown-segment:not(:last-child)::after {
    font-size: 1.5rem;
  }
}

/* Animation on load */
@keyframes countdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.countdown-segment {
  animation: countdownFadeIn 0.5s ease-out;
}

.countdown-segment:nth-child(1) {
  animation-delay: 0.1s;
}

.countdown-segment:nth-child(2) {
  animation-delay: 0.2s;
}

.countdown-segment:nth-child(3) {
  animation-delay: 0.3s;
}

.countdown-segment:nth-child(4) {
  animation-delay: 0.4s;
}
