/* Social Share Popup Styles */
.social-share-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-share-modal {
    background: #032450;
    border-radius: 12px;
    padding: 0;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.social-share-header {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.social-share-header h3 {
    color: white;
    margin: 0;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 1px;
}

.social-share-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
    border: 1px solid;
    border-color: #ffffff54;
}

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

.social-share-content {
    padding: 25px 0px;
    background: #ffffff;
}

.social-share-content p {
    color: #032450;
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

.social-share-buttons {
    display: flex;
    justify-content: left;
    gap: 18px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    color: white;
    position: relative;
    overflow: hidden;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.share-btn:hover::before {
    transform: scale(1);
}

.share-btn svg {
    width: 18px;
    height: 22px;
    position: relative;
    z-index: 1;
}

.share-btn.facebook {
    background-color: #032450;
}

.share-btn.linkedin {
    background-color: #032450;
}

.share-btn.whatsapp {
    background-color: #032450;
}

.share-btn.twitter {
    background-color: #032450;
}

.share-btn.email {
    background-color: #032450;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.share-url-section {
    display: flex;
    gap: 10px;
    align-items: center;
}

#share-url {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgb(102 101 101 / 20%);
    border-radius: 8px;
    background-color: rgb(255 255 255 / 0%);
    color: #6b6969;
    font-size: 14px;
}

#share-url::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#share-url:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.15);
}

#copy-url-btn {
    padding: 12px 20px;
    background-color: rgb(3 45 105);
    border: 1px solid rgb(3 36 80);
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

#copy-url-btn:hover {
    background-color: rgb(3 36 80 / 89%);
    transform: translateY(-1px);
    border-color: rgb(3 36 80 / 89%);
}

#copy-url-btn:active {
    transform: translateY(0);
}

/* Button styles for the trigger */
.social-share-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

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

.social-share-btn:active {
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 480px) {
    .social-share-modal {
        width: 95%;
        margin: 20px;
    }
    
    .social-share-buttons {
        gap: 10px;
    }
    
    .share-btn {
        width: 45px;
        height: 45px;
    }
    
    .share-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .share-url-section {
        flex-direction: column;
        gap: 15px;
    }
    
    #copy-url-btn {
        width: 100%;
    }
}

.social-share-content p {
    padding: 0px 25px;
}

.social-share-buttons{
    padding-left: 25px;
}

.share-url-section {
    padding-left: 25px;
    padding-right: 25px;
}

.social-share-modal hr {
    padding-bottom: 22px;
}

/* Success animation for copy button */
@keyframes copySuccess {
    0% {
        background-color: rgba(255, 255, 255, 0.2);
    }
    50% {
        background-color: #10b981;
    }
    100% {
        background-color: rgba(255, 255, 255, 0.2);
    }
}

.copy-success {
    animation: copySuccess 0.6s ease;
}