/**
 * Countdown Timer Widget Styles
 * © 2026 Beads of Brilliance
 */

.countdown-widget {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  border-radius: 16px;
  padding: 1rem;
  color: white;
  box-shadow: 0 8px 32px rgba(238, 90, 111, 0.4);
  margin: 1rem 0;
  position: relative;
  overflow: hidden;
}

.countdown-widget::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.countdown-widget.urgent {
  animation: urgentPulse 1s ease-in-out infinite;
}

@keyframes urgentPulse {
  0%,
  100% {
    box-shadow: 0 8px 32px rgba(238, 90, 111, 0.4);
  }
  50% {
    box-shadow: 0 8px 48px rgba(238, 90, 111, 0.8);
  }
}

.countdown-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.countdown-icon {
  font-size: 2rem;
  animation: swing 2s ease-in-out infinite;
}

@keyframes swing {
  0%,
  100% {
    transform: rotate(-10deg);
  }
  50% {
    transform: rotate(10deg);
  }
}

.countdown-title h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
  color: white;
}

.countdown-title p {
  font-size: 0.95rem;
  margin: 0;
  opacity: 0.95;
}

/* Slots Indicator */
.countdown-urgency {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.slots-indicator {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.slots-visual {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.slot-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.slot-dot.taken {
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.slot-dot.available {
  background: #ffd700;
  border: 2px solid #ffed4e;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  animation: glow 1.5s ease-in-out infinite;
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 1);
  }
}

.slots-text {
  display: flex;
  flex-direction: column;
}

.slots-remaining {
  font-size: 2rem;
  font-weight: 800;
  color: #ffd700;
  line-height: 1;
}

.slots-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Timer Display */
.countdown-timer {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.timer-label {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.timer-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  min-width: 60px;
  backdrop-filter: blur(5px);
}

.timer-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffd700;
  line-height: 1;
}

.timer-label-small {
  font-size: 0.7rem;
  opacity: 0.8;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timer-separator {
  font-size: 2rem;
  font-weight: 700;
  opacity: 0.6;
}

/* CTA Section */
.countdown-cta {
  text-align: center;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.btn-book-now {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 800;
  background: #ffd700;
  color: #333;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.btn-book-now:hover {
  background: #ffed4e;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(255, 215, 0, 0.7);
}

.countdown-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.95;
}

.guarantee-icon {
  font-size: 1.2rem;
  color: #4caf50;
}

/* Social Proof */
.countdown-social-proof {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.proof-icon {
  font-size: 1.2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .countdown-widget {
    padding: 1.5rem;
  }

  .countdown-header {
    flex-direction: column;
    text-align: center;
  }

  .countdown-title h3 {
    font-size: 1.3rem;
  }

  .slots-indicator {
    flex-direction: column;
    text-align: center;
  }

  .slots-visual {
    justify-content: center;
  }

  .timer-display {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .timer-unit {
    min-width: 60px;
    padding: 0.5rem 0.75rem;
  }

  .timer-value {
    font-size: 1.5rem;
  }

  .timer-separator {
    font-size: 1.5rem;
  }

  .btn-book-now {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .countdown-social-proof {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Print Styles */
@media print {
  .countdown-widget {
    display: none;
  }
}
