/* GWB Delete UX Proto — Shared Styles v2
 * Extracted from: builds/gallery-wall-design/bottom-bar/src/ (b147, 2026-09-24)
 * Design tokens, typography, wall-print, toast, chrome-btn all sourced from real GWB.
 * Fonts: Inter + Helvetica from HoS CDN (same @font-face as production GWB).
 */

/* ── Fonts — exact same @font-face as GWB production (src/index.html) ── */
@font-face {
  font-family: 'Helvetica';
  src: url("//houseofspoils.com/cdn/shop/t/466/assets/Helvetica.woff2?v=9182066612540024501769021734") format('woff2');
  font-weight: 400; font-style: normal;
}
@font-face {
  font-family: 'Helvetica';
  src: url("//houseofspoils.com/cdn/shop/t/466/assets/Helvetica-Bold.woff2?v=53811216733031632271769021733") format('woff2');
  font-weight: 700; font-style: normal;
}
@font-face {
  font-family: 'Inter';
  src: url("//houseofspoils.com/cdn/shop/t/466/assets/Inter-Regular.woff2?v=148314936069788670161769021735") format('woff2');
  font-weight: 400; font-style: normal;
}
@font-face {
  font-family: 'Inter';
  src: url("//houseofspoils.com/cdn/shop/t/466/assets/Inter-Medium.woff2?v=165666121829017658021769021733") format('woff2');
  font-weight: 500; font-style: normal;
}
@font-face {
  font-family: 'Inter';
  src: url("//houseofspoils.com/cdn/shop/t/466/assets/Inter-Bold.woff2?v=22989109572710079641769021734") format('woff2');
  font-weight: 700; font-style: normal;
}

/* ── Design tokens — extracted verbatim from GWB :root ── */
:root {
  /* Color system (from GWB production, rgba channel form) */
  --color-primary-black: 0, 0, 0;
  --color-primary-black-subdued: 35, 35, 35;
  --color-primary-white: 255, 255, 255;
  --color-gray-50: 247, 247, 247;
  --color-gray-200: 225, 226, 229;
  --color-gray-400: 165, 167, 175;
  --color-gray-500: 134, 137, 148;
  --color-gray-600: 93, 95, 105;
  --color-accents-blue: 2, 166, 255;
  --color-accents-green: 21, 255, 157;
  --color-accents-red: 241, 26, 26;

  /* HoS semantic palette */
  --hos-black: #000000;
  --hos-black-subdued: #232323;
  --hos-white: #ffffff;
  --hos-off-white: #f7f7f7;
  --hos-warm-gray: #e1e2e5;
  --hos-mid-gray: #a5a7af;
  --hos-text: #000000;
  --hos-text-muted: #5d5f69;
  --hos-text-subtle: #868994;

  /* Typography */
  --sans: 'Inter', Helvetica, Arial, sans-serif;
  --heading: 'Helvetica', 'Inter', Arial, sans-serif;

  /* Layout */
  --nav-h: 44px;

  /* Proto-specific */
  --danger: rgb(var(--color-accents-red));
  --danger-dark: #c0110b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--sans);
  color: var(--hos-text);
  background: var(--hos-off-white);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════
   CHROME BAR — extracted from GWB 02-chrome-bar.css
   Identical to production nav bar
   ══════════════════════════════════════ */
.back-bar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  background: rgba(var(--color-primary-white));
  border-bottom: 1px solid rgba(var(--color-gray-200));
  display: flex; align-items: center; padding: 0 12px;
  gap: 8px; flex-wrap: nowrap;
  z-index: 1000; min-width: 0;
}
.back-bar-link {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500;
  color: rgba(var(--color-gray-400)); text-decoration: none;
  white-space: nowrap;
}
.back-bar-link:hover { color: rgba(var(--color-gray-600)); }
.back-bar-div { width: 1px; height: 14px; background: rgba(var(--color-gray-200)); flex-shrink: 0; }
.back-bar-spacer { flex: 1; }
.back-bar-title {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 600;
  color: rgba(var(--color-primary-black));
  white-space: nowrap;
}
.chrome-btn {
  background: none; border: none; cursor: pointer;
  padding: 0; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1;
  color: rgba(var(--color-gray-500));
  border-radius: 6px;
  transition: background 0.1s, color 0.1s;
  flex-shrink: 0;
}
.chrome-btn:hover { background: #EBEBEB; color: rgba(var(--color-primary-black)); }
.proto-badge {
  font-family: var(--sans); font-size: 9px; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(var(--color-gray-600));
  padding: 3px 8px; border: 1px solid rgba(var(--color-gray-200));
  background: rgba(var(--color-primary-white)); flex-shrink: 0; font-weight: 500;
}

/* ══════════════════════════════════════
   SCENE / WALL CANVAS — extracted from GWB 05-scene.css
   ══════════════════════════════════════ */
.scene-wrap {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  bottom: 0;
  display: flex; flex-direction: column; overflow: hidden;
}
.scene-container {
  flex: 1; overflow: visible; position: relative;
}
#wall-canvas {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden; cursor: default;
  background: #f0ede8;
}
/* Simulated room wall background within canvas */
.wall-region {
  position: absolute;
  background: #e8e4dd;
  border: none;
  /* Subtle texture via gradient */
  background-image: linear-gradient(160deg, #ede9e2 0%, #e4dfd8 40%, #dbd5cc 100%);
}

/* ══════════════════════════════════════
   WALL PRINTS — extracted from GWB inline CSS (lines 985-1025)
   These are the exact classes GWB uses on real print tiles.
   Frame renders are <img> tags with the actual Shopify CDN PNGs.
   ══════════════════════════════════════ */
.wall-print {
  position: absolute; cursor: grab; user-select: none;
  z-index: 10;
  transition: opacity 150ms ease-out, filter 150ms ease-out;
}
.wall-print:active { cursor: grabbing; }
.wall-print img {
  width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none;
  /* GWB frame renders use drop-shadow for depth */
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.22));
}
.wall-print:hover { z-index: 30; }
.wall-print.dragging { cursor: grabbing; z-index: 50; opacity: 0.9; }
.wall-print.selected { z-index: 40; }
/* Selection ring — GWB's exact wp-sel-box style */
.wp-sel-box {
  position: absolute; inset: 0;
  outline: 1.5px solid rgba(var(--color-primary-black), 0.75);
  outline-offset: 3px;
  pointer-events: none; display: none;
}
.wall-print.selected .wp-sel-box { display: block; }

