/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Text Domain: hello-elementor-child
*/

/* =========================================================
   🎨 WordPress Comment Section – RTL + IRANSansX Edition
   by ChatGPT x Mahdiar — DeepDigital.ir
   ========================================================= */

/* 🧭 Global Container */
#comments {
  width: 100%;
  max-width: 56rem; /* 896px */
  margin: 4rem auto;
  padding: 2rem;
  background: #f8fafc;
  border-radius: 1rem;
  direction: rtl; /* ✅ RTL layout */
  font-family: "IRANSansX", "IRANSans", sans-serif;
  text-align: right; /* ✅ right-aligned text */
  line-height: 1.7;
}

/* 🏷️ Section Title */
#comments #reply-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.75rem;
  text-align: right; /* ✅ keep right */
}

/* 💬 Textarea */
#comments textarea {
  width: 100%;
  min-height: 12rem;
  padding: 1rem 1.25rem;
  font-family: "IRANSansX", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  resize: vertical;
  background-color: #ffffff;
  color: #1e293b;
  transition: border-color 0.3s, box-shadow 0.3s;
  text-align: right; /* ✅ RTL text */
}
#comments textarea:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

/* 🧍‍♂️ Input Fields */
#comments input[type="text"],
#comments input[type="email"],
#comments input[type="url"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: "IRANSansX", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background-color: #ffffff;
  color: #1e293b;
  text-align: right; /* ✅ keep text right */
  transition: border-color 0.3s, box-shadow 0.3s;
}
#comments input:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.25);
}

/* 🏷️ Labels */
#comments label {
  display: block;
  font-family: "IRANSansX", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.5rem;
  text-align: right; /* ✅ RTL labels */
}

/* 🌱 Cookies Consent */
#comments .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-family: "IRANSansX", sans-serif;
  font-size: 0.875rem;
  color: #475569;
  margin-top: 1rem;
  text-align: right;
}
#comments .comment-form-cookies-consent input {
  margin-top: 0.25rem;
}

/* 🚀 Submit Button */
#comments input[type="submit"] {
  background: linear-gradient(to right, #10b981, #0d9488);
  color: #ffffff;
  font-family: "IRANSansX", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center; /* ✅ still visually balanced */
}
#comments input[type="submit"]:hover {
  background: linear-gradient(to right, #059669, #0f766e);
  transform: translateY(-1px);
}

/* 🧩 Notes and Required Fields */
#comments .comment-notes,
#comments .required-field-message {
  font-family: "IRANSansX", sans-serif;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1.5rem;
  text-align: right;
}
#comments .required {
  color: #ef4444;
}

/* 📱 Responsive Tweaks */
@media (max-width: 768px) {
  #comments {
    padding: 1.5rem 1rem;
    margin: 2rem auto;
  }
  #comments #reply-title {
    font-size: 1.25rem;
  }
  #comments textarea,
  #comments input {
    font-size: 0.875rem;
  }
  #comments input[type="submit"] {
    width: 100%;
  }
}
/* 🧠 Logged-in notice alignment fix */
#comments .logged-in-as {
  direction: rtl !important;
  text-align: right !important;
  font-family: "IRANSansX", sans-serif !important;
  font-size: 0.9375rem;
  color: #334155;
  margin-bottom: 1rem;
  line-height: 1.6;
}
#comments .logged-in-as a {
  color: #0d9488;
  text-decoration: none;
}
#comments .logged-in-as a:hover {
  text-decoration: underline;
}
