@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Roboto:wght@400;500&family=Noto+Serif:wght@400;700&family=Noto+Sans:wght@400;500&display=swap');

.ring-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 94%);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: auto;
}

.ring-modal.active {
    display: flex;
    animation: modalFadeIn 0.4s ease forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ring-modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-in-out;
    font-family: 'Noto Serif', 'Playfair Display', serif;
    z-index: 1001;
}

.ring-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/wp-content/themes/halimmovies-child/assets/image/bg-ring-info.jpg') no-repeat center center;
    background-size: cover;
    filter: blur(1px);
    z-index: -1;
    border-radius: 20px;
    overflow: hidden;
}

.ring-modal-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    border-radius: 20px;
    overflow: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ring-image-container {
    position: relative;
    margin-bottom: 25px;
    z-index: 1;
}

.ring-image-wrapper {
    width: 200px;
    height: 200px;
    background: url('/wp-content/themes/halimmovies-child/assets/image/bg-ring.png') no-repeat center center;
    background-size: contain;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    position: relative;
}

.ring-image-wrapper::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: subtlePulse 3s infinite alternate;
}

@keyframes subtlePulse {
    0% { opacity: 0.4; transform: scale(1); }
    100% { opacity: 0.7; transform: scale(1.05); }
}

.ring-modal-image {
    cursor: pointer;
    width: 100px;
    height: 100px;
    margin-right: 15px;
    object-fit: contain;
    border-radius: 50%;
    padding: 5px;
    margin-bottom: 45px;
    background: transparent;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.ring-modal-image:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 10px rgba(255, 105, 180, 0.5));
}

.ring-bubble {
    display: none;
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 182, 193, 0.9);
    color: #333;
    font-family: 'Noto Sans', 'Roboto', sans-serif;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    white-space: nowrap;
    animation: bubbleAppear 0.3s ease forwards;
}

.ring-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: rgba(255, 182, 193, 0.9) transparent transparent transparent;
}

@keyframes bubbleAppear {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.user-info-section {
    margin-top: 20px;
    position: relative;
    z-index: 1;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.user-avatars-couple {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
    justify-content: center;
}

.avatar-left-couple,
.avatar-right-couple {
    flex: 1;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-frame-wrapper-couple {
    display: inline-block;
    position: relative;
    width: 90px;
    height: 90px;
}

.avatar-container-couple {
    width: 100%;
    height: 100%;
}

.user-avatar-couple {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-couple:hover {
    transform: scale(1.05);
    border-color: #ff1493;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.7);
}

.user-name-rings {
    font-size: 14px;
    margin-top: 20px;
    max-width: 100%;
    word-wrap: break-word;
    text-align: center;
    line-height: 1.3;
    padding: 0 5px;
    box-sizing: border-box;
    color: #333;
    font-family: 'Noto Sans', 'Roboto', sans-serif;
    font-weight: 500;
}

.couple-info-section {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 182, 193, 0.3);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.couple-name {
    font-size: 18px;
    font-weight: 700;
    color: #ff69b4;
    margin-bottom: 10px;
    font-family: 'Noto Serif', 'Playfair Display', serif;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.couple-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff69b4, transparent);
}

.couple-info {
    font-size: 14px;
    color: #333;
    font-family: 'Noto Sans', 'Roboto', sans-serif;
    line-height: 1.6;
    max-height: 100px;
    overflow-y: auto;
    padding: 5px 0;
    white-space: pre-wrap;
    text-align: left;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 105, 180, 0.5) rgba(255, 255, 255, 0.3);
}

.couple-info::-webkit-scrollbar {
    width: 5px;
}

.couple-info::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.couple-info::-webkit-scrollbar-thumb {
    background-color: rgba(255, 105, 180, 0.5);
    border-radius: 3px;
}

.partnership-details {
    background: rgba(255, 182, 193, 0.3);
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 15px;
    position: relative;
    z-index: 1;
}

.partnership-time {
    font-size: 16px;
    color: #ff69b4;
    font-family: 'Noto Serif', 'Playfair Display', serif;
    font-style: italic;
    margin-bottom: 12px;
}

.partnership-time i {
    color: #ff1493;
    margin-right: 8px;
}

.partnership-order {
    font-size: 14px;
    color: #ff69b4;
    font-family: 'Noto Sans', 'Roboto', sans-serif;
    font-weight: 500;
}

.partnership-order i {
    color: #ff1493;
    margin-right: 8px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: #ff1493;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.close-modal:hover {
    background: #ffd700;
    transform: rotate(90deg);
}

@media (max-width: 480px) {
    .ring-modal-content {
        padding: 20px;
        max-width: 350px;
    }
    .ring-modal-content::before {
        border-radius: 15px;
    }
    .ring-image-wrapper {
        width: 180px;
        height: 180px;
    }
    .ring-modal-image {
        width: 90px;
        height: 90px;
    }
    .avatar-frame-wrapper-couple {
        width: 70px;
        height: 70px;
    }
    .user-avatar-couple {
        width: 70px;
        height: 70px;
    }
    .user-name-rings {
        font-size: 13px !important;
        margin-top: 15px;
    }
    .couple-info {
        max-height: 80px;
        font-size: 13px;
    }
    .partnership-time {
        font-size: 14px;
    }
    .partnership-time i {
        margin-right: 5px;
    }
    .partnership-order {
        font-size: 12px;
    }
    .partnership-order i {
        margin-right: 5px;
    }
    .ring-bubble {
        font-size: 14px;
        padding: 6px 10px;
        top: -50px;
    }
    .ring-bubble::after {
        border-width: 8px 8px 0;
        bottom: -8px;
    }
    .user-info-section,
    .couple-info-section,
    .partnership-details {
        padding: 12px;
    }
}