/* ==========================================================================
   HOVMUD IN-PAGE LIVE VISUAL EDITOR (HOV-STUDIO)
   ========================================================================== */

#hovStudioWidget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.studio-toggle-btn {
  background: #191614;
  color: #fbf9f5;
  border: 1px solid rgba(244, 208, 129, 0.4);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-toggle-btn:hover {
  transform: translateY(-2px);
  background: #2b231d;
  border-color: #f4d081;
}

.studio-panel {
  position: absolute;
  bottom: 50px;
  right: 0;
  width: 330px;
  background: rgba(23, 19, 16, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(244, 208, 129, 0.3);
  border-radius: 18px;
  padding: 18px;
  color: #f5ede4;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  gap: 14px;
}

.studio-panel.is-open {
  display: flex;
}

.studio-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.studio-panel-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f4d081;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.studio-btn-close {
  background: none;
  border: none;
  color: #b5a89b;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.studio-btn-close:hover {
  color: #ffffff;
}

.studio-mode-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.studio-mode-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
}

.studio-mode-hint {
  font-size: 0.72rem;
  color: #b8ab9f;
  line-height: 1.4;
}

.btn-studio-action {
  background: #f4d081;
  color: #191614;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-studio-action:hover {
  background: #ffe39e;
}

.btn-studio-action.active {
  background: #10b981;
  color: #ffffff;
}

.studio-font-select-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.studio-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #d8cec4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.studio-select {
  background: #2b231d;
  color: #fbf9f5;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
}

.btn-studio-save {
  background: #191614;
  color: #f4d081;
  border: 1px solid rgba(244, 208, 129, 0.6);
  border-radius: 8px;
  padding: 10px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-studio-save:hover {
  background: #f4d081;
  color: #191614;
}

.studio-status-msg {
  font-size: 0.72rem;
  text-align: center;
  color: #10b981;
  min-height: 14px;
}

/* While live-editing text */
.hov-editing-active [data-editable="true"] {
  outline: 1.5px dashed rgba(244, 208, 129, 0.7) !important;
  outline-offset: 3px;
  cursor: text !important;
  transition: outline 0.2s ease;
}

.hov-editing-active [data-editable="true"]:hover {
  outline: 2px solid #f4d081 !important;
  background: rgba(244, 208, 129, 0.1) !important;
}
