/* 팝업 오버레이 */
.popup_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-index-4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.overlay_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* 팝업 컨테이너 - PC/태블릿 기본 */
.popup_container {
    position: relative;
    width: 500px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: var(--z-index-5);
    overflow: hidden;
    transform: translateZ(0);
}

/* 전체 컨텐츠 래퍼 */
.content_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* 헤더 섹션 - PC/태블릿 */
.header_section {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding: 32px 20px 0;
    width: 100%;
}

.header_content {
    width: 100%;
    background-color: #ffffff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 팝업 제목 - PC/태블릿 */
.popup_title {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 28px;
    color: #1d2939;
    text-align: center;
    margin: 0;
    width: 254px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 메인 컨텐츠 섹션 */
.main_content_section {
    width: 100%;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

/* 메인 컨텐츠 - PC/태블릿 */
.main_content {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #1d2939;
    text-align: center;
    white-space: pre-line;
    width: 460px;
}

.schedule_section {
    width: 460px;
}

.schedule_title {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #1d2939;
    text-align: center;
    margin-bottom: 0;
}

.schedule_item {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #1d2939;
    text-align: center;
    margin-bottom: 0;
}

.changes_section {
    width: 460px;
}

.changes_title {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #1d2939;
    text-align: center;
    margin-bottom: 0;
}

.changes_item {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #1d2939;
    text-align: center;
    margin-bottom: 0;
}

.footer_text {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #1d2939;
    text-align: center;
    margin-bottom: 0;
    width: 460px;
}

/* 이용약관 전문 보기 링크 - PC/태블릿 */
.terms_link {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    color: #00758d;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s ease;
    width: 460px;
}

.terms_link:hover {
    opacity: 0.8;
}

/* 하단 섹션 - PC/태블릿 */
.bottom_section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 20px 12px;
    margin-top: 32px;
    gap: 4px;
}

/* 일주일간 보지 않기 버튼 */
.hide_week_button {
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: normal;
    color: #828a93;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    text-decoration-style: solid;
    text-underline-position: from-font;
    transition: opacity 0.2s ease;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hide_week_button:hover {
    opacity: 0.8;
}

/* 버튼 컨테이너 */
.button_container {
    width: 100%;
    overflow: hidden;
    padding: 0;
}

/* 확인 버튼 */
.confirm_button {
    width: 100%;
    height: 48px;
    background-color: #00c5c5;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    font-family: 'Pretendard', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 26px;
    color: #ffffff;
    text-align: center;
}

.confirm_button:hover {
    background-color: #00b3b3;
}

.confirm_button:active {
    transform: scale(0.98);
}

/* 애니메이션 */
.popup-fade-enter-active,
.popup-fade-leave-active {
    transition: all 0.3s ease;
}

.popup-fade-enter-from,
.popup-fade-leave-to {
    opacity: 0;
}

.popup-fade-enter-from .popup_container,
.popup-fade-leave-to .popup_container {
    transform: scale(0.9) translateY(-20px);
}

/* 모바일 반응형 (767px 이하) */
@media (max-width: 767px) {
    .popup_container {
        width: 335px;
        max-width: calc(100vw - 40px);
        height: 462px;
    }

    .header_section {
        gap: 20px;
        padding: 32px 20px 0;
    }

    .header_content {
        width: 295px;
        justify-content: center;
    }

    .popup_title {
        font-size: 18px;
        line-height: 26px;
        width: 295px;
    }

    .main_content_section {
        gap: 16px;
    }

    .main_content {
        font-size: 14px;
        line-height: 19px;
        width: 100%;
        white-space: pre-line;
    }

    .schedule_section {
        width: 100%;
    }

    .schedule_title {
        font-size: 14px;
        line-height: 19px;
    }

    .schedule_item {
        font-size: 14px;
        line-height: 19px;
    }

    .changes_section {
        width: 100%;
    }

    .changes_title {
        font-size: 14px;
        line-height: 19px;
    }

    .changes_item {
        font-size: 14px;
        line-height: 19px;
    }

    .footer_text {
        font-size: 14px;
        line-height: 19px;
        width: 100%;
    }

    .terms_link {
        font-size: 14px;
        line-height: 19px;
        width: 100%;
    }

    .bottom_section {
        width: 100%;
        padding: 0 20px 8px;
        margin-top: auto;
    }

    .confirm_button {
        height: 48px;
        border-radius: 8px;
        font-size: 16px;
        line-height: 1.3;
        font-weight: 600;
    }

    .hide_week_button {
        font-size: 12px;
        height: 40px;
    }
}

/* 웹앱 지원 */
@media (display-mode: standalone) {
    .popup_container {
        margin-top: env(safe-area-inset-top, 0);
    }
}

/* 접근성 */
@media (prefers-reduced-motion: reduce) {
    .popup-fade-enter-active,
    .popup-fade-leave-active,
    .confirm_button,
    .terms_link,
    .hide_week_button {
        transition: none;
    }
}

/* 다크모드 지원 */
@media (prefers-color-scheme: dark) {
    .overlay_bg {
        background-color: rgba(0, 0, 0, 0.7);
    }
}
