/* codejs-comments.css — dark-glass comment styles, loaded by codejs-comments.php (v1.4.0+). */
.codejs-comments-wrap {
  max-width: 760px;
  margin: 64px auto 24px;
  padding: 36px 32px;
  background: rgba(30, 27, 75, 0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  box-shadow: 0 20px 50px -16px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #fff;
}
/* ---- Astra overrides ----
   Astra (a) hides .comments-area when "disable comments" is set in the
   customizer, and (b) paints a white background onto .comments-area /
   #respond that hides our dark wrap. Force-transparent everything inside
   our wrap and force-show the comments-area.
   `html body` prefix bumps specificity above Astra's body-scoped rules. */
html body .codejs-comments-wrap .comments-area,
html body .codejs-comments-wrap #comments,
html body.single-post .codejs-comments-wrap .comments-area,
html body.single-post .codejs-comments-wrap #comments {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #fff !important;
}
.codejs-comments-wrap #respond,
.codejs-comments-wrap .comment-respond,
.codejs-comments-wrap .comment-form,
.codejs-comments-wrap .comment-list,
.codejs-comments-wrap .ast-row,
.codejs-comments-wrap fieldset,
.codejs-comments-wrap .comment-form-comment,
.codejs-comments-wrap .ast-comment-formwrap {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #fff !important;
}
.codejs-comments-wrap fieldset { padding: 0 !important; margin: 0 !important; }
.codejs-comments-wrap legend { display: none !important; }
.codejs-comments-wrap .ast-comment-formwrap {
  display: flex !important; flex-wrap: wrap; gap: 12px;
  margin-top: 14px !important;
}
.codejs-comments-wrap .ast-comment-formwrap > p { flex: 1 1 30%; min-width: 200px; }
.codejs-comments-wrap .ast-row .comment-form-comment,
.codejs-comments-wrap .comment-textarea { display: block !important; }
.codejs-comments-wrap .screen-reader-text {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0,0,0,0) !important;
  white-space: nowrap !important; border: 0 !important;
}

/* Astra paints labels and the reply-title in dark text — invisible on dark bg. */
.codejs-comments-wrap #reply-title,
.codejs-comments-wrap .comment-reply-title,
.codejs-comments-wrap .comments-title,
.codejs-comments-wrap label,
.codejs-comments-wrap .comment-form label {
  color: #fff !important;
}
.codejs-comments-wrap #reply-title small a { color: rgba(255,255,255,0.6) !important; font-weight: 400 !important; }
.codejs-comments-wrap input[type="text"]::placeholder,
.codejs-comments-wrap input[type="email"]::placeholder,
.codejs-comments-wrap input[type="url"]::placeholder,
.codejs-comments-wrap textarea::placeholder { color: rgba(255,255,255,0.42) !important; }

