/* Author Profile Hub — public styles (canonical page + front-end form) */

:root {
	/* Attention's brand red, plus darker/less vibrant shades for anything
	   larger than a small accent — buttons, focus rings, borders. */
	--aph-red: #dc0000;
	--aph-red-mid: #a30000;
	--aph-red-dark: #7a0000;
	--aph-red-tint: #fdeceb;
}

/* This stylesheet only loads on the pages this plugin owns (the canonical
   author page, the profile-edit form, the registration form), so
   constraining <body> itself here is scoped to those, not the whole site —
   a safe, theme-agnostic way to stop the header/content/footer running edge
   -to-edge on a theme with no site-width container of its own. */
body {
	max-width: 1100px;
	margin: 0 auto;
}

.aph-brand-strip {
	display: inline-block;
	background: #272525;
	border-radius: 8px;
	padding: 0.6rem 1rem;
	margin: 1.5rem 0 0 1rem;
}

.aph-brand-strip img {
	display: block;
	max-width: 160px;
	max-height: 40px;
	width: auto;
	height: auto;
}

.aph-profile-header {
	display: flex;
	gap: 1.5rem;
	align-items: center;
	margin-bottom: 1.5rem;
}

.aph-profile-photo {
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}

.aph-profile-name {
	margin: 0 0 0.25rem;
}

.aph-profile-jobtitle {
	margin: 0;
	color: #555;
	font-weight: 600;
}

.aph-profile-shortbio {
	margin: 0.5rem 0 0;
	color: #444;
}

.aph-archived-note {
	padding: 0.75rem 1rem;
	background: #f6f7f7;
	border-left: 3px solid #999;
	font-size: 0.9rem;
}

.aph-tags {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.aph-tags li {
	background: #eef2f7;
	border-radius: 12px;
	padding: 0.25rem 0.75rem;
	font-size: 0.85rem;
}

/* Front-end edit form + registration form — both share this card */
.aph-edit-form-wrap {
	max-width: 640px;
	margin: 2.5rem auto;
	padding: 2rem 2.25rem;
	background: #fff;
	border: 1px solid #eaeaea;
	border-radius: 10px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
	box-sizing: border-box;
}

.aph-register-intro {
	margin: 0 0 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid #eee;
	color: #444;
	font-size: 1.05rem;
}

.aph-edit-form .aph-field {
	display: block;
	margin-bottom: 1.25rem;
}

.aph-edit-form label,
.aph-edit-form legend {
	display: block;
	font-weight: 600;
	margin-bottom: 0.4rem;
	color: #1d2327;
}

.aph-edit-form input[type="text"],
.aph-edit-form input[type="email"],
.aph-edit-form input[type="password"],
.aph-edit-form input[type="url"],
.aph-edit-form textarea {
	width: 100%;
	padding: 0.65rem 0.8rem;
	border: 1px solid #d5d5d5;
	border-radius: 6px;
	box-sizing: border-box;
	font-size: 1rem;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.aph-edit-form input[type="text"]:focus,
.aph-edit-form input[type="email"]:focus,
.aph-edit-form input[type="password"]:focus,
.aph-edit-form input[type="url"]:focus,
.aph-edit-form textarea:focus {
	outline: none;
	border-color: var(--aph-red);
	box-shadow: 0 0 0 3px var(--aph-red-tint);
}

.aph-edit-form .wp-editor-container {
	border: 1px solid #d5d5d5;
	border-radius: 0 0 6px 6px;
	overflow: hidden;
}

.aph-front-row {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.aph-front-row input {
	flex: 1;
}

.aph-front-remove {
	background: none;
	border: none;
	color: var(--aph-red-mid);
	font-size: 1.2rem;
	cursor: pointer;
}

.aph-front-add {
	background: none;
	border: none;
	color: var(--aph-red-mid);
	cursor: pointer;
	padding: 0;
	font-size: 0.9rem;
	font-weight: 600;
}

.aph-front-add:hover {
	color: var(--aph-red-dark);
}

.aph-button,
a.aph-button {
	display: inline-block;
	background: var(--aph-red-mid);
	color: #fff;
	border: none;
	padding: 0.7rem 1.75rem;
	border-radius: 6px;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	transition: background 0.15s ease;
}

.aph-button:hover,
a.aph-button:hover {
	background: var(--aph-red-dark);
	color: #fff;
}

.aph-cancel-link {
	display: inline-block;
	margin-left: 1rem;
	color: #666;
	text-decoration: none;
}

.aph-cancel-link:hover {
	color: var(--aph-red-mid);
}

.aph-form-heading {
	margin: 0 0 1.5rem;
	font-size: 1.5rem;
}

.aph-form-notice {
	padding: 0.75rem 1rem;
	border-radius: 6px;
	margin-bottom: 1.25rem;
	background: #f0f6fc;
	border: 1px solid #c5d9ed;
}

/* Save-result notices (saved / denied / error) float in as a toast instead
   of sitting inline in the page — the plain .aph-form-notice above (e.g.
   the "please log in" message) is real page content and stays inline. */
.aph-form-notice.aph-success,
.aph-form-notice.aph-error {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translate(-50%, 0);
	z-index: 99999;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 280px;
	max-width: min(90vw, 480px);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
	animation: aph-toast-in 0.25s ease-out;
}

.aph-form-notice.aph-toast-out {
	animation: aph-toast-out 0.25s ease-in forwards;
}

@keyframes aph-toast-in {
	from {
		opacity: 0;
		transform: translate(-50%, -14px);
	}
	to {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}

@keyframes aph-toast-out {
	to {
		opacity: 0;
		transform: translate(-50%, -14px);
	}
}

.aph-toast-close {
	margin-left: auto;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font-size: 1.15rem;
	line-height: 1;
	color: inherit;
	opacity: 0.55;
}

.aph-toast-close:hover {
	opacity: 1;
}

.aph-status-row {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 1rem;
}

.aph-status-badge {
	display: inline-block;
	padding: 0.3rem 0.85rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.aph-status-badge.aph-status-pending {
	background: #fff3d6;
	color: #8a6300;
}

.aph-status-badge.aph-status-published {
	background: #e3f6e7;
	color: #1f7a37;
}

.aph-status-badge.aph-status-draft {
	background: var(--aph-red-tint);
	color: var(--aph-red-dark);
}

.aph-form-notice.aph-success {
	background: #edfaef;
	border-color: #a6e0b3;
}

.aph-form-notice.aph-error {
	background: var(--aph-red-tint);
	border-color: #f0c3c0;
	color: var(--aph-red-dark);
}

.aph-current-photo {
	display: block;
	border-radius: 50%;
	margin-bottom: 0.5rem;
	object-fit: cover;
}

.single-author_profile {
	max-width: 900px;
	margin: 0 auto;
}

@media screen and (max-width: 640px) {
	.aph-profile-header {
		flex-direction: column;
		align-items: flex-start;
	}
}