/* 새 게시글 작성 페이지 전용 스타일 */

/* 게시글 작성 컨테이너 */
.new-post-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* 게시글 작성 카드 */
.new-post-card {
  background: white;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

/* 페이지 헤더 */
.page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.page-header-info h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.page-header-info p {
  color: var(--gray-600);
}

/* 작성 가이드 */
.writing-guide {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.writing-guide h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--gray-700);
}

.writing-guide ul {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.8;
  padding-left: 20px;
}

.writing-guide li {
  margin-bottom: 4px;
}

/* 카테고리 선택 */
.category-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* 제목 입력 */
.title-input {
  font-size: 18px;
  font-weight: 600;
}

/* 내용 입력 */
.content-textarea {
  min-height: 300px;
  line-height: 1.8;
}

/* 글자 수 카운터 */
.char-counter {
  text-align: right;
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 6px;
}

.char-counter.warning {
  color: var(--orange);
}

.char-counter.error {
  color: var(--red);
}

/* 반응형 */
@media (max-width: 768px) {
  .new-post-container {
    padding: 24px 16px;
  }

  .new-post-card {
    padding: 32px 24px;
  }

  .page-header {
    margin-bottom: 32px;
  }

  .page-header-info h1 {
    font-size: 28px;
  }

  .content-textarea {
    min-height: 250px;
  }
}
