/* Social Media Sharing Styles */
.share-links {
    margin: 30px 0 0px 0;
    padding: 25px 0;
    border-top: 1px solid #E9EDF5;
}

.share-links > .row {
    align-items: center;
    --bs-gutter-y: 15px;
}

.share-links-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 30px;
    color: var(--title-color);
    font-family: var(--title-font);
    margin: 0 15px 0 0;
    display: inline-block;
    text-transform: capitalize;
}

.share-links_wrapp {
    display: flex;
    align-items: center;
    gap: 0px;
}

/* Social Media Button Styles */
.share-links .th-social {
    display: inline-block;
}

.share-links .th-social a {
    --icon-size: 42px;
    border-radius: 50%;
    font-size: 16px;
    background-color: #f8f9fa;
    color: var(--title-color);
    transition: all 0.4s ease-in-out;
    margin-right: 8px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.share-links .th-social a:last-child {
    margin-right: 0;
}

.share-links .th-social a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Platform-specific colors */
.share-facebook:hover {
    background-color: #1877f2 !important;
    color: white !important;
    border-color: #1877f2;
}

.share-twitter:hover {
    background-color: #1da1f2 !important;
    color: white !important;
    border-color: #1da1f2;
}

.share-whatsapp:hover {
    background-color: #25d366 !important;
    color: white !important;
    border-color: #25d366;
}

.share-telegram:hover {
    background-color: #0088cc !important;
    color: white !important;
    border-color: #0088cc;
}

.share-email:hover {
    background-color: #ea4335 !important;
    color: white !important;
    border-color: #ea4335;
}

.share-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    color: white !important;
    border-color: #dc2743;
}

.share-linkedin:hover {
    background-color: #0077b5 !important;
    color: white !important;
    border-color: #0077b5;
}

.share-copy:hover {
    background-color: var(--theme-color) !important;
    color: white !important;
    border-color: var(--theme-color);
}

/* Animation effects */
.share-links .th-social a.animated {
    animation: pulse 0.6s ease-in-out;
}

.share-links .th-social a.clicked {
    transform: scale(0.95);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Copy notification styles */
.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    z-index: 9999;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.copy-notification.error {
    background: #dc3545;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .share-links-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .share-links .th-social a {
        --icon-size: 38px;
        font-size: 14px;
        margin-right: 6px;
    }
    
    .share-links_wrapp {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .share-links .th-social a {
        --icon-size: 36px;
        font-size: 13px;
        margin-right: 4px;
    }
    
    .share-links-title {
        font-size: 16px;
        text-align: center;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .share-links > .row {
        text-align: center;
    }
}

/* Hover tooltip effect */
.share-links .th-social a::before {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-bottom: 5px;
}

.share-links .th-social a::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0,0,0,0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-bottom: -5px;
}

.share-links .th-social a:hover::before,
.share-links .th-social a:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Floating Social Media Share Widget */
.floating-share-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    display: none;
}

.floating-share-toggle {
    width: 60px;
    height: 60px;
    background: var(--theme-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    font-size: 20px;
}

.floating-share-toggle:hover {
    background: var(--title-color);
    transform: scale(1.1);
}

.floating-share-buttons {
    position: absolute;
    bottom: 70px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.floating-share-widget.active .floating-share-buttons {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-share-buttons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.floating-share-buttons .share-facebook {
    background: #1877f2;
}

.floating-share-buttons .share-twitter {
    background: #1da1f2;
}

.floating-share-buttons .share-whatsapp {
    background: #25d366;
}

.floating-share-buttons .share-telegram {
    background: #0088cc;
}

.floating-share-buttons .share-copy {
    background: var(--theme-color);
}

.floating-share-buttons .share-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.floating-share-buttons .share-linkedin {
    background: #0077b5;
}

.floating-share-buttons a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Responsive adjustments for floating widget */
@media (max-width: 767px) {
    .floating-share-widget {
        bottom: 20px;
        left: 20px;
    }
    
    .floating-share-toggle {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .floating-share-buttons {
        bottom: 60px;
        gap: 8px;
    }
    
    .floating-share-buttons a {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}
