/* =======================================================
   🧩 Urdu News Point — Comment System (Pro+ Design)
   Author: Malik Masood
   Purpose: Full comment layout + form + threads styling
   RTL Supported | Mobile Responsive | Clean UI Polish
========================================================= */

/* --- Root section --- */
.single-comments {
  direction: rtl;
  margin-top: 30px;
  margin-bottom: 40px;
  font-family: 'Jameel Noori', serif;
  color: var(--comment-accent);
}

.single-comments .c-title {
  text-align: right;
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: 800;
}

.single-comments .c-title span {
  border-bottom: 3px solid var(--comment-accent);
  padding-bottom: 5px;
}

/* --- Comments Wrapper --- */
.single-comments .c-wrap {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
}

/* --- Each comment block --- */
.urdu-comments {
  list-style: none;
  padding: 0;
  margin: 0;
}

.urdu-comments li {
  margin-bottom: 16px;
}

.urdu-comment-box {
  display: flex;
  align-items: flex-start;
  background: #f9fafb;
  border: 1px solid #e6edf5;
  border-radius: 14px;
  padding: 14px;
  transition: background 0.2s ease;
  width:100%;
}

.urdu-comment-box:hover {
  background: #f3f4f6;
}

.urdu-avatar {
  margin-left: 14px;
}

.urdu-avatar img {
  border-radius: 50%;
  width: 48px;
  height: 48px;
}

/* --- Comment Content --- */
.urdu-comment-content {
  flex: 1;
}

.urdu-comment-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 14px;
}

.urdu-author {
  font-weight: 700;
  color: #0b1b28;
}

.urdu-date {
  font-size: 13px;
  color: #6b7280;
}

.comment-badge {
  display: inline-block;
  background: #0b1b28;
  color: #fff;
  font-size: 11px;
  border-radius: 5px;
  padding: 2px 6px;
  margin-inline-start: 5px;
}

.comment-badge.admin { background: #e11d48; }
.comment-badge.new { background: #2563eb; }
.comment-badge.reader { background: #059669; }

.urdu-text {
  font-size: 15px;
  line-height: 1.9;
  color: #1f2937;
}

/* --- Reply Link --- */
.comment-reply-link {
  display: inline-block;
    font-size: 13px;
    color: #ffffff;
    text-decoration: none;
    transition: color .2s;
    background: var(--comment-accent);
    margin: 14px 5px 3px 12px;
    padding: 7px;
    border-radius: 4px;
}

.comment-reply-link:hover {
  color: #b91c1c;
  text-decoration: underline;
}

/* --- Nested replies --- */
.urdu-comments .children {
  margin-right: 40px;
  margin-top: 10px;
  border-right: 2px solid #e5e7eb;
  padding-right: 14px;
}

/* --- No comment --- */
.no-comments {
  font-size: 15px;
  color: #6b7280;
  text-align: center;
  padding: 20px 0;
}

/* --- Comment Form --- */
.comment-respond {
  margin-top: 25px;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .03);
}

.comment-respond h4.reply-title {
  text-align: right;
  font-size: 20px;
  margin-bottom: 14px;
  color: var(--comment-accent);
  border-right: 3px solid var(--comment-accent);
  padding-right: 8px;
}

.comment-form p {
  margin-bottom: 14px;
}

.comment-form label {
  display: block;
  font-size: 14px;
  color: #374151;
  margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
  background: #f9fafb;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
  outline: none;
  background: #fff;
}

/* --- Submit Button --- */
.comment-form .submit-btn {
  background: var(--comment-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 24px;
  font-size: 15px;
  cursor: pointer;
  font-weight: 600;
  transition: background .25s, transform .2s;
}

.comment-form .submit-btn:hover {
  background: #1e293b;
  transform: translateY(-2px);
}

/* --- Responsive --- */
@media (max-width:768px) {
  .urdu-comment-box {
    flex-direction: column;
    align-items: flex-start;
	width: 100%;
  }
  .urdu-avatar {
    margin-left: 0;
    margin-bottom: 8px;
  }
  .urdu-comments .children {
    margin-right: 20px;
  }
  .comment-respond {
    padding: 16px;
  }
.comment-form input[type="email"], .comment-form input[type="text"], .comment-form textarea{width:95%}
	.comment-profile-popup{width:300px !important;}
}