/* ============================================================
   User Wall — стили (тёмная тема, под fresanime / Bootstrap)
   Файл: templates/<skin>/css/userwall.css
   Подключить в main.tpl: <link rel="stylesheet" href="{THEME}/css/userwall.css">
   ============================================================ */

.uw {
	background: #1c2128;
	border: 1px solid rgba(255, 255, 255, .06);
	border-radius: 14px;
	padding: 18px 18px 22px;
	margin: 18px 0;
	color: var(--white, #fff);
}
.uw__title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 14px;
	color: #fff;
}

/* ---------- форма ---------- */
.uw-form { margin-bottom: 16px; }
.uw-form__text {
	width: 100%;
	min-height: 64px;
	resize: vertical;
	background: #11151a;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 10px;
	color: #fff;
	padding: 10px 12px;
	font-size: 14px;
	line-height: 1.45;
	font-family: inherit;
	box-sizing: border-box;
}
.uw-form__text:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, .18);
}
.uw-form__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 8px;
	flex-wrap: wrap;
}
.uw-form__hint {
	font-size: 11px;
	color: #6b757d;
}
.uw-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: none;
	border-radius: 8px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	color: #fff;
	transition: background .15s, opacity .15s;
}
.uw-btn:disabled { opacity: .55; cursor: default; }
.uw-btn--primary { background: #2563eb; }
.uw-btn--primary:hover:not(:disabled) { background: #1d4ed8; }
.uw-btn--ghost { background: rgba(255, 255, 255, .08); }
.uw-btn--ghost:hover { background: rgba(255, 255, 255, .14); }
.uw-form--guest {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #8b95a1;
	font-size: 13px;
}

/* ---------- список ---------- */
.uw-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.uw-empty {
	color: #6b757d;
	text-align: center;
	padding: 26px 0;
	font-size: 14px;
}

/* ---------- карточка сообщения ---------- */
.uw-msg {
	display: flex;
	gap: 12px;
	background: #161a21;
	border: 1px solid rgba(255, 255, 255, .04);
	border-radius: 12px;
	padding: 12px 14px;
}
.uw-msg__avatar {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	background: #0f1216;
}
.uw-msg__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uw-msg__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.uw-msg__head {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
}
.uw-msg__name {
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
}
.uw-msg__name:hover { color: #60a5fa; }
.uw-msg__role { font-size: 11px; }
.uw-msg__date { font-size: 11px; color: #6b757d; }
.uw-msg__text {
	color: #d7dde3;
	font-size: 14px;
	line-height: 1.5;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}
.uw-msg__text img { max-width: 100%; border-radius: 6px; }
.uw-msg__text a { color: #60a5fa; }
.uw-msg__text code {
	background: #0f1216;
	padding: 1px 5px;
	border-radius: 4px;
	font-size: 12px;
}
.uw-msg__text .quote {
	background: #0f1216;
	border-left: 3px solid #3b82f6;
	padding: 6px 10px;
	margin: 4px 0;
	border-radius: 4px;
	font-size: 13px;
	color: #9aa3ad;
}

/* ---------- действия ---------- */
.uw-msg__actions {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 2px;
}
.uw-like, .uw-reply-btn, .uw-del {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: transparent;
	border: none;
	color: #8b95a1;
	font-size: 12px;
	padding: 4px 8px;
	border-radius: 6px;
	cursor: pointer;
	font-family: inherit;
}
.uw-like:hover, .uw-reply-btn:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.uw-like__count { font-weight: 600; min-width: 1ch; }
.uw-like--active { color: #3b82f6; }
.uw-like--active svg { fill: #3b82f6; }
.uw-del:hover { background: rgba(220, 53, 69, .14); color: #ef4444; }
.uw-like--loading { opacity: .5; pointer-events: none; }

/* ---------- ответы (1 уровень) ---------- */
.uw-replies {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 10px;
	padding-left: 0;
}
.uw-msg--reply {
	background: #11151a;
	padding: 10px 12px;
}
.uw-msg--reply .uw-msg__avatar { width: 32px; height: 32px; }
.uw-reply-form { margin-top: 8px; }
.uw-reply-form .uw-form__text { min-height: 44px; font-size: 13px; }
.uw-reply-form .uw-form__bar { justify-content: flex-end; }

/* ---------- «показать ещё» ---------- */
.uw-more {
	display: block;
	margin: 16px auto 0;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .08);
	color: #d7dde3;
	border-radius: 9px;
	padding: 9px 22px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
}
.uw-more:hover:not(:disabled) { background: rgba(255, 255, 255, .12); }
.uw-more:disabled { opacity: .5; cursor: default; }

/* ---------- адаптив ---------- */
@media (max-width: 575px) {
	.uw { padding: 14px 12px 18px; }
	.uw-msg { padding: 10px 11px; gap: 10px; }
	.uw-msg__avatar { width: 34px; height: 34px; }
	.uw-msg--reply .uw-msg__avatar { width: 28px; height: 28px; }
	.uw-form__hint { display: none; }
	.uw-msg__head { gap: 6px; }
}
