/* popup.css: 팝업, 모달, 상세보기 등 */

#detailPopup {
    position: fixed;
    z-index: 2002 !important; /* 일반적인 팝업 레벨 */
    display: none;
    max-width: 400px;
    min-width: 320px;
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
}

#detailPopup.animate-in {
    transform: scale(1) translateY(0);
    opacity: 1;
}

#detailPopup.animate-out {
    transform: scale(0.95) translateY(-10px);
    opacity: 0;
}

/* 모던 팝업 컨테이너 */
.detail-popup-modern {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: detail-popup-fade-in 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes detail-popup-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 닫기 버튼 - 더 정제된 스타일 */
.close-btn-modern {
    position: absolute;
    top: 20px; /* 위치 조정 */
    right: 20px; /* 위치 조정 */
    z-index: 10;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.close-btn-modern:hover {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    transform: scale(1.1) rotate(90deg);
}

/* 헤더 섹션 */
.popup-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 20px 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: transparent;
}

/* 선교사 아바타 */
.missionary-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.missionary-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* 선교사 정보 */
.missionary-info {
    flex: 1;
}

.missionary-name {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 5px;
}

.missionary-location {
    color: #6b7280;
    font-size: 14px;
}

/* 기도 버튼 */
.prayer-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.prayer-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.4);
}

/* 팝업 본문 */
.popup-body {
    padding: 20px;
}

/* 정보 그리드 */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 2px;
}

.info-value {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

/* 기도제목 섹션 */
.prayer-section {
    margin-top: 20px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
}

.prayer-content {
    color: #4a5568;
    line-height: 1.5;
    font-size: 14px;
}

/* 기도 토스트 알림 */
.prayer-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.3);
    z-index: 1001;
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.prayer-toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 20px;
}

.toast-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toast-main {
    font-weight: 600;
    font-size: 14px;
}

.toast-sub {
    font-size: 12px;
    opacity: 0.9;
} 