/* Social Media Sharing Styles */
.social-sharing-section {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-sharing-section h3 {
    color: #fff;
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sharing-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: none;
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 100px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.share-btn i {
    margin-right: 6px;
    font-size: 16px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.share-btn:active {
    transform: translateY(0);
}

.share-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Platform-specific colors */
.share-btn[data-platform="twitter"] {
    background: linear-gradient(45deg, #1da1f2, #0d8bd9);
}

.share-btn[data-platform="facebook"] {
    background: linear-gradient(45deg, #4267b2, #365899);
}

.share-btn[data-platform="telegram"] {
    background: linear-gradient(45deg, #0088cc, #006db3);
}

.share-btn[data-platform="whatsapp"] {
    background: linear-gradient(45deg, #25d366, #1ebe57);
}

.share-btn[data-platform="reddit"] {
    background: linear-gradient(45deg, #ff4500, #e03d00);
}

.share-btn[data-platform="tumblr"] {
    background: linear-gradient(45deg, #35465d, #2c3e50);
}

.share-btn[data-platform="vk"] {
    background: linear-gradient(45deg, #4c75a3, #45688e);
}

.share-btn[data-platform="linkedin"] {
    background: linear-gradient(45deg, #0077b5, #005885);
}

/* Special action buttons */
.share-all-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    padding: 10px 20px;
    font-weight: 600;
    font-size: 15px;
}

.copy-link-btn {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    padding: 8px 16px;
}

.sharing-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Notification styles */
.share-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    z-index: 9999;
    max-width: 350px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease;
}

.share-notification-success {
    background: linear-gradient(45deg, #28a745, #20c997);
}

.share-notification-error {
    background: linear-gradient(45deg, #dc3545, #c82333);
}

.share-notification-warning {
    background: linear-gradient(45deg, #ffc107, #e0a800);
    color: #212529;
}

.share-notification-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-left: auto;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-notification a {
    color: inherit;
    text-decoration: underline;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .social-sharing-section {
        margin: 15px 0;
        padding: 15px;
        border-radius: 10px;
    }
    
    .sharing-buttons {
        gap: 8px;
    }
    
    .share-btn {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 80px;
    }
    
    .share-all-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .share-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .sharing-buttons {
        justify-content: center;
    }
    
    .share-btn {
        flex: 1;
        min-width: 70px;
        padding: 8px 6px;
    }
    
    .share-btn i {
        margin-right: 4px;
    }
    
    .sharing-actions {
        margin-top: 10px;
    }
    
    .share-all-btn,
    .copy-link-btn {
        flex: 1;
    }
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
    .social-sharing-section {
        background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
        border-color: rgba(255, 255, 255, 0.2);
    }
}

/* Animation for button interactions */
.share-btn {
    position: relative;
    overflow: hidden;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.share-btn:hover::before {
    left: 100%;
}

/* Loading spinner */
.share-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}