/* Bluemedusa visual editor — loaded on all pages; activates with ?editor=1 */
/* Szekciókeret: csak a JS által beszúrt .bm-section-outline (ne legyen CSS+JS dupla) */

[data-bm-section] {
  position: relative;
}

html.bm-editor-on [data-bm-section] {
  cursor: pointer;
}

html.bm-editor-on [data-bm-section]:hover,
html.bm-editor-on [data-bm-section].bm-hover,
html.bm-editor-on [data-bm-section].bm-selected,
html.bm-editor-on [data-bm-section].bm-selected:hover {
  box-shadow: none !important;
  outline: none !important;
}

html.bm-editor-on [data-bm-edit] {
  border-radius: 4px;
  cursor: text;
  outline: none !important;
  box-shadow: none !important;
}

html.bm-editor-on [data-bm-edit]:hover,
html.bm-editor-on [data-bm-edit].bm-hover {
  background: rgba(56, 189, 248, 0.08);
}

html.bm-editor-on [data-bm-edit].bm-selected,
html.bm-editor-on [data-bm-edit][contenteditable="true"]:focus {
  outline: none !important;
  box-shadow: none !important;
  background: rgba(56, 189, 248, 0.14);
}

.bm-section-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 60;
  padding: 4px 10px;
  border-radius: 6px;
  background: #3b82f6;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  pointer-events: none;
  font-family: ui-sans-serif, system-ui, sans-serif;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.bm-toolbar {
  position: absolute;
  z-index: 70;
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 10px;
  background: #0b1220;
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.bm-toolbar button {
  border: none;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.bm-toolbar .bm-ai {
  background: #3b82f6;
  color: #fff;
}

.bm-toolbar .bm-edit {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.bm-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.bm-modal {
  width: min(420px, 100%);
  background: #0e1420;
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.bm-modal h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #fff;
}

.bm-modal p {
  margin: 0 0 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

.bm-modal textarea {
  width: 100%;
  min-height: 90px;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  outline: none;
}

.bm-modal textarea:focus {
  border-color: rgba(59, 130, 246, 0.6);
}

.bm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.bm-modal-actions button {
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.bm-modal-actions .cancel {
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.bm-modal-actions .apply {
  background: #3b82f6;
  color: #fff;
}
