.hdhworld-forum {
  border: 1px solid #dcdcdc;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.hdhworld-forum-editor,
.hdhworld-forum-reply-form {
  margin-bottom: 1rem;
}

.hdhworld-forum-title {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.hdhworld-forum-textarea,
.hdhworld-forum-reply-textarea {
  width: 100%;
  min-height: 90px;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  resize: vertical;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.hdhworld-forum-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: #333;
}

.hdhworld-forum-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
  font-size: 0.9rem;
}

.hdhworld-forum-sort-select {
  padding: 0.35rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
}

.hdhworld-forum-submit,
.hdhworld-forum-reply-submit,
.hdhworld-forum-reply-button {
  background: #0073aa;
  color: #fff;
  padding: 0.55rem 0.9rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

.hdhworld-forum-submit:hover,
.hdhworld-forum-reply-submit:hover,
.hdhworld-forum-reply-button:hover {
  background: #006799;
}

.hdhworld-forum-comment {
  border: 1px solid #e5e5e5;
  padding: 0.85rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: #fafafa;
}

.hdhworld-forum-comment-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #444;
}

.hdhworld-forum-author {
  font-weight: 600;
}

.hdhworld-forum-date {
  color: #777;
}

.hdhworld-forum-comment-body {
  margin-bottom: 0.75rem;
  white-space: pre-wrap;
  color: #2a2a2a;
}

.hdhworld-forum-children {
  margin-left: 1.25rem;
  margin-top: 1rem;
}

.hdhworld-forum-notice {
  min-height: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.hdhworld-forum-notice.success {
  color: #155724;
}

.hdhworld-forum-notice.error {
  color: #721c24;
}

.hdhworld-forum-loading,
.hdhworld-forum-error,
.hdhworld-forum-empty {
  color: #555;
  padding: 0.75rem 0.5rem;
}

.hdhworld-forum-login {
  margin-bottom: 1rem;
}

.hdhworld-forum-login a {
  color: #0073aa;
}

.hdhworld-forum-post {
  display: block;
  border: 1px solid #d6dce2;
  background: #fff;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.hdhworld-forum-post-header {
  margin-bottom: 0.5rem;
}

.hdhworld-forum-post-title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #1a1a1a;
}

.hdhworld-forum-post-meta {
  color: #666;
  font-size: 0.85rem;
  margin: 0.5rem 0 0.75rem;
}

.hdhworld-forum-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.hdhworld-forum-like-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #eef0f3;
  color: #333;
  border: 1px solid transparent;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
}

.hdhworld-forum-like-button:hover {
  background: #e0e3e8;
}

.hdhworld-forum-like-button.is-liked {
  background: #e7f3ff;
  border-color: #0073aa;
  color: #0073aa;
}

.hdhworld-forum-like-button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.hdhworld-forum-like-icon {
  font-size: 1rem;
  line-height: 1;
}

.hdhworld-forum-like-count {
  font-variant-numeric: tabular-nums;
}

.hdhworld-forum-delete-button,
.hdhworld-forum-report-button,
.hdhworld-forum-edit-button {
  display: inline-flex;
  align-items: center;
  background: #eef0f3;
  color: #444;
  border: 1px solid transparent;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
}

.hdhworld-forum-delete-button:hover,
.hdhworld-forum-report-button:hover,
.hdhworld-forum-edit-button:hover {
  background: #e0e3e8;
}

.hdhworld-forum-delete-button {
  background: #fbe9e7;
  color: #b3261e;
}

.hdhworld-forum-delete-button:hover {
  background: #f3c4be;
}

.hdhworld-forum-report-form {
  margin: 0.5rem 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
}

.hdhworld-forum-report-label {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.hdhworld-forum-report-reason {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  cursor: pointer;
}

.hdhworld-forum-report-reason input {
  margin-right: 0.4rem;
}

.hdhworld-forum-report-submit {
  margin-top: 0.5rem;
}

.hdhworld-forum-edit-form {
  margin: 0.5rem 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
}

.hdhworld-forum-edit-title {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.hdhworld-forum-edit-textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  resize: vertical;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.hdhworld-forum-edit-actions {
  display: flex;
  gap: 0.4rem;
}

.hdhworld-forum-edit-submit {
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}

.hdhworld-forum-edit-submit:hover {
  background: #006799;
}

.hdhworld-forum-edit-cancel {
  background: #eef0f3;
  color: #444;
  border: 1px solid transparent;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}

.hdhworld-forum-edit-cancel:hover {
  background: #e0e3e8;
}

.hdhworld-forum-edited-flag {
  color: #888;
  font-size: 0.85em;
  margin-left: 0.4em;
}

.hdhworld-forum-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.hdhworld-forum-turnstile {
  margin: 0.5rem 0 0.75rem;
  min-height: 65px;
}

.hdhworld-forum-load-more {
  display: inline-block;
  margin: 0.5rem 0;
  background: transparent;
  color: #0073aa;
  border: 1px solid #0073aa;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}

.hdhworld-forum-load-more:hover {
  background: #e7f3ff;
}

.hdhworld-forum-load-more[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.hdhworld-forum-deleted-placeholder {
  color: #888;
  font-style: italic;
  padding: 0.5rem 0;
}

.hdhworld-forum-post.is-deleted,
.hdhworld-forum-comment.is-deleted {
  background: #f4f4f4;
  border-color: #e0e0e0;
}

.hdhworld-forum-socials {
  display: block;
  margin: 0.5rem 0 0.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
}

.hdhworld-forum-socials legend {
  font-size: 0.85rem;
  color: #555;
  padding: 0 0.35rem;
}

.hdhworld-forum-social-input {
  display: block;
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.hdhworld-forum-social-input:last-child {
  margin-bottom: 0;
}

.hdhworld-forum-social {
  display: flex;
  gap: 0.4rem;
  margin: 0 0 0.5rem;
}

.hdhworld-forum-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
}

.hdhworld-forum-social-link.is-facebook {
  background: #1877f2;
}

.hdhworld-forum-social-link.is-instagram {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.hdhworld-forum-social-link.is-twitter {
  background: #111;
}

.hdhworld-forum-social-glyph {
  pointer-events: none;
}
