/**
 * 레이어 팝업 컴포넌트 스타일
 * 
 * @created 2026-01-19
 */

.layer-popups {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
}

.layer-popups.has-popups {
    pointer-events: auto;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.layer-popup {
    position: fixed;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    pointer-events: auto;
    max-width: 500px;
}

.layer-popup.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.popup-content {
    line-height: 0;
}

.popup-link {
    display: block;
}

.popup-image {
    width: 100%;
    height: auto;
    display: block;
}

.popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 8px;
}

.popup-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

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

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

.popup-close-btn {
    padding: 8px 20px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.popup-close-btn:hover {
    background: #2d2d44;
}

/* 모바일: 화면 중앙 순차 표시 */
@media (max-width: 768px) {
    .layer-popup {
        width: calc(100vw - 40px) !important;
        max-width: 340px !important;
        left: 50% !important;
        top: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) scale(0.9) !important;
    }
    
    .layer-popup.show {
        transform: translate(-50%, -50%) scale(1) !important;
    }
    
    .popup-footer {
        flex-direction: column;
        gap: 12px;
    }
    
    .popup-options {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .popup-close-btn {
        width: 100%;
    }
}
