/* 정의 */
:root {
  /* --point-color: #16131F; */
  --point-color: #4b475a;
  --btn-color: #0E0C15;
}


/* 브랜드 색상 */
.text-gray-100 {
  color: #F2F1F3;
}

/* 아주 살짝 따뜻함이 감도는 밝은 회색 */
.text-gray-200 {
  color: #E3E2E6;
}

.text-gray-300 {
  color: #C8C6CC;
}

.text-gray-400 {
  color: #929099;
}

.text-gray-500 {
  color: #605E66;
}

/* 중간 회색 */
.text-gray-600 {
  color: #2a292e;
}

/* 말씀해주신 기준점 (보라빛이 숨어있는 딥 그레이) */
.text-gray-700 {
  color: #201D2A;
}

.text-gray-800 {
  color: #17151E;
}

.text-gray-900 {
  color: #16131F;
}

.border-gray-600 {
  border-color: #2a292e !important;
}


body {
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  color: #0c0c0c;
  background-color: #EBEBEB;
  font-variation-settings: "wdth" 100, "opsz" 10;
  letter-spacing: -0.02em;
  height: 100vh; /* 기존 유지 (구형 브라우저용 폴백) */
  height: 100dvh; /* 지원 브라우저에서 이 값으로 덮어씀 → 여백 문제 해결 */
  margin: 0;
  padding: 0;
}





#file-name-indicator {
  display: flex;
  align-items: flex-start;
  pointer-events: none;
  color: #999;
  font-weight: 700;
}

.stats-row {
  display: flex;
  gap: 12px
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 400;
  color: #6b7280;
  text-transform: uppercase;
}


.bottom-floating-bar {
  background: #FCFCFC;
  display: flex;
  flex-direction: column;
}



aside {
  background-color: #FCFCFC
}
input[type="range"] + span{
  font-size: 11px; width: 18px;
  text-align: right;
}

/* 슬라이더 관련 스타일 */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: #e7e5eb;
  border-radius: 2px;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0; margin: 0;
}



input[type="range"].slider-h {
  width: 64px;
  height: 8px;
}

input[type="range"].slider-v {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 8px;
  height: 64px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 9px;
  height: 16px;
  border-radius: 3px;
  background: #9e9caf;
  border: 1px solid #a3a3a3;
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.12);
}

input[type="range"].slider-v::-webkit-slider-thumb {
  width: 16px !important;
  height: 9px !important;
}

input[type="range"].slider-v::-moz-range-thumb {
  width: 16px !important;
  height: 9px !important;

}

input[type="range"]::-moz-range-thumb {
  width: 9px;
  /* height: 20px; */
  border-radius: 3px;
  background: #AFAFB7;
  border: none;
}


#hero-viewport {
  position: relative;
  width: 100%;
  height: 780px; /*  편집모드 캔바스 높이  프리뷰820 */
  background: #f8f9fa;
  overflow: hidden;
}

#preview-container {
  position: absolute; 
  inset: 0;
  z-index: 5;
}


#ui-overlay { 
  position: absolute;
  z-index: 10;
  width: 100%;
  height: 100%;

  padding: 7% 14% ;
  padding-bottom: 3%;
  pointer-events: none;
  display: flex;
  justify-content: center;
  /* 가로: flex-start | center | flex-end */
  align-items: center;
  /* 세로: flex-start | center | flex-end */
}

/* 미리보기(새 탭)일 때만 */
body.is-preview {
    height: 830px !important; /* 높이*/
}
  /*   body.is-preview #ui-overlay  {
  padding: 2.4% 14% ;
    padding-bottom: 4%;  높이
  }*/



 /* 편집보드에서 미세조정  */
.editmode .font-heading{
    font-size: clamp(4rem, 8vw, 6.2rem);
    line-height: .95;
  }
  /* .editmode  #ui-overlay {
    padding: 3% 14% ;
  } */

  .editmode  #ui-overlay  .text-box{
    max-width:680px
  }
  .editmode  #ui-overlay  .text-box  .hero-btn {
      /* font-size: 12px; */
      font-size: clamp(14px, 1vw, .95rem);/* 1.125rem;  18px */
      padding: 16px  28px;
  }

  .editmode  #ui-overlay  .text-box .mb-10{
      margin-bottom: 26px;
  }
  .editmode  #ui-overlay  .text-box .mb-6{
      margin-bottom: 18px;
  }




.font-heading {
  font-family: 'Pretendard', sans-serif;
  /* font-family: 'Inter', sans-serif; */
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.2rem;
}


.text-box{
  max-width:500px
}

.editmode:hover {
  border: 1px dashed #9ca3af;
}

