/* Start custom CSS for post-comments, class: .elementor-element-174c8d4 *//* ===========================
   Grenz IBD - Forum Style Comments
   =========================== */

/* ---------------------------
   Comments Container
--------------------------- */
.comments-area,
#comments {
  direction: rtl;
  max-width: 760px;
  margin: 50px auto;
  padding: 36px 24px;
  border-radius: 38px;
  background:
    radial-gradient(circle at 50% 0%, rgba(168,85,247,.22), transparent 35%),
    linear-gradient(180deg, #ffffff 0%, #f7f1ff 100%);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 30px 85px rgba(76,29,149,.16);
  box-sizing: border-box;
}

/* ---------------------------
   Form Section - Keep As Is
--------------------------- */
.comment-respond {
  position: relative;
  padding: 34px;
  border-radius: 34px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow:
    0 24px 65px rgba(76,29,149,.12),
    inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  overflow: hidden;
}

/* ---------------------------
   Comments Title / Header
--------------------------- */
.comment-reply-title {
  text-align: center;
  color: #3b2164;
  font-size: 30px;
  font-weight: 950;
  margin-bottom: 14px;
}

.comment-reply-title::before {
  content: "دیدگاهتان برای ما ارزشمند است";
  display: block;
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1.6;
}

/* ---------------------------
   Comment List / Forum Cards
--------------------------- */
#comments .comment-list,
.comments-area .comment-list,
.commentlist,
ol.commentlist,
ul.comment-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative !important;
  opacity: 1 !important;
}

/* Individual Comment Card */
.comment-body {
  position: relative;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(168,85,247,.22);
  border-right: 6px solid #7c3aed;
  border-radius: 28px;
  padding: 24px 26px;
  margin-bottom: 18px;
  box-shadow:
    0 18px 45px rgba(76,29,149,.10),
    inset 0 1px 0 rgba(255,255,255,.95);
  transition: .25s ease;
}

.comment-body:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 58px rgba(76,29,149,.14);
}

/* Decorative Quote Mark */
.comment-body::after {
  content: "”";
  position: absolute;
  top: 10px;
  left: 22px;
  color: rgba(124,58,237,.12);
  font-size: 70px;
  font-weight: 900;
  line-height: 1;
}

/* Vertical Gradient Bar */
.comment-body::before {
  content: "";
  position: absolute;
  right: 0;
  top: 22px;
  width: 6px;
  height: calc(100% - 44px);
  border-radius: 20px 0 0 20px;
  background: linear-gradient(180deg, #7c3aed, #c084fc);
}

/* Author Name & Avatar */
.comment-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

/* حذف "کاربر" و بزرگ‌تر کردن اسم‌ها */
.comment-author .fn {
  color: #7c3aed !important; /* رنگ بنفش */
  font-size: 18px !important; /* بزرگ‌تر */
  font-weight: 950 !important;
  font-style: normal !important;
}

/* حذف کلمه "گفت" */
.comment-author .says {
  display: none !important;
}
}

.comment-author img {
  border-radius: 50%;
  border: 3px solid #e9d5ff;
  box-shadow: 0 8px 22px rgba(124,58,237,.18);
}

/* Meta / Date */
.comment-meta,
.comment-meta a {
  color: #b5a0c9;
  font-size: 12px;
  text-decoration: none;
  margin-bottom: 12px;
}

/* Comment Text */
.comment-body p {
  color: #3f2a56;
  font-size: 15px;
  line-height: 2.15;
  margin-top: 12px;
}

/* Reply Button */
.comment-reply-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 9px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #9c27b0, #7b1fa2) !important; /* رنگ نزدیک تصویر شما */
  color: #ffffff !important; /* متن سفید */
  font-weight: 900 !important;
  text-decoration: none !important;
  box-shadow: 0 14px 34px rgba(124,58,237,.28);
  transition: all .25s ease;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(124,58,237,.22);
  transition: .25s ease;
}
.comment-reply-link:hover {
  background: linear-gradient(135deg, #7b1fa2, #9c27b0) !important;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 20px 42px rgba(124,58,237,.36);
}

/* Nested Replies */
.children {
  margin: 18px 34px 0 0;
  padding: 0 24px 0 0;
  border-right: 2px dashed rgba(168,85,247,.45);
}

.children .comment-body {
  background: linear-gradient(135deg, #ffffff, #fbf7ff);
  border-color: rgba(192,132,252,.32);
}

.children .comment-body .comment-author::after {
  content: "پاسخ به دیدگاه";
  margin-right: auto;
  background: #f3e8ff;
  color: #7c3aed;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 999px;
}

/* Mobile Adjustments */
@media(max-width:768px) {
  .comment-body {
    padding: 20px 18px;
    border-radius: 22px;
  }

  .children {
    margin-right: 12px;
    padding-right: 14px;
  }

  .comments-area,
  #comments {
    padding: 22px 12px;
    border-radius: 26px;
  }
  
}/* End custom CSS */