/* 공지사항 팝업 전용 CSS */

/* 기본 설정 */
.notice-popup-page {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: transparent;
    overflow: hidden;
}

/* 팝업 컨테이너 */
.notice-popup-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

/* 배경 이미지와 오버레이 */
.notice-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/sub-visual-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.notice-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(3px);
}

/* 팝업 콘텐츠 */
.notice-popup-content {
    position: relative !important;
    z-index: 10 !important;
    width: calc(100vw - 60px) !important;
    height: calc(100vh - 60px) !important;
    max-width: 600px !important;
    max-height: 800px !important;
    background: #fff !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden !important;
    animation: popupSlideIn 0.4s ease-out !important;
    display: flex !important;
    flex-direction: column !important;
}

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

/* 헤더 */
.notice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    flex-shrink: 0;
}

.notice-logo img {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(1);
}

.notice-title h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.notice-close .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.notice-close .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* 본문 */
.notice-body {
    padding: 20px 25px;
    flex: 1;
    overflow-y: auto;
}

.notice-main-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    line-height: 1.4;
}

.notice-content {
    line-height: 1.8;
    color: #444;
}

.notice-content p {
    margin-bottom: 12px;
    text-align: justify;
    font-size: 0.95rem;
}

.notice-content p:last-child {
    margin-bottom: 0;
}

.notice-content strong {
    color: #ff6b35;
    font-weight: 600;
}

/* 스크롤바 스타일링 */
.notice-body::-webkit-scrollbar {
    width: 6px;
}

.notice-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.notice-body::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 3px;
}

.notice-body::-webkit-scrollbar-thumb:hover {
    background: #e55a2b;
}

/* 하단 */
.notice-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

/* 체크박스 스타일링 */
.dont-show-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    user-select: none;
}

.dont-show-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    position: relative;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 3px;
    margin-right: 8px;
    transition: all 0.2s ease;
}

.dont-show-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #ff6b35;
    border-color: #ff6b35;
}

.dont-show-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 확인 버튼 */
.confirm-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.confirm-btn:hover {
    background: #e55a2b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .notice-popup-content {
        width: 95vw;
        height: 90vh;
        max-width: 500px;
        max-height: 700px;
    }
    
    .notice-header {
        padding: 15px 20px;
    }
    
    .notice-logo img {
        height: 30px;
    }
    
    .notice-title h2 {
        font-size: 1.2rem;
    }
    
    .notice-body {
        padding: 15px 20px;
    }
    
    .notice-main-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .notice-content p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .notice-footer {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .confirm-btn {
        width: 100%;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .notice-popup-content {
        width: 98vw;
        height: 85vh;
        max-width: 400px;
        max-height: 600px;
        border-radius: 15px;
    }
    
    .notice-main-title {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .notice-content p {
        font-size: 0.85rem;
    }
}