/* Social Media Sharing Component Styles */

.social-sharing {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.social-sharing:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.social-sharing-header {
    text-align: center;
    margin-bottom: 20px;
}

.social-sharing-header h4 {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.social-sharing-header p {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.social-sharing-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.social-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

.social-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.social-btn span {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Facebook Button */
.facebook-btn {
    background: #1877f2;
    color: white;
}

.facebook-btn:hover {
    background: #166fe5;
    color: white;
}

/* Twitter/X Button */
.twitter-btn {
    background: #000000;
    color: white;
}

.twitter-btn:hover {
    background: #333333;
    color: white;
}

/* LinkedIn Button */
.linkedin-btn {
    background: #0077b5;
    color: white;
}

.linkedin-btn:hover {
    background: #006ba1;
    color: white;
}

/* WhatsApp Button */
.whatsapp-btn {
    background: #25d366;
    color: white;
}

.whatsapp-btn:hover {
    background: #22c55e;
    color: white;
}

/* Telegram Button */
.telegram-btn {
    background: #0088cc;
    color: white;
}

.telegram-btn:hover {
    background: #0077b3;
    color: white;
}

/* Copy Link Button */
.copy-btn {
    background: #6b7280;
    color: white;
}

.copy-btn:hover {
    background: #4b5563;
    color: white;
}

.copy-btn.copied {
    background: #10b981;
    color: white;
}

.social-sharing-footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.share-note {
    color: #64748b;
    font-size: 0.8rem;
    margin: 0;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .social-sharing {
        padding: 20px;
        margin: 20px 0;
    }
    
    .social-sharing-buttons {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .social-btn {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .social-icon {
        width: 16px;
        height: 16px;
    }
    
    .social-btn span {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .social-sharing-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .social-btn {
        padding: 8px 10px;
        flex-direction: column;
        gap: 4px;
    }
    
    .social-btn span {
        font-size: 0.7rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .social-sharing {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        border-color: #475569;
    }
    
    .social-sharing-header h4 {
        color: #f1f5f9;
    }
    
    .social-sharing-header p {
        color: #94a3b8;
    }
    
    .social-sharing-footer {
        border-top-color: #475569;
    }
    
    .share-note {
        color: #94a3b8;
    }
}

/* Animation for copy feedback */
@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.copy-btn.copied {
    animation: copySuccess 0.3s ease;
}

/* Focus styles for accessibility */
.social-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Loading state */
.social-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.social-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    right: 8px;
}

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