.editmode h1:hover,
.editmode p:hover {
  border-style: dashed;
  border-color: rgb(116, 116, 116);
  border-radius: 0.25rem
}

.editmode button:hover {
  cursor: default;
}




/* 가이드 */
.guide-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
  z-index: 10;
  /* 3D 캔버스 위에 보이도록, 필요시 값 조정 */
}

#hero-viewport.show-guides .guide-overlay {
  display: block;
}

.guide-line {
  position: absolute;
}

.guide-line.v {
  top: 0;
  width: 1px;
  height: 100%;
}

.guide-line.h {
  left: 0;
  height: 1px;
  width: 100%;
}

/* 중앙선 - 진하게 */
.guide-line.center {
  background: #ff5ae9;
}



.asset-card {
  overflow: hidden;
  border: 1px solid rgb(201, 201, 201);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  transition: box-shadow 0.2s ease;
}

.asset-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 4px transparent;
  transition: box-shadow 0.2s ease;
  pointer-events: none;
}

.asset-card:hover::after {
  border: 1px solid rgb(204, 204, 204);
  box-shadow: inset 0 0 0 2px #ffffff;
}

.asset-card.active {
  border: 1.8px solid var(--point-color);
}

/* FREE 라벨 스타일 */
.free-label {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  
  /* 텍스트 스타일 정의 */
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  background-color: #AC71FF; /* 싱그러운 그린 색상 (원하시는 포인트 컬러로 변경 가능) */
  /* background-color: #494949;  */
  
  /* 크기 및 여백 */
  padding: 2px 6px 3px ;
  
  /* 카드 모서리 둥글기에 맞추기 (왼쪽 위는 카드 라운드 계승, 우측 아래만 둥글게) */
  border-radius: 8px 0 6px 0; 
  
  /* 레이아웃 정렬 및 터치 방지 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* 마우스 클릭이 라벨을 통과해 카드로 전달되도록 설정 */
}

.reset-btn {
  width: 18px;
  height: 18px;
  margin-left: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  /* background: #f0f0f0; */
  color: #999;
  border: 1px solid #b4b4b4;
  transition: all 0.2s;
  cursor: pointer;
}

.reset-btn:hover {
  background: #f0f0f0;

}

#loader {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.custom-checkbox {
  width: 30px;
  height: 14px;
  background: #E3E2E6;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  transition: 0.3s;
}

.custom-checkbox::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: 0.3s;
}

input:checked+.custom-checkbox {
  background: var(--point-color)
}

input:checked+.custom-checkbox::before {
  left: 18px;
}

.color-picker-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid #9da0a5;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;

}

.color-picker-wrapper:hover {
  border-color: var(--point-color);
  transform: scale(1.05);
}

