/* 제 1회 FACCTing 투자대회 광고 모달 - 현대적 UI */

.contest-promo-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.contest-promo-overlay.active {
  opacity: 1;
  visibility: visible;
}

.contest-promo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.contest-promo-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  background: linear-gradient(165deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 80px -20px rgba(59, 130, 246, 0.25);
  overflow-y: auto;
  overflow-x: hidden;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contest-promo-overlay.active .contest-promo-container {
  transform: scale(1) translateY(0);
}

.contest-promo-glow {
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 80%;
  background: radial-gradient(
    ellipse at center,
    rgba(59, 130, 246, 0.2) 0%,
    rgba(99, 102, 241, 0.08) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.contest-promo-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, color 0.2s;
}

.contest-promo-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.contest-promo-body {
  position: relative;
  padding: 2.25rem 1.75rem 1.75rem;
  text-align: center;
}

.contest-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(99, 102, 241, 0.2));
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #93c5fd;
}

.contest-promo-badge svg {
  flex-shrink: 0;
}

.contest-promo-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.contest-promo-subtitle {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

/* 안내 정보 블록 */
.contest-promo-info {
  width: 100%;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
}

.contest-promo-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.contest-promo-info-row-last {
  border-bottom: none;
}

.contest-promo-info-label {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

.contest-promo-info-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-align: right;
}

.contest-promo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.contest-promo-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.45);
}

.contest-promo-cta:active {
  transform: translateY(0);
}

/* 버튼 기본/Bootstrap 스타일 리셋 후 필 스타일 적용 */
.contest-promo-body .contest-promo-hide-week,
button.contest-promo-hide-week {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: none;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.contest-promo-body .contest-promo-hide-week:hover,
button.contest-promo-hide-week:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.contest-promo-body .contest-promo-hide-week:focus,
button.contest-promo-hide-week:focus {
  outline: none;
  box-shadow: none;
}

@media (max-width: 480px) {
  .contest-promo-container {
    max-width: 100%;
    border-radius: 20px;
  }

  .contest-promo-body {
    padding: 2rem 1.25rem 1.5rem;
  }

  .contest-promo-title {
    font-size: 1.25rem;
  }

  .contest-promo-info-row {
    padding: 0.65rem 1rem;
    flex-wrap: wrap;
  }

  .contest-promo-info-value {
    width: 100%;
    text-align: left;
    margin-top: 0.15rem;
  }
}