/* Deleting animation */
.wall-print.deleting {
  transition: opacity 0.18s ease-out, transform 0.18s ease-out !important;
  opacity: 0 !important; transform: scale(0.88) !important;
  pointer-events: none !important;
}

/* ══════════════════════════════════════
   ROLLOVER ACTION TRIO — from GWB 16-rollover-trio.css
   wp-ha: 27px white circle with blur backdrop, dark icon, shadow
   ══════════════════════════════════════ */
.wp-hover-actions {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 6;
  opacity: 0; pointer-events: none;
  transition: opacity 150ms cubic-bezier(0.23,1,0.32,1);
}
.wall-print:hover .wp-hover-actions { opacity: 1; pointer-events: auto; }
.wall-print.dragging .wp-hover-actions { opacity: 0; pointer-events: none; }
.wp-ha {
  width: 27px; height: 27px; border-radius: 50%; padding: 0;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border: 1px solid rgba(0,0,0,0.14);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: #1a1a1a; box-shadow: 0 1px 5px rgba(0,0,0,0.14);
  transition: transform 160ms cubic-bezier(0.23,1,0.32,1);
}
.wp-ha:hover { transform: scale(1.08); }
.wp-ha:active { transform: scale(0.94); }
/* Delete button danger state */
.wp-ha.wp-ha-remove:hover {
  background: rgb(var(--color-accents-red));
  border-color: rgb(var(--color-accents-red));
  color: #fff;
}

/* ══════════════════════════════════════
   TOAST — exact GWB ui.js showToast() inline style, converted to class
   White card, top-center of canvas, sharp corners (border-radius:0)
   ══════════════════════════════════════ */
.wall-toast {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  background: #fff; color: #0A0A0A;
  border: 1px solid #E4E4E7;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 10px 18px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  font-family: var(--sans);
  z-index: 4000; border-radius: 0;
  transition: opacity 0.25s cubic-bezier(0.23,1,0.32,1);
  white-space: nowrap;
  display: flex; align-items: center; gap: 0;
  pointer-events: none; opacity: 0;
}
.wall-toast.visible { opacity: 1; pointer-events: auto; }
.wall-toast-action {
  margin-left: 14px; background: none; border: none; padding: 0; cursor: pointer;
  color: #0A0A0A; font: inherit; letter-spacing: inherit; text-transform: inherit;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ══════════════════════════════════════
   CAPTION CARD — for route description below canvas
   ══════════════════════════════════════ */
.caption-wrap {
  padding: 20px;
}
.caption-card {
  background: rgba(var(--color-primary-white));
  border: 1px solid rgba(var(--color-gray-200));
  padding: 16px 20px;
  font-size: 12px; line-height: 1.7;
  color: rgba(var(--color-gray-600));
  font-family: var(--sans);
}
.caption-card strong { color: rgba(var(--color-primary-black)); font-weight: 600; }
.caption-card .label {
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 500; color: rgba(var(--color-gray-500)); margin-bottom: 6px;
}

/* ── Utility ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
