/* waitingScreen.css */

/* 1) 전체를 감싸는 컨테이너 */
#waitingScreen {
  position: absolute;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 1001;
  transition: transform 0.6s ease-in-out;
}

/* 2) 밑에 깔리는 썸네일 패널 (풀스크린) */
#waitingScreenPanel {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  background-image: url('../res/thumbnail.png');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* 3) 겹쳐지는 비디오 컨테이너: 9:10 비율, 윗쪽만 둥글게 */
#videoContainer {
  position: absolute;
  top: 0; left: 0;
  width: 100vw;
  aspect-ratio: 9 / 10;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  z-index: 2;
}

/* 3-1) 비디오: cover + 하단 20% 투명 마스크 */
#videoContainer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1)   0%,
    rgba(0,0,0,1)  80%,
    rgba(0,0,0,0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1)   0%,
    rgba(0,0,0,1)  80%,
    rgba(0,0,0,0) 100%
  );
}

/* 4) 대기 텍스트, 버튼 → 비디오 위로 올라오도록 */
#waitingScreen .waiting-text,
#waitingScreen #langFloatingWrapper {
  position: relative;
  z-index: 3;
}


/* 5) 대기 텍스트 스타일 */
#waitingScreen .waiting-text {
  top: 70vh;
  font-size: 2.6rem;
  font-weight: bold;
  color: #ffffff;
  /* text-shadow: 0 0 8px rgba(0, 0, 0, 0.8); */
  text-align: center;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* 5-1) 언어리스트 열리면 텍스트 숨기기 */
#waitingScreen:has(#langList:not(.hidden)) .waiting-text {
  opacity: 0;
}

/* 6) 플로팅 버튼 래퍼 */
#waitingScreen #langFloatingWrapper {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  
}

/* 6-1) 버튼 공통 스타일 */
.floating-btn {


  background: rgba(255,255,255,0.8);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.floating-btn:hover {
  background: rgba(255,255,255,1);
}

/* 7) 슬라이드 아웃 모드 */
#waitingScreen.slide-out {
  transform: translateX(-100%);
}

/* 7) 슬라이드 아웃 모드 */
#waitingScreen.slide-out-down {
  transform: translateY(+100%);
}

/* 2) 대기 텍스트 위치 조정: 화면 하단에서 25vh 위 */
#waitingScreenPanel .waiting-text {

  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;          /* 불필요한 margin 제거 */
  width: 100%;        /* 가운데 정렬을 위해 풀 너비 */
  text-align: center;
}

#actionButtons{
  position:absolute;
  bottom:17.5vh;
  left:50%;transform:translateX(-50%);
  display:flex;
  gap:16px;
  z-index:3;
}

.action-btn{
  flex:1 1 0;         /* 남은 공간 동일 지분 */
  min-width:0;        /* 내용이 길어도 줄바꿈 대신 말줄임 처리 가능 */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;               /* 아이콘–텍스트 간격 키움 */
  padding: 1rem 1.5rem;      /* 패딩 대폭 확대 */
  border: none;
  border-radius: 0.75rem;    /* 더 부드러운 곡선 */
  font-size: 1.6rem;         /* 폰트 크기 키움 */
  font-weight: 700;          /* 가독성 강조 */
  text-transform: uppercase; /* 버튼 텍스트 대문자 */
  box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* 은은한 그림자 */
  cursor: pointer;
  transition: 
    background 0.2s ease, 
    transform 0.15s ease, 
    box-shadow 0.2s ease,
    opacity 0.3s ease;
}

/* 호버 & 액티브 효과 강화 */
.action-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}
.action-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* 버튼별 색상 (대비 높임) */
.order-btn {
  background: #28a745;
  color: #fff;
}
.voice-btn {
  background: #0056b3; /* 더 진한 블루 */
  color: #fff;
}
.guide-btn {
  background: #e8590c; /* 더 진한 오렌지 */
  color: #fff;
}
.call-btn {
  background: #c82333; /* 더 진한 레드 */
  color: #fff;
  position: relative;
}
/* 호출하기에 테두리 강조 */
.call-btn::before {
  margin-right: 0.4rem;
  display: inline-block;
  animation: pulse 1.5s infinite;
}

/* actionButtons 숨김 */
#waitingScreen:has(#langList:not(.hidden)) #actionButtons {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}


#langFloatingWrapper {
  pointer-events: none;
  bottom:17.5vh;
}
#langFloatingWrapper:has(#langList:not(.hidden)) {
  pointer-events: auto;
}