/* Safety Warnings - Creative Pulsing Alert System */
.safety-warnings-creative {
  position: relative;
  z-index: 100;
}

/* Pulsing Warning Beacon */
.warning-pulse-container {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 101;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.warning-pulse-container:hover {
  transform: scale(1.2) rotate(5deg);
}

.warning-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  border: 3px solid #ff4444;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: warningPulse 2s infinite;
  opacity: 0.7;
}

.warning-pulse-ring.delay-1 {
  animation-delay: 0.5s;
  border-color: #ff6666;
}

.warning-pulse-ring.delay-2 {
  animation-delay: 1s;
  border-color: #ff8888;
}

.warning-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 35px;
  height: 35px;
  background: linear-gradient(45deg, #ff1744, #ff5722, #ff9800);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255, 23, 68, 0.6);
  border: 3px solid white;
  animation: warningGlow 3s ease-in-out infinite;
}

.warning-emoji {
  font-size: 16px;
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.3));
}

.warning-count-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #000;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  border: 2px solid #ff1744;
  animation: badgeBounce 2s infinite;
}

/* Warning Cards Revealer */
.warnings-revealer {
  position: absolute;
  top: 40px;
  right: -20px;
  min-width: 350px;
  max-width: 400px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 
    0 20px 60px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  transform: scale(0.8) translateY(-20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 102;
}

.safety-warnings-creative.warnings-revealed .warnings-revealer {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Individual Warning Cards */
.warning-cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.warning-card {
  position: relative;
  background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
  border-radius: 15px;
  padding: 15px;
  transform: translateX(100px) rotate(5deg);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  overflow: hidden;
}

.safety-warnings-creative.warnings-revealed .warning-card {
  transform: translateX(0) rotate(0deg);
  opacity: 1;
  transition-delay: calc(var(--card-index) * 0.1s);
}

.warning-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(255, 71, 87, 0.4);
}

.warning-card-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.warning-card:hover .warning-card-glow {
  left: 100%;
}

.warning-severity-stripe {
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #ffeb3b 0%, #ff9800 50%, #f44336 100%);
  border-radius: 15px 0 0 15px;
}

.warning-card-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.warning-card-icon {
  font-size: 20px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  animation: iconPulse 2s infinite;
}

.warning-card-text {
  flex: 1;
  color: white;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.warnings-footer {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
}

.warning-tip {
  color: #a0a0a0;
  font-size: 11px;
  font-style: italic;
  margin-bottom: 10px;
}

.clear-all-warnings-btn {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.clear-all-warnings-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

/* Animations */
@keyframes warningPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

@keyframes warningGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.6);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 23, 68, 0.9), 0 0 40px rgba(255, 87, 34, 0.6);
  }
}

@keyframes badgeBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) scale(1);
  }
  40% {
    transform: translateY(-5px) scale(1.1);
  }
  60% {
    transform: translateY(-3px) scale(1.05);
  }
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.warning-icon {
  font-size: 20px;
}

.warning-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--modal-danger);
  font-family: 'Josefin_Bold', Arial, sans-serif;
}

.warning-content {
  color: #744210;
  font-family: 'Josefin_Medium', Arial, sans-serif;
}

.warning-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.warning-item:last-child {
  margin-bottom: 0;
}

.warning-bullet {
  color: var(--modal-danger);
  font-weight: bold;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Severity-based styling */
.warning-high {
  border-color: #dc3545;
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.warning-medium {
  border-color: #ffc107;
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.warning-low {
  border-color: #17a2b8;
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .safety-warnings {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .warning-header h3 {
    font-size: 14px;
  }
  
  .warning-item {
    font-size: 14px;
  }
}
