/*
 * Postbud for WordPress — minimal frontend + admin styles.
 * Intentionally low-specificity so themes can override easily.
 */

/* ============================
   Frontend subscribe form
   ============================ */

.postbud-form-wrap {
	margin: 1.5em 0;
	max-width: 480px;
}

.postbud-form-title {
	margin: 0 0 0.75em;
	font-size: 1.25em;
}

.postbud-form-field {
	display: block;
	margin-bottom: 0.75em;
}

.postbud-form-field label {
	display: block;
	font-size: 0.875em;
	font-weight: 500;
	margin-bottom: 0.25em;
}

.postbud-form-field input {
	box-sizing: border-box;
	width: 100%;
	padding: 0.6em 0.75em;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	font-size: 1em;
	line-height: 1.4;
}

.postbud-form-field input:focus {
	border-color: #3182ce;
	outline: 2px solid rgba(49, 130, 206, 0.25);
	outline-offset: 0;
}

.postbud-form-submit {
	display: inline-block;
	padding: 0.65em 1.25em;
	background: #3182ce;
	color: #fff;
	border: 0;
	border-radius: 4px;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.15s ease-out;
}

.postbud-form-submit:hover,
.postbud-form-submit:focus {
	opacity: 0.9;
}

.postbud-form-submit[disabled] {
	cursor: not-allowed;
	opacity: 0.6;
}

.postbud-form-status {
	margin-top: 0.75em;
	min-height: 1.5em;
	font-size: 0.9em;
}

.postbud-form-status.is-success {
	color: #2e7d32;
}

.postbud-form-status.is-error {
	color: #c62828;
}

/* ============================
   Admin settings page
   ============================ */

.postbud-wp-settings .postbud-wp-test-result,
.postbud-wp-settings .postbud-wp-bulk-result {
	margin-left: 12px;
	font-size: 0.9em;
}

.postbud-wp-settings .postbud-wp-test-result.is-success,
.postbud-wp-settings .postbud-wp-bulk-result.is-success {
	color: #2e7d32;
}

.postbud-wp-settings .postbud-wp-test-result.is-error,
.postbud-wp-settings .postbud-wp-bulk-result.is-error {
	color: #c62828;
}