/* Force dark-glass inputs even when Astra restyles them. */
.codejs-comments-wrap input[type="text"],
.codejs-comments-wrap input[type="email"],
.codejs-comments-wrap input[type="url"],
.codejs-comments-wrap textarea {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  color: #fff !important;
}
.codejs-comments-wrap .comments-title,
.codejs-comments-wrap #reply-title {
  font-size: 1.5em;
  font-weight: 800;
  margin: 0 0 18px;
  color: #fff;
}
.codejs-comments-wrap .comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.codejs-comments-wrap .comment-list .children {
  list-style: none;
  padding-left: 24px;
  margin: 12px 0 0;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
}
.codejs-comments-wrap .comment,
.codejs-comments-wrap .pingback,
.codejs-comments-wrap .trackback {
  padding: 18px 20px;
  margin: 0 0 14px;
  background: rgba(15, 13, 38, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}
.codejs-comments-wrap .comment-meta,
.codejs-comments-wrap .comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 10px;
}
.codejs-comments-wrap .comment-author .fn { color: #fff; font-weight: 700; font-style: normal; }
.codejs-comments-wrap .comment-author cite { font-style: normal; }
.codejs-comments-wrap .comment-author img.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.codejs-comments-wrap .comment-metadata a,
.codejs-comments-wrap .comment-meta a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.85em;
}
.codejs-comments-wrap .comment-metadata a:hover { color: #a78bfa; }
.codejs-comments-wrap .comment-content,
.codejs-comments-wrap .comment-body p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95em;
  line-height: 1.65;
  margin: 0 0 10px;
}
.codejs-comments-wrap .comment-content a { color: #a78bfa; }
.codejs-comments-wrap .reply { margin-top: 6px; }
.codejs-comments-wrap .comment-reply-link {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(168, 85, 247, 0.20);
  color: #e9d5ff !important;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 8px;
  font-size: 0.82em;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s;
}
.codejs-comments-wrap .comment-reply-link:hover {
  background: rgba(168, 85, 247, 0.32);
}
.codejs-comments-wrap .bypostauthor > .comment-body,
.codejs-comments-wrap li.bypostauthor {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.32);
}
.codejs-comments-wrap .bypostauthor .fn::after {
  content: 'Admin';
  margin-left: 8px;
  padding: 2px 8px;
  background: rgba(168, 85, 247, 0.32);
  color: #f3e8ff;
  border-radius: 999px;
  font-size: 0.7em;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- Reply form ---- */
.codejs-comments-wrap .comment-respond {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.codejs-comments-wrap .comment-form p { margin: 0 0 14px; }
.codejs-comments-wrap .comment-form label {
  display: block;
  font-size: 0.82em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.codejs-comments-wrap .comment-form input[type="text"],
.codejs-comments-wrap .comment-form input[type="email"],
.codejs-comments-wrap .comment-form input[type="url"],
.codejs-comments-wrap .comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-size: 0.95em;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s, background 0.18s;
  box-sizing: border-box;
}
.codejs-comments-wrap .comment-form input:focus,
.codejs-comments-wrap .comment-form textarea:focus {
  border-color: rgba(168, 85, 247, 0.55);
  background: rgba(255, 255, 255, 0.08);
}
.codejs-comments-wrap .comment-form textarea { min-height: 140px; resize: vertical; }
.codejs-comments-wrap .comment-form .comment-notes,
.codejs-comments-wrap .comment-form .logged-in-as,
.codejs-comments-wrap .comment-form .comment-form-cookies-consent label {
  font-size: 0.82em;
  color: rgba(255, 255, 255, 0.6);
}
.codejs-comments-wrap .comment-form .logged-in-as a { color: #a78bfa; }
.codejs-comments-wrap .comment-form input[type="submit"],
.codejs-comments-wrap .comment-form .submit {
  background: linear-gradient(135deg, #6d28d9 0%, #be185d 100%);
  color: #fff;
  padding: 12px 28px;
  border-radius: 10px;
  border: 0;
  font-weight: 700;
  font-size: 0.95em;
  cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(168, 85, 247, 0.55);
  transition: transform 0.18s;
}
.codejs-comments-wrap .comment-form input[type="submit"]:hover { transform: translateY(-1px); }
.codejs-comments-wrap .no-comments {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95em;
  margin: 0 0 24px;
}

/* ---- Pagination links ("« Older comments | Newer comments »") ---- */
.codejs-comments-wrap .comments-pagination,
.codejs-comments-wrap .navigation.comment-navigation,
.codejs-comments-wrap .comment-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 22px 0 28px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 0.88em;
}
.codejs-comments-wrap .comment-navigation .nav-previous { margin-right: auto; }
.codejs-comments-wrap .comment-navigation .nav-next     { margin-left: auto; }
.codejs-comments-wrap .comment-navigation a,
.codejs-comments-wrap .comments-pagination a,
.codejs-comments-wrap .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.18s;
}
.codejs-comments-wrap .comment-navigation a:hover,
.codejs-comments-wrap .page-numbers:hover {
  background: rgba(168, 85, 247, 0.20);
  border-color: rgba(168, 85, 247, 0.35);
}
.codejs-comments-wrap .page-numbers.current {
  background: rgba(168, 85, 247, 0.28);
  color: #fff !important;
  border-color: rgba(168, 85, 247, 0.5);
}
.codejs-comments-wrap .page-numbers.dots {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.4) !important;
}
.codejs-comments-wrap .comments-count-line {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 18px;
}
.codejs-comments-wrap #cancel-comment-reply-link {
  display: inline-block;
  margin-left: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.85em;
}
.codejs-comments-wrap #cancel-comment-reply-link:hover { color: #fff; }
