/**
 * @file author-share.css
 * Author & Share — Figma desktop 1-7379 (horizontal), mobile 1-7165 (stacked).
 * Layout: mobile = column, gap 16px; desktop = row, space-between, items-center.
 * Typography: DM Sans; name SemiBold 16px mobile / 14px desktop; meta Regular 14px.
 */

.author-share {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
  color: var(--foreground, #fff);
  .author-share__author {
    display: flex;
    gap: 16px;
    align-items: center;
  }
}

@media (min-width: 768px) {
  .author-share {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Avatar block */
.author-share__avatar {
  flex-shrink: 0;
}

.author-share__avatar-inner,
.author-share__avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-gray, #1b1f1d);
}

.author-share__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-share__avatar-placeholder {
  color: var(--muted-foreground, rgba(255, 255, 255, 0.6));
}

.author-share__avatar-placeholder svg {
  width: 24px;
  height: 24px;
}

/* Content: name + meta */
.author-share__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  min-width: 0;
}

/* Figma: Text/Regular or Text/Small Semi Bold — DM Sans, 16px mobile / 14px desktop */
.author-share__name {
  font-family: var(--font-sans);
  font-size: var(--text-base, 1rem);
  font-weight: var(--font-weight-semibold, 600);
  line-height: 1.5;
  margin: 0;
  letter-spacing: 0;
}

@media (min-width: 768px) {
  .author-share__name {
    font-size: var(--text-sm, 0.875rem);
  }
}

.author-share__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: var(--text-sm, 0.875rem);
  font-weight: var(--font-weight-normal, 400);
  line-height: 1.5;
}

.author-share__date,
.author-share__read-time {
  margin: 0;
}

.author-share__dot {
  font-size: var(--text-lg, 1.125rem);
  line-height: 1.5;
}

/* Share buttons — Figma: dark circle bg, 24px icon, 4px padding, rounded-full */
.author-share__share {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex-shrink: 0;
}

.author-share__share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 4px;
  border-radius: 64px;
  background: var(--dark-gray, #1b1f1d);
  color: var(--foreground, #fff);
  transition:
    background-color 0.2s,
    color 0.2s;
}

.author-share__share-btn:hover {
  background: var(--muted, #1a1f1c);
  color: var(--foreground, #fff);
}

.author-share__share-btn:focus-visible {
  outline: 2px solid var(--primary, #c30000);
  outline-offset: 2px;
}

.author-share__share-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
