/* ============================================================
   VIVID — editor UI (stripped from exported files)
   Styled to match the template: ink borders, hard shadows, candy.
   ============================================================ */

.vv-fab {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  z-index: 300;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2.5px solid var(--ink, #1b1523);
  background: var(--yellow, #ffd23f);
  color: var(--ink, #1b1523);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink, #1b1523);
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.vv-fab:hover { transform: translate(-2px, -2px) rotate(-8deg); box-shadow: 6px 6px 0 var(--ink, #1b1523); background: var(--lime, #cdf463); }

.vv-panel {
  position: fixed;
  right: 1.3rem;
  bottom: 5.8rem;
  z-index: 300;
  width: 330px;
  max-height: min(72vh, 660px);
  overflow-y: auto;
  background: #fff;
  border: 2.5px solid var(--ink, #1b1523);
  border-radius: 18px;
  box-shadow: 7px 7px 0 var(--ink, #1b1523);
  padding: 1.2rem 1.25rem 1.35rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
  color: var(--ink, #1b1523);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
}
.vv-panel.open { opacity: 1; transform: none; pointer-events: auto; }

.vv-head { font-size: 1.05rem; margin-bottom: 0.5rem; }
.vv-head strong {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  background: linear-gradient(transparent 60%, var(--lime, #cdf463) 60%);
  padding: 0 2px;
}
.vv-hint { color: #524a5e; line-height: 1.5; margin-bottom: 0.9rem; }

.vv-sec { border-top: 2px dashed #e8e2f2; padding-top: 0.9rem; margin-top: 0.9rem; }
.vv-lab {
  display: block;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7d7590;
  margin-bottom: 0.45rem;
}
.vv-field {
  width: 100%;
  box-sizing: border-box;
  font: 500 0.9rem/1.4 "Space Grotesk", sans-serif;
  padding: 0.55em 0.75em;
  border: 2px solid var(--ink, #1b1523);
  border-radius: 10px;
  background: var(--paper, #fff8ee);
}
.vv-field:focus { outline: none; box-shadow: 3px 3px 0 var(--accent, #7c3aed); background: #fff; }
.vv-note { color: #8c8499; font-size: 0.77rem; line-height: 1.45; margin-top: 0.45rem; }

.vv-accent-row { display: flex; align-items: center; gap: 0.7rem; }
.vv-accent-row input[type="color"] {
  width: 46px;
  height: 38px;
  border: 2px solid var(--ink, #1b1523);
  border-radius: 10px;
  padding: 2px;
  background: #fff;
  cursor: pointer;
}
.vv-swatches { display: flex; gap: 0.45rem; }
.vv-sw {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 2px solid var(--ink, #1b1523);
  cursor: pointer;
  transition: transform 0.15s;
}
.vv-sw:hover { transform: scale(1.18) rotate(10deg); }

.vv-check { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; cursor: pointer; font-weight: 500; }
.vv-btn {
  width: 100%;
  font: 700 0.9rem/1 "Space Grotesk", sans-serif;
  padding: 0.85em 1em;
  border: 2px solid var(--ink, #1b1523);
  border-radius: 999px;
  background: var(--accent, #7c3aed);
  color: #fff;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink, #1b1523);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.vv-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink, #1b1523); }
.vv-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink, #1b1523); }
.vv-btn--ghost { background: #fff; color: #c0392b; border-color: #c0392b; box-shadow: 3px 3px 0 #e3c4c4; }
.vv-btn--ghost:hover { background: #fdf0ef; box-shadow: 5px 5px 0 #e3c4c4; }

.vv-toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%) translateY(20px);
  z-index: 310;
  background: var(--ink, #1b1523);
  color: #fff;
  font: 700 0.9rem/1 "Space Grotesk", sans-serif;
  padding: 0.9em 1.5em;
  border-radius: 999px;
  border: 2px solid #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
}
.vv-toast.show { opacity: 1; transform: translateX(-50%); }

/* -------- editing affordances -------- */
body.vv-editing [contenteditable] {
  outline: 1.5px dashed rgba(124, 58, 237, 0.55);
  outline-offset: 3px;
  border-radius: 2px;
  cursor: text;
  transition: outline-color 0.2s, background 0.2s;
}
body.vv-editing [contenteditable]:hover { outline-color: var(--accent, #7c3aed); }
body.vv-editing [contenteditable]:focus {
  outline: 2px solid var(--accent, #7c3aed);
  background: rgba(124, 58, 237, 0.07);
}
body.vv-editing [data-vv-img] { cursor: pointer; }
body.vv-editing [data-vv-img]:hover { filter: brightness(1.06); }
body.vv-editing [data-vv-img]::after {
  content: "⇧ click photo";
  position: absolute;
  left: 10px;
  top: 10px;
  font: 700 0.62rem/1 "Space Grotesk", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(27, 21, 35, 0.85);
  color: #fff;
  padding: 0.55em 0.85em;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.92;
}
/* every photo slot is position:relative-able; .work-img & photo wraps
   already create their own box — give them a positioning context */
body.vv-editing [data-vv-img] { position: relative; }

/* add / remove buttons */
body.vv-editing [data-vv-item] { position: relative; }
.vv-x {
  position: absolute;
  top: -11px;
  right: -11px;
  z-index: 20;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--ink, #1b1523);
  background: #ff5c5c;
  color: #fff;
  font-size: 0.78rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink, #1b1523);
  transition: transform 0.15s;
}
.vv-x:hover { transform: scale(1.15) rotate(90deg); }

.vv-add {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  width: 100%;
  border: 2.5px dashed var(--accent, #7c3aed);
  border-radius: 14px;
  background: rgba(124, 58, 237, 0.06);
  color: var(--accent, #7c3aed);
  font: 700 0.9rem/1 "Space Grotesk", sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 0.5rem;
}
.vv-add:hover { background: rgba(124, 58, 237, 0.14); transform: translateY(-2px); }

/* zone-specific add-button sizing */
.quotes .vv-add { flex: 0 0 220px; min-height: auto; margin-top: 0; }
.works .vv-add, .services .vv-add { min-height: 140px; }
.facts .vv-add, .counters .vv-add { min-height: 48px; margin-top: 0; }

/* dark section tweaks */
.sec-dark .vv-add {
  border-color: var(--lime, #cdf463);
  background: rgba(205, 244, 99, 0.08);
  color: var(--lime, #cdf463);
}
body.vv-editing .sec-dark .sec-title[contenteditable],
body.vv-editing .sec-dark [contenteditable] { outline-color: rgba(255, 255, 255, 0.45); }
body.vv-editing .sec-dark [contenteditable]:focus {
  outline-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
  .vv-panel { right: 0.8rem; left: 0.8rem; width: auto; bottom: 5.6rem; }
  .vv-fab { right: 1rem; bottom: 1rem; }
}
