/* popup.css - 홈페이지 팝업 모달 스타일 */

/* 오버레이 */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.popup-overlay.active {
    display: flex;
}

/* 모달 컨테이너 */
.popup-modal {
    position: relative;
    background: #eef2f9;
    border-radius: 16px;
    max-width: 520px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 닫기 버튼 */
.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.3);
}

.popup-close::before,
.popup-close::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background: #fff;
}

.popup-close::before {
    transform: rotate(45deg);
}

.popup-close::after {
    transform: rotate(-45deg);
}

/* 팝업 콘텐츠 영역 */
.popup-content {
    padding: 20px 30px;
    text-align: center;
}

.popup-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.popup-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.popup-content p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 8px;
}

.popup-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.popup-content ul li {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}

/* 팝업 이미지 래퍼 */
.popup-image-wrapper {
    position: relative;
}

/* 팝업 메인 이미지 */
.popup-image {
    width: 100%;
    height: auto;
    border-radius: 12px 12px 0 0;
    display: block;
}

/* 이미지 위 클릭 가능 영역 (위치는 inline style로 DB값 적용) */
.popup-image-hotspot {
    position: absolute;
    cursor: pointer;
    z-index: 5;
}

.popup-content img:not(.popup-image) {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* CTA 버튼 */
.popup-cta-btn {
    display: inline-block;
    padding: 14px 36px;
    background: #1a1a4e;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    margin: 16px 0;
}

.popup-cta-btn:hover {
    background: #2d2d6e;
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.popup-cta-btn::after {
    content: ' \203A';
    margin-left: 6px;
}

/* 하단 - 오늘 하루 보지 않기 */
.popup-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.popup-footer label {
    font-size: 13px;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.popup-footer input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
    .popup-modal {
        max-width: 92%;
        border-radius: 12px;
        max-height: 80vh;
    }

    .popup-content {
        padding: 16px 20px;
    }

    .popup-content h2 {
        font-size: 22px;
    }

    .popup-content h3 {
        font-size: 17px;
    }

    .popup-content p,
    .popup-content ul li {
        font-size: 13px;
    }

    .popup-cta-btn {
        padding: 12px 28px;
        font-size: 15px;
    }
}