/* /discord-bots/temporary-voice-channels (vcp-). Loaded after
   builtin_services.css (pa- tokens, hero type, buttons, mock window bar,
   closing band) and all_in_one.css (aio- sections, fact tiles, perks, steps,
   plans, FAQ, related links), both unchanged. Only what is new to this page
   lives here. */

.vcp { --vcp-ok: #34d399; --vcp-bad: #f87171; --vcp-blurple: #5865f2; --vcp-grey: #4e5058; --vcp-green: #248046; --vcp-red: #da373c; }

.vcp-ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vcp-chev { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.vcp-av { width: 22px; height: 22px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.62rem; font-weight: 700; color: #fff; background: hsl(var(--h, 220), 62%, 52%); }

/* Discord's button colours, the same in both themes as in the app. */
.vcp-btn { display: inline-flex; align-items: center; justify-content: center; font-size: 0.74rem; font-weight: 500; line-height: 1; color: #fff; border-radius: 4px; padding: 0.42rem 0.7rem; white-space: nowrap; }
.vcp-btn-primary { background: var(--vcp-blurple); }
.vcp-btn-secondary { background: var(--vcp-grey); }
.vcp-btn-success { background: var(--vcp-green); }
.vcp-btn-danger { background: var(--vcp-red); }

/* ---- Hero stage: the channel list, the panel and the host ---- */
.vcp-stage { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 520px; padding-top: 30px; }
.vcp-bot { position: absolute; top: -34px; right: -14px; width: 250px; height: auto; z-index: 0; pointer-events: none; filter: drop-shadow(0 18px 30px rgba(0,0,0,0.42)); }
.vcp-side { position: relative; z-index: 1; width: 60%; background: var(--yb-void); border: 1px solid var(--yb-border); border-radius: 12px; overflow: hidden; box-shadow: 0 22px 60px rgba(0,0,0,0.3); }
.vcp-side-server { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-weight: 700; font-size: 0.88rem; color: var(--yb-text); padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--yb-border); box-shadow: 0 1px 0 rgba(0,0,0,0.12); }
.vcp-side-body { padding: 0.55rem 0.45rem 0.7rem; }
.vcp-side-cat { display: flex; align-items: center; gap: 0.2rem; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--yb-muted); padding: 0.25rem 0.35rem 0.35rem; }
.vcp-side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.vcp-ch { display: grid; gap: 0.1rem; }
.vcp-ch-row { display: flex; align-items: center; gap: 0.45rem; padding: 0.34rem 0.5rem; border-radius: 6px; font-size: 0.84rem; color: var(--yb-muted); min-width: 0; }
.vcp-ch-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcp-ch-lobby .vcp-ch-row { color: var(--yb-text); font-weight: 600; background: var(--yb-overlay-soft); }
.vcp-ch-lobby .vcp-ic { color: var(--vcp-ok); }
.vcp-ch:not(.vcp-ch-lobby) .vcp-ch-row { color: var(--yb-text); }
.vcp-ch-locked .vcp-ic { color: var(--vcp-bad); }
.vcp-ch-cap { margin-left: auto; display: inline-flex; font-family: var(--mono); font-size: 0.6rem; border-radius: 4px; overflow: hidden; border: 1px solid var(--yb-border2); flex: none; }
.vcp-ch-cap b { font-weight: 600; padding: 1px 4px; color: var(--yb-text); background: var(--yb-overlay-soft); }
.vcp-ch-cap b + b { color: var(--yb-muted); background: transparent; }
.vcp-ch-members { list-style: none; margin: 0 0 0.25rem; padding: 0 0 0 1.55rem; display: grid; gap: 0.12rem; }
.vcp-ch-members li { display: flex; align-items: center; gap: 0.45rem; font-size: 0.78rem; color: var(--yb-muted); padding: 0.1rem 0; }
.vcp-ch-members .vcp-av { width: 18px; height: 18px; font-size: 0.54rem; }

.vcp-panel { position: relative; z-index: 2; width: 70%; margin: -168px 0 0 auto; background: var(--yb-abyss); border: 1px solid var(--yb-gold-dim); border-radius: 12px; padding: 0.75rem 0.85rem 0.85rem; box-shadow: 0 0 0 1px rgba(59,130,246,0.1), 0 20px 50px rgba(37,99,235,0.22); }
.vcp-panel-head { display: flex; align-items: center; gap: 0.45rem; font-size: 0.84rem; margin-bottom: 0.45rem; flex-wrap: wrap; }
.vcp-panel-head b { color: var(--yb-text); font-weight: 600; }
.vcp-panel-av { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--yb-depth); border: 1px solid var(--yb-gold-dim); overflow: hidden; flex: none; }
.vcp-panel-av img { width: 76%; height: auto; display: block; }
.vcp-panel-dm { margin-left: auto; font-family: var(--mono); font-size: 0.54rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yb-muted); }
.vcp-embed { border-left: 4px solid var(--vcp-blurple); background: var(--yb-depth); border-radius: 4px; padding: 0.55rem 0.75rem 0.6rem; display: grid; gap: 0.4rem; }
.vcp-embed-title { font-weight: 700; font-size: 0.88rem; color: var(--yb-text); }
.vcp-embed-desc { font-size: 0.74rem; line-height: 1.45; color: var(--yb-muted); }
.vcp-embed-desc code, .vcp-lobby code, .vcp-ph code { font-family: var(--mono); font-size: 0.92em; padding: 0 4px; border-radius: 3px; background: var(--yb-overlay-soft); border: 1px solid var(--yb-border); color: var(--yb-text); }
.vcp-embed-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; }
.vcp-ef { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.vcp-ef-k { font-size: 0.68rem; font-weight: 700; color: var(--yb-text); }
.vcp-ef-v { font-size: 0.72rem; color: var(--yb-muted); overflow-wrap: anywhere; }
.vcp-embed-foot { font-size: 0.62rem; line-height: 1.4; color: var(--yb-muted2); }
.vcp-btns { display: grid; gap: 0.3rem; margin-top: 0.55rem; }
.vcp-btn-row { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.vcp-btns .vcp-btn { font-size: 0.66rem; padding: 0.36rem 0.55rem; }

/* ---- 01 From lobby to gone ---- */
.vcp-life { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; position: relative; }
.vcp-life::before { content: ''; position: absolute; left: 12%; right: 12%; top: 27px; height: 2px; background: linear-gradient(90deg, var(--yb-cyan-dim), var(--yb-gold-dim)); z-index: 0; }
.vcp-life-step { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.35rem; align-items: flex-start; }
.vcp-life-ic { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--yb-abyss); border: 1px solid var(--yb-cyan-dim); color: var(--yb-cyan); box-shadow: 0 0 0 6px var(--yb-void); margin-bottom: 0.45rem; }
.vcp-life-ic svg { width: 22px; height: 22px; }
.vcp-life-step:last-child .vcp-life-ic { color: var(--vcp-ok); border-color: rgba(52,211,153,0.45); }
.vcp-life-n { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--yb-muted2); }
.vcp-life-t { font-family: var(--disp); font-weight: 700; font-size: 1.12rem; color: var(--yb-text); }
.vcp-life-x { font-size: 0.88rem; line-height: 1.56; color: var(--yb-muted); }

