/* 완료 레이어 팝업 */
.layer-complete {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.complete-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
}

.complete-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 550px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.complete-content {
    padding: 40px 30px;
    text-align: center;
}

.complete-icon {
    font-size: 4em;
    margin-bottom: 15px;
    animation: iconBounce 0.6s ease-out;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.complete-title {
    font-size: 1.8em;
    font-weight: 700;
    color: #1ac7f5;
    margin-bottom: 10px;
}

.complete-subtitle {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
}

.complete-message {
    background-color: #f9fcfe;
    padding: 25px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    line-height: 1.7;
}

.complete-message p {
    margin-bottom: 15px;
    color: #444;
    font-size: 0.95em;
}

.complete-message p:last-child {
    margin-bottom: 0;
}

.complete-message strong {
    color: #1ac7f5;
    font-weight: 600;
}

.complete-note {
    font-size: 0.9em !important;
    color: #666 !important;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.complete-thanks {
    font-size: 1.05em !important;
    font-weight: 600;
    color: #0BC8BA !important;
    margin-top: 15px !important;
}

.btn-complete-confirm {
    width: 100%;
    max-width: 200px;
    height: 50px;
    background: linear-gradient(135deg, #1ac7f5 0%, #0BC8BA 100%);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(26, 199, 245, 0.3);
    transition: all 0.3s ease;
}

.btn-complete-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 199, 245, 0.4);
}

.btn-complete-confirm:active {
    transform: translateY(0);
}

/* 반응형 - 모바일 */
@media screen and (max-width: 768px) {
    .complete-box {
        width: 95%;
        max-width: none;
    }
    
    .complete-content {
        padding: 30px 20px;
    }
    
    .complete-icon {
        font-size: 3em;
    }
    
    .complete-title {
        font-size: 1.5em;
    }
    
    .complete-subtitle {
        font-size: 1em;
    }
    
    .complete-message {
        padding: 20px 15px;
    }
    
    .complete-message p {
        font-size: 0.9em;
    }
}



/* 챌린지 종료 레이어 팝업 */
.layer-ended {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.ended-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
}

.ended-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 550px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.4s ease-out;
}

.ended-content {
    padding: 40px 30px;
    text-align: center;
}

.ended-icon {
    font-size: 4em;
    margin-bottom: 15px;
    animation: iconBounce 0.6s ease-out;
}

.ended-title {
    font-size: 1.8em;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 25px;
    line-height: 1.4;
}

.ended-message {
    background-color: #fff5f5;
    padding: 25px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    line-height: 1.8;
}

.ended-message p {
    margin-bottom: 0;
    color: #555;
    font-size: 1em;
    font-weight: 500;
}

.btn-ended-confirm {
    width: 100%;
    max-width: 200px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.btn-ended-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn-ended-confirm:active {
    transform: translateY(0);
}

/* 반응형 - 모바일 (챌린지 종료 레이어만) */
@media screen and (max-width: 768px) {
    .ended-box {
        width: 95%;
        max-width: none;
    }
    
    .ended-content {
        padding: 30px 20px;
    }
    
    .ended-icon {
        font-size: 3em;
    }
    
    .ended-title {
        font-size: 1.5em;
    }
    
    .ended-message {
        padding: 20px 15px;
    }
    
    .ended-message p {
        font-size: 0.9em;
    }
}
