/* Comment list card styles (moved from 17-single-post.css) */
.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.comment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.comment-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.comment-author.vcard {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1;
}

.comment-avatar {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--card-bg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 0 0 2px rgba(0, 0, 0, 0.02) inset;
}

.comment-author-info .fn {
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.comment-meta {
  color: var(--text-hint);
  font-size: 0.9rem;
}

.comment-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 8px;
}

.comment-likes {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--text-hint);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.12s ease;
}

.comment-likes .like-count {
  display: inline-block;
  min-width: 28px;
  text-align: center;
  padding: 2px 8px;
  background: var(--bg-lighter);
  border-radius: 999px;
  font-weight: 700;
  color: var(--text-color);
  margin-left: 4px;
  font-size: 0.88rem;
}

.comment-likes.liked {
  color: var(--primary-color);
}
.comment-likes.liked .like-count {
  background: rgba(0, 0, 0, 0.04);
  color: var(--primary-color);
}

.comment-more-btn {
  background: transparent;
  border: none;
  padding: 6px;
  color: var(--text-hint);
  cursor: pointer;
}

.comment-content {
  margin-top: 8px;
  line-height: 1.6;
  color: var(--text-color);
}

@media (max-width: 600px) {
  .comment-header {
    gap: 10px;
  }
  .comment-actions {
    margin-left: 6px;
  }
}

/* Comment meta row under content (time / likes / reply) */
.comment-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  padding-top: 10px;
  color: var(--text-hint);
  font-size: 0.95rem;
}

.comment-meta-row .meta-left {
  flex: 1;
}
.comment-meta-row .meta-center {
  display: flex;
  align-items: center;
  gap: 8px;
}
.comment-meta-row .meta-right {
  margin-left: auto;
}
.comment-meta-row .meta-right .comment-reply-link,
.comment-meta-row .meta-right .comment-reply {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--bg-lighter);
  transition: background 0.12s ease, color 0.12s ease;
}

.comment-meta-row .meta-right .comment-reply-link:hover,
.comment-meta-row .meta-right .comment-reply:hover {
  background: var(--primary-color);
  color: #fff;
}

/* OPPO-like comment card structure */
.comment-card-main {
  background: transparent;
  border-radius: 8px;
  padding-bottom: 12px;
  display: block;
  width: 100%;
}
.avatar-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.avatar-info-lt {
  display: flex;
  gap: 12px;
  align-items: center;
}
.avatar-info-lt .avatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--card-bg);
}
.avatar-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}
.avatar-meta .author-name {
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
  margin-bottom: 2px;
  color: var(--text-color);
}
.ob-image.round {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ob-image.round .origin-image.round {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-info-rt {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

/* comment menu (small dropdown) */
.comment-menu {
  display: none;
  min-width: 140px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 6px 0;
}
.comment-card-action {
  margin: 0;
  padding: 0;
}
.comment-card-action .comment-action-item {
  padding: 8px 12px;
  cursor: pointer;
  color: var(--text-color);
  font-size: 0.95rem;
}
.comment-card-action .comment-action-item:hover,
.comment-card-action .comment-action-item:focus {
  background: var(--bg-lighter);
  outline: none;
}

/* Comment image thumbnails */
.comment-images {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.comment-image-link {
  display: inline-block;
  border-radius: 6px;
  overflow: hidden;
  line-height: 0;
}
.comment-thumb {
  width: 120px;
  height: 90px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  cursor: zoom-in;
}
.comment-thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Lightbox styles */
.comment-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10050;
  padding: 20px;
}
.comment-lightbox-inner {
  position: relative;
  max-width: 95%;
  max-height: 95%;
}
.comment-lightbox-image {
  max-width: 100%;
  max-height: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}
.comment-lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #fff;
  color: #333;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.comment-like-btn {
  background: transparent;
  border: none;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-hint);
  cursor: pointer;
  border-radius: 999px;
}
.comment-like-btn .icon-heart {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.comment-like-btn.liked {
  color: var(--primary-color);
}
.el-dropdown .icon-more {
  width: 16px;
  height: 16px;
  fill: currentColor;
  color: var(--text-hint);
}
.comment-content.content {
  margin-top: 8px;
  margin-bottom: 8px;
  color: var(--text-color);
  line-height: 1.6;
  margin-left: 50px;
}
.comment-card-info {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--text-hint);
  font-size: 0.9rem;
  margin-left: 50px;
}
.comment-card-info .info-time {
  color: var(--text-hint);
}
.comment-card-info .info-source {
  color: var(--text-hint);
}
.comment-card-info .info-likes {
  color: var(--text-hint);
  font-weight: 600;
}
.comment-card-info .secondary {
  margin-left: 8px;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
}
.comment-card-info .secondary a {
  text-decoration: none;
  color: var(--text-color);
}

.comment-card-info .info-likes {
  margin-left: 8px;
}

/* Reduce vertical gap between comments to match screenshot */
.comment-list > li,
.comment-list > .comment {
  padding: 8px 0;
}

/* Force avatars to be perfectly circular and ensure images fill the circle */
.comment-avatar,
.ob-avatar,
.avatar-info-lt .comment-avatar,
.avatar-info-rt .ob-avatar,
.ob-image.round,
.ob-image.round .origin-image.round {
  border-radius: 50% !important;
  overflow: hidden;
  -webkit-border-radius: 50% !important;
  -moz-border-radius: 50% !important;
  display: inline-block;
}
.comment-avatar img,
.ob-avatar img,
.ob-image.round .origin-image.round,
.comment-avatar > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

@media (max-width: 480px) {
  .comment-meta-row {
    gap: 8px;
    font-size: 0.9rem;
  }
  .comment-meta-row .meta-right {
    margin-left: 6px;
  }
}

/* ============================================
   评论系统样式
   ============================================ */

.comments-area {
  margin-top: 60px;
  padding-top: 0;
  border-top: none;
}

.comments-title {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-barlow);
  margin-bottom: 40px;
  color: var(--text-color);
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}

