
/* Parents Corner Moderation - Clean Layout */

/* Give each moderation entry breathing room */
body.page-id-299 #bbpress-forums .bbp-reply,
body.page-id-299 #bbpress-forums .bbp-topic {
  margin-bottom: 24px;
}

/* Organize the entry header */
body.page-id-299 #bbpress-forums .bbp-reply-header,
body.page-id-299 #bbpress-forums .bbp-topic-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  overflow: visible;
}

/* Put the title before the action links */
body.page-id-299 #bbpress-forums .bbp-reply-header > *,
body.page-id-299 #bbpress-forums .bbp-topic-header > * {
  order: 1;
}

/* Place action links at the bottom of the header */
body.page-id-299 #bbpress-forums .bbp-admin-links {
  order: 10;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  float: none !important;
  clear: both;
  width: 100%;
  margin: 8px 0 0;
  text-align: left;
  font-size: 0;
}

/* Consistent button appearance */
body.page-id-299 #bbpress-forums .bbp-admin-links a {
  display: inline-block;
  background: #176d78;
  color: #fff !important;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none !important;
  text-transform: uppercase;
}

/* Approve - green */
body.page-id-299 #bbpress-forums
.bbp-admin-links a[class*="approve"] {
  background: #237a50 !important;
}

/* Trash and spam - red */
body.page-id-299 #bbpress-forums
.bbp-admin-links a[class*="trash"],
body.page-id-299 #bbpress-forums
.bbp-admin-links a[class*="spam"] {
  background: #a83e35 !important;
}

/* Hover effect */
body.page-id-299 #bbpress-forums
.bbp-admin-links a:hover {
  filter: brightness(0.9);
}

/* Mobile-friendly layout */
@media (max-width: 768px) {
  body.page-id-299 #bbpress-forums .bbp-admin-links {
    gap: 6px;
  }

  body.page-id-299 #bbpress-forums .bbp-admin-links a {
    padding: 9px 11px;
    font-size: 11px;
  }
}

/* Parents Corner - Final Moderation Layout */

/* Reserve space below the title for buttons */
body.page-id-299 #bbpress-forums .bbp-reply-header,
body.page-id-299 #bbpress-forums .bbp-topic-header {
  position: relative;
  display: block !important;
  padding: 18px 20px 76px !important;
  overflow: visible !important;
}

/* Position the actions at the bottom of each header */
body.page-id-299 #bbpress-forums .bbp-admin-links {
  position: absolute !important;
  bottom: 16px;
  left: 20px;
  right: 20px;
  width: auto !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  float: none !important;
}

/* Put Approve first */
body.page-id-299 #bbpress-forums
.bbp-admin-links a[class*="approve"] {
  order: -10;
}

/* Keep other actions in a sensible order */
body.page-id-299 #bbpress-forums
.bbp-admin-links a[class*="edit"] {
  order: 1;
}

body.page-id-299 #bbpress-forums
.bbp-admin-links a[class*="move"] {
  order: 2;
}

body.page-id-299 #bbpress-forums
.bbp-admin-links a[class*="trash"] {
  order: 8;
}

body.page-id-299 #bbpress-forums
.bbp-admin-links a[class*="spam"] {
  order: 9;
}

/* Extra space when buttons wrap on mobile */
@media (max-width: 768px) {
  body.page-id-299 #bbpress-forums .bbp-reply-header,
  body.page-id-299 #bbpress-forums .bbp-topic-header {
    padding-bottom: 125px !important;
  }
}
