/* アバタースタイル */
.avatar-img,
.user-avatar img,
.avatar-placeholder,
.match-avatar img,
.match-avatar .avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* デフォルトサイズ */
.user-avatar {
  width: 40px;
  height: 40px;
}

/* 小さいアバター（返信など） */
.reply .user-avatar img,
.reply .avatar-placeholder,
.replies-section img[class*="rounded-full"] {
  width: 24px;
  height: 24px;
}

/* プロフィール画面の大きいアバター */
.profile-avatar img,
.profile-avatar .avatar-placeholder {
  width: 64px;
  height: 64px;
}

/* クリック可能なアバター */
.profile-avatar-clickable {
  cursor: pointer;
  position: relative;
  transition: opacity 0.2s;
}

.profile-avatar-clickable:hover {
  opacity: 0.8;
}

.profile-avatar-clickable::after {
  content: "📷";
  position: absolute;
  bottom: 0;
  right: 0;
  background: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.2s;
}

.profile-avatar-clickable:hover::after {
  opacity: 1;
}

/* アバタープレースホルダー */
.avatar-placeholder {
  background-color: #9CA3AF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

/* フィード投稿のアバター調整 */
.feed-post .user-link img,
.feed-post .user-link > div {
  flex-shrink: 0;
}

/* ナビゲーションバーのプロフィールアイコン */
.nav-item[data-tab="profile"] .nav-icon.has-avatar {
  background-size: cover;
  background-position: center;
  border-radius: 50%;
}