/* Blog Author Component Styles */

.blog-author {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.blog-author--featured {
  /* Featured variant with slightly different styling */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.blog-author-avatar {
  flex-shrink: 0;
}

.blog-author-avatar img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb;
}

.blog-author-info {
  flex: 1;
  min-width: 0;
}

.blog-author-name {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-author-linkedin {
  display: inline-flex;
  align-items: center;
  color: #6b7280;
  transition: color 0.2s ease;
}

.blog-author-linkedin:hover {
  color: #0077b5;
}

.blog-author-linkedin svg {
  width: 16px;
  height: 16px;
}

.blog-author-credentials {
  font-size: 0.813rem;
  color: #6b7280;
  margin: 0 0 0.25rem 0;
  line-height: 1.4;
}

.blog-author-education {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0 0 0.5rem 0;
}

.blog-author-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.813rem;
  color: #9ca3af;
}

.blog-author-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.blog-author-meta-item svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.blog-author-meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #d1d5db;
}

/* Sources Dropdown */
.blog-author-sources-wrapper {
  position: relative;
  display: inline-flex;
}

.blog-author-sources-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.5rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  font-size: 0.813rem;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-author-sources-toggle:hover {
  background: #e5e7eb;
  color: #374151;
}

.blog-author-sources-toggle svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.blog-author-sources-chevron {
  transition: transform 0.2s ease;
}

.blog-author-sources-wrapper.open .blog-author-sources-chevron {
  transform: rotate(180deg);
}

.blog-author-sources-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 50;
  min-width: 320px;
  max-width: 400px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: all 0.2s ease;
}

.blog-author-sources-wrapper.open .blog-author-sources-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.blog-author-sources-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 0.5rem;
}

.blog-author-source-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.375rem;
  text-decoration: none;
  color: #374151;
  transition: background-color 0.15s ease;
}

.blog-author-source-item:hover {
  background-color: #f3f4f6;
}

.blog-author-source-number {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #e5e7eb;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
}

.blog-author-source-text {
  flex: 1;
  font-size: 0.813rem;
  line-height: 1.4;
  word-break: break-word;
}

.blog-author-source-external {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  fill: #9ca3af;
  margin-top: 0.125rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .blog-author {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .blog-author-avatar img {
    width: 48px;
    height: 48px;
  }
  
  .blog-author-meta {
    flex-wrap: wrap;
  }
  
  .blog-author-sources-dropdown {
    min-width: 280px;
    left: -100px;
  }
}
