/* DiscordEventWebhooks docs: extras on top of ../docs.css */

/* ---------- Discord channel + messages ---------- */
.dc-preview { padding: 12px; border-radius: 26px; display: flex; flex-direction: column; gap: 10px; }
.dc-channel { background: #313338; border-radius: 16px; overflow: hidden; color: #dbdee1; font-family: "Instrument Sans", system-ui, sans-serif; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.dc-top { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: 13px; font-weight: 600; color: #f2f3f5; border-bottom: 1px solid rgba(0,0,0,.35); box-shadow: 0 1px 0 rgba(255,255,255,.03); }
.dc-top .hash { color: #80848e; font-size: 20px; font-weight: 400; line-height: 1; }
.dc-feed { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 10px 0 14px; }
.dc-preview .dc-feed { min-height: 430px; }
.dc-in { animation: dcIn .5s var(--ease, ease) both; }
@keyframes dcIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.dc-msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 6px 16px; }
.dc-msg:hover { background: rgba(0,0,0,.06); }
.dc-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #5865f2; }
.dc-body { min-width: 0; }
.dc-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; line-height: 1.35; }
.dc-head b { color: #f2f3f5; font-weight: 600; font-size: 15px; }
.dc-app { background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; letter-spacing: .02em; }
.dc-head time { color: #949ba4; font-size: 12px; margin-left: 2px; }
.dc-embed { margin-top: 4px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; max-width: 432px; background: #2b2d31; border-left: 4px solid var(--bar, #fff); border-radius: 4px; padding: 10px 14px 12px 12px; }
.dc-embed-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dc-title { color: #f2f3f5; font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.dc-desc { color: #dbdee1; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.dc-desc code, .dc-title code { font-family: var(--mono); font-size: 12.5px; background: #1e1f22; padding: 1px 4px; border-radius: 4px; }
.dc-foot { color: #b5bac1; font-size: 12px; }
.dc-thumb { width: 64px; height: 64px; border-radius: 4px; object-fit: contain; image-rendering: pixelated; }
.dc-channel.small .dc-feed { min-height: 220px; justify-content: center; }
.dc-channel.tiny { border-radius: 12px; }
.dc-channel.tiny .dc-msg { padding: 10px 12px; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
.dc-channel.tiny .dc-av { width: 32px; height: 32px; }
.dc-channel.tiny .dc-thumb { width: 48px; height: 48px; }

/* ---------- webhook steps (same look as DeathEvents' flow) ---------- */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; position: relative; }
.flow-step { padding: 22px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.flow-step .mono { font-size: 11px; color: var(--accent); letter-spacing: .1em; }
.flow-step h3 { font-size: 19px; }
.flow-step p { color: var(--ink-2); font-size: 14.5px; }
.flow-step:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); z-index: 2; }
.flow + .d-note { margin-top: 16px; }

/* ---------- events ---------- */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.ev { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.ev header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ev header h3 { font-size: 19px; }
.ev header span { font-size: 11px; }
.ev > p { color: var(--ink-2); font-size: 14.5px; flex: 1; }

/* ---------- playground ---------- */
.ev-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-pick button, .menu-tabs.sub button { border: 0; cursor: pointer; font: inherit; font-size: 12px; color: var(--ink-2); background: rgba(255,255,255,.05); padding: 7px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.ev-pick button.active, .ev-pick button:hover, .menu-tabs.sub button.active { color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); background: rgba(124,196,255,.1); }
.pg-fields label span i { font-style: normal; }
.pg-fields input.bad { box-shadow: inset 0 0 0 1px #ff6b6b, 0 0 0 3px rgba(255,107,107,.15); }
.pg-colors { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-colors button { border: 0; cursor: pointer; font: inherit; font-size: 12px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 7px; border-radius: 999px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.pg-colors button i, .pg-colors .hex i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); flex: none; }
.pg-colors button.sel { color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }
.pg-fields .pg-colors .hex { flex-direction: row; display: inline-flex; align-items: center; gap: 6px; padding: 0 4px 0 9px; border-radius: 999px; background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.pg-colors .hex input { width: 92px; padding: 6px 6px; font-size: 12px; background: transparent; box-shadow: none; }
.pg-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.small { font-size: 13px; }
#pgPh button { font-size: 11.5px; }

/* ---------- commands ---------- */
h3.sub { margin: 28px 0 8px; font-size: 20px; }
.set-matrix td code { cursor: help; }
.set-matrix th { white-space: nowrap; }

/* ---------- menus ---------- */
.menu-tabs.sub { margin-top: -6px; margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.menu-tabs.sub[hidden] { display: none; }
.slot .pane.wool { border-radius: 3px; inset: 18%; background:
  repeating-linear-gradient(45deg, rgba(0,0,0,.12) 0 3px, transparent 3px 6px), var(--c); }
.menu-map { margin-top: 26px; }
.menu-map h3 { margin-bottom: 12px; }
.menu-map pre { font-size: 12.5px; line-height: 1.7; color: var(--ink-2); padding: 18px 20px; border-radius: 18px; background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); overflow-x: auto; }

/* ---------- config ---------- */
.cfg-sec td { padding-top: 18px !important; color: var(--accent); }
.cfg-sec code { color: var(--accent); }
.swatch { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--c); margin-right: 5px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }

@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-step:not(:last-child)::after { display: none; }
  .menu-map pre { font-size: 10.5px; }
  .dc-preview .dc-feed { min-height: 360px; }
  .ev-grid { grid-template-columns: 1fr; }
  .cfg-sec td::before { display: none; }
}
@media (max-width: 520px) {
  .flow { grid-template-columns: 1fr; }
  .dc-msg { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 6px 10px; }
  .dc-av { width: 34px; height: 34px; }
  .dc-thumb { width: 44px; height: 44px; }
  .dc-embed { padding: 8px 10px 10px; gap: 8px; }
}

/* long name: put "EventWebhooks" on its own line */
.d-title h1 { font-size: clamp(34px, 4.6vw, 68px); }
.d-title h1 .serif { display: block; }
@media (max-width: 900px) {
  .set-matrix tr { display: flex !important; flex-wrap: wrap; gap: 6px; align-items: center; }
  .set-matrix td { display: inline-block !important; width: auto !important; padding: 0 !important; border: 0 !important; }
  .set-matrix td:first-child { flex-basis: 100%; margin-bottom: 2px; }
  .set-matrix td::before { display: none !important; }
}
