/* =========================
   Sly Countdown Styles
   Premium Motion Upgrade (WPWS P3.04)
   Version: 1.2.0
   - Centered layout preserved
   - Adds per-unit progress indicator
   - Adds precise number transition animation
   - Enhanced escalation intensity states
   - No wrapper/glass changes
========================= */

.sly-countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  text-align: center;
}

.sly-time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

/* Use theme accent when available */
.sly-time {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-primary, #c084fc);
  transform: translateZ(0);
  will-change: transform;
  transition: transform 220ms ease;
}

.sly-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.7;
  margin-top: 6px;
  color: #ffffff;
}

.sly-live {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent-primary, #c084fc);
  text-transform: uppercase;
}

/* =========================
   Progress Indicator
========================= */

.sly-progress {
  width: 100%;
  max-width: 78px;
  height: 2px;
  margin-top: 10px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.10);
}

.sly-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-primary, #c084fc);
  opacity: 0.9;
  border-radius: 2px;
  transform: translateZ(0);
  will-change: width;
  transition: width 220ms linear;
}

/* =========================
   Number Transition
========================= */

.sly-time.sly-num-tick {
  transform: scale(1.05);
}

/* =========================
   Escalation – Enhanced but Controlled
========================= */

/* Under 24 Hours */
.sly-countdown-block.sly-urgency-24h {
  border-color: rgba(159,140,255,0.15);
}

.sly-countdown-block.sly-urgency-24h .sly-time {
  filter: brightness(1.08);
}

.sly-countdown-block.sly-urgency-24h .sly-progress-fill {
  opacity: 1;
}

/* Under 1 Hour */
.sly-countdown-block.sly-urgency-1h {
  border-color: rgba(159,140,255,0.25);
  box-shadow:
    0 18px 45px rgba(0,0,0,0.25),
    0 0 35px rgba(159,140,255,0.15),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.sly-countdown-block.sly-urgency-1h .sly-time {
  filter: brightness(1.15);
  text-shadow: 0 0 18px rgba(159,140,255,0.35);
}

.sly-countdown-block.sly-urgency-1h .sly-progress-fill {
  opacity: 1;
  box-shadow: 0 0 12px rgba(159,140,255,0.35);
}

/* =========================
   Responsive
========================= */

@media (max-width: 768px) {
  .sly-time {
    font-size: 1.8rem;
  }

  .sly-countdown {
    gap: 20px;
  }

  .sly-progress {
    max-width: 70px;
  }
}

/* =========================
   Reduced Motion
========================= */

@media (prefers-reduced-motion: reduce) {
  .sly-progress-fill {
    transition: none;
  }

  .sly-time {
    transition: none;
  }

  .sly-time.sly-num-tick {
    transform: none;
  }
}