/* /css/author-box.css - Blog article author section */

.author-box {
  display: flex;
  gap: 24px;
  padding: 32px;
  margin: 48px 0;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  align-items: center;
}

.author-avatar {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #c9a55c;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Fallback initials avatar */
.author-avatar-initials {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a55c, #d4af37);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.author-info h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #1a1a1a;
}

.author-info p {
  font-size: 15px;
  color: #4a5568;
  margin: 0 0 16px 0;
  line-height: 1.6;
}

.author-info .author-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0a3d62;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.author-info .author-link:hover {
  color: #c9a55c;
}

.author-info .author-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.author-info .author-link:hover svg {
  transform: translateX(-4px); /* RTL: move left */
}

[dir="ltr"] .author-info .author-link:hover svg {
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .author-box {
    flex-direction: column;
    text-align: center;
    padding: 24px;
    gap: 16px;
  }

  .author-avatar,
  .author-avatar-initials {
    width: 80px;
    height: 80px;
  }

  .author-avatar-initials {
    font-size: 28px;
  }

  .author-info h4 {
    font-size: 18px;
  }

  .author-info p {
    font-size: 14px;
  }
}
