/* 이미지 대체 스타일 */
.placeholder-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  border: 1px dashed #ccc;
  border-radius: 8px;
  padding: 2rem;
  margin: 1rem 0;
  text-align: center;
  min-height: 200px;
  color: #666;
}

.placeholder-image i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #999;
}

.placeholder-image p {
  margin: 0;
}

/* 채팅 미리보기 스타일 */
.chat-preview {
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1rem;
  margin: 1.5rem 0;
  background-color: rgba(0, 0, 0, 0.02);
}

.chat-message {
  display: flex;
  margin-bottom: 1rem;
}

.chat-message:last-child {
  margin-bottom: 0;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 80%;
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  position: relative;
}

.chat-message.user .chat-bubble {
  background-color: var(--primary-color);
  color: white;
  border-bottom-right-radius: 0.2rem;
}

.chat-message.bot .chat-bubble {
  background-color: #f0f0f0;
  color: var(--body-color);
  border-bottom-left-radius: 0.2rem;
}

/* 단계별 안내 스타일 */
.steps {
  counter-reset: step-counter;
  list-style-type: none;
  padding-left: 0;
}

.steps li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2rem;
  counter-increment: step-counter;
}

.steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.steps h4 {
  margin-top: 0;
}

/* 이미지 캡션 스타일 */
.image-container {
  margin: 1.5rem 0;
  text-align: center;
}

.image-caption {
  font-size: 0.9rem;
  color: var(--secondary-color);
  margin-top: 0.5rem;
  text-align: center;
}

/* 검색 입력 스타일 */
.search-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--card-border);
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.2);
}

/* 용어 사전 스타일 */
.glossary-container {
  margin-top: 1.5rem;
}

.glossary-item {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 1.5rem;
}

.glossary-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.glossary-term {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.glossary-term i {
  margin-right: 0.5rem;
}

.glossary-description {
  padding-left: 1.8rem;
}

/* 노트 스타일 */
.note {
  font-size: 0.9rem;
  color: var(--secondary-color);
  font-style: italic;
  margin-top: 0.5rem;
}

/* 부제목 스타일 */
.subtitle {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}

/* 스크롤된 헤더 스타일 */
header.scrolled {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 활성 네비게이션 링크 */
nav ul li a.active {
  color: var(--primary-color);
  font-weight: 700;
}

/* 코드 컨테이너 스타일 */
.code-container {
  margin: 1.5rem 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.code-container pre {
  margin: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
