/* Enhanced Social Sharing Styles */

.social-share-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #ffffff;
    background: #6c757d;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.social-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    text-decoration: none;
}

.social-share-btn:active {
    transform: translateY(0);
}

/* Size variations */
.share-btn-small {
    padding: 6px 10px;
    font-size: 12px;
}

.share-btn-medium {
    padding: 8px 12px;
    font-size: 14px;
}

.share-btn-large {
    padding: 12px 16px;
    font-size: 16px;
}

/* Style variations */
.share-btn-filled {
    /* Default filled style */
}

.share-btn-outline {
    background: transparent;
    border: 2px solid #6c757d;
    color: #6c757d;
}

.share-btn-outline:hover {
    background: #6c757d;
    color: #ffffff;
}

/* Platform-specific colors */
.social-share-btn[data-share="facebook"] {
    background: #1877F2;
}

.social-share-btn[data-share="facebook"]:hover {
    background: #145cbf;
}

.social-share-btn[data-share="twitter"] {
    background: #1DA1F2;
}

.social-share-btn[data-share="twitter"]:hover {
    background: #0d8bd9;
}

.social-share-btn[data-share="linkedin"] {
    background: #0A66C2;
}

.social-share-btn[data-share="linkedin"]:hover {
    background: #085291;
}

.social-share-btn[data-share="pinterest"] {
    background: #E60023;
}

.social-share-btn[data-share="pinterest"]:hover {
    background: #bd001c;
}

.social-share-btn[data-share="whatsapp"] {
    background: #25D366;
}

.social-share-btn[data-share="whatsapp"]:hover {
    background: #1da851;
}

.social-share-btn[data-share="telegram"] {
    background: #229ED9;
}

.social-share-btn[data-share="telegram"]:hover {
    background: #1b7db8;
}

.social-share-btn[data-share="reddit"] {
    background: #FF4500;
}

.social-share-btn[data-share="reddit"]:hover {
    background: #d73600;
}

.social-share-btn[data-share="email"] {
    background: #EA4335;
}

.social-share-btn[data-share="email"]:hover {
    background: #c53727;
}

.social-share-btn[data-share="copy"] {
    background: #6f42c1;
}

.social-share-btn[data-share="copy"]:hover {
    background: #5a359a;
}

.social-share-btn[data-share="print"] {
    background: #6c757d;
}

.social-share-btn[data-share="print"]:hover {
    background: #545b62;
}

/* Outline variants for platform colors */
.share-btn-outline[data-share="facebook"] {
    border-color: #1877F2;
    color: #1877F2;
}

.share-btn-outline[data-share="twitter"] {
    border-color: #1DA1F2;
    color: #1DA1F2;
}

.share-btn-outline[data-share="linkedin"] {
    border-color: #0A66C2;
    color: #0A66C2;
}

.share-btn-outline[data-share="pinterest"] {
    border-color: #E60023;
    color: #E60023;
}

.share-btn-outline[data-share="whatsapp"] {
    border-color: #25D366;
    color: #25D366;
}

.share-btn-outline[data-share="telegram"] {
    border-color: #229ED9;
    color: #229ED9;
}

.share-btn-outline[data-share="reddit"] {
    border-color: #FF4500;
    color: #FF4500;
}

.share-btn-outline[data-share="email"] {
    border-color: #EA4335;
    color: #EA4335;
}

.share-btn-outline[data-share="copy"] {
    border-color: #6f42c1;
    color: #6f42c1;
}

.share-btn-outline[data-share="print"] {
    border-color: #6c757d;
    color: #6c757d;
}

/* Share icon styles */
.share-icon {
    font-size: 1.1em;
    line-height: 1;
}

.share-label {
    font-weight: 500;
}

/* Share count styles */
.share-count {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    margin-left: 4px;
}

/* Floating share bar */
.social-share-floating {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 8px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.social-share-floating.visible {
    opacity: 1;
    visibility: visible;
}

.social-share-floating .social-share-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
}

.social-share-floating .share-label {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .social-share-container {
        justify-content: center;
        gap: 6px;
    }
    
    .social-share-btn {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .share-label {
        display: none;
    }
    
    .social-share-floating {
        left: 10px;
        padding: 8px 6px;
    }
    
    .social-share-floating .social-share-btn {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 575.98px) {
    .social-share-container {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .social-share-btn {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 36px;
        height: 36px;
    }
    
    .share-icon {
        font-size: 1em;
    }
    
    .social-share-floating {
        display: none; /* Hide floating bar on very small screens */
    }
    
    /* Stack social buttons vertically on very small screens if needed */
    .social-share-container.vertical {
        flex-direction: column;
        align-items: center;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .social-share-container.vertical .social-share-btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 4px;
    }
}

@media (max-width: 480px) {
    .social-share-container {
        gap: 3px;
    }
    
    .social-share-btn {
        padding: 5px 6px;
        font-size: 11px;
        min-width: 32px;
        height: 32px;
    }
    
    .share-icon {
        font-size: 0.9em;
    }
}

/* Animation for share button clicks */
.social-share-btn.clicked {
    animation: shareClick 0.3s ease;
}

@keyframes shareClick {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Pulse animation for new shares */
.social-share-btn.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .social-share-floating {
        background: rgba(33, 37, 41, 0.95);
    }
    
    .share-btn-outline {
        background: transparent;
        color: #ffffff;
        border-color: #6c757d;
    }
}

/* Custom scrollbar for share menu */
.social-share-menu {
    max-height: 300px;
    overflow-y: auto;
}

.social-share-menu::-webkit-scrollbar {
    width: 6px;
}

.social-share-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.social-share-menu::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.social-share-menu::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
} 