/* =====================================================
   SeeU Dive Event Popup v1.1
   파일 위치: assets/css/popup.css
   - 홈페이지를 가리지 않는 플로팅 카드형 팝업
===================================================== */

.event-popup[hidden]{display:none!important}

.event-popup{
  position:fixed;
  right:28px;
  bottom:28px;
  z-index:12000;
  width:min(420px,calc(100vw - 40px));
  pointer-events:none;
}

/* 기존 전체 화면 어두운 배경 제거 */
.event-popup__backdrop{
  display:none;
}

.event-popup__panel{
  position:relative;
  width:100%;
  overflow:hidden;
  pointer-events:auto;
  border:1px solid rgba(255,255,255,.78);
  border-radius:24px;
  background:#fff;
  box-shadow:
    0 24px 70px rgba(1,18,31,.24),
    0 8px 24px rgba(1,18,31,.12);
  opacity:0;
  transform:translateY(24px) scale(.97);
  transform-origin:right bottom;
  transition:opacity .32s ease,transform .32s cubic-bezier(.2,.8,.2,1);
}

.event-popup.is-open .event-popup__panel{
  opacity:1;
  transform:translateY(0) scale(1);
}

.event-popup__media-link{
  display:block;
  background:#052b4f;
}

.event-popup__image{
  display:block;
  width:100%;
  max-height:min(66vh,590px);
  object-fit:cover;
}

.event-popup__footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:13px 15px;
  border-top:1px solid var(--line,#dbe7ef);
  background:rgba(255,255,255,.97);
}

.event-popup__today{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#52657a;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  user-select:none;
}

.event-popup__today input{
  width:17px;
  height:17px;
  accent-color:var(--blue,#0f7fbd);
}

.event-popup__close{
  flex:0 0 auto;
  min-width:70px;
  min-height:38px;
  padding:8px 14px;
  border:0;
  border-radius:999px;
  background:var(--navy,#052b4f);
  color:#fff;
  font:inherit;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
  transition:transform .2s ease,background .2s ease;
}

.event-popup__close:hover{
  transform:translateY(-2px);
  background:var(--blue,#0f7fbd);
}

.event-popup__x{
  position:absolute;
  top:12px;
  right:12px;
  z-index:2;
  width:38px;
  height:38px;
  border:1px solid rgba(255,255,255,.62);
  border-radius:50%;
  background:rgba(0,0,0,.34);
  color:#fff;
  font-size:22px;
  line-height:1;
  cursor:pointer;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  box-shadow:0 5px 16px rgba(0,0,0,.18);
  transition:transform .2s ease,background .2s ease;
}

.event-popup__x:hover{
  transform:rotate(4deg) scale(1.05);
  background:rgba(0,0,0,.58);
}

/* 팝업이 열려도 홈페이지 스크롤 가능 */
body.event-popup-lock{
  overflow:auto;
}

@media(max-width:640px){
  .event-popup{
    left:14px;
    right:14px;
    bottom:14px;
    width:auto;
  }

  .event-popup__panel{
    border-radius:20px;
    transform-origin:center bottom;
  }

  .event-popup__image{
    max-height:66vh;
  }

  .event-popup__footer{
    gap:10px;
    padding:12px;
  }

  .event-popup__today{
    font-size:12px;
  }

  .event-popup__close{
    min-width:64px;
    padding-inline:12px;
  }
}

@media(prefers-reduced-motion:reduce){
  .event-popup__panel,
  .event-popup__close,
  .event-popup__x{
    transition:none;
  }
}
