/* Earlybird Countdown Section - FOMO Design */

.earlybird-countdown-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.earlybird-countdown-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(255, 68, 68, 0.03) 10px,
      rgba(255, 68, 68, 0.03) 20px
    );
  animation: slideBackground 20s linear infinite;
}

@keyframes slideBackground {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(20px);
  }
}

.earlybird-countdown-container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.urgency-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.warning-icon {
  font-size: 3rem;
  animation: warningPulse 1.5s ease-in-out infinite;
}

@keyframes warningPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px rgba(255, 200, 0, 0.5));
  }
  50% {
    transform: scale(1.2);
    filter: drop-shadow(0 0 15px rgba(255, 200, 0, 0.8));
  }
}

.earlybird-countdown-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  text-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

.discount-highlight {
  margin: 20px 0 30px;
}

.discount-amount {
  font-size: 1.5rem;
  color: #fff;
  margin: 0;
}

.highlight-percent {
  color: #ff4444;
  font-size: 2rem;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(255, 68, 68, 0.7);
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.7);
  }
  50% {
    text-shadow: 0 0 25px rgba(255, 68, 68, 1), 0 0 40px rgba(255, 68, 68, 0.5);
  }
}

.earlybird-countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 40px 0;
}

.earlybird-countdown-timer .countdown-box {
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid #ff4444;
  border-radius: 15px;
  padding: 25px 20px;
  min-width: 120px;
  box-shadow:
    0 0 20px rgba(255, 68, 68, 0.3),
    inset 0 0 20px rgba(255, 68, 68, 0.1);
  transition: all 0.3s ease;
}

.earlybird-countdown-timer .countdown-box:hover {
  transform: translateY(-5px);
  box-shadow:
    0 5px 30px rgba(255, 68, 68, 0.5),
    inset 0 0 30px rgba(255, 68, 68, 0.2);
}

.earlybird-countdown-timer .countdown-box.pulsing {
  animation: boxPulse 1s ease-in-out infinite;
}

@keyframes boxPulse {
  0%, 100% {
    border-color: #ff4444;
    box-shadow:
      0 0 20px rgba(255, 68, 68, 0.3),
      inset 0 0 20px rgba(255, 68, 68, 0.1);
  }
  50% {
    border-color: #ff6666;
    box-shadow:
      0 0 35px rgba(255, 68, 68, 0.6),
      inset 0 0 35px rgba(255, 68, 68, 0.3);
  }
}

.earlybird-countdown-timer .countdown-number {
  display: block;
  font-size: 3.5rem;
  font-weight: 900;
  color: #ff4444;
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 15px rgba(255, 68, 68, 0.5);
}

.earlybird-countdown-timer .countdown-label {
  display: block;
  font-size: 0.9rem;
  color: #ddd;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.earlybird-countdown-timer .countdown-separator {
  font-size: 3rem;
  color: #ff4444;
  font-weight: bold;
  opacity: 0.6;
}

/* Urgent Mode - 24시간 이하 */
.earlybird-countdown-timer.urgent-mode {
  animation: urgentShake 0.5s ease-in-out infinite;
}

@keyframes urgentShake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px);
  }
  75% {
    transform: translateX(2px);
  }
}

.earlybird-countdown-timer.urgent-mode .countdown-box {
  border-color: #ff2222;
  background: rgba(255, 34, 34, 0.15);
}

/* Critical Mode - 1시간 이하 */
.earlybird-countdown-timer.critical-mode .countdown-box {
  border-color: #ff0000;
  background: rgba(255, 0, 0, 0.2);
  animation: criticalBlink 0.5s ease-in-out infinite;
}

@keyframes criticalBlink {
  0%, 100% {
    box-shadow:
      0 0 30px rgba(255, 0, 0, 0.8),
      inset 0 0 30px rgba(255, 0, 0, 0.3);
  }
  50% {
    box-shadow:
      0 0 50px rgba(255, 0, 0, 1),
      inset 0 0 50px rgba(255, 0, 0, 0.5);
  }
}

