/* File: /wp-content/themes/kava-child/story_episode/css/episode-write.css */

/* 전체 */
.qv-epw-page{width:100%; padding:18px 14px 40px; box-sizing:border-box;}
.qv-epw-shell{max-width:1100px; margin:0 auto;}

/* 상태 박스 */
.qv-epw-status{
  position:relative;
  border:1px solid #e6e6e6; border-radius:12px;
  background:#fff; padding:14px 16px; margin-bottom:14px;
}
.qv-epw-status-row{display:flex; gap:18px; flex-wrap:wrap; align-items:center;}
.qv-epw-status-item{display:flex; gap:8px; align-items:baseline;}
.qv-epw-label{font-weight:800;}
.qv-epw-val{font-weight:800; color:#222;}
.qv-epw-muted{color:#777; font-weight:650;}
.qv-epw-pending-notice{margin-top:10px;}

/* 우상단 ? 버튼 */
.qv-epw-guidebtn{
  position:absolute; right:10px; top:10px;
  width:28px; height:28px; border-radius:8px;
  border:1px solid #dcdcdc; background:#f7f7f7;
  font-weight:900; cursor:pointer; line-height:26px;
}
.qv-epw-guidebtn:hover{background:#f1f1f1;}

/* 필드 */
.qv-epw-field{margin:14px 0;}
.qv-epw-field-label{display:block; font-weight:900; margin:0 0 8px;}
.qv-epw-input{
  width:100%; box-sizing:border-box;
  border:1px solid #e0e0e0; border-radius:10px;
  padding:12px 12px; font-size:15px; outline:none;
  background:#fff;
}

/* 안내 */
.qv-epw-guide{font-weight:900; margin:16px 0 6px;}
.qv-epw-guide-sub{font-weight:700; color:#666; margin-left:6px;}

/* 상단 보조 바 */
.qv-epw-editorbar{
  display:flex; justify-content:space-between; align-items:center;
  gap:10px; margin:10px 0 8px;
  min-height:20px;
}

/* 버튼 */
.qv-epw-btn{
  appearance:none;
  border:1px solid #dcdcdc; background:#fff;
  border-radius:999px; padding:10px 14px;
  font-weight:900; cursor:pointer; line-height:1;
}
.qv-epw-btn:disabled{opacity:.45; cursor:not-allowed;}
.qv-epw-btn-primary{background:#2d6cdf; border-color:#2d6cdf; color:#fff;}
.qv-epw-btn-dark{background:#111; border-color:#111; color:#fff;}

/* WP Editor(편집창은 넓게 유지) */
.qv-epw-editorwrap .wp-editor-wrap{
  border:1px solid #e0e0e0;
  border-radius:12px; overflow:hidden; background:#fff;
}
.qv-epw-editorwrap .mce-top-part{border-bottom:1px solid #ededed;}
.qv-epw-editorwrap .mce-toolbar-grp{padding:6px 6px;}
.qv-epw-editorwrap iframe{background:#fff;}

/* ✅ 여기서 중요한 포인트:
   - 에디터 "박스" 폭은 건드리지 않는다(넓게).
   - 글줄 폭(34em)은 PHP wp_editor의 content_style에서만 제어한다.
*/

/* 하단 액션 */
.qv-epw-actions{
  display:flex; justify-content:space-between; align-items:center; gap:10px;
  margin-top:14px;
}
.qv-epw-actions-left{display:flex; gap:10px; flex-wrap:wrap;}
.qv-epw-actions-right{font-weight:900; color:#222;}
.qv-epw-footnote{margin-top:10px; color:#777; font-weight:700;}

/* 모달 */
.qv-epw-modal{
  position:fixed; inset:0;
  background:rgba(0,0,0,.55);
  display:none; align-items:center; justify-content:center;
  padding:18px; z-index:999999;
}
.qv-epw-modal.open{display:flex;}
.qv-epw-modal-panel{
  width:min(900px, 100%); max-height:88vh; overflow:auto;
  background:#fff; border-radius:14px; padding:18px;
}
.qv-epw-modal-top{
  display:flex; justify-content:space-between; align-items:center;
  gap:10px; margin-bottom:10px;
}
.qv-epw-modal-title{font-size:18px; font-weight:900;}
.qv-epw-modal-content{line-height:1.85; font-size:16px;}
.qv-epw-modal-content p{margin:0 0 14px;}
.qv-epw-modal-content blockquote{
  margin:14px 0; padding:10px 14px;
  border-left:3px solid #d8d8d8; color:#444; background:#fafafa;
}

/* 모바일 */
@media (max-width:480px){
  .qv-epw-page{padding:14px 12px 34px;}
  .qv-epw-btn{padding:10px 12px;}
}
