/**
 * BuddyBlog Anonymous Posts — front-end styles
 *
 * @package buddyblog-anonymous-posts
 */

/* =========================================================================
   Author-selector wrapper
   ========================================================================= */
.bblap-author-selector {
	margin-top: 1.25em;
	margin-bottom: 1.25em;
	padding: 1em 1.25em;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	background: #f9f9f9;
}

.bblap-author-selector__label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.6em;
	font-size: 0.95em;
}

/* =========================================================================
   Individual option (radio row)
   ========================================================================= */
.bblap-author-selector__options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em 1.5em;
}

.bblap-author-selector__option {
	display: flex;
	align-items: center;
	gap: 0.45em;
	cursor: pointer;
	font-size: 0.95em;
	padding: 0.45em 0.9em;
	border: 1px solid transparent;
	border-radius: 3px;
	transition: border-color 0.15s, background 0.15s;
}

.bblap-author-selector__option:hover {
	border-color: #c3c4c7;
	background: #fff;
}

/* Highlight the selected option */
.bblap-author-selector__option input[type="radio"]:checked ~ .bblap-author-selector__option-label {
	font-weight: 600;
}

.bblap-author-selector__option:has(input[type="radio"]:checked) {
	border-color: #2271b1;
	background: #f0f6fc;
}

.bblap-author-selector__option-label {
	pointer-events: none;
}

/* =========================================================================
   Help text
   ========================================================================= */
.bblap-author-selector__help {
	margin-top: 0.75em;
	margin-bottom: 0;
	font-size: 0.85em;
	color: #646970;
}

/* =========================================================================
   Anonymous badge — shown on post cards when the author is anonymous
   ========================================================================= */
.bblap-anonymous-badge {
	display: inline-block;
	font-size: 0.75em;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 2px 7px;
	border-radius: 3px;
	background: #e8e8e8;
	color: #555;
	vertical-align: middle;
}

/* =========================================================================
   Revoke anonymity ("Claim This Post") button
   ========================================================================= */
.bblap-revoke-wrap {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
}

.bblap-revoke-btn {
	display: inline-block;
	padding: 3px 10px;
	font-size: 0.85em;
	font-weight: 600;
	line-height: 1.5;
	cursor: pointer;
	border: 1px solid #b0650a;
	border-radius: 3px;
	background: #fef3e2;
	color: #7a4200;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
	/* Reset browser button defaults */
	appearance: none;
	-webkit-appearance: none;
	font-family: inherit;
}

.bblap-revoke-btn:hover,
.bblap-revoke-btn:focus {
	background: #fde8c0;
	border-color: #7a4200;
	color: #5a2f00;
	outline: none;
}

.bblap-revoke-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.bblap-revoke-spinner {
	font-size: 0.9em;
	color: #888;
}

/* Inline feedback messages */
.bblap-revoke-msg {
	font-size: 0.85em;
	font-style: italic;
}

.bblap-revoke-msg--success {
	color: #1a7f37;
}

.bblap-revoke-msg--error {
	color: #c0392b;
}
