@charset "UTF-8";
/* moderation-ui.css — 콘텐츠 검수 안내 스타일: 입력칸 강조 · 말풍선 · 검수 로딩 (moderation-ui.js 와 함께 사용) */
/* 2026-10-14 : 최초 작성 */
/* 2026-10-15 : 검수 로더 전환(이어 받기·서서히 닫기)·수정 창·비슷한 표현·추천대로 고치기·상단 안내 줄바꿈 */

:root {
	--mod-red: #D33B4D;
	--mod-red-soft: rgba(211, 59, 77, .16);
	--mod-navy: #101C33;
}

/* ---------- 입력칸 강조 ---------- */
.mod-target {
	outline: 2px solid var(--mod-red) !important;
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--mod-red-soft) !important;
	animation: modShake .42s ease-in-out 1, modPulse 1.4s ease-out .45s 2;
}
.mod-tag-hit {
	background: var(--mod-red) !important;
	border-color: var(--mod-red) !important;
	color: #fff !important;
}
@keyframes modShake {
	0%, 100% { transform: translateX(0); }
	20% { transform: translateX(-5px); }
	40% { transform: translateX(5px); }
	60% { transform: translateX(-3px); }
	80% { transform: translateX(3px); }
}
@keyframes modPulse {
	0% { box-shadow: 0 0 0 0 rgba(211, 59, 77, .45); }
	100% { box-shadow: 0 0 0 12px rgba(211, 59, 77, 0); }
}

/* ---------- 말풍선 ---------- */
.mod-bubble {
	position: fixed;
	z-index: 2147483000;
	box-sizing: border-box;
	width: max-content;
	max-width: min(360px, calc(100vw - 24px));
	padding: 12px 36px 12px 14px;
	background: #fff;
	color: #222;
	border: 1px solid rgba(211, 59, 77, .35);
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(16, 28, 51, .22);
	font-size: 13px;
	line-height: 1.55;
	text-align: left;
	letter-spacing: -0.2px;
	word-break: keep-all;
	overflow-wrap: anywhere;
	animation: modBubbleIn .2s ease-out;
}
.mod-bubble[data-hidden="1"] { visibility: hidden; }
.mod-bubble__arrow {
	position: absolute;
	width: 12px;
	height: 12px;
	background: #fff;
	border: 1px solid rgba(211, 59, 77, .35);
	transform: rotate(45deg);
}
.mod-bubble[data-place="bottom"] .mod-bubble__arrow { top: -7px; border-right: 0; border-bottom: 0; }
.mod-bubble[data-place="top"] .mod-bubble__arrow { bottom: -7px; border-left: 0; border-top: 0; }
.mod-bubble[data-place="right"] .mod-bubble__arrow { left: -7px; border-top: 0; border-right: 0; }
.mod-bubble__title {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
	color: var(--mod-red);
	font-size: 13px;
	font-weight: 700;
}
.mod-bubble__title::before {
	content: "!";
	display: inline-flex;
	flex: 0 0 18px;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--mod-red);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}
