/* common.css ›› 공통 레이아웃, 헤더·네비·푸터 스타일 */

/* ─── 전체 레이아웃 ─── */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f0f0f0;
  font-family: Arial, sans-serif;
}

/* ─── 헤더 ─── */
header.site-header {
  position: relative;
  width: 100vw;
 /*  height: 220px; */
  background-color: #000;
  text-align: center;
  padding: 8px 0 5px;
  box-sizing: border-box;
  margin-bottom: 1px;
}
header.site-header img {
  display: inline-block;
  margin: 0 auto;
  max-width: 150px;
  width: 80%;
  height: auto;
}
nav.header-nav {
  display: flex;
  justify-content: center;
  gap: 80px;
  padding-bottom: 8px;
}
nav.header-nav a {
  color: #B3901A;
  text-decoration: none;
  font-size: 25px;
  letter-spacing: 10px;
  font-weight: bold;
  cursor: pointer;
}
nav.header-nav a:hover {
  opacity: 0.8;
}

/* ─── 챗봇 컨테이너 ─── */
/* .chat-container {
  position: relative;
  width: 100%;
  max-width: 600px;      메뉴판 슬라이더와 동일
  margin: 20px auto 44.5px;   위 40px, 아래 0, 좌우 auto
  
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);

  display: flex;
  flex-direction: column;
  overflow: hidden;

  ▼ 여기를 고정 높이로 바꿔 줍니다 ▼
  flex: none;            flex:1 제거
  height: 100vh;          뷰포트 높이의 90%
  min-height: 500px;     최소 500px
  max-height: 950px;     최대 900px
}
.chat-header {
  background: #2d2d2d;
  color: #fff;
  padding: 36px;
  text-align: center;
  font-size: 45px;
}
.chat-messages {
  flex: 1;
  padding: 36px;
  overflow-y: auto;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  display: flex;
  flex-direction: column;
  font-size: 30px;
  white-space: pre-wrap;
}
.chat-input {
  display: flex;
  border-top: 1px solid #ccc;
}
.chat-input input {
  flex: 1;
  padding: 33px;
  border: none;
  font-size: 28px;
}
.chat-input button {
  padding: 33px 54px;
  border: none;
  background: #2d2d2d;
  color: #fff;
  cursor: pointer;
  font-size: 28px;
}
.message {
  margin: 18px 0;
  padding: 18px 36px;
  max-width: 80%;
  border-radius: 18px;
  font-size: 30px;
  word-wrap: break-word;
  display: flex;
  flex-direction: column;
}
.message.user { align-self: flex-end; background: #dcf8c6; color: #000; }
.message.bot  { align-self: flex-start; background: #eaeaea; color: #000; }
.message img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}
.chat-messages .message.bot:first-child div {
  font-size: 28px;
  font-weight: bold;
}
 */
 
/* ─── 푸터 ─── */
footer.site-footer {
  text-align: center;
  padding: 50px 0;
  background-color: #000;
  color: #B3901A;
  font-size: 19px;
  margin-top: 1px;
  width: 100%;
}
footer.site-footer p {
  margin: 4px 0;
}
footer.site-footer .social {
  margin-top: 20px;
}
footer.site-footer .social img {
  vertical-align: middle;
}

/* ─── 반응형 ─── */
/* 태블릿 이하: max-width 768px */
@media (max-width: 768px) {
  header.site-header { padding: 10px 0 4px; margin-bottom: 15px; }
  header.site-header img { max-width: 50px; width: 25%; }
  nav.header-nav { gap: 40px }
  nav.header-nav a { font-size: 20px; letter-spacing: 6px; }
  .chat-header { padding: 24px; font-size: 32px; }
  .chat-messages, .chat-input input, .chat-input button, .message {
    padding: 16px;
    font-size: 16px;
  }
   /* 챗봇 컨테이너 높이를 뷰포트 기준으로 80% 정도로 설정 */
  .chat-container {
    flex: none;          /* flex:1 대신 직접 높이를 지정 */
    height: 80vh;        /* 필요에 따라 75vh·85vh 등으로 조절 */
    margin: 0 auto;      /* 중앙 정렬 유지 */
  }
   /* ─── 여기에 따로 챗 입력창만 늘려주는 규칙 추가 ─── */
  .chat-input input {
    padding: 16px;      /* 위아래를 16px 로 늘림 */
    font-size: 14px;    /* 폰트 크기도 좀 더 키움 */
  }
  .chat-input button {
    padding: 16px 20px; /* 버튼도 높이 맞춰 키움 */
    font-size: 14px;
  }
   .chat-messages .message.bot:first-child div {
    font-size: 16px;  /* 원하시는 크기로 조절 */
  }
  footer.site-footer { padding: 30px 0; font-size: 20px; margin-top: 10px;}
}

/* 스마트폰 이하: max-width 480px */
@media (max-width: 480px) {
  header.site-header { padding: 6px 0 2px; margin-bottom: 10px; }
  header.site-header img { max-width: 60px; width: 30%; }
  nav.header-nav { gap: 20px; }
  nav.header-nav a { font-size: 16px; letter-spacing: 4px; }
  .chat-header { padding: 16px; font-size: 24px; }
  .chat-messages, .chat-input input, .chat-input button, .message {
    padding: 8px;
    font-size: 12px;
  }
   /* 챗봇 컨테이너 높이를 뷰포트 기준으로 80% 정도로 설정 */
  .chat-container {
    flex: none;          /* flex:1 대신 직접 높이를 지정 */
    height: 70vh;        /* 필요에 따라 75vh·85vh 등으로 조절 */
    margin: 0 auto 5px;      /* 중앙 정렬 유지 */
  }
   /* ─── 여기에 따로 챗 입력창만 늘려주는 규칙 추가 ─── */
  .chat-input input {
    padding: 16px;      /* 위아래를 16px 로 늘림 */
    font-size: 14px;    /* 폰트 크기도 좀 더 키움 */
  }
  .chat-input button {
    padding: 16px 20px; /* 버튼도 높이 맞춰 키움 */
    font-size: 14px;
  }
   .chat-messages .message.bot:first-child div {
    font-size: 16px;  /* 원하시는 크기로 조절 */
  }
  footer.site-footer { padding: 20px 0; font-size: 16px; margin-top: 10px;}
}
