/* =========================================================
   Space Lightplay — Editor Styles
   ========================================================= */

/* ── Hover brightness — frontend only ── */
body:not(.block-editor-page) .space-lightplay:hover img {
  filter: brightness(0.7);
}
.space-lightplay--empty {
  background: #f6f7f7;
  border: 2px dashed #c5c5c5;
  border-radius: 8px;
  padding: 32px 24px;
  box-sizing: border-box;
}

/* ── Hide native WP placeholder chrome, use our own ── */
.space-lightplay--empty .components-placeholder {
  background: transparent;
  box-shadow: none;
  padding: 0;
  min-height: 0;
}

.space-lightplay--empty .components-placeholder__label {
  font-size: 15px;
  font-weight: 600;
  color: #1e1e1e;
  margin-bottom: 4px;
}

.space-lightplay--empty .components-placeholder__label svg {
  fill: var(--wp-admin-theme-color, #3858e9);
}

.space-lightplay--empty .components-placeholder__instructions {
  font-size: 13px;
  color: #757575;
  margin-bottom: 16px;
}

.space-lightplay--empty .components-placeholder__fieldset {
  width: 100%;
}

/* ── URL input row ── */
.sll-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  max-width: 560px;
}

.sll-input-row input[type="text"] {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  font-size: 13px;
  border: 1px solid #c5c5c5;
  border-radius: 4px;
  background: #fff;
  color: #1e1e1e;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  box-sizing: border-box;
}

.sll-input-row input[type="text"]:focus {
  border-color: var(--wp-admin-theme-color, #3858e9);
  box-shadow: 0 0 0 1px var(--wp-admin-theme-color, #3858e9);
}

.sll-input-row input[type="text"]::placeholder {
  color: #aaa;
}

/* ── Editor preview (when video is set) ── */
.space-lightplay--editor {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .1);
  transition: box-shadow .15s ease;
}

.space-lightplay--editor:hover {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .15), 0 4px 12px rgba(0, 0, 0, .08);
}

.space-lightplay--editor.is-selected {
  box-shadow: 0 0 0 2px var(--wp-admin-theme-color, #3858e9);
}

/* ── Video ID badge (editor only) ── */
.space-lightplay--editor::after {
  content: attr(data-id);
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 5;
  font-size: 11px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  letter-spacing: .03em;
  color: rgba(255, 255, 255, .8);
  background: rgba(0, 0, 0, .75);
  padding: 3px 8px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity .15s ease, transform .15s ease;
}

.space-lightplay--editor:hover::after,
.space-lightplay--editor.is-selected::after {
  opacity: 1;
  transform: translateY(0);
}
