/**
 * @file
 * Styles for AI TL;DR Share links.
 */

.ai-tldr-share-wrapper {
  margin: 1rem 0.5rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-left: 4px solid currentColor;
  border-radius: 4px;
  display: flex;
  align-items: center;
  max-width: 500px;
}

.ai-tldr-share-wrapper strong {
  display: block;
  color: currentColor;
  font-size: 1.1rem;
}

.ai-tldr-share-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 0px !important; 
  gap: 0.25rem;
}

.ai-tldr-share-links li {
  margin: 0;
  cursor: pointer;
  padding-left: 0px !important;
}

.ai-tldr-share-links li::before {
  display: none !important;
}

.ai-tldr-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  color: #495057;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.ai-tldr-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.ai-tldr-link__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ai-tldr-link--icon-only {
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  justify-content: center;
}

.ai-tldr-link--icon-only .ai-tldr-link__icon {
  width: 24px;
  height: 24px;
}

/* Responsive design */
@media (max-width: 768px) {
 ul.ai-tldr-share-links {
    padding-left: 8px !important;
  }
  
  .ai-tldr-link {
    width: 100%;
    text-align: center;
  }
}