/* ═══════════════════════════════════════════════════════════════════
   COVEN CHAT HUB PANEL
   ═══════════════════════════════════════════════════════════════════ */

.vc-coven-chat {
  position: fixed;
  bottom: -900px;
  right: 20px;
  min-width: 320px;
  min-height: 350px;
  max-width: 800px;
  max-height: 900px;
  display: flex;
  flex-direction: column;
  background: #110d1e;
  border: 1px solid rgba(120,80,240,.45);
  border-radius: 14px;
  box-shadow: 0 20px 70px rgba(0,0,0,.88), 0 0 0 1px rgba(120,80,240,.1);
  z-index: 9999;
  transition: bottom .38s cubic-bezier(.2,.8,.3,1);
  overflow: hidden;
}
.vc-coven-chat.visible { bottom: 20px; }
.vc-coven-chat.minimized { min-height: unset; height: 48px !important; overflow: hidden; }
.vc-coven-chat.minimized .vc-cc-body { display: none; }
.vc-coven-chat.minimized .vc-cc-tabs { display: none; }

/* Header */
.vc-cc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px 10px;
  border-bottom: 1px solid rgba(120,80,240,.2);
  background: rgba(120,80,240,.1);
  flex-shrink: 0;
  cursor: grab;
}
.vc-cc-icon { font-size: 15px; flex-shrink: 0; }
.vc-cc-coven-name {
  font-size: 12px;
  font-weight: 700;
  color: rgba(220,200,255,.9);
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Channel tabs */
.vc-cc-tabs {
  display: flex;
  gap: 2px;
  padding: 6px 10px 4px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  background: rgba(0,0,0,.15);
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}
.vc-cc-tabs::-webkit-scrollbar { display: none; }
.vc-cc-tab {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 5px;
  color: rgba(200,180,255,.5);
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 10px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .12s, color .12s, border-color .12s;
  position: relative;
}
.vc-cc-tab:hover { background: rgba(120,80,240,.12); color: rgba(200,180,255,.8); }
.vc-cc-tab.active {
  background: rgba(120,80,240,.22);
  border-color: rgba(120,80,240,.5);
  color: #c084fc;
}
.vc-cc-tab-unread {
  display: inline-block;
  margin-left: 5px;
  background: #c084fc;
  color: #1a0a30;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  padding: 0 5px;
  line-height: 1.5;
  vertical-align: middle;
}

/* Body (stamp area + feed + compose) */
.vc-cc-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.vc-cc-stamp-area { border-bottom: 1px solid rgba(255,255,255,.05); }

/* Feed inside coven chat inherits .vc-lf-feed styles */
.vc-cc-feed { flex: 1; }

/* ── Resize handles ── */
.vc-cc-resize-e {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 5px;
  cursor: ew-resize;
  z-index: 10;
}
.vc-cc-resize-n {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  cursor: ns-resize;
  z-index: 10;
}
.vc-cc-resize-ne {
  position: absolute;
  top: 0; right: 0;
  width: 14px; height: 14px;
  cursor: nesw-resize;
  z-index: 11;
}
.vc-cc-resize-ne::after {
  content: '';
  position: absolute;
  top: 2px; right: 2px;
  width: 6px; height: 6px;
  border-top: 2px solid rgba(120,80,240,.35);
  border-right: 2px solid rgba(120,80,240,.35);
}

/* ── Sidebar chat button ── */
.vc-chat-sidebar-btn {
  width: 100%;
  text-align: left;
  background: none;
  font-family: var(--font-vhs);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.vc-chat-sidebar-btn:hover {
  background: rgba(120,80,240,.1);
  color: #c084fc !important;
  border-color: rgba(120,80,240,.3) !important;
}
.vc-chat-unread-pip {
  background: #c084fc !important;
  color: #1a0a30 !important;
  font-weight: 700;
}

@media (max-width: 600px) {
  .vc-coven-chat {
    width: calc(100vw - 16px) !important;
    right: 8px;
    max-height: 80vh;
  }
}

/* ── Live feed hub button ── */
.vc-lf-hub-btn {
  background: none; border: 1px solid rgba(120,80,240,.25);
  border-radius: 5px; color: rgba(180,140,255,.6);
  cursor: pointer; font-size: 13px; padding: 2px 6px;
  line-height: 1; transition: all .15s; flex-shrink: 0;
}
.vc-lf-hub-btn:hover { background: rgba(120,80,240,.15); color: #c084fc; border-color: rgba(120,80,240,.5); }

/* ── Edit players picker ── */
.vc-wr-edit-players-btn {
  background: none; border: none; color: rgba(180,140,255,.45);
  cursor: pointer; font-size: 11px; padding: 1px 4px;
  border-radius: 3px; transition: color .12s, background .12s;
  vertical-align: middle; line-height: 1;
}
.vc-wr-edit-players-btn:hover { color: #c084fc; background: rgba(120,80,240,.12); }

.vc-wr-player-picker {
  background: #1a1030;
  border: 1px solid rgba(120,80,240,.35);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vc-wr-pp-title {
  font-size: 10px; font-weight: 700;
  color: rgba(180,140,255,.7);
  letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: 2px;
}
.vc-wr-pp-row {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: rgba(220,210,255,.8);
  cursor: pointer; padding: 2px 0;
}
.vc-wr-pp-row input { accent-color: #c084fc; cursor: pointer; }
.vc-wr-pp-actions { display: flex; gap: 6px; margin-top: 4px; }

/* ── Coven chat header ticker ── */
.vc-cc-ticker-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  margin: 0 8px;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}
.vc-cc-ticker {
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
  animation: vc-cc-ticker-scroll 18s linear infinite;
}
.vc-cc-ticker:empty { animation: none; }
@keyframes vc-cc-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.vc-cc-tick-item {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  opacity: .7;
  flex-shrink: 0;
}
.vc-cc-tick-text {
  font-size: 9.5px;
  color: rgba(200,180,255,.55);
  background: rgba(120,80,240,.1);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: var(--font-vhs, monospace);
  letter-spacing: .03em;
}

/* ── Sealed/archive tab ── */
.vc-cc-tab--sealed {
  opacity: .6;
  font-style: italic;
}
.vc-cc-tab--sealed.active {
  opacity: 1;
  border-color: rgba(200,160,80,.5);
  color: #c9973a;
}

/* ── Archive dropdown tab ── */
.vc-cc-archive-wrap {
  position: relative;
  display: inline-flex;
}
.vc-cc-tab--archive {
  opacity: .7;
  font-style: italic;
  letter-spacing: .01em;
}
.vc-cc-tab--archive.active { opacity: 1; color: #c9973a; border-color: rgba(200,160,80,.45); }

.vc-cc-archive-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 180px;
  background: #1a1030;
  border: 1px solid rgba(120,80,240,.35);
  border-radius: 8px;
  padding: 5px;
  z-index: 9999;
  box-shadow: 0 8px 28px rgba(0,0,0,.5);
  flex-direction: column;
  gap: 2px;
}
.vc-cc-archive-dropdown.open { display: flex; }

.vc-cc-archive-item {
  background: none;
  border: none;
  border-radius: 6px;
  color: rgba(220,210,255,.75);
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font-vhs, monospace);
  padding: 7px 10px;
  text-align: left;
  transition: background .12s, color .12s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vc-cc-archive-item:hover { background: rgba(120,80,240,.15); color: #c084fc; }
.vc-cc-archive-item.active { color: #c9973a; background: rgba(200,160,80,.1); }

/* ═══════════════════════════════════════════════════════════════════════
   Per-version wishlist (games/wishes.js) — reuses the copy editor's modal,
   section heads, release cards, platform buttons and format cards; these
   rules only cover the pieces that are new.
   ═══════════════════════════════════════════════════════════════════════ */
.vc-wish-backdrop .vc-copy-modal { max-width: 760px; }
.vc-wish-view { display: contents; }
.vc-wish-plat-grid { max-height: 300px; overflow-y: auto; scrollbar-width: thin; padding-right: 2px; }
.vc-wish-plat-grid > .vc-wish-any { width: 100%; flex-direction: row; padding: 12px; margin-bottom: 12px; }
.vc-wish-plat-group { margin-bottom: 12px; }
.vc-wish-plat-group-label {
  font-family: var(--font-vhs, monospace); font-size: 0.625rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--grp-color, var(--gold)); margin: 0 0 6px 2px; opacity: .85;
}
.vc-wish-plat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.vc-wish-release-grid .vc-wish-any-release .vc-copy-release-cover {
  display: flex; align-items: center; justify-content: center; font-size: 1.75rem; color: var(--gold);
}
.vc-wish-summary {
  font-family: var(--font-vhs, monospace); font-size: 0.6875rem; letter-spacing: 1px; color: var(--dust, rgba(200,188,170,.7));
  padding: 10px 2px 0;
}
.vc-wish-summary b { color: var(--gold); font-weight: 600; }

.vc-wish-list, .vc-wish-copy-list { display: flex; flex-direction: column; gap: 8px; }
.vc-wish-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(201,151,58,.18);
  border-left: 3px solid var(--gold); border-radius: 10px;
}
.vc-wish-row-main { flex: 1; min-width: 0; }
.vc-wish-row-title { font-family: var(--font-header, serif); font-size: 0.9375rem; color: var(--static, #e8e0d5); }
.vc-wish-row-note { font-family: var(--font-grimoire, serif); font-style: italic; font-size: 0.8125rem; color: var(--fog, #9e9080); margin-top: 2px; }
.vc-wish-row-meta { font-family: var(--font-vhs, monospace); font-size: 0.625rem; letter-spacing: 1px; color: var(--dust, #5c5248); margin-top: 4px; }
.vc-wish-row-x {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  background: transparent; border: 1px solid rgba(255,255,255,.12); color: var(--fog, #9e9080);
}
.vc-wish-row-x:hover { border-color: var(--blood-bright, #c0392b); color: var(--blood-text, #e05a5a); }
.vc-wish-copy-state {
  flex: 0 0 auto; font-family: var(--font-vhs, monospace); font-size: 0.625rem; letter-spacing: 1px; color: var(--dust, #5c5248);
}
.vc-wish-copy-state--match { color: var(--green, #4ecf8a); }
.vc-wish-copy-check {
  flex: 0 0 auto; display: flex; align-items: center; gap: 6px; cursor: pointer;
  font-family: var(--font-vhs, monospace); font-size: 0.6875rem; letter-spacing: .5px; color: var(--fog, #9e9080);
}
.vc-wish-copy-check input { accent-color: var(--gold); width: 16px; height: 16px; }
