/* -----------------------------------------------------
   ✒️ Ha-Bin Studio — editor.css
   글쓰기 페이지 전용 스타일 (에디터 심장)
----------------------------------------------------- */

body {
  margin: 0;
  padding: 0;
  background: #F9FAFB;
  font-family: 'Noto Sans KR', sans-serif;
}

#editor-wrapper {
  max-width: 880px;
  margin: 50px auto;
  background: #FFFFFF;
  padding: 30px 28px 40px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 제목 입력 */
#post-title {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 20px;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  outline: none;
  transition: 0.2s;
}

#post-title:focus {
  border-color: #5C8EDB;
  box-shadow: 0 0 0 3px rgba(92,142,219,0.25);
}

/* toolbar 영역 */
#toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid #E5E7EB;
  background: #F3F4F6;
  border-radius: 8px;
}

/* toolbar 버튼 */
.toolbar-btn {
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.15s;
}

.toolbar-btn:hover {
  background: #EEF4FF;
  border-color: #5C8EDB;
  color: #3558A8;
}

.toolbar-btn.active {
  background: #3558A8;
  color: #fff;
}

/* 본문 editor */
#editor {
  width: 100%;
  min-height: 420px;
  padding: 18px;
  border-radius: 8px;
  border: 2px solid #E5E7EB;
  font-size: 16px;
  line-height: 1.7;
  outline: none;
  background: #FFFFFF;
}

#editor:focus {
  border-color: #5C8EDB;
  box-shadow: 0 0 0 3px rgba(92,142,219,0.25);
}

/* 버튼 영역 */
#editor-buttons {
  margin-top: 25px;
  text-align: right;
}

#editor-buttons button {
  padding: 10px 18px;
  border: none;
  background: #3558A8;
  color: #FFFFFF;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  margin-left: 8px;
  transition: 0.2s;
}

#editor-buttons button:hover {
  background: #5C8EDB;
}

/* 모바일 대응 */
@media (max-width: 600px) {
  #editor-wrapper {
    margin: 20px;
    padding: 20px;
  }

  #post-title {
    font-size: 18px;
  }

  #editor {
    min-height: 320px;
  }
}

