/**
 * File Path: assets/css/front/mbs-front-pro-author-directory.css
 * F-015: Author Directory ([mbs_author_directory] shortcode)
 * Component of mbs-front-pro.css — extracted Session 94.
 * Enqueued by MBS_Front_Assets with dep: mbs-front-pro (PRO tier only).
 */
/* ============================================================================
   F-015 — Author Directory ([mbs_author_directory] shortcode)
   ============================================================================ */

/* A-Z filter strip ────────────────────────────────────────────────────────── */

.mbs-author-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 24px 0;
}

.mbs-author-filter-btn {
	padding: 4px 10px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	border: 1px solid var(--mbs-border, #ECF0F1);
	border-radius: 4px;
	background: transparent;
	color: var(--mbs-slate, var(--mbs-slate));
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.mbs-author-filter-btn:hover,
.mbs-author-filter-btn:focus-visible {
	background: var(--mbs-teal-pale, var(--mbs-teal-pale));
	border-color: var(--mbs-link, var(--mbs-teal));
	color: var(--mbs-navy-dark, var(--mbs-navy-dark));
	outline: none;
}

.mbs-author-filter-btn.is-active {
	background: var(--mbs-link, var(--mbs-teal));
	border-color: var(--mbs-link, var(--mbs-teal));
	color: #ffffff;
}

/* Author grid ──────────────────────────────────────────────────────────────── */

.mbs-author-grid {
	display: grid;
	grid-template-columns: repeat( var(--mbs-author-cols, 3), minmax(0, 1fr) );
	gap: 24px;
}

@media (max-width: 768px) {
	.mbs-author-grid {
		grid-template-columns: repeat( 2, minmax(0, 1fr) );
	}
}

@media (max-width: 480px) {
	.mbs-author-grid {
		grid-template-columns: 1fr;
	}
}

/* Author card ──────────────────────────────────────────────────────────────── */

.mbs-author-card {
	display: flex;
	flex-direction: column;
	background: var(--mbs-card-bg, #ffffff);
	border: 1px solid var(--mbs-border, #ECF0F1);
	border-radius: var(--mbs-card-radius, 8px);
	overflow: hidden;
	transition: box-shadow 0.2s;
}

.mbs-author-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.mbs-author-card--featured {
	border-color: var(--mbs-link, var(--mbs-teal));
}

/* Photo area — contains the image and optional featured badge. */
.mbs-author-card-photo-link {
	display: block;
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--mbs-mist, var(--mbs-mist));
}

.mbs-author-card .mbs-author-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Featured badge overlaid on the photo. */
.mbs-author-featured-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-radius: 10px;
	background: var(--mbs-link, var(--mbs-teal));
	color: #ffffff;
}

/* Card body — name, count, bio snippet, website link. */
.mbs-author-card-body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.mbs-author-card-name {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

.mbs-author-card-name a {
	color: var(--mbs-navy-dark, var(--mbs-navy-dark));
	text-decoration: none;
}

.mbs-author-card-name a:hover,
.mbs-author-card-name a:focus {
	color: var(--mbs-link, var(--mbs-teal));
	text-decoration: underline;
}

.mbs-author-book-count {
	margin: 0;
	font-size: 12px;
	color: var(--mbs-slate, var(--mbs-slate));
}

.mbs-author-bio-snippet {
	margin: 0;
	font-size: 13px;
	color: var(--mbs-slate, var(--mbs-slate));
	line-height: 1.55;
}

.mbs-author-website-link {
	font-size: 12px;
	color: var(--mbs-link, var(--mbs-teal));
	text-decoration: underline;
	margin-top: auto;
}

.mbs-author-website-link:hover,
.mbs-author-website-link:focus {
	color: var(--mbs-accent, var(--mbs-teal));
}
