/* ================================
   HUNTECH AI SLIDE CHAT (FINAL)
   ================================ */

/* ▶ 오른쪽 사이드 탭 */
#huntech_ai_side_tab {
  position: fixed;
  right: 0;
  top: 30%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #0d6efd, #4f9cff);
  color: #fff;

  padding: 12px 10px;
  border-radius: 14px 0 0 14px;

  font-weight: 700;
  font-size: 14px;
  cursor: pointer;

  z-index: 10000;
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* 아이콘 */
#huntech_ai_side_tab .ai_icon {
  font-size: 18px;
  line-height: 1;
}

/* 텍스트 (AI / 상 / 담) */
#huntech_ai_side_tab .ai_text {
  line-height: 1.1;
  text-align: center;
  font-size: 13px;
}


/* 말풍선 효과 */
#huntech_ai_side_tab::after {
  content: "무엇이든 물어보세요!";
  position: absolute;
  right: 110%;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

#huntech_ai_side_tab:hover::after {
  opacity: 1;
}

/* ▶ 채팅 패널 */
#huntech_ai_panel {
  position: fixed;
  top: 50%;
  right: -360px;
  transform: translateY(-50%);
  width: 340px;
  height: 500px;
  background: #fff;
  border-radius: 18px 0 0 18px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  z-index: 10000;
  transition: right 0.35s ease;
}

#huntech_ai_panel.huntech_ai_open {
  right: 0;
}

/* ▶ 헤더 */
#huntech_ai_header {
  background: linear-gradient(135deg, #0d6efd, #4f9cff);
  color: #fff;
  padding: 14px;
  font-weight: 700;
  text-align: center;
  position: relative;
  border-radius: 18px 0 0 0;
}

#huntech_ai_close {
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 22px;
  cursor: pointer;
}

/* ▶ 질문 버튼 영역 */
#huntech_ai_quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.huntech_ai_qbtn {
  background: #f1f5ff;
  color: #0d6efd;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  border: none;
}

/* ▶ 대화 로그 */
#huntech_ai_log {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  font-size: 14px;
}

.huntech_ai_user {
  text-align: right;
  margin: 8px 0;
  color: #333;
}

.huntech_ai_bot {
  text-align: left;
  margin: 8px 0;
  color: #0d6efd;
}

/* ▶ 입력 */
#huntech_ai_input_wrap {
  display: flex;
  border-top: 1px solid #e5e5e5;
}

#huntech_ai_input {
  flex: 1;
  border: none;
  padding: 12px;
  font-size: 14px;
  outline: none;
}

#huntech_ai_send {
  border: none;
  background: #0d6efd;
  color: #fff;
  padding: 0 18px;
  cursor: pointer;
}

/* ▶ 모바일 */
@media (max-width: 768px) {
  #huntech_ai_panel {
    width: 100%;
    height: 100%;
    right: -100%;
    top: 0;
    transform: none;
    border-radius: 0;
  }

  #huntech_ai_panel.huntech_ai_open {
    right: 0;
  }

  #huntech_ai_side_tab {
    top: auto;
    bottom: 90px;
  }
}
.huntech_ai_call_btn {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  text-align: center;
  background: #0d6efd;
  color: #fff;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.huntech_ai_call_btn.secondary {
  background: #28a745;
}