/* ---- 02 The buttons ---- */
.vcp-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.vcp-key { display: flex; flex-direction: column; gap: 0.6rem; background: var(--yb-abyss); border: 1px solid var(--yb-border); border-radius: 12px; padding: 1rem 1.05rem 1.05rem; min-width: 0; }
.vcp-key-btns { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.vcp-key-btns .vcp-btn { font-size: 0.8rem; padding: 0.48rem 0.85rem; }
.vcp-key-x { font-size: 0.87rem; line-height: 1.56; color: var(--yb-muted); margin: 0; }

/* ---- 03 Lobbies and templates ---- */
.vcp-lobbies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.vcp-lobby { background: var(--yb-void); border: 1px solid var(--yb-border2); border-radius: 12px; overflow: hidden; min-width: 0; }
.vcp-lobby-head { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.95rem; color: var(--yb-text); padding: 0.75rem 1rem; border-bottom: 1px solid var(--yb-border); background: var(--yb-overlay-soft); }
.vcp-lobby-head .vcp-ic { color: var(--vcp-ok); }
.vcp-lobby-rows { margin: 0; padding: 0.35rem 1rem 0.6rem; display: grid; }
.vcp-lobby-rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 0.7rem; padding: 0.45rem 0; border-bottom: 1px dashed rgba(96,128,210,0.18); }
.vcp-lobby-rows > div:last-child { border-bottom: 0; }
.vcp-lobby-rows dt { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yb-muted); flex: none; }
.vcp-lobby-rows dd { margin: 0; font-size: 0.84rem; color: var(--yb-text); text-align: right; min-width: 0; overflow-wrap: anywhere; }
.vcp-room-chip { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 600; color: var(--yb-text); background: var(--yb-cyan-bg); border: 1px solid var(--yb-cyan-dim); border-radius: 6px; padding: 1px 8px; }
.vcp-ph { margin: 1rem 0 1.2rem; background: var(--yb-abyss); border: 1px solid var(--yb-border); border-radius: 12px; padding: 0.9rem 1.1rem 0.95rem; }
.vcp-ph-h { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yb-cyan); }
.vcp-ph-list { margin: 0.6rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; }
.vcp-ph-list > div { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.vcp-ph-list dt code { font-size: 0.82rem; color: var(--yb-cyan); }
.vcp-ph-list dd { margin: 0; font-size: 0.84rem; line-height: 1.45; color: var(--yb-muted); }

/* ---- Cards (lobbies, cleanup) ---- */
.vcp-cards { display: grid; gap: 0.8rem; }
.vcp-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vcp-card { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; background: var(--yb-abyss); border: 1px solid var(--yb-border); border-radius: 12px; padding: 1rem 1.05rem 1.1rem; }
.vcp-card-ic { width: 34px; height: 34px; flex: none; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--yb-cyan-bg); border: 1px solid var(--yb-cyan-dim); color: var(--yb-cyan); margin-bottom: 0.2rem; }
.vcp-card-ic svg { width: 17px; height: 17px; }
.vcp-card-t { font-family: var(--disp); font-weight: 600; font-size: 1rem; line-height: 1.25; color: var(--yb-text); }
.vcp-card-x { font-size: 0.86rem; line-height: 1.56; color: var(--yb-muted); }

