/* Pulse Widget Styles */

/* Bar Widget */
.pulse-bar {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1f2937;
  color: white;
  padding: 12px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
}

.pulse-bar-top {
  top: 0;
}

.pulse-bar-bottom {
  bottom: 0;
}

.pulse-bar-floating {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 8px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.pulse-bar-full {
  border-radius: 0;
  margin: 0;
}

.pulse-bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pulse-bar-message {
  flex: 1;
  text-align: center;
}

.pulse-bar-cta {
  background: #ef4444;
  color: white;
  padding: 6px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.pulse-bar-cta:hover {
  background: #dc2626;
}

.pulse-bar-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-bar-close:hover {
  opacity: 0.7;
}

/* Timer Widget */
.pulse-timer {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  min-width: 300px;
}

.pulse-timer-headline {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1f2937;
}

.pulse-timer-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 700;
  color: #ef4444;
  margin-bottom: 16px;
}

.pulse-timer-days,
.pulse-timer-hours,
.pulse-timer-minutes,
.pulse-timer-seconds {
  background: #fee2e2;
  padding: 4px 8px;
  border-radius: 4px;
  min-width: 40px;
}

.pulse-timer-cta {
  display: inline-block;
  background: #ef4444;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  margin-top: 12px;
}

.pulse-timer-cta:hover {
  background: #dc2626;
}

.pulse-timer-expired {
  color: #6b7280;
  font-size: 16px;
}

.pulse-urgency {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
  }
}

@keyframes pulse-soft {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.01);
  }
}

@keyframes pulse-medium {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.02);
  }
}

@keyframes pulse-strong {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.03);
  }
}

/* Pulse animations for middle position (combined with translateY) */
@keyframes pulse-soft-middle {
  0%, 100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 0.95;
    transform: translateY(-50%) scale(1.01);
  }
}

@keyframes pulse-medium-middle {
  0%, 100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 0.9;
    transform: translateY(-50%) scale(1.02);
  }
}

@keyframes pulse-strong-middle {
  0%, 100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 0.85;
    transform: translateY(-50%) scale(1.03);
  }
}

/* Transition animations - Fade */
@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fade-in-top {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-bottom {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-middle {
  0% {
    opacity: 0;
    transform: translateY(-50%) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

/* Transition animations - Slide */
@keyframes slide-in-top {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-bottom {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-middle {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) translateY(0);
  }
}

/* Transition animations - Bounce */
@keyframes bounce-in-top {
  0% {
    opacity: 0;
    transform: translateY(-100px);
    animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }
  60% {
    opacity: 1;
    transform: translateY(10px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes bounce-in-bottom {
  0% {
    opacity: 0;
    transform: translateY(100px);
    animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }
  60% {
    opacity: 1;
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes bounce-in-middle {
  0% {
    opacity: 0;
    transform: translateY(-50%) scale(0.3);
    animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }
  60% {
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
  }
  100% {
    transform: translateY(-50%) scale(1);
  }
}

/* Additional slide animations */
@keyframes slide-in-left {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Flip animation */
@keyframes flip-in {
  0% {
    opacity: 0;
    transform: perspective(400px) rotateY(-90deg);
  }
  40% {
    transform: perspective(400px) rotateY(20deg);
  }
  60% {
    transform: perspective(400px) rotateY(-10deg);
  }
  80% {
    transform: perspective(400px) rotateY(5deg);
  }
  100% {
    opacity: 1;
    transform: perspective(400px) rotateY(0deg);
  }
}

/* CTA Widget */
.pulse-cta {
  position: fixed;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.pulse-cta-top {
  top: 20px;
  right: 20px;
}

.pulse-cta-bottom {
  bottom: 20px;
  right: 20px;
}

.pulse-cta-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ef4444;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  transition: all 0.2s;
}

.pulse-cta-button:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.pulse-cta-icon {
  font-size: 20px;
}

.pulse-cta-secondary {
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .pulse-bar-content {
    flex-direction: column;
    gap: 12px;
  }
  
  .pulse-timer {
    min-width: 280px;
    padding: 20px;
  }
  
  .pulse-timer-display {
    font-size: 20px;
  }
  
  .pulse-cta-bottom {
    bottom: 10px;
    right: 10px;
    left: 10px;
  }
  
  .pulse-cta-button {
    width: 100%;
    justify-content: center;
  }
}

