/* ==========================================================================
   Author Archive Page — Custom Styles
   Upload this file to your child theme's root folder as: author-page.css
   It is enqueued automatically by author.php on author archive pages only.
   ========================================================================== */
.author .site-content .content-area {
    width: 100% !important;
}

.author-page-main {
	max-width: 1100px;
	margin: 0 auto;
	padding: 48px 20px 64px;
}

/* -------------------------------------------------------------------- */
/* Author hero card                                                      */
/* -------------------------------------------------------------------- */

.author-hero {
	display: flex;
	align-items: center;
	gap: 32px;
	padding: 40px;
	margin-bottom: 48px;
	background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
	border: 1px solid #eef1f5;
	border-radius: 24px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
	text-align: left;
}

.author-hero__avatar-img {
	border-radius: 50%;
	box-shadow: 0 0 0 4px #ffffff, 0 4px 14px rgba(15, 23, 42, 0.12);
	object-fit: cover;
	display: block;
}

.author-hero__info {
	flex: 1;
	min-width: 0;
}

.author-hero__name {
	margin: 0 0 12px;
	font-size: 30px;
	line-height: 1.2;
	font-weight: 700;
	color: #0f172a;
	letter-spacing: -0.01em;
}

.author-hero__bio {
	margin: 0 0 20px;
	max-width: 640px;
	color: #475569;
	line-height: 1.7;
	font-size: 15.5px;
}

.author-hero__stats {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
	padding: 0;
}

.author-hero__stat {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 500;
	background: rgba(15, 23, 42, 0.05);
	color: #475569;
}

.author-hero__stat--primary {
	background: rgba(37, 99, 235, 0.1);
	color: #1d4ed8;
}

.author-hero__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

.author-hero__social-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #2563eb;
	text-decoration: none;
}

.author-hero__social-link:hover {
	text-decoration: underline;
}

.author-hero__social-icon {
	display: inline-block;
	width: 18px;
	height: 18px;
	object-fit: contain;
}

/* -------------------------------------------------------------------- */
/* Posts grid                                                            */
/* -------------------------------------------------------------------- */

.author-posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.author-post-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #eef1f5;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.author-post-card:hover {
	box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
	transform: translateY(-3px);
}

.author-post-card__thumb {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f1f5f9;
}

.author-post-card__thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.author-post-card:hover .author-post-card__thumb-img {
	transform: scale(1.06);
}

.author-post-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px;
}

.author-post-card__category {
	margin-bottom: 8px;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #2563eb;
}

.author-post-card__category a {
	color: inherit;
	text-decoration: none;
}

.author-post-card__title {
	margin: 0 0 8px;
	font-size: 17px;
	line-height: 1.4;
	font-weight: 600;
}

.author-post-card__title a {
	color: #0f172a;
	text-decoration: none;
}

.author-post-card__title a:hover {
	color: #2563eb;
}

.author-post-card__meta {
	margin-bottom: 10px;
	font-size: 13px;
	color: #94a3b8;
}

.author-post-card__excerpt {
	flex: 1;
	margin-bottom: 14px;
	font-size: 14px;
	line-height: 1.65;
	color: #475569;
}

.author-post-card__readmore {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13.5px;
	font-weight: 600;
	color: #2563eb;
	text-decoration: none;
}

.author-post-card__readmore span {
	transition: transform 0.2s ease;
}

.author-post-card:hover .author-post-card__readmore span {
	transform: translateX(3px);
}

/* -------------------------------------------------------------------- */
/* Pagination                                                            */
/* -------------------------------------------------------------------- */

.author-pagination {
	display: flex;
	justify-content: center;
	margin-top: 48px;
}

.author-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.author-pagination .page-numbers a,
.author-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	border: 1px solid #e2e8f0;
	color: #334155;
	text-decoration: none;
}

.author-pagination .page-numbers a:hover {
	background: #eff6ff;
	border-color: #3b82f6;
	color: #1d4ed8;
}

.author-pagination .page-numbers.current {
	background: #2563eb;
	border-color: #2563eb;
	color: #ffffff;
}

/* -------------------------------------------------------------------- */
/* Empty state                                                           */
/* -------------------------------------------------------------------- */

.author-empty-state {
	text-align: center;
	padding: 96px 20px;
}

.author-empty-state h1 {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 700;
	color: #0f172a;
}

.author-empty-state p {
	margin: 0;
	color: #64748b;
}

/* -------------------------------------------------------------------- */
/* Responsive                                                            */
/* -------------------------------------------------------------------- */

@media (max-width: 900px) {
	.author-posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.author-hero {
		flex-direction: column;
		text-align: center;
		padding: 28px 20px;
	}

	.author-hero__stats,
	.author-hero__socials {
		justify-content: center;
	}

	.author-posts-grid {
		grid-template-columns: 1fr;
	}
}