/* Посты и комментарии (incs/posts.php, js/posts.js) */

/* ---- окно ввода ---- */
.pp-new { margin: 10px 0 14px; padding-bottom: 14px; border-bottom: 1px solid #ccc; }
.pp-new-title, .pp-feed-title { font-weight: bold; font-size: 15px; margin: 10px 0 8px; }
.pp-feed-title { padding-bottom: 5px; border-bottom: 1px solid #ccc; }
.pc { margin: 6px 0 4px; }
.pc-text, .pc-title {
	display: block; width: 100%; box-sizing: border-box;
	padding: 9px 11px; border: 1px solid #ccc; border-radius: 6px;
	font-family: inherit; font-size: 15px; line-height: 1.45; background: #fff;
}
.pc-text { resize: vertical; min-height: 60px; }
.pc-title { margin-bottom: 6px; font-weight: bold; }
.pc-text:focus, .pc-title:focus { border-color: #3b8fd0; outline: none; }
.pc-photos .pu { margin: 8px 0 0; }
.pc-bar { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.pc-status { flex: 1; font-size: 12px; color: #888; min-width: 0; }
.pc-draft-del, .pc-cancel { color: #666; border-bottom: 1px dotted; cursor: pointer; }
.pc-draft-del:hover, .pc-cancel:hover { color: #c00; }
.pc-cancel { font-size: 13px; }
.pc-send {
	border: 0; border-radius: 5px; padding: 8px 20px; cursor: pointer;
	background: #009900; color: #fff; font-family: inherit; font-size: 15px;
}
.pc-send:hover { background: #00b300; }
.pc-busy .pc-send { opacity: .6; cursor: default; }
.pc-error { margin-top: 6px; padding: 6px 10px; border-radius: 4px; background: #fff2f2; color: #c00; font-size: 13px; }
.pc-comment, .pc-comment_edit { margin: 8px 0; }
.pc-comment .pc-text, .pc-comment_edit .pc-text { font-size: 14px; }
.pc-comment .pc-send, .pc-comment_edit .pc-send { font-size: 14px; padding: 6px 16px; }
.pc-hidden { display: none !important; }

/* ---- пост ---- */
.pp { border-bottom: 1px solid #ccc; padding-bottom: 10px; margin-bottom: 10px; }
.pp-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.pp-ava { flex: 0 0 auto; }
.pp-who { flex: 1; min-width: 0; line-height: 1.6; }
.pp-level { height: 16px; width: 16px; margin: 0 2px -3px 0; }
.pp-name { font-weight: bold; }
.pp-from { font-size: 12px; }
.pp-date { font-size: 11px; color: #555; }
.pp-tools { flex: 0 0 auto; display: flex; align-items: center; gap: 2px; }
.pp-tools .subscribe_link_1 { margin-right: 6px; }
.pp-text { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.pp-text-full { font-size: 15px; line-height: 1.6; }
.pp-more-link { font-size: 13px; font-weight: bold; }
.pp-actions { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 5px; }
.pp-reply-btn { font-weight: bold; font-size: 13px; color: #1a5a96; cursor: pointer; }
.pp-reply-btn:hover { color: #000; }
.pp-reply-btn:hover img { opacity: 1; }
.pp-flash { animation: ppflash 1.6s ease; }
@keyframes ppflash { 0% { background: #d0eaf9; } 100% { background: transparent; } }
.pp-load { text-align: center; margin: 14px 0 20px; }
.pp-load-btn {
	display: inline-block; padding: 8px 26px; border: 1px solid #c8c8c8; border-radius: 5px;
	background: #fafafa; color: #444; cursor: pointer; font-size: 14px;
}
.pp-load-btn:hover { border-color: #3b8fd0; color: #3b8fd0; }
.pp-all-comments { text-align: center; margin: 2px 0 6px; font-weight: bold; font-size: 13px; }
.pp-all-replies { margin: 0 0 10px 5px; font-weight: bold; font-size: 12px; }

/* ---- комментарий ---- */
.pcm-mine { border-right: 4px solid #ffda82; }
.comment_block_2.pcm { border-top: 1px solid #f3f3f3; margin-bottom: 4px; border-radius: 5px; }
.comments_block_2 { margin: -3px 0 8px 40px; }
.pcm-head { display: flex; align-items: flex-start; gap: 6px; }
.pcm-who { flex: 1; min-width: 0; line-height: 1.5; font-size: 11px; }
.pcm-name { font-weight: bold; }
.pcm-reply { color: #1a5a96; cursor: pointer; margin-left: 4px; }
.pcm-reply:hover { text-decoration: underline; }
.pcm-date { font-size: 10px; color: #555; }
.pcm-menu { position: relative; flex: 0 0 auto; }
.pcm-dots { display: inline-block; padding: 0 6px; font-weight: bold; font-size: 16px; line-height: 16px; color: #888; cursor: pointer; letter-spacing: -1px; }
.pcm-dots:hover { color: #000; }
.pcm-drop {
	position: absolute; right: 0; top: 20px; z-index: 20; width: 140px;
	background: #fff; border: 1px solid #e3e3e3; border-radius: 5px; box-shadow: 0 4px 12px rgba(0,0,0,.12);
	font-size: 13px; overflow: hidden;
}
.pcm-drop span { display: block; padding: 7px 10px; cursor: pointer; color: #1a5a96; }
.pcm-drop span + span { border-top: 1px solid #f0f0f0; }
.pcm-drop span:hover { background: #f5f9fd; }
.pcm-drop span[data-pact=cdelete] { color: #c00; }
.pcm-body { margin: 2px 0 0 36px; }
.pcm-row { display: flex; align-items: flex-end; gap: 8px; }
.pcm-text { flex: 1; min-width: 0; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.pcm-fave { flex: 0 0 auto; }
.pcm > .pp-form-slot { margin-left: 36px; }

/* ---- окно «Вы уверены?» (js/confirm.js) ---- */
.pcf { width: 380px; text-align: center; }
.pcf-text { font-size: 16px; line-height: 1.5; margin: 12px 0 20px; }
.pcf-btns { display: flex; align-items: center; justify-content: center; gap: 20px; }
.pcf-ok { display: inline-block; width: auto; padding: 8px 28px; font-size: 16px; }
.pcf-danger { background: #c00; }
.pcf-danger:hover { background: #e00; }
.pcf-cancel { color: #666; border-bottom: 1px dotted; cursor: pointer; }

@media (max-width: 600px) {
	.pp-head .user_small_avatar { width: 56px; height: 56px; }
	.comments_block_2 { margin-left: 16px; }
	.pcm-body, .pcm > .pp-form-slot { margin-left: 0; }
}

/* ---- поле с оформлением (js/text_editor.js) ---- */
.te {
	display: block; width: 100%; box-sizing: border-box;
	padding: 9px 11px; border: 1px solid #ccc; border-radius: 6px; background: #fff;
	font-size: 15px; line-height: 1.45; min-height: 80px; max-height: 60vh; overflow-y: auto;
	white-space: pre-wrap; overflow-wrap: anywhere; outline: none; cursor: text;
}
.pc-comment .te, .pc-comment_edit .te { min-height: 60px; font-size: 14px; }
.te:focus { border-color: #3b8fd0; }
.te.te-empty:before { content: attr(data-placeholder); color: #999; pointer-events: none; }
.te blockquote { margin: 4px 0; padding: 2px 10px; border-left: 3px solid #3b8fd0; background: #f3f8fd; }
.te code { font-family: Consolas, Menlo, monospace; font-size: 90%; background: #f1f1f1; padding: 1px 4px; border-radius: 3px; }
.te a { color: #1a5a96; text-decoration: underline; }
.te .te-spoiler { background: repeating-linear-gradient(45deg, #e4e4e4 0 3px, #f2f2f2 3px 6px); border-radius: 3px; }
.te-bar {
	position: absolute; z-index: 100002; display: none; flex-wrap: wrap; align-items: center; gap: 2px;
	padding: 4px; background: #fff; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.te-bar.te-on { display: flex; }
.te-bar button {
	min-width: 32px; height: 32px; padding: 0 6px; border: 0; border-radius: 6px; background: none;
	font-family: inherit; font-size: 15px; color: #333; cursor: pointer;
}
.te-bar button:hover { background: #eef3f8; }
.te-bar button.te-act { background: #dde9f5; color: #1a5a96; }
.te-ico-spoiler { letter-spacing: -1px; }
.te-link { display: flex; gap: 4px; width: 100%; padding: 4px 2px 0; }
.te-link[hidden] { display: none; }
.te-link input { flex: 1; min-width: 160px; padding: 5px 8px; border: 1px solid #ccc; border-radius: 5px; font-size: 14px; }
.te-link .te-link-ok { background: #009900; color: #fff; }
.te-link .te-link-ok:hover { background: #00b300; }

/* ---- оформление в постах и комментариях (plugins/FormatText.php) ---- */
.ft-quote { margin: 6px 0; padding: 4px 12px; border-left: 3px solid #3b8fd0; background: #f3f8fd; border-radius: 0 5px 5px 0; }
.ft-code { font-family: Consolas, Menlo, monospace; font-size: 90%; background: #f1f1f1; padding: 1px 4px; border-radius: 3px; }
.ft-spoiler { background: #d9d9d9; color: transparent; border-radius: 3px; cursor: pointer; transition: color .2s, background .2s; }
.ft-spoiler * { color: transparent; }
.ft-spoiler.ft-open { background: #f1f1f1; color: inherit; cursor: auto; }
.ft-spoiler.ft-open * { color: inherit; }
