/* Author Box Pro — frontend styles
   Uses CSS custom properties (set inline per-site by the plugin) so no
   per-color CSS rules ever need to be generated or requested separately. */

:root {
	--abp-bg: #ffffff;
	--abp-border: #eef0f4;
	--abp-name: #15181e;
	--abp-text: #5b6472;
	--abp-accent: #6c5ce7;
	--abp-icon-bg: #f3f2ff;
	--abp-icon-color: #6c5ce7;
	--abp-icon-hover: #ffffff;
	--abp-radius: 20px;
	--abp-shadow: 0 10px 30px -12px rgba(20, 20, 43, .18);
}

.abp-box {
	--abp-space: 20px;
	box-sizing: border-box;
	display: flex;
	gap: 20px;
	align-items: flex-start;
	background: var(--abp-bg);
	border: 1px solid var(--abp-border);
	border-radius: var(--abp-radius);
	box-shadow: var(--abp-shadow);
	padding: 24px;
	margin: 32px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	transition: transform .25s ease, box-shadow .25s ease;
}
.abp-box * { box-sizing: border-box; }

.abp-box.abp-style-card:hover {
	transform: translateY(-3px);
}

.abp-avatar-wrap {
	flex: 0 0 auto;
	position: relative;
}
.abp-avatar {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	background: var(--abp-icon-bg);
	border: 3px solid var(--abp-bg);
	box-shadow: 0 0 0 2px var(--abp-border);
}

.abp-body { flex: 1 1 auto; min-width: 0; }

.abp-name-row {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 6px;
}
.abp-name {
	font-size: 18px;
	font-weight: 700;
	color: var(--abp-name);
	line-height: 1.3;
}
.abp-job {
	font-size: 13px;
	font-weight: 500;
	color: var(--abp-accent);
	background: var(--abp-icon-bg);
	padding: 2px 10px;
	border-radius: 999px;
}

.abp-about {
	margin: 0 0 14px;
	color: var(--abp-text);
	font-size: 14.5px;
	line-height: 1.65;
}

.abp-footer-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.abp-socials {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.abp-social-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--abp-icon-bg);
	color: var(--abp-icon-color);
	text-decoration: none;
	transition: transform .2s ease, background .2s ease, color .2s ease;
}
.abp-social-btn:hover,
.abp-social-btn:focus-visible {
	background: var(--abp-accent);
	color: var(--abp-icon-hover);
	transform: translateY(-2px);
	outline: none;
}
.abp-social-btn svg { width: 16px; height: 16px; }

.abp-readmore {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--abp-accent);
	text-decoration: none;
	white-space: nowrap;
	transition: opacity .2s ease;
}
.abp-readmore:hover { opacity: .75; }

/* ---------- Minimal variant ---------- */
.abp-style-minimal {
	border: none;
	border-top: 1px solid var(--abp-border);
	border-bottom: 1px solid var(--abp-border);
	border-radius: 0;
	box-shadow: none;
	padding: 24px 4px;
	background: transparent;
}
.abp-style-minimal .abp-avatar { box-shadow: none; border: none; }

/* ---------- Gradient Glow variant ---------- */
.abp-style-glow {
	position: relative;
	overflow: hidden;
	border: none;
	color-scheme: light;
}
.abp-style-glow::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, color-mix(in srgb, var(--abp-accent) 16%, var(--abp-bg)), var(--abp-bg) 60%);
	z-index: 0;
}
.abp-style-glow::after {
	content: "";
	position: absolute;
	width: 220px;
	height: 220px;
	background: var(--abp-accent);
	filter: blur(70px);
	opacity: .28;
	border-radius: 50%;
	top: -60px;
	right: -60px;
	z-index: 0;
}
.abp-style-glow .abp-avatar-wrap,
.abp-style-glow .abp-body { position: relative; z-index: 1; }
.abp-style-glow .abp-avatar { box-shadow: 0 0 0 4px color-mix(in srgb, var(--abp-accent) 25%, transparent); }

/* ---------- Responsive ---------- */
@media (max-width: 520px) {
	.abp-box {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 14px;
	}
	.abp-name-row { justify-content: center; }
	.abp-footer-row { justify-content: center; flex-direction: column; }
	.abp-about { text-align: center; }
}