.countdown-tz {
  font-size: 0.9rem;
  color: #aaa;
  margin: 15px 0 0;
}

.countdown-message {
  margin: 30px auto;
  max-width: 700px;
}

.countdown-warning {
  font-size: 1.3rem;
  color: #ffcc00;
  font-weight: 700;
  margin: 15px 0;
  text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

.countdown-cta {
  font-size: 1.2rem;
  color: #fff;
  margin: 10px 0;
}

.countdown-cta strong {
  color: #ff4444;
  font-size: 1.5rem;
  font-weight: 900;
}

.earlybird-cta-button {
  margin-top: 35px;
}

.btn-urgent {
  position: relative;
  overflow: hidden;
  animation: buttonGlow 2s ease-in-out infinite;
  font-size: 1.2rem;
  padding: 18px 40px;
  box-shadow: 0 5px 25px rgba(255, 68, 68, 0.4);
}

@keyframes buttonGlow {
  0%, 100% {
    box-shadow: 0 5px 25px rgba(255, 68, 68, 0.4);
  }
  50% {
    box-shadow: 0 5px 35px rgba(255, 68, 68, 0.7), 0 0 20px rgba(255, 68, 68, 0.3);
  }
}

.btn-urgent::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: buttonShine 3s linear infinite;
}

@keyframes buttonShine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.btn-urgent:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 35px rgba(255, 68, 68, 0.6);
}

/* Expired States */
.countdown-expired-urgent {
  font-size: 2rem;
  color: #ff4444;
  font-weight: 800;
  padding: 30px;
  background: rgba(255, 68, 68, 0.1);
  border: 3px solid #ff4444;
  border-radius: 15px;
  text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.countdown-expired-message {
  font-size: 1.3rem;
  color: #ffcc00;
  font-weight: 600;
  margin-top: 20px;
}

/* Final Deadline Countdown Section */

.final-deadline-countdown-section {
  background: linear-gradient(135deg, #2d1b1f 0%, #1f1316 50%, #130b0d 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.final-deadline-countdown-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(255, 68, 68, 0.03) 10px,
      rgba(255, 68, 68, 0.03) 20px
    );
  animation: slideBackground 20s linear infinite;
}

.final-deadline-countdown-container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.final-deadline-countdown-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  text-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

.deadline-highlight {
  margin: 20px 0 30px;
}

.deadline-message {
  font-size: 1.5rem;
  color: #fff;
  margin: 0;
}

.highlight-urgent {
  color: #ff4444;
  font-size: 2rem;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(255, 68, 68, 0.7);
  animation: glowPulseRed 2s ease-in-out infinite;
}

@keyframes glowPulseRed {
  0%, 100% {
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.7);
  }
  50% {
    text-shadow: 0 0 25px rgba(255, 68, 68, 1), 0 0 40px rgba(255, 68, 68, 0.5);
  }
}

.final-deadline-countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 40px 0;
}

.final-deadline-countdown-timer .countdown-box {
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid #ff4444;
  border-radius: 15px;
  padding: 25px 20px;
  min-width: 120px;
  box-shadow:
    0 0 20px rgba(255, 68, 68, 0.3),
    inset 0 0 20px rgba(255, 68, 68, 0.1);
  transition: all 0.3s ease;
}

.final-deadline-countdown-timer .countdown-box:hover {
  transform: translateY(-5px);
  box-shadow:
    0 5px 30px rgba(255, 68, 68, 0.5),
    inset 0 0 30px rgba(255, 68, 68, 0.2);
}

.final-deadline-countdown-timer .countdown-box.pulsing {
  animation: boxPulseRed 1s ease-in-out infinite;
}

