/* Inline delete confirmation INSIDE the same card (clean + refined) */

/* Host card: keeps overlay inside rounded corners */
.forum-confirm-host{
  position: relative;
  overflow: hidden;
}

/* Blur/dim the existing card content while confirming */
.forum-confirm-blur{
  filter: blur(2px);
  opacity: 0.55;
  pointer-events: none;
}

/* Overlay sits inside the same card */
.forum-confirm-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 50;
}

/* Confirmation box */
.forum-confirm-box{
  width: 100%;
  max-width: 520px;
  background: rgba(22, 23, 27, 0.92);
  border: 1px solid #2a2b31;
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,.45);
}

.forum-confirm-title{
  font-weight: 700;
  margin-bottom: 6px;
}

.forum-confirm-text{
  opacity: .8;
  font-size: .9rem;
  margin-bottom: 10px;
}

.forum-confirm-actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Small inline confirm buttons */
.forum-confirm-btn{
  border-radius: 10px;
  padding: 6px 10px;
  font-size: .85rem;
}

/* ===== Optional: tighter spacing tweaks (adjust these two lines to taste) ===== */
.forum-confirm-box{
  padding: 12px 12px 10px;
}
.forum-confirm-actions{
  gap: 8px;
}

/* -----------------------------------
   Forum deep-link highlight (ROBUST)
   - Works if class is applied to .comment-block/.reply-block
   - Also works if class is applied to wrapper and block is inside
   ----------------------------------- */

.comment-block,
.reply-block{
  position: relative; /* anchor ::after */
}

/* If class is added directly to the block */
.comment-block.forum-highlight-target::after,
.reply-block.forum-highlight-target::after,
/* If class is added to wrapper */
.forum-highlight-target .comment-block::after,
.forum-highlight-target .reply-block::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  /* Ensure it sits above any internal overlays */
  z-index: 2147483647;

  box-shadow: inset 0 0 0 2px rgba(255, 223, 0, 0.85);
  animation: forumHighlightStroke 2.6s ease-out forwards;
}




/* ============================= */
/* Forum Thread Row – Phase 2    */
/* ============================= */
.forum-thread-row {
  position: relative;
}

.forum-thread-left {
  width: 28px;
  flex: 0 0 28px;
}

/* Main content */

.forum-thread-main {
  min-width: 0; /* prevents flex overflow */
}

.forum-thread-header {
  gap: 12px;
}

.forum-thread-meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.forum-thread-body {
  font-size: 0.95rem;
  line-height: 1.35;
}

.forum-thread-tags .badge {
  font-size: 0.7rem;
  padding: 4px 8px;
  /* border-radius: 1px; */
}

.forum-thread-footer {
  gap: 12px;
}

.forum-thread-stats span {
  white-space: nowrap;
}

.forum-thread-actions,
.forum-thread-signals {
  display: flex;
  align-items: center;
  gap: 8px;
}

.forum-row-updated {
  box-shadow: inset 0 0 0 2px rgba(255, 223, 0, 0.55);
  transition: box-shadow 0.35s ease;
}

/* Ensure follow button area is always clickable and above row link hit-area */
.forum-thread-actions {
  position: relative;
  z-index: 20;
  pointer-events: auto;
}

/* Keep the link under the actions if any overlay occurs */
.forum-thread-link {
  position: relative;
  z-index: 1;
}

/* Defensive: if any row overlays exist, they should not steal clicks */
.forum-thread-row::before,
.forum-thread-row::after {
  pointer-events: none;
}
/* ============================= */
/* Forum Thread Signals – Phase 3 */
/* ============================= */

.forum-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
}

.forum-badge-unanswered {
  background: rgba(255, 255, 255, 0.08);
  color: #ddd;
  border: 1px dashed #3a3b42;
}

.forum-badge-hot {
  background: rgba(255, 223, 0, 0.12);
  color: #ffdf00;
  border: 1px solid rgba(255, 223, 0, 0.45);
}

/* ============================= */
/* Forum Tag Filter Bar          */
/* ============================= */

.forum-tagbar{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.forum-tag-pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
}

.forum-tag-pill:hover{
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.95);
}

.forum-tag-pill.is-active{
  background: rgba(255, 223, 0, 0.12);
  border-color: rgba(255, 223, 0, 0.45);
  color: #ffdf00;
}

.forum-tag-count{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.8);
}

.forum-tag-pill.is-active .forum-tag-count{
  border-color: rgba(255, 223, 0, 0.35);
  color: #ffdf00;
}



@keyframes forumHighlightStroke {
  0% {
    box-shadow: inset 0 0 0 2px rgba(255, 223, 0, 0.85);
  }
  60% {
    box-shadow: inset 0 0 0 2px rgba(255, 223, 0, 0.45);
  }
  100% {
    box-shadow: inset 0 0 0 2px rgba(255, 223, 0, 0);
  }
}
