/* RPME Share Popup Styles */

.rpme-share-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.rpme-share-overlay.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.2s ease;
}

.rpme-share-social button:hover {
    background-color: transparent;
}

.rpme-share-close:hover {
    background-color: transparent;
}

.rpme-copy-btn {
    color: #333333;
}

.rpme-copy-btn:hover {
    background-color: transparent;
    color: #333333;
}

.rpme-share-dialog {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 50;
    transform: translate(-50%, -50%) scale(0.95);
    max-width: 343px;
    width: calc(100% - 32px);
    background: white;
    border-radius: 16px;
    padding: 16px 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.rpme-share-overlay.active .rpme-share-dialog {
    transform: translate(-50%, -50%) scale(1);
    animation: slideInZoom 0.2s ease;
}

@media (min-width: 640px) {
    .rpme-share-dialog {
        min-width: 664px;
        max-width: 664px;
    }
}

.rpme-share-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.rpme-share-header h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    color: #1F1F1F;
    margin: 0;
}

@media (min-width: 768px) {
    .rpme-share-header h2 {
        font-size: 20px;
    }
}

.rpme-share-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.rpme-share-close:hover {
    opacity: 1;
}

.rpme-share-close svg {
    width: 24px;
    height: 24px;
    color: #585D69;
}

.rpme-share-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rpme-share-body > p {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #585D69;
    margin: 0 0 8px 0;
}

.rpme-share-social {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
}

.rpme-share-social button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.rpme-share-social button:hover {
    transform: scale(1.1);
}

.rpme-share-social button svg {
    width: 40px;
    height: 40px;
}

.rpme-share-copy {
    position: relative;
    border: 1px solid #EEF1F5;
    border-radius: 12px;
    padding: 12px 56px 12px 16px;
    background: #FAFBFC;
}

.rpme-share-copy input {
    width: 100%;
    border: none;
    background: transparent;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #1F1F1F;
    outline: none;
    word-break: break-all;
}

.rpme-copy-btn {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.rpme-copy-btn:hover {
    opacity: 0.7;
}

.rpme-copy-btn i {
    font-size: 18px;
    color: #585D69;
}

/* Toast notification */
.rpme-share-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1F1F1F;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    z-index: 60;
    opacity: 0;
    transition: all 0.3s ease;
}

.rpme-share-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInZoom {
    from {
        transform: translate(-50%, -48%) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}
