/* ============================================================
   Queue Overhaul v0.3.1 — CSS
   ============================================================ */

/* ── Status bar as clickable filter links ── */
.stat-link {
  cursor: pointer;
  text-decoration: none;
  border-radius: 6px;
  padding: 6px 10px;
  transition: background 0.15s;
}
.stat-link:hover {
  background: rgba(0,0,0,0.05);
}
.stat-active {
  background: rgba(0,0,0,0.08) !important;
  border-bottom: 2px solid var(--text-primary);
}

/* ── Container max width ── */
#queue-list {
  max-width: 800px;
  margin: 0 auto;
}

/* ── Post thumbnails ── */
.post-thumb {
  width: 70px;
  height: 44px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 1px solid var(--border);
  margin-left: 12px;
  position: relative;
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-thumb:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.thumb-count {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(0,0,0,0.65);
  color: white;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 8px;
  font-family: var(--font-mono);
}

/* ── Lightbox ── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.15s ease-out;
}
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content img {
  max-width: 85vw;
  max-height: 82vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Close button — always visible top right */
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.5);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2001;
  transition: background 0.15s;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

/* Navigation arrows */
.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.4);
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2001;
  transition: background 0.15s;
  line-height: 1;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.3);
}

/* Image counter */
.lightbox-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  z-index: 2001;
}

/* ── Remove dimmed state on published posts ── */
.post-card.dimmed { opacity: 1; }

/* ── Post URL row ── */
.post-url-row input { font-family: var(--font-mono); }

/* ── Backfill card ── */
.badge-backfill {
  background: #FEF3C7;
  color: #92400E;
  font-size: 0.68rem;
  padding: 1px 8px;
  border-radius: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.backfill-card {
  border-left: 3px solid #F59E0B;
}