.comment-list .comment {
  margin-bottom: 30px;
  padding-bottom: 0;
  border-bottom: none;
}

/* Defensive overrides to keep comment layout intact */
.comment-list > li {
  list-style: none;
}

.comment-body {
  display: flex;
  gap: 16px;
  width: 100%;
}

.comment-author .avatar,
.comment-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid var(--border-color, #2d2d2d);
}

.comment-content {
  margin: 0;
  flex: 1;
  line-height: 1.7;
}

.comment-meta {
  margin-top: 4px;
}

.comment-reply {
  margin-left: 72px;
  margin-top: 12px;
}

.comment-body {
  display: flex;
  gap: 20px;
}

.comment-author {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.comment-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--border-color);
}

.comment-author-info {
  flex: 1;
}

.comment-author .fn {
  font-weight: 600;
  font-style: normal;
  color: var(--text-color);
  font-size: 1rem;
  display: block;
  margin-bottom: 5px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-author .fn a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.comment-author .fn a:hover {
  color: var(--primary-color);
}

.comment-meta {
  font-size: 0.85rem;
  color: var(--text-color);
  opacity: 0.7;
}

.comment-meta a {
  color: var(--text-color);
  opacity: 0.7;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.comment-meta a:hover {
  opacity: 1;
  color: var(--primary-color);
}

.comment-content {
  margin-left: 75px;
  margin-top: 10px;
  line-height: 1.7;
  color: var(--text-color);
  font-size: 1rem;
}

.comment-content p {
  margin-bottom: 10px;
}

.comment-awaiting-moderation {
  color: var(--warning-color);
  font-style: italic;
  font-size: 0.8rem;
  margin-left: 50px;
  display: block;
}

.comment-reply {
  margin-left: 75px;
  margin-top: 15px;
}

.comment-reply .reply a {
  font-size: 0.9rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.comment-reply .reply a:hover {
  color: var(--secondary-color);
}

/* 嵌套评论 */
.comment-list .children {
  list-style: none;
  margin-top: 10px;
  padding-left: 30px;
  border-left: none;
}

.comment-list .children .comment {
  margin-bottom: 0;
}

/* Ensure depth-3+ comments are visually aligned to depth-2 (no extra indent) */
.comment-list li.depth-3,
.comment-list li.depth-4,
.comment-list li.depth-5 {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* Normalize content left margin for deep replies to match depth-2 spacing */
.comment-list li.depth-3 .comment-content,
.comment-list li.depth-4 .comment-content,
.comment-list li.depth-5 .comment-content {
  margin-left: 50px !important;
  padding-left: 0 !important;
}

/* Also ensure nested .children blocks do not add extra indent beyond level 2 */
.comment-list .children .children {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* Reply-to inline indicator for deep replies */
.reply-to-line {
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--text-hint);
}
.reply-to-author {
  color: var(--primary-color);
  font-weight: 700;
  margin-left: 4px;
}

/* inline indicator shown in moved form */
.reply-to-indicator {
  font-size: 0.95rem;
  color: var(--text-hint);
  margin-bottom: 8px;
  padding: 8px 10px;
  background: var(--bg-lighter);
  border-left: 3px solid var(--primary-color);
  border-radius: 6px;
}

/* Style for commentform when moved inline under a comment */
.commentform-inline {
  display: block !important;

  margin-top: 10px;
}
.commentform-inline textarea {
  width: 100%;
  box-sizing: border-box;
}

/* Prevent visual nesting beyond 2 levels: depth-3+ should align with depth-2 */
.comment-list li.depth-3 > .comment,
.comment-list li.depth-4 > .comment,
.comment-list li.depth-5 > .comment,
.comment-list li.depth-3 .comment-card-main,
.comment-list li.depth-4 .comment-card-main,
.comment-list li.depth-5 .comment-card-main {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* 评论表单 */
.comment-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text-color);
}

.comment-form {
  /* margin-top: 40px; */
}

.comment-form p {
  margin-bottom: 0;
}

.comment-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-color);
  font-size: 0.95rem;
}

.comment-form .required {
  color: var(--error-color);
  margin-left: 3px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--card-bg);
  color: var(--text-color);
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.comment-form textarea {
  height: auto;
  resize: vertical;
  line-height: 1.6;
}

/* Comment controls icon buttons — remove borders and default focus ring */
.comment-controls button,
.comment-image-btn,
.comment-emoji-btn,
.comment-link-btn {
  border: none;
  background: transparent;
  padding: 6px;
  cursor: pointer;
  color: var(--text-color);
  font-size: 1.05rem;
}
.comment-controls button:focus,
.comment-image-btn:focus,
.comment-emoji-btn:focus,
.comment-link-btn:focus {
  outline: none;
  box-shadow: none;
}

/* Make sure regular (outlined) Font Awesome icons display clearly */
.comment-controls i.far {
  font-weight: 400;
  color: var(--text-color);
}
/* Also ensure solid icons used for link look consistent */
.comment-controls i.fas {
  color: var(--text-color);
}

/* reply-cancel button inside moved form */
.reply-cancel-button {
  display: inline-block !important;
  margin-left: 12px !important;
  margin-right: 20px !important;
  padding: 8px 18px !important;
  border-radius: 20px !important;
  background: transparent !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-color) !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  transition: background 0.18s ease, transform 0.12s ease !important;
  vertical-align: top !important;
}

