/* 이벤트 팝업 스타일 */
.event-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  animation: fadeIn 0.3s ease-in-out;
}

.event-popup-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-popup {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  max-width: 360px;
  width: 85%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  animation: slideUp 0.4s ease-out;
}

.event-popup-content {
  padding: 24px 20px;
  text-align: center;
  color: white;
}

.event-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
}

.event-popup-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.event-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 12px;
  box-shadow: 0 3px 12px rgba(245, 87, 108, 0.4);
  animation: pulse 2s infinite;
}

.event-title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 10px;
  line-height: 1.3;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.event-subtitle {
  font-size: 13px;
  margin-bottom: 16px;
  opacity: 0.95;
  font-weight: 500;
}

.event-gift-image {
  width: 140px;
  height: 140px;
  margin: 0 auto 16px;
  background: white;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.event-gift-image::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

.event-gift-icon {
  font-size: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.event-highlight {
  background: rgba(255, 255, 255, 0.2);
  padding: 14px;
  border-radius: 12px;
  margin: 14px 0;
  backdrop-filter: blur(10px);
}

.event-countdown {
  font-size: 28px;
  font-weight: 900;
  color: #FFD700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  margin: 8px 0;
  animation: countPulse 1.5s infinite;
}

.event-features {
  text-align: left;
  margin: 14px 0;
  padding: 0 5px;
}

.event-feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  opacity: 0.95;
}

.event-feature-icon {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  flex-shrink: 0;
  font-size: 10px;
}

.event-cta-button {
  background: white;
  color: #667eea;
  border: none;
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  margin-top: 14px;
  transition: all 0.3s;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.event-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.event-cta-button:active {
  transform: translateY(-1px);
}

.event-footer {
  margin-top: 12px;
  font-size: 10px;
  opacity: 0.8;
  line-height: 1.4;
}

.event-checkbox-wrapper {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.event-checkbox {
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.event-checkbox-label {
  font-size: 11px;
  cursor: pointer;
  opacity: 0.9;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes countPulse {
  0%, 100% {
    transform: scale(1);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  }
  50% {
    transform: scale(1.1);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
  }
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* 모바일 최적화 */
@media (max-width: 640px) {
  .event-popup {
    max-width: 90%;
    border-radius: 12px;
  }
  
  .event-popup-content {
    padding: 20px 16px;
  }
  
  .event-title {
    font-size: 18px;
  }
  
  .event-subtitle {
    font-size: 12px;
  }
  
  .event-gift-image {
    width: 120px;
    height: 120px;
  }
  
  .event-gift-icon {
    font-size: 50px;
  }
  
  .event-countdown {
    font-size: 24px;
  }
  
  .event-cta-button {
    padding: 11px 28px;
    font-size: 13px;
  }
  
  .event-feature-item {
    font-size: 11px;
  }
}

/* 인쇄 시 숨김 */
@media print {
  .event-popup-overlay {
    display: none !important;
  }
}
