/**
 * PTGates Platform - 공통 팝업(Tip) 스타일
 * 
 * 모든 팝업 창에 적용되는 공통 CSS
 */

/* 팝업 모달 컨테이너 */
.ptg-tip-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.ptg-tip-modal.ptg-tip-show {
    opacity: 1;
    pointer-events: auto;
}

/* 배경 오버레이 */
.ptg-tip-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* 팝업 내용 */
.ptg-tip-content {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition: transform 0.2s ease;
    z-index: 1000001;
}

.ptg-tip-modal.ptg-tip-show .ptg-tip-content {
    transform: scale(1);
}

/* 팝업 헤더 */
.ptg-tip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 1;
    border-radius: 8px 8px 0 0;
}

.ptg-tip-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.ptg-tip-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}

.ptg-tip-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.ptg-tip-close:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* 팝업 본문 */
.ptg-tip-body {
    padding: 24px;
    color: #374151;
    line-height: 1.6;
}

/* 반응형 */
@media (max-width: 768px) {
    .ptg-tip-modal {
        padding: 10px;
    }

    .ptg-tip-content {
        max-height: 95vh;
    }

    .ptg-tip-header {
        padding: 16px 20px;
    }

    .ptg-tip-title {
        font-size: 18px;
    }

    .ptg-tip-body {
        padding: 20px;
    }
}