.masa-author-box {
  --masa-primary: #059eda;
  --masa-primary-hover: #038abf;
  --masa-text-dark: #1a202c;
  --masa-text-muted: #4a5568;
  --masa-border: #e2e8f0;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin: 32px 0 50px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--masa-border);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  font-family: 'Nunito', 'Avenir Next', sans-serif;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.masa-author-box:hover {
  box-shadow: 0 8px 25px rgba(5, 158, 218, 0.08);
  transform: translateY(-2px);
}

.masa-author-box::before {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  background: var(--masa-primary);
}

.masa-author-box .masa-avatar-wrapper {
  flex-shrink: 0;
}

.masa-author-box .masa-author-avatar {
  display: block;
  box-sizing: border-box;
  width: 110px;
  height: 110px;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f8f9fa;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.masa-author-box .masa-author-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-wrap: anywhere;
}

.masa-author-box .masa-author-name {
  font-family: inherit;
  font-size: 21.6px;
  font-weight: 800;
  color: var(--masa-text-dark);
  margin: 0 0 8px;
  line-height: 1.2;
}

.masa-author-box .masa-author-bio {
  font-size: 16px;
  line-height: 1.6;
  color: var(--masa-text-muted);
  margin: 0 0 20px;
}

.masa-author-box .masa-author-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  border-top: 1px solid var(--masa-border);
  padding-top: 16px;
}

.masa-author-box .masa-author-socials {
  display: flex;
  gap: 12px;
}

.masa-author-box .masa-author-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  color: var(--masa-text-muted);
  font-size: 17.6px;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

.masa-author-box .masa-author-socials a:hover {
  color: var(--masa-primary);
  transform: translateY(-2px);
}

.masa-author-box .masa-all-posts-link {
  font-size: 14.4px;
  font-weight: 700;
  color: var(--masa-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6.4px;
  margin-inline-start: auto;
  transition: color 0.3s ease;
}

.masa-author-box .masa-author-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.masa-author-box .masa-all-posts-link:hover {
  color: var(--masa-primary-hover);
}

.masa-author-box .masa-all-posts-link:hover .masa-author-arrow {
  transform: translateX(3px);
}

[dir='rtl'] .masa-author-box .masa-author-arrow {
  transform: scaleX(-1);
}

[dir='rtl'] .masa-author-box .masa-all-posts-link:hover .masa-author-arrow {
  transform: scaleX(-1) translateX(3px);
}

.masa-author-box a:focus-visible {
  outline: 2px solid var(--masa-primary);
  outline-offset: 4px;
  border-radius: 2px;
}

@media (max-width: 650px) {
  .masa-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
  }

  .masa-author-box::before {
    inset-block-end: auto;
    width: 100%;
    height: 4px;
  }

  .masa-author-box .masa-author-avatar {
    width: 90px;
    height: 90px;
  }

  .masa-author-box .masa-author-content {
    width: 100%;
  }

  .masa-author-box .masa-author-footer {
    flex-direction: column-reverse;
    gap: 20px;
    justify-content: center;
    width: 100%;
  }

  .masa-author-box .masa-author-socials {
    justify-content: center;
    gap: 20px;
  }

  .masa-author-box .masa-all-posts-link {
    margin-inline-start: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .masa-author-box,
  .masa-author-box a,
  .masa-author-box .masa-author-arrow {
    transition: none;
  }

  .masa-author-box:hover,
  .masa-author-box .masa-author-socials a:hover {
    transform: none;
  }
}
