/* ── Drag & Drop + Multi-Select Visual States ── */
/* Follows AITourPilot design system: Plus Jakarta Sans, gold accent */

/* Selected items */
.dnd-selected {
  background: rgba(255,184,0,0.06) !important;
  border-left: 3px solid var(--gold, #FFB800) !important;
}
.teaser-item.dnd-selected { padding-left: 21px; }

/* Dragging source (being dragged) */
.dnd-ghost {
  opacity: 0.35 !important;
}

/* Body state during drag */
body.dnd-dragging { user-select: none; }
body.dnd-dragging .teaser-item,
body.dnd-dragging .card { cursor: grabbing !important; }

/* Insertion line (shown between items during drag) */
.dnd-insertion-line {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--gold, #FFB800);
  border-radius: 1px;
  pointer-events: none;
  z-index: 50;
  box-shadow: 0 0 4px rgba(255,184,0,0.4);
}

/* Drop target: subfolder row */
.subfolder-row.dnd-drop-target {
  border-color: var(--gold, #FFB800) !important;
  background: rgba(255,184,0,0.04) !important;
  box-shadow: 0 0 0 2px rgba(255,184,0,0.3);
}

/* Drop target: category section teaser-list (cross-category) */
.teaser-list.dnd-drop-target {
  box-shadow: inset 0 0 0 2px var(--gold, #FFB800);
  border-radius: 0 0 10px 10px;
}

/* Draggable cursor */
.teaser-item[draggable="true"],
.card[draggable="true"] {
  cursor: grab;
}

/* Mobile: hide selection (desktop only) */
@media (max-width: 768px) {
  .dnd-selected { background: transparent !important; border-left: none !important; }
}

/* Print: hide all DnD artifacts */
@media print {
  .dnd-selected,
  .dnd-insertion-line,
  .dnd-ghost { display: none !important; }
}

/* ── Category drag (whole header is the handle, including archive) ── */
.category-section > .category-header { cursor: grab; }
.category-section > .category-header:active { cursor: grabbing; }
/* Buttons inside the header keep their normal pointer cursor */
.category-header .folder-btn,
.category-section > .cat-collapse-btn { cursor: pointer; }

/* ── Section insertion line (category reorder) ── */
.dnd-section-insertion-line {
  position: fixed;
  left: 16px; right: 16px;
  height: 3px;
  background: var(--gold, #FFB800);
  border-radius: 2px;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 0 6px rgba(255,184,0,0.5);
}

@media print { .dnd-section-insertion-line { display: none !important; } }
