/**
 * hm-forum write layer — minimal styling.
 * RTL-first (uses logical properties).
 */

.hm-forum-form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	max-width: 720px;
	margin-block: 1rem;
	padding: 1rem;
	background: #fff;
	border: 1px solid #e3e6ea;
	border-radius: 8px;
}

.hm-forum-form label {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	font-weight: 600;
	font-size: 0.95rem;
}

.hm-forum-form input[type="text"],
.hm-forum-form input[type="file"],
.hm-forum-form select,
.hm-forum-form textarea {
	font: inherit;
	padding: 0.5rem 0.75rem;
	border: 1px solid #cfd4d9;
	border-radius: 6px;
	background: #fafbfc;
}

.hm-forum-form textarea {
	resize: vertical;
	min-block-size: 6rem;
}

.hm-forum-btn {
	display: inline-block;
	padding: 0.55rem 1.25rem;
	font: inherit;
	font-weight: 600;
	border: 1px solid #2b6cb0;
	background: #fff;
	color: #2b6cb0;
	border-radius: 6px;
	cursor: pointer;
	min-block-size: 44px;
	transition: background-color 120ms ease, color 120ms ease;
}
.hm-forum-btn:hover,
.hm-forum-btn:focus-visible {
	background: #2b6cb0;
	color: #fff;
	outline: 2px solid #1a4480;
	outline-offset: 2px;
}

.hm-forum-btn-primary {
	background: #2b6cb0;
	color: #fff;
}
.hm-forum-btn-primary:hover,
.hm-forum-btn-primary:focus-visible {
	background: #1a4480;
}

.hm-forum-msg {
	min-block-size: 1.25rem;
	font-size: 0.9rem;
}
.hm-forum-msg.is-success { color: #186a3b; }
.hm-forum-msg.is-error   { color: #a13434; }

.hm-forum-error,
.hm-forum-login-required,
.hm-forum-placeholder {
	padding: 0.75rem 1rem;
	border-radius: 6px;
	background: #f4f6f8;
	color: #555;
	font-size: 0.95rem;
}
.hm-forum-error { background: #fce9e9; color: #a13434; }

.hm-forum-like-btn,
.hm-forum-solved-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.4rem 0.85rem;
	font: inherit;
	background: #fff;
	border: 1px solid #cfd4d9;
	border-radius: 999px;
	cursor: pointer;
	min-block-size: 36px;
	transition: background-color 120ms ease;
}
.hm-forum-like-btn[data-state="liked"] {
	background: #ffe9eb;
	border-color: #e8a4ad;
	color: #a13434;
}
.hm-forum-like-btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.hm-forum-like-btn:focus-visible,
.hm-forum-solved-btn:focus-visible {
	outline: 2px solid #2b6cb0;
	outline-offset: 2px;
}
.hm-forum-solved-btn[data-state="solved"] {
	background: #e3f4e7;
	border-color: #6ab47e;
	color: #186a3b;
}

.hm-forum-logged-in {
	font-size: 0.9rem;
	color: #444;
	padding: 0.5rem 0;
}

.hm-forum-pm-to {
	margin: 0;
	font-size: 0.95rem;
	color: #555;
}

[dir="rtl"] .hm-forum-form,
.hm-forum-form { text-align: start; }
