/* ================================================================
   DISPATCH — Instagram Post Queue (three-column kanban)
   Scoped to .page-dispatch, prefixed dsp-
   ================================================================ */

/* ── Stats strip ────────────────────────────────────────────── */
.dsp-stats {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ivory-faint);
  letter-spacing: 0.5px;
  padding: 0 0 24px;
}

/* ── Board (three columns) ──────────────────────────────────── */
.dsp-board {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ── Column (horizontal scrolling lane) ─────────────────────── */
.dsp-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dsp-col-cards {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-faint) transparent;
}
.dsp-col-cards::-webkit-scrollbar { height: 6px; }
.dsp-col-cards::-webkit-scrollbar-track { background: transparent; }
.dsp-col-cards::-webkit-scrollbar-thumb { background: var(--gold-faint); border-radius: 3px; }
.dsp-col-head {
  padding: 12px 0 8px;
  border-bottom: 1px solid var(--gold-faint);
}
.dsp-col-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ivory-faint);
  margin-bottom: 2px;
}
.dsp-col-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ivory);
  font-weight: 400;
}
.dsp-col-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ivory-faint);
  margin-left: 6px;
}

/* ── Card ───────────────────────────────────────────────────── */
.dsp-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(226,198,141,0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
  min-width: 200px;
  max-width: 200px;
  flex-shrink: 0;
}
.dsp-card:hover {
  border-color: rgba(226,198,141,0.3);
}

/* ── Card image area ────────────────────────────────────────── */
.dsp-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--navy);
  cursor: default;
}
.dsp-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dsp-card-img:hover {
  outline: 1px dashed var(--gold);
  outline-offset: -4px;
}
.dsp-card-img-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ivory-faint);
  background: rgba(11,15,44,0.5);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.dsp-card-img:hover .dsp-card-img-overlay {
  opacity: 1;
}
.dsp-card-img.dsp-dragover {
  outline: 2px solid var(--gold);
  outline-offset: -4px;
  box-shadow: inset 0 0 24px rgba(226,198,141,0.15);
}
.dsp-card-img.dsp-dragover .dsp-card-img-overlay {
  opacity: 1;
  color: var(--gold);
}

/* Reset image button */
.dsp-card-img-reset {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(11,15,44,0.7);
  border: 1px solid rgba(226,198,141,0.3);
  color: var(--ivory-soft);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}
.dsp-card:hover .dsp-card-img-reset {
  opacity: 1;
}
.dsp-card-img-reset:hover {
  background: rgba(11,15,44,0.9);
  border-color: var(--gold);
  color: var(--gold);
}

/* Placeholder tile (no image) */
.dsp-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-family: var(--sans);
  font-size: 18px;
  color: var(--ivory-soft);
  background: var(--navy);
}

/* ── Card body ──────────────────────────────────────────────── */
.dsp-card-body {
  padding: 8px 10px 10px;
}
.dsp-card-meta {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ivory-faint);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dsp-card-platform {
  font-size: 18px;
  line-height: 1;
}
.dsp-card-caption {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ivory-soft);
  margin-bottom: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}
.dsp-card-readmore {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--gold);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  letter-spacing: 0.5px;
}
.dsp-card-readmore:hover {
  text-decoration: underline;
}

/* ── Hashtag chips ──────────────────────────────────────────── */
.dsp-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}
.dsp-card-tag {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--gold);
  background: var(--gold-faint);
  border-radius: 3px;
  padding: 2px 6px;
  letter-spacing: 0.3px;
}

/* ── Action rows ────────────────────────────────────────────── */
.dsp-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(226,198,141,0.08);
}
.dsp-btn-gold {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 4px;
  padding: 6px 14px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.dsp-btn-gold:hover { opacity: 0.85; }
.dsp-btn-gold:disabled { opacity: 0.4; cursor: default; }
.dsp-btn-ghost {
  font-family: var(--sans);
  font-size: 14px;
  background: none;
  color: var(--ivory-faint);
  border: 1px solid rgba(226,198,141,0.15);
  border-radius: 4px;
  padding: 5px 12px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.dsp-btn-ghost:hover {
  border-color: var(--gold);
  color: var(--ivory);
}
.dsp-card-countdown {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ivory-faint);
  margin-left: auto;
}

/* ── Posted stats row ───────────────────────────────────────── */
.dsp-card-stats {
  display: flex;
  gap: 12px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ivory-faint);
}
.dsp-card-posted-at {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ivory-faint);
  margin-top: 4px;
}

/* ── View all link ──────────────────────────────────────────── */
.dsp-view-all {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--gold);
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px 0;
  letter-spacing: 0.5px;
}
.dsp-view-all:hover { text-decoration: underline; }

/* ── Edit modal ─────────────────────────────────────────────── */
.dsp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,15,44,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.dsp-modal {
  background: #14142E;
  border: 1px solid var(--gold-soft);
  border-radius: 10px;
  padding: 28px 32px;
  width: 480px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
}
.dsp-modal h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ivory);
  margin: 0 0 16px;
  font-weight: 400;
}
.dsp-modal label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ivory-faint);
  margin-bottom: 4px;
}
.dsp-modal textarea,
.dsp-modal input[type="datetime-local"] {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(226,198,141,0.15);
  border-radius: 4px;
  padding: 10px 12px;
  color: var(--ivory);
  font-family: var(--body);
  font-size: 14px;
  margin-bottom: 16px;
  resize: vertical;
}
.dsp-modal textarea:focus,
.dsp-modal input:focus {
  outline: none;
  border-color: var(--gold);
}
.dsp-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ── Toast ──────────────────────────────────────────────────── */
.dsp-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #14142E;
  border: 1px solid var(--gold-soft);
  color: var(--ivory);
  font-family: var(--mono);
  font-size: 12px;
  padding: 10px 18px;
  border-radius: 6px;
  z-index: 10000;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.dsp-toast.dsp-toast-show {
  opacity: 1;
  transform: translateY(0);
}
