/* Copyright © 2026 Barrett Kim. All rights reserved. Unauthorized modification, reproduction, or redistribution is prohibited. */
/* cad2skp 페이지 전용: 캐드 화면, 고치면 따라옴 장면, 대표 그림. 스케치업 화면·대화창은 /shared/stage.css */


/* ---------- 캐드 화면: 테마와 관계없이 캐드 기본 어두운 모형 공간 ---------- */
.cadui { background: #212830; color: #c9d1d9; }
.f-cad { grid-template-rows: 34px minmax(0, 1fr) 66px 24px; }
.cad-tabs { display: flex; align-items: end; gap: 2px; padding: 0 10px; background: #2d343c; border-bottom: 1px solid #12161a; font-size: 12px; color: #aab3bc; }
.cad-tabs span { padding: 7px 14px; border-radius: 5px 5px 0 0; }
.cad-tabs .on { background: #212830; color: #ffffff; font-weight: 600; }
.cad-tabs .tool { margin-left: auto; align-self: center; display: flex; gap: 6px; }
.cad-tabs .tool i { width: 20px; height: 20px; border-radius: 4px; background: #39424b; }
.cad-vp { position: relative; min-height: 0; }
.cad-vp svg { width: 100%; height: 100%; }
.cad-cmd { position: relative; display: grid; align-content: center; gap: 2px; padding: 6px 12px; background: #262d34; border-top: 1px solid #12161a; font: 12px/1.5 var(--font-mono); color: #8f99a3; }
.cad-cmd > div { position: relative; height: 18px; white-space: nowrap; }
.cad-cmd > div > span { position: absolute; left: 0; right: 0; top: 0; overflow: hidden; text-overflow: ellipsis; }
.cad-cmd .now { color: #ffffff; }
.cad-cmd .in { color: #e6edf3; }
.cad-cmd .in::before { content: "명령: "; color: #8f99a3; }
.cad-cmd b { display: inline-block; font-weight: 400; }
.cad-status { display: flex; align-items: center; gap: 16px; padding: 0 12px; background: #2d343c; border-top: 1px solid #12161a; font-size: 11px; color: #96a0aa; }
.cad-status b { color: #ffffff; font-weight: 600; }
.cad-status .num { margin-left: auto; }

/* 평면 선 색: 레이어 색 (벽 흰색, 창 하늘색, 문 노랑, 치수 초록, 중심선 빨강, 가구 회색) */
.pl-wall, .pl-win, .pl-door, .pl-dim, .pl-cen, .pl-furn { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: square; }
.pl-wall { stroke: #f2f4f6; stroke-width: 1.5; }
.pl-win { stroke: #33ccff; stroke-width: 1.1; }
.pl-door { stroke: #ffd84d; stroke-width: 1.1; }
.pl-dim { stroke: #3ddc84; stroke-width: .9; }
.pl-cen { stroke: #ff6b6b; stroke-width: .9; stroke-dasharray: 14 4 3 4; }
.pl-furn { stroke: #7f8a95; stroke-width: .9; }
.pl-new { stroke-width: 2; }
.pl-wall.pl-new { stroke: #ffd84d; }
.pl-dim-t { fill: #3ddc84; font: 200px var(--font-ui); text-anchor: middle; }
.pl-room { fill: #dfe6ec; font: 600 230px var(--font-ui); text-anchor: middle; }
.cad-sel { fill: rgba(64, 140, 255, .16); stroke: #5aa0ff; stroke-width: 1; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: 0 0; animation: sel-grow 1.4s var(--d, 0s) both linear; }
@keyframes sel-grow { from { transform: scale(0); } }
.xhair path { stroke: #ffffff; stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.xh1 { animation: xh1 5.5s both ease-in-out; }
@keyframes xh1 {
  0%, 16% { transform: translate(10200px, 7300px); }
  33%, 36% { transform: translate(-900px, -1000px); animation-timing-function: linear; }
  62%, 100% { transform: translate(9800px, 6800px); }
}
.xh2 { animation: xh2 7s both ease-in-out; }
@keyframes xh2 { 0% { transform: translate(4300px, 2600px); } 14%, 100% { transform: translate(100px, 2900px); } }


/* ---------- 고치면 따라옴: 왼쪽 캐드, 오른쪽 스케치업 ---------- */
.f-split { grid-template-columns: 1fr 1fr; }
.pane { display: grid; grid-template-rows: 30px minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
.pane + .pane { border-left: 1px solid var(--line-strong); }
.pane-bar { display: flex; align-items: center; padding: 0 12px; font-size: 12px; font-weight: 600; }
.cadui .pane-bar { background: #2d343c; color: #e6edf3; border-bottom: 1px solid #12161a; }
.pane.su .pane-bar { background: var(--surface-3); color: var(--text-2); border-bottom: 1px solid var(--line-strong); }
.pane .cad-cmd { height: 56px; }

/* 커서: 무대 좌표 px */
.k1 { animation: k1 6.5s both ease-in-out; }
@keyframes k1 { 0%, 30% { transform: translate(430px, 400px); } 56%, 100% { transform: translate(1068px, 666px); } }

/* ---------- 대표 그림: 캐드 평면 → 스케치업 모델 ---------- */
.hero-pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 16 / 7; }
.hero-pair > div { position: relative; min-width: 0; }
.hero-pair svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-pair .su-vp { border-left: 1px solid var(--line-strong); }
.hero-arrow { position: absolute; left: 50%; top: 50%; z-index: 2; translate: -50% -50%; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gloss-edge); background: linear-gradient(180deg, rgba(255, 255, 255, .55) 0 48%, rgba(255, 255, 255, 0) 52%), linear-gradient(180deg, var(--gloss-top), var(--gloss-bot));
  color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.hero-arrow svg { position: static; width: 20px; height: 20px; }
@media (max-width: 680px) { .hero-pair { grid-template-columns: minmax(0, 1fr); aspect-ratio: auto; } .hero-pair > div { aspect-ratio: 16 / 10; } .hero-pair .su-vp { border-left: 0; border-top: 1px solid var(--line-strong); } }
