/**
 * Premium composer card (feed) + create-post modal polish.
 */

#bb-rl-activity-form-placeholder.bbat-composer-card {
	background: linear-gradient( #fff, #fff ) padding-box,
		linear-gradient( 135deg, rgba( 73, 70, 254, 0.18 ), rgba( 20, 174, 92, 0.12 ) ) border-box;
	border: 1px solid transparent;
	border-radius: 16px;
	box-shadow: 0 8px 28px rgba( 15, 23, 42, 0.06 );
	overflow: hidden;
}

#bb-rl-activity-form-placeholder.bbat-composer-card .bb-rl-whats-new-form-header {
	align-items: center;
	gap: 12px;
	padding: 14px 16px 8px;
}

#bb-rl-activity-form-placeholder.bbat-composer-card #bb-rl-whats-new-content-placeholder {
	flex: 1;
	min-width: 0;
}

#bb-rl-activity-form-placeholder #bb-rl-whats-new-placeholder,
#bb-rl-activity-form-placeholder.bbat-composer-card #bb-rl-whats-new-placeholder {
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 12px 16px;
	margin: 0;
	background: #f8f9fc;
	border: 1px dashed #d0d5dd;
	border-radius: 12px;
	cursor: text;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
	direction: ltr;
	text-align: left;
}

/* Feed stub placeholder: BuddyBoss native :empty:before only */

#bb-rl-activity-form-placeholder.bbat-composer-card #bb-rl-whats-new-placeholder:hover,
#bb-rl-activity-form-placeholder.bbat-composer-card #bb-rl-whats-new-placeholder:focus {
	background: #fff;
	border-color: #4946fe;
	border-style: solid;
	box-shadow: 0 0 0 3px rgba( 73, 70, 254, 0.12 );
	outline: none;
}

/* Modal body placeholder: BuddyBoss native :empty:before only */

body.bb-rl-activity-modal-open #bb-rl-whats-new-form .bb-rl-whats-new-title.bbat-composer-rtl,
body.bb-rl-activity-modal-open #bb-rl-whats-new-form .bb-rl-whats-new-title.bbat-composer-rtl::placeholder {
	direction: rtl;
	text-align: right;
	font-family: "Noto Sans Arabic", "Tajawal", "Segoe UI", system-ui, sans-serif;
}

body.bb-rl-activity-modal-open #bb-rl-whats-new-form .bb-rl-whats-new-title.bbat-composer-ltr,
body.bb-rl-activity-modal-open #bb-rl-whats-new-form .bb-rl-whats-new-title.bbat-composer-ltr::placeholder {
	direction: ltr;
	text-align: left;
}

#bb-rl-activity-form-placeholder.bbat-composer-card .bbat-composer-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 0 16px 12px;
}

#bb-rl-activity-form-placeholder.bbat-composer-card .bbat-char-counter,
.bbat-char-counter {
	padding: 0;
	font-size: 12px;
	font-weight: 600;
	color: #98a2b3;
}

.bbat-char-counter.bbat-char-over {
	color: #d93b31;
}

.bbat-char-counter--title {
	display: block;
	margin: 4px 24px 0;
	text-align: right;
	font-size: 11px;
	font-weight: 600;
	color: #98a2b3;
}

.bbat-composer-counters {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	margin-left: auto;
	padding: 0 8px;
}

body.bb-rl-activity-modal-open .bb-rl-whats-new-form-footer {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

body.bb-rl-activity-modal-open .bb-rl-whats-new-form-footer .bbat-composer-counters {
	order: 2;
	margin-left: auto;
}

body.bb-rl-activity-modal-open .bb-rl-whats-new-form-footer #bb-rl-activity-form-submit-wrapper {
	order: 3;
}

#bb-rl-activity-form-placeholder.bbat-composer-card .bbat-rate-limit-notice {
	margin: 0 16px 10px;
	border-radius: 10px;
}

/* Create post modal — overflow handled in emoji-picker.css so picker is not clipped */
body.bb-rl-activity-modal-open .bb-rl-activity-update-form.modal-popup #bb-rl-whats-new-form {
	border-radius: 16px;
	box-shadow: 0 24px 64px rgba( 15, 23, 42, 0.18 );
}

body.bb-rl-activity-modal-open .bb-rl-activity-update-form.modal-popup .bb-rl-bb-model-header {
	background: linear-gradient( 180deg, #fafbff 0%, #fff 100% );
}

body.bb-rl-activity-modal-open #bb-rl-whats-new-form #bb-rl-whats-new {
	min-height: 120px;
	padding: 8px 24px;
	font-size: 16px;
	line-height: 1.5;
}

body.bb-rl-activity-modal-open #bb-rl-whats-new-form .bb-rl-whats-new-title {
	border-color: #eaecf0;
}

/* Comment composer — default LTR, no language toggle */
.ac-form .ac-input,
.ac-form .bb-rl-ac-reply-content .ac-input {
	direction: ltr;
	text-align: left;
}

.bbat-mention-notice {
	display: none;
	margin: 0 0 8px;
	padding: 8px 12px;
	font-size: 0.8125rem;
	line-height: 1.4;
	color: #c62828;
	background: #fdecea;
	border: 1px solid #f5c6c2;
	border-radius: 8px;
}
