/* /assets/admin-edit.css
   Styles for the super-admin live content editor overlay (/assets/admin-edit.js).
   All selectors are prefixed dt-ae- and scoped under #dt-ae-root so they never
   clash with page styles. Inert (no visible chrome) until the overlay mounts. */

#dt-ae-root {
  --dt-ae-navy: #0E1B2C;
  --dt-ae-card: #16243A;
  --dt-ae-text: #F2E9D8;
  --dt-ae-dim: #8a8478;
  --dt-ae-gold: #EFB940;
  --dt-ae-gold-bright: #FFC854;
  --dt-ae-border: rgba(201, 169, 97, 0.35);
  --dt-ae-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  --dt-ae-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  position: static;
}

/* Badge -------------------------------------------------------------------- */
.dt-ae-badge {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--dt-ae-navy);
  color: var(--dt-ae-text);
  border: 1px solid var(--dt-ae-border);
  border-radius: 999px;
  padding: 6px 10px 6px 12px;
  font-family: var(--dt-ae-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}
.dt-ae-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dt-ae-gold);
  box-shadow: 0 0 0 0 rgba(239, 185, 64, 0.7);
  animation: dt-ae-pulse 2s infinite;
}
@keyframes dt-ae-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 185, 64, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(239, 185, 64, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 185, 64, 0); }
}
.dt-ae-badge__btn {
  background: transparent;
  color: var(--dt-ae-gold);
  border: 1px solid var(--dt-ae-border);
  border-radius: 999px;
  padding: 3px 10px;
  font-family: var(--dt-ae-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.dt-ae-badge__btn:hover { background: rgba(239, 185, 64, 0.14); color: var(--dt-ae-gold-bright); }

/* Popover (action bar + forms) -------------------------------------------- */
.dt-ae-pop {
  position: absolute;
  z-index: 2147483001;
  background: var(--dt-ae-card);
  border: 1px solid var(--dt-ae-border);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  padding: 6px;
  font-family: var(--dt-ae-sans);
}
.dt-ae-pop__bar { display: flex; gap: 4px; align-items: center; }
.dt-ae-pop__btn {
  background: transparent;
  color: var(--dt-ae-text);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 6px 12px;
  font-family: var(--dt-ae-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
}
.dt-ae-pop__btn:hover { background: rgba(239, 185, 64, 0.16); color: var(--dt-ae-gold-bright); }
.dt-ae-pop__x { color: var(--dt-ae-dim); padding: 6px 9px; }

.dt-ae-pop--form { width: 320px; max-width: 86vw; }
.dt-ae-form__sel {
  color: var(--dt-ae-dim);
  font-size: 12px;
  font-style: italic;
  margin: 2px 4px 8px;
  line-height: 1.4;
}
.dt-ae-form__input {
  width: 100%;
  background: var(--dt-ae-navy);
  color: var(--dt-ae-text);
  border: 1px solid var(--dt-ae-border);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: var(--dt-ae-sans);
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  margin-bottom: 8px;
}
.dt-ae-form__input:focus { outline: none; border-color: var(--dt-ae-gold); }

/* Block being edited ------------------------------------------------------- */
.dt-ae-editing {
  outline: 2px dashed var(--dt-ae-gold) !important;
  outline-offset: 4px;
  border-radius: 3px;
  background: rgba(239, 185, 64, 0.06);
}

/* Pending panel ------------------------------------------------------------ */
.dt-ae-panel {
  position: fixed;
  bottom: 60px;
  left: 16px;
  z-index: 2147483000;
  width: 340px;
  max-width: 90vw;
  max-height: 50vh;
  overflow-y: auto;
  background: var(--dt-ae-navy);
  color: var(--dt-ae-text);
  border: 1px solid var(--dt-ae-border);
  border-radius: 10px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.5);
  padding: 12px 14px;
  font-family: var(--dt-ae-sans);
}
.dt-ae-panel__title {
  font-family: var(--dt-ae-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dt-ae-gold);
  margin-bottom: 10px;
}
.dt-ae-panel__empty { color: var(--dt-ae-dim); font-size: 13px; }
.dt-ae-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid rgba(242, 233, 216, 0.08);
  font-size: 13px;
}
.dt-ae-item:first-of-type { border-top: none; }
.dt-ae-item__mode {
  font-family: var(--dt-ae-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(239, 185, 64, 0.16);
  color: var(--dt-ae-gold-bright);
  flex-shrink: 0;
}
.dt-ae-item__mode--jam { background: rgba(120, 180, 255, 0.16); color: #9ec5ff; }
.dt-ae-item__mode--suggest { background: rgba(160, 230, 160, 0.16); color: #a6e6a6; }
.dt-ae-item__text { flex: 1; color: var(--dt-ae-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-ae-item__x {
  background: transparent;
  border: none;
  color: var(--dt-ae-dim);
  font-family: var(--dt-ae-mono);
  font-size: 10px;
  cursor: pointer;
  flex-shrink: 0;
}
.dt-ae-item__x:hover { color: var(--dt-ae-gold-bright); }

/* Toasts ------------------------------------------------------------------- */
.dt-ae-toasts {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 2147483002;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.dt-ae-toast {
  background: var(--dt-ae-card);
  color: var(--dt-ae-text);
  border: 1px solid var(--dt-ae-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--dt-ae-sans);
  font-size: 13px;
  max-width: 340px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.dt-ae-toast--in { opacity: 1; transform: translateY(0); }
.dt-ae-toast__link { color: var(--dt-ae-gold); text-decoration: underline; }