@keyframes boxPulseRed {
  0%, 100% {
    border-color: #ff4444;
    box-shadow:
      0 0 20px rgba(255, 68, 68, 0.3),
      inset 0 0 20px rgba(255, 68, 68, 0.1);
  }
  50% {
    border-color: #ff6666;
    box-shadow:
      0 0 35px rgba(255, 68, 68, 0.6),
      inset 0 0 35px rgba(255, 68, 68, 0.3);
  }
}

.final-deadline-countdown-timer .countdown-number {
  display: block;
  font-size: 3.5rem;
  font-weight: 900;
  color: #ff4444;
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 15px rgba(255, 68, 68, 0.5);
}

.final-deadline-countdown-timer .countdown-label {
  display: block;
  font-size: 0.9rem;
  color: #ddd;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.final-deadline-countdown-timer .countdown-separator {
  font-size: 3rem;
  color: #ff4444;
  font-weight: bold;
  opacity: 0.6;
}

/* Urgent Mode - 24시간 이하 */
.final-deadline-countdown-timer.urgent-mode {
  animation: urgentShake 0.5s ease-in-out infinite;
}

.final-deadline-countdown-timer.urgent-mode .countdown-box {
  border-color: #ff2222;
  background: rgba(255, 34, 34, 0.15);
}

/* Critical Mode - 1시간 이하 */
.final-deadline-countdown-timer.critical-mode .countdown-box {
  border-color: #ff0000;
  background: rgba(255, 0, 0, 0.2);
  animation: criticalBlinkRed 0.5s ease-in-out infinite;
}

@keyframes criticalBlinkRed {
  0%, 100% {
    box-shadow:
      0 0 30px rgba(255, 68, 68, 0.8),
      inset 0 0 30px rgba(255, 68, 68, 0.3);
  }
  50% {
    box-shadow:
      0 0 50px rgba(255, 68, 68, 1),
      inset 0 0 50px rgba(255, 68, 68, 0.5);
  }
}

.final-deadline-cta-button {
  margin-top: 35px;
}

/* Expired States */
.countdown-expired-final {
  font-size: 2rem;
  color: #ff4444;
  font-weight: 800;
  padding: 30px;
  background: rgba(255, 68, 68, 0.1);
  border: 3px solid #ff4444;
  border-radius: 15px;
  text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .earlybird-countdown-title {
    font-size: 1.8rem;
  }

  .discount-amount {
    font-size: 1.2rem;
  }

  .highlight-percent {
    font-size: 1.6rem;
  }

  .earlybird-countdown-timer {
    gap: 5px;
    flex-wrap: wrap;
  }

  .earlybird-countdown-timer .countdown-box {
    min-width: 80px;
    padding: 15px 10px;
  }

  .earlybird-countdown-timer .countdown-number {
    font-size: 2.5rem;
  }

  .earlybird-countdown-timer .countdown-label {
    font-size: 0.75rem;
  }

  .earlybird-countdown-timer .countdown-separator {
    font-size: 2rem;
  }

  .countdown-warning {
    font-size: 1.1rem;
  }

  .countdown-cta {
    font-size: 1rem;
  }

  .countdown-cta strong {
    font-size: 1.3rem;
  }

  .btn-urgent {
    font-size: 1rem;
    padding: 15px 30px;
  }

  /* Final Deadline Mobile */
  .final-deadline-countdown-title {
    font-size: 1.8rem;
  }

  .deadline-message {
    font-size: 1.2rem;
  }

  .highlight-urgent {
    font-size: 1.6rem;
  }

  .final-deadline-countdown-timer {
    gap: 5px;
    flex-wrap: wrap;
  }

  .final-deadline-countdown-timer .countdown-box {
    min-width: 80px;
    padding: 15px 10px;
  }

  .final-deadline-countdown-timer .countdown-number {
    font-size: 2.5rem;
  }

  .final-deadline-countdown-timer .countdown-label {
    font-size: 0.75rem;
  }

  .final-deadline-countdown-timer .countdown-separator {
    font-size: 2rem;
  }
}