/* Submit button visuals (ensure border & background) */
.comment-submit,
button.comment-submit {
  border: 1px solid var(--border-color);
  background: var(--primary-color);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 20px;
  box-shadow: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}
.comment-submit:hover,
button.comment-submit:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}
.comment-submit:focus,
button.comment-submit:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(21, 166, 74, 0.12);
}

/* preview image item and remove button */
.comment-image-item {
  display: inline-block;
  position: relative;
  margin-right: 6px;
}
.comment-image-item img {
  display: block;
  max-width: 60px;
  max-height: 60px;
  border-radius: 6px;
}
.comment-image-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: white;
  cursor: pointer;
  padding: 0;
  line-height: 18px;
  font-size: 14px;
}

.comment-form .form-submit {
  margin-top: 30px;
  margin-bottom: 0;
}

.comment-form .form-submit .btn {
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.comment-form .form-submit .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

.comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-form .comment-form-cookies-consent input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.comment-form .comment-form-cookies-consent label {
  margin: 0;
  font-weight: normal;
  font-size: 0.9rem;
}

.no-comments {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-color);
  opacity: 0.7;
  font-style: italic;
}

/* 评论分页 */
.comments-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.comments-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 15px;
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.comments-pagination .page-numbers:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.comments-pagination .page-numbers.current {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}
.comment-controls-right{
  display: flex;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .comment-body {
    flex-direction: column;
  }

  .comment-author {
    flex-direction: column;
    align-items: flex-start;
  }

  .comment-content,
  .comment-awaiting-moderation,
  .comment-reply {
    margin-left: 0;
    margin-left: 10px;
  }

  .comment-list .children {
    margin-left: 20px;
    padding-left: 0;
  }

  .comments-title {
    font-size: 1rem;
  }

  .comment-form-title {
    font-size: 1.3rem;
  }

  /* 移动端评论控件优化 */
  .comment-controls {
    gap: 8px !important;
  }

  .comment-controls-left {
    gap: 6px !important;
  }

  /* 提交按钮在移动端优化 */
  .comment-submit,
  button.comment-submit {
    min-width: 80px;
    padding: 10px 16px;
    font-size: 14px;
  }

  /* 取消回复按钮在移动端优化 */
  .reply-cancel-button {
    margin-left: 8px !important;
    margin-right: 8px !important;
    padding: 8px 12px !important;
    font-size: 14px;
    min-width: 70px;
  }

  /* 确保触摸目标足够大 */
  .comment-image-btn,
  .comment-emoji-btn,
  .comment-link-btn {
    min-width: 40px;
    min-height: 40px;
    padding: 8px;
  }
}