.mod-bubble__item + .mod-bubble__item {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed #ececec;
}
.mod-bubble__excerpt {
	padding: 0 3px;
	border-radius: 3px;
	background: #ffe3e6;
	color: #a3192b;
	font-weight: 600;
}
.mod-bubble__fix { margin-top: 3px; color: #555; }
.mod-bubble__fix::before { content: "· "; color: var(--mod-red); font-weight: 700; }
.mod-bubble__close {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #999;
	font-size: 18px;
	line-height: 26px;
	cursor: pointer;
}
.mod-bubble__close:hover, .mod-bubble__close:focus-visible { background: #f3f3f3; color: #333; outline: none; }

/* 화면 흐름 안에 들어가는 말풍선 (목록형: 스토리라인 미리보기 씬 등) */
.mod-bubble--inline {
	position: relative;
	z-index: auto;
	width: auto;
	max-width: none;
	margin-top: 12px;
	box-shadow: 0 4px 14px rgba(16, 28, 51, .10);
}
.mod-bubble--inline .mod-bubble__arrow { top: -7px; left: 28px; border-right: 0; border-bottom: 0; }

/* 화면 상단 안내 (가리킬 칸이 없을 때) */
.mod-toast {
	position: fixed;
	top: 16px;
	left: 50%;
	z-index: 2147483000;
	box-sizing: border-box;
	width: max-content;
	max-width: calc(100vw - 24px);
	padding: 12px 40px 12px 14px;
	transform: translateX(-50%);
	background: #fff;
	color: #222;
	border: 1px solid rgba(211, 59, 77, .35);
	border-left: 4px solid var(--mod-red);
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(16, 28, 51, .22);
	font-size: 13px;
	line-height: 1.55;
	animation: modBubbleIn .2s ease-out;
}

/* 여러 지적을 줄바꿈으로 모아 보여 줄 때 */
.mod-toast .mod-bubble__reason { white-space: pre-line; }

@keyframes modBubbleIn {
	from { opacity: 0; translate: 0 4px; }
	to { opacity: 1; translate: 0 0; }
}

/* ---------- 검수 로딩 ---------- */
/* 2026-10-15 : 편집 화면의 '생성 중' 카드(#newLoadingModal)를 이어 받아 쓰므로, 이 카드는 그 카드가 없는 화면에서만 쓴다.
                모양·움직임을 '생성 중' 카드와 같게 (남색 카드, 아이작 로딩 아이콘 흔들기, 문구 한 줄) */
.mod-checking {
	position: fixed;
	inset: 0;
	z-index: 2147482000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, .7);
	animation: modFade .15s ease-out;
}
.mod-checking__card {
	box-sizing: border-box;
	max-width: 100%;
	padding: 20px 30px;
	border-radius: 15px;
	background: var(--mod-navy);
	color: #fff;
	text-align: center;
	box-shadow: 0 5px 10px 5px rgba(0, 0, 0, .15);
}
.mod-checking__img {
	display: inline-block;
	width: 70px;
	height: 70px;
	margin: 10px 0;
	animation: modSwing 3s cubic-bezier(.645, .045, .355, 1) infinite;
}
.mod-checking__title { margin-top: 10px; font-size: 16px; line-height: 1; }

@keyframes modFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modSwing {
	0%, 50%, 100% { transform: rotate(0); }
	25% { transform: rotate(15deg); }
	75% { transform: rotate(-15deg); }
}

@media (max-width: 480px) {
	.mod-bubble { font-size: 12.5px; padding: 10px 32px 10px 12px; }
}

/* 움직임 줄이기: 안내 강조·말풍선 움직임만 끈다. 로딩 아이콘은 '생성 중' 카드와 같게 계속 움직임 (멈춘 것처럼 보이지 않게) */
@media (prefers-reduced-motion: reduce) {
	.mod-target, .mod-bubble, .mod-toast, .mod-checking { animation: none !important; }
}

.mod-checking--out { animation: modFadeOut .22s ease-in forwards; pointer-events: none; }
@keyframes modCardIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes modFadeOut { to { opacity: 0; } }

/* ---------- 수정 창 (막힌 생성 결과를 고쳐 다시 검수) ---------- */
/* 2026-10-15 : 추가 (비슷한 표현·추천대로 고치기 포함) */
html.mod-editor-open { overflow: hidden; }
.mod-editor {
	position: fixed;
	inset: 0;
	z-index: 2147481000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, .45);
	animation: modFade .18s ease-out;
	font-size: 14px;
	line-height: 1.55;
	color: #212529;
}
.mod-editor--out { animation: modFadeOut .2s ease-in forwards; pointer-events: none; }
.mod-editor__panel {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	width: 640px;
	max-width: 100%;
	max-height: calc(100vh - 32px);
	background: #fff;
	border-radius: 15px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
	animation: modCardIn .22s ease-out;
	overflow: hidden;
}
.mod-editor__head { position: relative; padding: 20px 52px 14px 22px; border-bottom: 1px solid #eef0f3; }
.mod-editor__title { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; color: var(--mod-red); }
.mod-editor__sub { margin-top: 4px; color: #6c757d; font-size: 13px; }
.mod-editor__x {
	position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
	border: 0; border-radius: 50%; background: none; font-size: 22px; line-height: 1; color: #868e96; cursor: pointer;
}
.mod-editor__x:hover { background: #f1f3f5; color: #212529; }
.mod-editor__body { flex: 1 1 auto; overflow-y: auto; padding: 14px 22px; }
.mod-editor__card { border: 1px solid #e9ecef; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; transition: border-color .2s, background .2s; }
.mod-editor__card.is-flagged { border-color: var(--mod-red); background: #fffafa; }
.mod-editor__card.is-resolved { border-color: #2f9e44; background: #f6fbf7; }
.mod-editor__label { display: flex; align-items: center; gap: 6px; font-weight: 700; margin-bottom: 6px; }
.mod-editor__badge { font-size: 11px; font-weight: 600; color: #fff; background: var(--mod-red); border-radius: 999px; padding: 1px 8px; }
.mod-editor__done { display: none; font-size: 11px; font-weight: 600; color: #fff; background: #2f9e44; border-radius: 999px; padding: 1px 8px; }
.mod-editor__card.is-resolved .mod-editor__badge { display: none; }
.mod-editor__card.is-resolved .mod-editor__done { display: inline-block; }
.mod-editor__issue { margin: 0 0 8px; padding-left: 10px; border-left: 3px solid var(--mod-red); transition: opacity .2s; }
.mod-editor__issue.is-resolved { opacity: .45; border-left-color: #2f9e44; }
.mod-editor__issue.is-resolved .mod-editor__excerpt { text-decoration: line-through; }
.mod-editor__reason { font-size: 13px; }
.mod-editor__excerpt { background: var(--mod-red-soft); color: inherit; border-radius: 3px; padding: 0 3px; }
.mod-editor__fix { margin-top: 2px; font-size: 12.5px; color: #495057; }
.mod-editor__fix::before { content: '· '; color: #2f9e44; font-weight: 700; }
.mod-editor__field { display: block; margin: 6px 0 0; }
.mod-editor__flabel { display: block; font-size: 12px; font-weight: 600; color: var(--mod-red); margin-bottom: 2px; }
.mod-editor__input {
	box-sizing: border-box; width: 100%; min-height: 56px; padding: 8px 10px; resize: vertical;
	border: 1px solid #ced4da; border-radius: 8px; font: inherit; color: inherit; background: #fff;
}
.mod-editor__input:focus { outline: none; border-color: var(--mod-navy); box-shadow: 0 0 0 3px rgba(16, 28, 51, .12); }
.mod-editor__more { display: block; margin: 4px 0 10px; padding: 0; border: 0; background: none; color: #1e64c8; font-size: 13px; cursor: pointer; }
.mod-editor__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 22px 16px; border-top: 1px solid #eef0f3; }
.mod-editor__note { font-size: 12px; color: #868e96; }
.mod-editor__btns { display: flex; gap: 8px; margin-left: auto; }
.mod-editor__btn {
	border: 1px solid #ced4da; background: #fff; color: #212529; border-radius: 8px;
	padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.mod-editor__btn:hover { background: #f8f9fa; }
.mod-editor__btn--primary { border-color: var(--mod-navy); background: var(--mod-navy); color: #fff; }
.mod-editor__btn--primary:hover { background: #1b2c4f; }
.mod-editor__btn:disabled { opacity: .6; cursor: progress; }
.mod-editor.is-busy .mod-editor__body { opacity: .6; pointer-events: none; }
@media (max-width: 480px) {
	.mod-editor { padding: 0; align-items: flex-end; }
	.mod-editor__panel { border-radius: 15px 15px 0 0; max-height: 92vh; }
	.mod-editor__btns { width: 100%; }
	/* 2026-10-15 : 좁은 화면에서 '추천대로 모 / 두 고치기' 처럼 낱말 중간에서 끊기지 않게 */
	.mod-editor__btn { flex: 1; padding: 9px 10px; word-break: keep-all; }
}
@media (prefers-reduced-motion: reduce) {
	.mod-editor, .mod-editor__panel, .mod-checking--out, .mod-editor--out { animation: none !important; }
}

/* 수정 창: 지적은 없지만 비슷한 표현이 있는 항목 */
.mod-editor__card.is-hint { border-color: #f0ad4e; background: #fffbf2; }
.mod-editor__badge--hint { background: #e8890c; }
.mod-editor__hint { margin: 0 0 6px; font-size: 12.5px; color: #8a5a00; }

/* 추천대로 고치기 */
.mod-bubble__repl, .mod-editor__repl { margin-top: 2px; font-size: 12.5px; color: #2b8a3e; }
.mod-fix-btn {
	margin-top: 6px; padding: 4px 10px; border: 1px solid #2f9e44; border-radius: 999px;
	background: #fff; color: #2b8a3e; font-size: 12px; font-weight: 600; cursor: pointer;
}
.mod-fix-btn:hover { background: #ebfbee; }
.mod-fix-btn[disabled] { border-color: #ced4da; color: #868e96; cursor: default; background: #f8f9fa; }
.mod-editor__fixall { border-color: #2f9e44; color: #2b8a3e; }
