/* 팝업 레이어 스타일 */
#popupContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
}

.popup-layer {
    position: fixed;
    background: transparent;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    padding: 0;
    max-width: 90%;
    width: auto;
    max-height: 90vh;
    overflow: visible;
    pointer-events: auto;
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-header {
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.popup-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.popup-category {
    display: none; /* 카테고리는 숨김 */
}

.popup-close {
    background: rgba(255,255,255,0.3);
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
    padding: 0;
    margin: 0;
}

.popup-close:hover {
    background: rgba(255,255,255,0.5);
    border-color: rgba(255,255,255,0.8);
    transform: scale(1.1);
}

.popup-body {
    padding: 0;
    max-height: calc(90vh - 140px);
    overflow-y: auto;
    line-height: 1.6;
    color: #333;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.popup-body p {
    margin: 0;
    padding: 0;
}

.popup-body pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    margin: 0;
    padding: 0;
}

.popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    pointer-events: auto;
}

/* 오늘 하루 보지 않기 체크박스 */
.popup-footer {
    padding: 15px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border-radius: 0 0 10px 10px;
    position: relative;
    z-index: 10;
}

.popup-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    transition: all 0.2s;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.popup-checkbox:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.popup-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

