/* Share Modal Overlay */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Share Modal Content */
.share-modal-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 1);
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.share-modal-overlay.active .share-modal-content {
    transform: translateY(0) scale(1);
}

.share-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-modal-close svg {
    width: 24px;
    height: 24px;
}

.share-modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.share-modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2rem;
    text-align: center;
}

.share-modal-options {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* Modifying .share-modal-btn */
.share-modal-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: #444444;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.share-modal-btn:hover {
    color: var(--primary-color);
    transform: translateY(-4px);
}

.share-modal-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.share-modal-btn svg {
    width: 26px;
    height: 26px;
    color: #ffffff;
    z-index: 1;
}

/* Brand Colors for Icons background */
.share-modal-btn.twitter .share-modal-icon-wrapper {
    background: #000000;
}

.share-modal-btn.linkedin .share-modal-icon-wrapper {
    background: #0077B5;
}

.share-modal-btn.facebook .share-modal-icon-wrapper {
    background: #1877F2;
}

.share-modal-btn.copylink .share-modal-icon-wrapper {
    background: #6c757d;
}

.share-modal-btn:hover .share-modal-icon-wrapper {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Copy Link Copied State */
.share-modal-btn.copylink.copied .share-modal-icon-wrapper {
    background: #28a745;
}

@media (max-width: 576px) {
    .share-modal-options {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .share-modal-btn {
        width: 40%;
    }
}