input[type="color"] {
  position: absolute;
  top: -4px;
  left: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  opacity: 1;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch,
input[type="color"]::-moz-color-swatch {
  border: none !important;
}



.btn-gradient {
  background: linear-gradient(90deg, #AC71FF, #7ADBFF);
  color: white;
  padding: 2px;
  border-radius: 0.5rem;
  display: inline-block;
  transition: transform 0.2s;
  cursor: pointer;
}

.btn-gradient p {
  background: #16131F;
  /* display: block; */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 8px;
  padding-right: 12px;
  border-radius: 0.45rem;
  font-weight: 600;

}


.btn-gradient:hover,
.btn-lavender:hover {
  transform: none;
  filter: brightness(1.15) contrast(1.1);
  opacity: 1;
  box-shadow: 0 0 20px rgba(172, 113, 255, 0.3);
  transition: all 0.3s ease;
}


.btn-gradient:hover p {
  background: transparent;
  color: black;
}

a {
  line-height: 0%
}

.btn-black, .btn-lavender,  .btn-skygray {
  padding: 10px 12px;
  background: #16131F;
  color: white;
  border-radius: 8px;
  line-height: 1;
  width: fit-content;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  flex-shrink: 0;
  font-size:13px;
}

.btn-lavender{
  background-color: #AC71FF ;
  font-size:13px;
}
.btn-skygray{
  background-color: #64ABE7;
}

.btn-black  span{
  width: fit-content;
}

.btn-black:hover {
  filter: brightness(1.3) contrast(1.1);
  /* width: fit-content; */
}



.bg-gradient-600 {
  display: inline-block;
  padding: 12px 14px;
  color: white;
  background: linear-gradient(90.13deg, #AC71FF 14.27%, #57B7E3 115.08%);
  border-radius: 8px;
  width: 100%;
  text-align: center;
}

/* 호버 효과 */
.bg-gradient-600:hover {
  filter: brightness(1.15) contrast(1.1);
  box-shadow: 0 0 12px rgba(172, 113, 255, 0.5);
}




.btn-two {
  color: white;
  padding: 15px 25px;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.21);
  border-bottom-color: rgba(0, 0, 0, 0.21);
  border-bottom-color: rgba(0, 0, 0, 0.34);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.34) inset, 0 2px 0 -1px rgba(0, 0, 0, 0.13), 0 3px 0 -1px rgba(0, 0, 0, 0.08), 0 3px 13px -1px rgba(0, 0, 0, 0.21);
}

.gradient-text {
  background: linear-gradient(45deg, #cca8ff, #ffffff, #7ADBFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glb-upload-btn {
  border-color: #5a5a5a;
}

.glb-upload-btn:hover {
  border-color: #AC71FF;
}

.glb-upload-btn:hover p {
  color: #AC71FF;
}

.glb-upload-btn img {
  content: url('/assets/images/ic-plus.svg')
}

.glb-upload-btn:hover img {
  content: url('/assets/images/ic-plus-hover.svg')
}

.tool-icon {
  width: 18px;
  height: auto;
}

.tool-title {
  font-size: 12px;
  /* width:60px;  text-gray-600*/
  color: #2a292e
}

.view-sample-btn {
  font-size: 10px;
  color: #797979;
  border: 1px solid #b4b4b4;
  padding: 0 2px;
  border-radius: 4px;

  
}
/* 기본 상태: 포커스가 아닐 때도 부드러운 전환 효과를 위해 테두리 공간 선언 */
.custom-focus {
outline: none; /* 브라우저 기본 파란색 테두리 제거 */
border: 2px solid transparent;
border-radius: 3px;
transition: border-color 0.2s ease; /* 부드럽게 색상이 바뀌는 효과 */
}

/* 포커스 상태: 클릭하거나 선택했을 때 흰색 2px 테두리 활성화 */
.custom-focus:focus {
outline: none;
border-color: #ffffff;
border-width: 2px;
border-style: solid;
border-radius: 3px;
background-color: #ffffff36;
}
 /* .tooltip{ top:-32px;  border-radius: 16px; box-shadow: #0c0c0c;} */
/* 툴팁의 기본 그림자와 형태 보정 */
.tooltip {
box-shadow: 0 4px 12px rgba(12, 12, 12, 0.08); /* 부드러운 어두운 그림자 */
top:-40px; border-radius: 16px; 
}

/* 하단 중앙에 위치하는 말풍선 화살표 꼬리 */  
.tooltip::after {
content: "";
position: absolute;
top: 100%;             /* 툴팁 박스의 바로 아래 모서리에 부착 */
left: 50%;             /* 가로 방향 기준 중앙 정렬 */
transform: translateX(-50%);

/* 삼각형 화살표 형태 제작 */
border-width: 6px;     /* 화살표 꼭지점 크기 조정 */
border-style: solid;
border-color: #ffffff transparent transparent transparent; /* 위쪽(배경색과 동일)만 색상 부여 */
}

.w50-inlineblock {
  display: inline-block;
  width: 50px;
}

.lineheight-0 {
  line-height: 0
}
.w-150px{
  width: 150px;
}
.hero-btn {
  background-color: rgba(74, 53, 37, 0.15); /* 기존 브라운 톤의 투명도 15% */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); /* 사파리 호환성 */
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2); /* 은은한 유리 빛반사 테두리 */

  
      /* font-size: 12px; */
      font-size: clamp(14px, 1vw, 1.125rem);/* 1.125rem;  18px */
      padding-top: 1rem;
      padding-bottom: 1rem;
    border-radius: 999px; font-style: bold;

    display: inline-flex;
align-items: center;
justify-content: center;
white-space: nowrap; /* 글자가 아래로 떨어지지 않게 고정 */
    }
    #hero-btn:empty {
display: none;
}
@media (max-width: 900px) and (orientation: landscape) {
    aside { overflow-y: auto !important; max-height: 100dvh !important; }
    body { overflow: auto !important; }
    .font-heading {
      font-size: clamp(1.8rem, 6vw, 3rem);
    }
    .hero-btn {
      font-size: 12px;
      /* font-size: clamp(14px, 1vw, 16px); */
      /* padding: 10px 20px; 원래 대비 축소 */

    }
    .stats-row{
        display: none !important
    }
    .w-150px{ width: fit-content}

    .btn-black{padding: 6px 8px}

    .p-6{
      padding: .8rem;
    }
    .justify-between.re{
        justify-content: flex-end;
    }
    .m-displayNone{
                display: none;
    }
    .m-w-120px{
      width: 120px;
    }
    .m-w-160px{
      width: 160px;
    }

}