/*
 * Build A Shelf Child — bas-3d-frame.css
 * ----------------------------------------------------------------------------
 * Visual chrome for the 3D viewer that lives BELOW the standard WC product
 * gallery on the Pre-Cut Wire Shelf Liner page. Signals "interactive 3D" so
 * users know to drag/zoom — bare canvas reads as a static image.
 *
 * Aesthetic: Nostromo-industrial restraint — eyebrow + hint typography, a
 * hairline border, four small L-shaped corner brackets in rust accent, and a
 * mono Reset View pill. Tokens come from style.css :root. No hardcoded hex.
 * ========================================================================== */

.bas-3d-frame {
  margin:        20px 0 0;
  padding:       16px 18px 18px;
  background:    var(--linen);
  border:        0.5px solid var(--linen-dark);
  border-radius: 10px;
}

/* Header — eyebrow label + reset pill */
.bas-3d-frame__head {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             12px;
  margin-bottom:   4px;
}

.bas-3d-frame__eyebrow {
  font-family:    var(--font-mono);
  font-size:      10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color:          var(--ink);
  font-weight:    500;
}

.bas-3d-frame__reset {
  font-family:    var(--font-mono);
  font-size:      10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color:          var(--rust);
  background:     transparent;
  border:         1px solid var(--rust);
  border-radius:  999px;
  padding:        6px 12px;
  cursor:         pointer;
  transition:     background-color 0.15s ease, color 0.15s ease;
  white-space:    nowrap;
}
.bas-3d-frame__reset:hover,
.bas-3d-frame__reset:focus-visible {
  background: var(--rust);
  color:      var(--white, #fff);
  outline:    none;
}
.bas-3d-frame__reset > span { margin-right: 4px; font-size: 12px; }

/* Hint row */
.bas-3d-frame__hint {
  font-family:    var(--font-sans, var(--font-body));
  font-size:      12px;
  font-weight:    300;
  color:          var(--ink-mid);
  margin-bottom:  12px;
  letter-spacing: 0.2px;
}

/* Stage — the bordered area that holds the canvas, with corner brackets */
.bas-3d-frame__stage {
  position:      relative;
  background:    var(--white, #fff);
  border:        0.5px solid var(--linen-dark);
  border-radius: 6px;
  padding:       14px;
  min-height:    320px;
  overflow:      hidden;
}

/* Corner brackets — 4 small L-shapes in rust, decorative only */
.bas-3d-frame__corner {
  position:      absolute;
  width:         14px;
  height:        14px;
  pointer-events: none;
  z-index:       2;
}
.bas-3d-frame__corner--tl {
  top: 6px; left: 6px;
  border-top:  1.5px solid var(--rust);
  border-left: 1.5px solid var(--rust);
}
.bas-3d-frame__corner--tr {
  top: 6px; right: 6px;
  border-top:   1.5px solid var(--rust);
  border-right: 1.5px solid var(--rust);
}
.bas-3d-frame__corner--bl {
  bottom: 6px; left: 6px;
  border-bottom: 1.5px solid var(--rust);
  border-left:   1.5px solid var(--rust);
}
.bas-3d-frame__corner--br {
  bottom: 6px; right: 6px;
  border-bottom: 1.5px solid var(--rust);
  border-right:  1.5px solid var(--rust);
}

/* Mount — the actual viewer canvas container. Square aspect, fluid width. */
.bas-3d-frame .bas-3d-mount {
  width:        100%;
  aspect-ratio: 1 / 1;
  min-height:   320px;
  display:      block;
}
.bas-3d-frame .bas-3d-mount canvas {
  display:       block;
  width:         100% !important;
  height:        100% !important;
  border-radius: 4px;
}

/* Responsive — keep the frame breathable on small screens */
@media (max-width: 768px) {
  .bas-3d-frame         { padding: 12px 12px 14px; }
  .bas-3d-frame__stage  { padding: 12px; min-height: 260px; }
  .bas-3d-frame .bas-3d-mount { min-height: 240px; }
  .bas-3d-frame__reset  { padding: 5px 10px; }
}