/* 小屏幕设备进一步优化 */
@media (max-width: 480px) {
  /* 评论控件在小屏幕上垂直排列 */
  .comment-controls {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
  }

  .comment-controls-left {
    justify-content: center;
  }

  .comment-controls-right {
    margin-left: 0 !important;
    display: flex;
    justify-content: center;
  }

  /* 按钮在小屏幕上更大更易触摸 */
  .comment-submit,
  button.comment-submit {
    max-width: 200px;
    padding: 12px 20px;
    font-size: 16px; /* 防止iOS缩放 */
  }

  .reply-cancel-button {
    width: 100%;
    max-width: 150px;
    padding: 10px !important;
    font-size: 14px;
    margin: 0 auto !important;
  }

  /* 工具按钮调整 */
  .comment-controls-left {
    gap: 8px !important;
  }

  .comment-image-btn,
  .comment-emoji-btn,
  .comment-link-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
  }
}

/* Custom sort menu styles */
.comments-sort-menu {
  position: relative;
}
.comments-sort-menu .sort-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-barlow);
  color: var(--text-color);
}
.comments-sort-menu .sort-menu {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  min-width: 160px;
}

.comments-sort-menu .sort-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  background: transparent;
  border: 0;
  outline: none;
  cursor: pointer;
  color: #222;
  font-size: 14px;
}
.comments-sort-menu .sort-item:hover,
.comments-sort-menu .sort-item.active {
  background: #f5f7fb;
}
.comment-list.loading {
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 180ms ease;
}

/* Icon tweaks for sort toggle */
.comments-sort-menu .sort-toggle .sort-icon {
  color: var(--text-hint);
}
.comments-sort-menu .sort-toggle .sort-arrow {
  color: var(--text-hint);
  transition: transform 150ms ease;
}
.comments-sort-menu .sort-toggle[aria-expanded="true"] .sort-arrow {
  transform: rotate(180deg);
}

/* small stacked arrows next to sort icon */
.comments-sort-menu .sort-arrows {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
}
.comments-sort-menu .sort-arrows .sort-arrow-up,
.comments-sort-menu .sort-arrows .sort-arrow-down {
  color: var(--text-hint);
  font-size: 10px;
  line-height: 1;
}

/* Comment textarea visual styles and placeholder */

.comment-textarea::placeholder {
  color: var(--text-hint);
  font-weight: 700;
}
.comment-textarea:-ms-input-placeholder {
  color: var(--text-hint);
}
.comment-textarea::-ms-input-placeholder {
  color: var(--text-hint);
}
.comment-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06), 0 0 0 6px rgba(21, 166, 74, 0.06);
}

/* Slightly dim the preview/controls area when the textarea is empty */
.comment-form-comment + .comment-image-preview:empty + .comment-controls,
.comment-form-comment + .comment-image-preview + .comment-controls {
  /* placeholder selector kept for potential JS behavior; no visual rules needed here */
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Notice shown when comment is awaiting moderation */
.comment-awaiting-moderation-notice {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--bg-lighter);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  border-radius: 8px;
  font-size: 0.95rem;
}

/* toast notifications */
#oalemobile-toast-container {
  pointer-events: none;
}
.oale-toast {
  pointer-events: auto;
  background: #111;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  opacity: 1;
  transition: opacity 300ms ease, transform 200ms ease;
  transform: translateY(0);
  font-size: 0.95rem;
  max-width: 320px;
}
.oale-toast-error {
  background: #b00020;
}

/* Link marker styling - for guillemet characters « » around link titles */
.comment-textarea {
  position: relative;
}

/* Note: We can't directly style content inside textarea with CSS,
   but we can add a visual hint with JavaScript or use a contenteditable div */

/* Add a subtle background for link markers if we implement highlighting */
.comment-link-marker {
  background-color: rgba(0, 102, 204, 0.05);
  border: 1px solid rgba(0, 102, 204, 0.2);
  border-radius: 3px;
  padding: 0 2px;
}
.oale-toast-info {
  background: #111;
}

/* Link panel styles (like emoji panel) */
.link-panel {
  background: #fff;
  border: 1px solid #eee;
  padding: 8px;
  z-index: 2147483647;
  width: 320px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}