/* 두드림 팝업 프론트엔드 스타일 */

/* 오버레이 */
.ddpopup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

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

/* 팝업 컨테이너 */
.ddpopup-container {
    position: relative;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.ddpopup-overlay.ddpopup-show .ddpopup-container {
    transform: scale(1);
}

/* 닫기 버튼 */
.ddpopup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: none !important;
    background-color: transparent !important;
    color: #333;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: transform 0.3s ease;
    padding: 0;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.ddpopup-close:hover,
.ddpopup-close:focus,
.ddpopup-close:active {
    background: none !important;
    background-color: transparent !important;
    box-shadow: none;
    transform: rotate(90deg);
}

.ddpopup-close span {
    display: block;
    line-height: 1;
    margin-top: -3px;
}

/* 컨텐츠 영역 */
.ddpopup-content {
    position: relative;
    width: 100%;
}

/* 단일 이미지 */
.ddpopup-single-image {
    width: 100%;
    position: relative;
}

.ddpopup-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 슬라이더 */
.ddpopup-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.ddpopup-slides {
    position: relative;
    width: 100%;
}

.ddpopup-slide {
    display: none;
    width: 100%;
    position: relative;
}

.ddpopup-slide.ddpopup-active {
    display: block;
}

.ddpopup-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* 슬라이더 네비게이션 */
.ddpopup-prev,
.ddpopup-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.3s ease;
    border-radius: 50%;
}

.ddpopup-prev:hover,
.ddpopup-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.ddpopup-prev {
    left: 15px;
}

.ddpopup-next {
    right: 15px;
}

.ddpopup-prev span,
.ddpopup-next span {
    display: block;
    line-height: 1;
    margin-top: -3px;
}

/* 슬라이더 dots */
.ddpopup-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.ddpopup-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.ddpopup-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.ddpopup-dot.ddpopup-active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

/* 푸터 */
.ddpopup-footer {
    padding: 0;
    padding-top: 9px;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ddpopup-hide-today-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    padding: 0;
    transition: color 0.2s ease;
}

.ddpopup-hide-today-btn:hover {
    color: #000;
}

/* 애니메이션 */
@keyframes ddpopup-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes ddpopup-scale-in {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 반응형 */
@media (max-width: 768px) {
    .ddpopup-overlay {
        padding: 10px;
    }
    
    .ddpopup-container {
        max-width: 95%;
    }
    
    .ddpopup-prev,
    .ddpopup-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .ddpopup-prev {
        left: 10px;
    }
    
    .ddpopup-next {
        right: 10px;
    }
    
    .ddpopup-close {
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
    
    .ddpopup-footer {
        padding-top: 9px;
    }
    
    .ddpopup-hide-today-btn {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .ddpopup-container {
        max-width: 100%;
    }
    
    .ddpopup-prev,
    .ddpopup-next {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .ddpopup-dots {
        bottom: 10px;
        gap: 8px;
    }
    
    .ddpopup-dot {
        width: 10px;
        height: 10px;
    }
}
