/* =============================================
   model-viewer.css — 3D 뷰어 스타일
   ============================================= */

.mv-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a2e;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.mv-wrapper canvas {
  display: block;
  width: 100% !important;
  border-radius: 12px 12px 0 0;
}

.mv-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7ab8b3;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  background: #1a1a2e;
  z-index: 10;
}

/* ─── 컨트롤 패널 ──────────────────────────── */
.mv-controls {
  background: #111827;
  border-top: 1px solid #1e3a38;
  padding: 0.8rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  align-items: center;
}

.mv-ctrl-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 130px;
}

.mv-ctrl-group label {
  font-size: 0.72rem;
  color: #7ab8b3;
  font-weight: 500;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.mv-val {
  color: #2dd4bf;
  font-weight: 700;
  min-width: 2.2em;
  display: inline-block;
}

.mv-ctrl-group input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #1e3a38;
  outline: none;
  cursor: pointer;
}
.mv-ctrl-group input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2dd4bf;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(45,212,191,0.5);
}
.mv-ctrl-group input[type=range]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2dd4bf;
  border: none;
  cursor: pointer;
}

/* 배경색 버튼 */
.mv-bg-btns {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.mv-bg-btns button {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #1e3a38;
  background: #1a1a2e;
  color: #7ab8b3;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.mv-bg-btns button:hover { background: #1e3a38; }
.mv-bg-btns button.active {
  background: #2dd4bf;
  color: #0d1f1e;
  border-color: #2dd4bf;
  font-weight: 600;
}

/* 그리드 체크박스 */
.mv-ctrl-group input[type=checkbox] {
  accent-color: #2dd4bf;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

/* 반응형 */
@media (max-width: 767px) {
  .mv-controls {
    gap: 0.6rem 1rem;
    padding: 0.7rem 0.8rem;
  }
  .mv-ctrl-group { min-width: 110px; }
}