/* ---- 04 The room's permission list ---- */
.vcp-split { align-items: start; }
.vcp-perms { margin: 0; background: var(--yb-void); border: 1px solid var(--yb-border); border-radius: 12px; overflow: hidden; box-shadow: 0 22px 60px rgba(0,0,0,0.28); min-width: 0; }
.vcp-perm-list { list-style: none; margin: 0; padding: 0.35rem 0; }
.vcp-perm { display: grid; gap: 0.45rem; padding: 0.7rem 1rem 0.75rem; border-bottom: 1px solid var(--yb-border); }
.vcp-perm:last-child { border-bottom: 0; }
.vcp-perm-who { display: flex; align-items: center; gap: 0.5rem; font-size: 0.86rem; }
.vcp-perm-who b { color: var(--yb-text); font-weight: 600; }
.vcp-perm-tag { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yb-muted); border: 1px solid var(--yb-border2); border-radius: 999px; padding: 1px 8px; }
.vcp-perm-owner .vcp-perm-tag { color: var(--yb-gold-light); border-color: var(--yb-gold-dim); }
.vcp-perm-locked .vcp-perm-tag { color: var(--vcp-bad); border-color: rgba(248,113,113,0.45); }
.vcp-perm-bits { display: flex; flex-wrap: wrap; gap: 0.3rem; padding-left: 1.9rem; }
.vcp-bit { font-size: 0.72rem; padding: 2px 8px 2px 20px; border-radius: 5px; position: relative; }
.vcp-bit::before { position: absolute; left: 7px; top: 50%; transform: translateY(-50%); font-weight: 700; font-size: 0.72rem; }
.vcp-bit-allow { color: var(--vcp-ok); background: rgba(52,211,153,0.09); border: 1px solid rgba(52,211,153,0.3); }
.vcp-bit-allow::before { content: '\2713'; }
.vcp-bit-deny { color: var(--vcp-bad); background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.35); }
.vcp-bit-deny::before { content: '\2715'; }

/* ---- Closing band ---- */
.vcp-close .aio-close-art { max-width: 330px; }

/* ---- Light theme ---- */
[data-theme="light"] .vcp { --vcp-ok: #0f9f6e; --vcp-bad: #d63c3c; }
[data-theme="light"] .vcp-side, [data-theme="light"] .vcp-perms { box-shadow: 0 16px 40px rgba(30,41,80,0.12); }
[data-theme="light"] .vcp-panel { box-shadow: 0 0 0 1px rgba(37,99,235,0.08), 0 14px 34px rgba(37,99,235,0.14); }
[data-theme="light"] .vcp-bot { filter: drop-shadow(0 14px 22px rgba(20,30,60,0.22)); }
[data-theme="light"] .vcp-btn-secondary { background: #6d6f78; }
[data-theme="light"] .vcp-ph-h, [data-theme="light"] .vcp-perm-owner .vcp-perm-tag { color: var(--yb-gold); }
[data-theme="light"] .vcp-life-ic { box-shadow: 0 0 0 6px var(--yb-abyss); }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .vcp-ph-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .vcp-stage { justify-self: center; max-width: 540px; }
  .vcp-life { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.4rem; }
  .vcp-life::before { display: none; }
  .vcp-keys, .vcp-lobbies, .vcp-cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  /* Mono labels: legible floor on a phone, nothing below ~10px. */
  .vcp-panel-dm, .vcp-life-n, .vcp-lobby-rows dt, .vcp-ph-h, .vcp-perm-tag, .vcp-side-cat, .vcp-ch-cap, .vcp-embed-foot { font-size: 0.64rem; }
}
@media (max-width: 560px) {
  .vcp-stage { padding-top: 150px; }
  .vcp-bot { width: 196px; top: -16px; right: -6px; }
  .vcp-side { width: 88%; }
  .vcp-panel { width: 96%; margin-top: -70px; }
  .vcp-life, .vcp-keys, .vcp-lobbies, .vcp-cards-3, .vcp-ph-list { grid-template-columns: 1fr; }
  .vcp-embed-fields { grid-template-columns: 1fr 1fr; }
  .vcp-perm-bits { padding-left: 0; }
}
