/* ==========================================================================
   미니멀 카드 스타일 기도 팝업 (시안 A)
   ========================================================================== */

@keyframes minimal-fade-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes minimal-fade-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
}

@keyframes subtle-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.minimal-prayer-popup {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 280px;
    min-height: 100px;
    background: rgba(255,255,255,0.65);
    border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(60, 60, 90, 0.10), 0 1.5px 8px rgba(0,0,0,0.04);
    padding: 18px;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow: hidden;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform-origin: bottom left;
    animation: minimal-fade-in 0.45s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    transition: box-shadow 0.25s, border 0.25s, background 0.25s;
}

/* 꼬리표 (말풍선 꼬리) - 하단 왼쪽 */
.minimal-prayer-popup::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid rgba(255,255,255,0.4);
}

.minimal-prayer-popup::before {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 31px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid rgba(255,255,255,0.85);
    z-index: 1;
}

/* 기도 아이콘 - 카드 중앙 배치 */
.minimal-prayer-popup .prayer-icon {
    position: absolute;
    bottom: 20px;
    right: 24px;
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.15s, filter 0.15s;
    z-index: 10;
}

/* 닫기 버튼 - 맨 오른쪽 배치 */
.minimal-prayer-popup .close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 999;
    font-size: 22px;
    color: #7b8190;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.minimal-prayer-popup .close-button:hover {
    opacity: 1;
}

/* 기도 아이콘 - 카드 중앙 배치 */
.minimal-prayer-popup .profile-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    padding-top: 20px;
    flex-wrap: nowrap;
    overflow: hidden;
    background: transparent !important;
}

.minimal-prayer-popup .profile-image-container {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.minimal-prayer-popup .popup-flag {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: transparent !important;
    display: block;
}

.minimal-prayer-popup .name-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    background: transparent !important;
}

.minimal-prayer-popup .popup-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a2233;
    opacity: 1;
    letter-spacing: -0.01em;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.minimal-prayer-popup .popup-country {
    font-size: 12px;
    color: #3b4252;
    font-weight: 600;
    opacity: 0.95;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* 기도 내용 섹션 */
.minimal-prayer-popup .prayer-content {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(128, 128, 128, 0.15);
    position: relative;
    padding-right: 35px;
    font-size: 13px;
    color: #232a3b;
    font-weight: 500;
    line-height: 1.5;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 3em;
}

.minimal-prayer-popup .prayer-title {
    font-size: 11px;
    font-weight: 600;
    color: #b0b6c3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.minimal-prayer-popup .popup-prayer {
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
    margin: 0;
    text-align: left;
    font-weight: 400;
}

/* 호버 효과 */
.minimal-prayer-popup:hover {
    box-shadow: 0 12px 40px rgba(60, 60, 90, 0.16), 0 2px 12px rgba(0,0,0,0.07);
    border-color: rgba(59,130,246,0.18);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .minimal-prayer-popup {
        width: 260px;
        padding: 16px;
    }
    
    .minimal-prayer-popup .popup-name {
        font-size: 14px;
    }
    
    .minimal-prayer-popup .popup-prayer {
        font-size: 12px;
    }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
    .minimal-prayer-popup {
        background: rgba(31,41,55,0.72);
        border-color: rgba(55,65,81,0.38);
        box-shadow: 0 8px 32px rgba(0,0,0,0.22), 0 1.5px 8px rgba(0,0,0,0.10);
    }
    
    .minimal-prayer-popup::after {
        border-top-color: rgba(55,65,81,0.38);
    }
    
    .minimal-prayer-popup::before {
        border-top-color: rgba(255,255,255,0.85);
    }
    
    .minimal-prayer-popup .popup-name {
        color: #f3f4f6;
    }
    
    .minimal-prayer-popup .popup-country {
        color: #a1a7b7;
    }
    
    .minimal-prayer-popup .popup-prayer {
        color: #e5e7eb;
    }
    
    .minimal-prayer-popup .prayer-title {
        color: #7b8190;
    }
    
    .minimal-prayer-popup .prayer-icon {
        color: #9ca3af;
    }
    
    .minimal-prayer-popup .close-button {
        color: #a1a7b7;
    }
    
    .minimal-prayer-popup .clickable-prayer-icon {
        background: linear-gradient(135deg, #22d3ee 0%, #4ade80 100%);
        color: #fff;
    }
    
    .minimal-prayer-popup .clickable-prayer-icon:hover {
        background: linear-gradient(135deg, #4ade80 0%, #38bdf8 100%);
        transform: scale(1.08);
    }
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
    .minimal-prayer-popup {
        animation: none;
    }
    
    .minimal-prayer-popup .prayer-icon {
        animation: none;
    }
    
    .minimal-prayer-popup:hover {
        transform: none;
    }
}

/* 포커스 상태 */
.minimal-prayer-popup:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* ==========================================================================
   기도손 애니메이션 (실시간 공유 애니메이션) - prayerPopup.css로 이동됨
   ========================================================================== */

/* ==========================================================================
   기도 안내 팝업 (타이틀바 아래) - prayerPopup.css로 이동됨
   ========================================================================== */

/* ==========================================================================
   추가 스타일 (기존 미니멀 팝업 전용)
   ========================================================================== */

/* 프로필 섹션 개선 */
.minimal-prayer-popup .profile-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    padding-top: 24px;
    flex-wrap: nowrap;
    overflow: hidden;
    background: transparent !important;
}

/* 클릭 가능한 기도 아이콘 */
.minimal-prayer-popup .clickable-prayer-icon {
    position: absolute;
    bottom: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    z-index: 10;
}

/* 기도 아이콘 펄스 애니메이션 */
@keyframes prayer-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.minimal-prayer-popup .clickable-prayer-icon:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* 프로필 섹션과 기도 아이콘 간격 조정 */
.minimal-prayer-popup .profile-section,
.minimal-prayer-popup .prayer-content {
    position: relative;
    z-index: 1;
}

/* 임시 디버깅용: 국기/이름/국가명 무조건 보이게 강제 */
.minimal-prayer-popup .profile-section,
.minimal-prayer-popup .profile-image-container,
.minimal-prayer-popup .name-info,
.minimal-prayer-popup .popup-flag,
.minimal-prayer-popup .popup-name,
.minimal-prayer-popup .popup-country {
    display: block !important;
    opacity: 1 !important;
    color: #1a2233 !important;
    z-index: 440 !important;
    background: #fff !important;
} 