.modhub-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.modhub-head {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modhub-title {
  margin: 0;
}

.modhub-sub {
  margin: 6px 0 0 0;
  opacity: 0.8;
}

.modhub-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
  padding: 10px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.modhub-tab {
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  padding: 8px 12px;
  color: inherit;
  font-weight: 600;
}

/* Inactive (theme gray) default */
.tab-reports,
.tab-queue {
  opacity: 0.75;
}

/* Active (theme style) default: reports active */
.tab-reports {
  opacity: 1;
}

/* Panels: default show reports, hide queue */
.modhub-panel {
  display: none;
}

/* Prevent hash jump from hiding under sticky bar */
#reports,
#queue {
  scroll-margin-top: 70px; /* adjust if your topbar height differs */
}

#reports {
  display: block;
}

/* When queue is targeted, show it and hide reports */
#queue:target {
  display: block;
}

#queue:target ~ #reports {
  display: none;
}

/* When #queue is active: queue active, reports gray */
#queue:target ~ #reports ~ .modhub-topbar .tab-queue {
  opacity: 1;
}
#queue:target ~ #reports ~ .modhub-topbar .tab-reports {
  opacity: 0.75;
}

/* When #reports is targeted, show it */
#reports:target {
  display: block;
}

.modhub-section {
  margin-top: 10px;
}

/* Stop hash navigation from jumping under the sticky bar */
.modhub-target {
  display: block;
  scroll-margin-top: 70px; /* adjust if needed */
}

/* Panel switching: default reports */
.modhub-queue { display: none; }
.modhub-reports { display: block; }

/* Default active tab styling */
.tab-reports { opacity: 1; }
.tab-queue { opacity: 0.7; }

/* When #queue is targeted: show queue + activate queue tab */
#queue:target ~ .modhub-topbar .tab-queue { opacity: 1; }
#queue:target ~ .modhub-topbar .tab-reports { opacity: 0.7; }
#queue:target ~ .modhub-panels .modhub-queue { display: block; }
#queue:target ~ .modhub-panels .modhub-reports { display: none; }

/* When #reports is targeted: show reports + activate reports tab */
#reports:target ~ .modhub-topbar .tab-reports { opacity: 1; }
#reports:target ~ .modhub-topbar .tab-queue { opacity: 0.7; }
#reports:target ~ .modhub-panels .modhub-queue { display: none; }
#reports:target ~ .modhub-panels .modhub-reports { display: block; }


/* --- Moderation dashboard (tiles) --- */
.moddash-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 18px;
}

.moddash-title {
  margin: 0 0 6px 0;
}

.moddash-subtitle {
  margin: 0 0 16px 0;
  opacity: 0.85;
}

.moddash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.moddash-tile {
  display: block;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px;
  transition: transform 120ms ease, border-color 120ms ease;
}

.moddash-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
}

.moddash-tile-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.moddash-tile-desc {
  opacity: 0.85;
  font-size: 0.95rem;
  line-height: 1.35;
}
