/* Share Button Widget Styles */
.share-button-widget-container {
    position: relative;
    display: inline-block;
}

.share-button-widget-btn {
    background-color: #0073aa;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.share-button-widget-btn:hover {
    background-color: #005a87;
}

.share-button-widget-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Modal Styles */
.share-button-widget-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s;
}

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

.share-button-widget-modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 32px;
    border: none;
    border-radius: 12px;
    width: 90%;
    max-width: 650px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.share-button-widget-close {
    color: #6c757d;
    float: right;
    font-size: 28px;
    font-weight: 300;
    position: absolute;
    right: 16px;
    top: 16px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.share-button-widget-close:hover,
.share-button-widget-close:focus {
    color: #212529;
    background-color: #f8f9fa;
}

.share-button-widget-modal-content h3 {
    margin-top: 0;
    margin-bottom: 24px;
    color: #212529;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

/* Preview Card Styles */
.share-button-widget-preview {
    display: block;
    margin-bottom: 24px;
    padding: 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
}

.share-button-widget-preview-image {
    display: none; /* Hide image in this design */
}

.share-button-widget-preview-content {
    flex: 1;
    min-width: 0;
}

.share-button-widget-preview-title {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    line-height: 1.3;
}

.share-button-widget-preview-description {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
    font-weight: 400;
}

/* Social Sharing Buttons */
.share-button-widget-social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
    padding: 24px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.share-button-widget-modal-content .share-button-widget-social-buttons .share-button-widget-social-btn,
.share-button-widget-container .share-button-widget-social-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 20px !important;
    border: 1px solid #596363 !important;
    border-radius: 50px !important;
    background-color: #ffffff !important;
    color: #414D4D !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    flex: 1 !important;
    min-width: 0 !important;
    justify-content: center !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.share-button-widget-modal-content .share-button-widget-social-buttons .share-button-widget-social-btn:hover,
.share-button-widget-container .share-button-widget-social-btn:hover {
    background-color: #f8f9fa !important;
    border-color: #adb5bd !important;
    transform: none !important;
    box-shadow: none !important;
}

.share-button-widget-modal-content .share-button-widget-social-buttons .share-button-widget-social-btn:active,
.share-button-widget-container .share-button-widget-social-btn:active {
    transform: none !important;
    box-shadow: none !important;
}

.share-button-widget-social-btn svg {
    flex-shrink: 0;
}

.share-button-widget-social-btn span {
    white-space: nowrap;
}

/* Platform-specific colors on hover */
.share-button-widget-modal-content .share-button-widget-share-email:hover,
.share-button-widget-container .share-button-widget-share-email:hover {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #ffffff !important;
}

.share-button-widget-modal-content .share-button-widget-share-linkedin:hover,
.share-button-widget-container .share-button-widget-share-linkedin:hover {
    background-color: #0077b5 !important;
    border-color: #0077b5 !important;
    color: #ffffff !important;
}

.share-button-widget-modal-content .share-button-widget-share-twitter:hover,
.share-button-widget-container .share-button-widget-share-twitter:hover {
    background-color: #1da1f2 !important;
    border-color: #1da1f2 !important;
    color: #ffffff !important;
}

.share-button-widget-modal-content .share-button-widget-share-facebook:hover,
.share-button-widget-container .share-button-widget-share-facebook:hover {
    background-color: #1877f2 !important;
    border-color: #1877f2 !important;
    color: #ffffff !important;
}

.share-button-widget-modal-content .share-button-widget-share-native:hover,
.share-button-widget-container .share-button-widget-share-native:hover {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #ffffff !important;
}

.share-button-widget-url-container {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
}

.share-button-widget-url-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    background-color: #ffffff;
    color: #212529;
    word-break: break-all;
    font-family: inherit;
}

.share-button-widget-url-input:focus {
    outline: none;
    border-color: #0073aa;
    background-color: #fff;
}

.share-button-widget-modal-content .share-button-widget-copy-btn,
.share-button-widget-container .share-button-widget-copy-btn {
    background-color: #1877f2 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border-radius: 50px !important;
    transition: background-color 0.2s ease !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.share-button-widget-modal-content .share-button-widget-copy-btn:hover,
.share-button-widget-container .share-button-widget-copy-btn:hover {
    background-color: #166fe5 !important;
}

.share-button-widget-modal-content .share-button-widget-copy-btn:active,
.share-button-widget-container .share-button-widget-copy-btn:active {
    transform: none !important;
    background-color: #1460cc !important;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .share-button-widget-modal-content {
        width: 95%;
        margin: 20% auto;
        padding: 20px;
    }
    
    .share-button-widget-preview {
        flex-direction: column;
        gap: 12px;
    }
    
    .share-button-widget-preview-image {
        width: 100%;
        height: 180px;
    }
    
    .share-button-widget-preview-title {
        font-size: 16px;
    }
    
    .share-button-widget-preview-description {
        font-size: 13px;
    }
    
    .share-button-widget-social-buttons {
        flex-direction: column;
    }
    
    .share-button-widget-modal-content .share-button-widget-social-btn,
    .share-button-widget-container .share-button-widget-social-btn {
        width: 100% !important;
        min-width: auto !important;
    }
    
    .share-button-widget-url-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .share-button-widget-copy-btn {
        width: 100%;
    }
}

