/**
 * 팝업 공지 스타일
 *
 * @author TAGO Development Team
 * @date 2025-10-29
 */

/* 팝업 오버레이 - 배경 어둡게 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* 팝업 컨텐츠 컨테이너 */
.popup-content {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    width: 40%;
    max-width: 90%;
    min-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* 팝업 헤더 */
.popup-header {
    background: linear-gradient(to bottom, #4a90e2, #357abd);
    color: white;
    padding: 15px 20px;
    border-bottom: 2px solid #2e6da4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.popup-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.popup-close:hover {
    transform: scale(1.2);
}

.popup-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* 팝업 본문 */
.popup-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #fff;
    min-height: 50vh;
    max-height: 80vh;
    line-height: 1.6;
    font-size: 14px;
    color: #333;
}

/* 팝업 본문 - 배경 이미지가 있는 경우 */
.popup-body-with-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* 팝업 푸터 */
.popup-footer {
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.popup-footer input[type="checkbox"] {
    margin-right: 5px;
    cursor: pointer;
}

.popup-footer .btn-close {
    background-color: #5cb85c;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.popup-footer .btn-close:hover {
    background-color: #4cae4c;
}

.popup-footer .btn-close:active {
    background-color: #449d44;
}

.popup-footer .btn-close:focus-visible,
.popup-footer input[type="checkbox"]:focus-visible {
    outline: 2px solid #357abd;
    outline-offset: 2px;
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
    .popup-content {
        width: 95%;
    }

    .popup-body {
        max-height: 400px;
    }

    .popup-header h3 {
        font-size: 16px;
    }

    .popup-footer {
        flex-direction: column;
        gap: 10px;
    }
}
