/**
 * Profile Image Popup Styles (Matching Skill Popup Design)
 */

/* Popup Container */
#haven-profile-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none; /* Hidden by default, shown with fadeIn */
    align-items: center;
    justify-content: center;
}
#haven-profile-popup[style*="display: block"] {
  display: flex !important;
}
#haven-profile-popup .haven-popup-content {
    max-width: 650px;
}
/* Overlay */
.haven-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

/* Content */
.haven-popup-content {
    position: relative;
    max-width: 963px;
    width: 90%;
    max-height: 100vh;
    overflow: hidden;
    border: 1px solid #002E51;
    border-radius: 4px;
    background-image: url(/wp-content/themes/buddyboss-theme-child/assets/image/popup.png);
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
}

/* Header (Close Button) */
.haven-popup-header {
    border-bottom: 1px solid #002E51;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.haven-popup-close {
    width: 26px;
    height: 26px;
    border: 1px solid #002E51;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    background-color: transparent;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}

.haven-popup-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Title Section */
.haven-popup-title {
    text-align: center;
    margin-bottom: 20px;
}

.haven-success-icon {
    margin: 0 auto 15px;
    width: 60px;
    height: 60px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.haven-popup-title h2 {
    color: #FFFFFFCC;
    margin: 0;
    letter-spacing: 1px;
    font-family: "PP Right Grotesk", sans-serif;
    font-weight: bold;
    font-size: 24px;
    line-height: 100%;
    text-transform: uppercase;
}

/* Body */
.haven-popup-body {
    padding: 32px;
    color: #ffffff;
    overflow-y: auto !important;
    max-height: calc(80vh - 0px);
    scrollbar-width: thin;
    scrollbar-color: #9EF66A #0a0a0a;
}

.haven-popup-body::-webkit-scrollbar-track {
    background-color: #002E51 !important;
}

.haven-popup-body::-webkit-scrollbar {
    width: 2px !important;
    background-color: yellow !important;
}

.haven-popup-body::-webkit-scrollbar-thumb {
    background-color: #9EF66A !important;
    border-radius: 0;
}

.haven-image-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.haven-profile-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Actions */
.haven-popup-actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

/* Responsive */
@media (max-width: 767px) {
    .haven-popup-content {
        width: 95%;
    }
    
    .haven-popup-body {
        padding: 16px;
    }
    
    .haven-popup-title h2 {
        font-size: 18px;
    }
}

