/* بطاقة معلومات الكاتب */
.author-info-block {
  background: var(--bg-panel);
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  width: 95%;
  margin: 0 auto 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

/* الصورة الرمزية */
.author-info-block .avatar {
  margin-bottom: 10px;
}
.author-info-block .avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color);
  background: var(--bg-panel);
}

/* تفاصيل الكاتب */
.author-info-block .details p,
.author-info-block .details .badges {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 5px;
  margin-bottom: 5px;
  color: var(--font-color);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

/* اسم المستخدم */
.author-info-block .username {
  font-size: 1.2rem;
  font-weight: bold;
}
.author-info-block .username a {
  color: inherit;
  text-decoration: none;
}

/* الأوسمة */
.author-info-block .badges .star {
  color: #f1c40f;
  margin: 0 2px;
  font-size: 1.2rem;
}

/* أيقونات قبل النص */
.author-info-block .rank::before    { content: "🏅 "; }
.author-info-block .topics::before  { content: "📌 "; }
.author-info-block .posts::before   { content: "✍️ "; }
.author-info-block .likes::before   { content: "❤️ "; }
.author-info-block .country::before { content: "🌐 "; }

/* الحقل الإضافي: الدولة */
.author-info-block .country {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* في الوضع الداكن نحتاج تعديل الظلال وحدود */
body.dark-mode .author-info-block {
 box-shadow: 0 1px 1px 0px rgb(1 174 204);
}
.status i.fa-circle-check { color: #27ae60; /* أخضر */ }
.status i.fa-circle-xmark { color: #ccc;   /* رمادي */ }
