/* ==========================================================================
   Author Page — /author/{nicename}/
   ========================================================================== */

/* Wrapper */
.author-page-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
}

/* --------------------------------------------------
   Author profile bio section
   -------------------------------------------------- */
.author-profile {
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 56px;
	margin-top: 150px;
	box-shadow: 0 4px 32px rgba(0, 0, 0, 0.10);
}

/* Banner */
.author-profile__banner {
	background: linear-gradient(135deg, #0f1117 0%, #1a1d2a 55%, #1e2230 100%);
	padding: 0;
	position: relative;
}

/* Teal accent bar at top */
.author-profile__banner::before {
	content: '';
	display: block;
	height: 4px;
	background: linear-gradient(90deg, #4298B5 0%, #4298B5 100%);
}

.author-profile__banner-inner {
	display: flex;
	align-items: center;
	gap: 36px;
	padding: 44px 48px;
}

/* Avatar */
.author-profile__avatar {
	flex-shrink: 0;
}

.author-profile__avatar img {
	width: 140px;
	height: 140px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	border: 4px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Identity block */
.author-profile__identity {
	flex: 1;
}

.author-profile__name {
	font-family: "Bitter", Sans-serif;
	font-size: 36px;
	font-weight: 700;
	margin: 0 0 8px;
	color: #fff;
	line-height: 1.15;
	letter-spacing: -0.5px;
}

.author-profile__job-title {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.65);
	margin: 0 0 20px;
	font-weight: 400;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	font-size: 12px;
}

/* Social row (LinkedIn) — below job title */
.author-profile__social {
	margin: 0 0 16px;
}

/* LinkedIn link */
.author-profile__linkedin {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	background: rgba(43, 191, 191, 0.15);
	border: 1px solid rgba(43, 191, 191, 0.4);
	padding: 7px 16px;
	border-radius: 6px;
	transition: background 0.2s, border-color 0.2s;
}

.author-profile__linkedin:hover {
	background: #4298B5;
	border-color: #4298B5;
	color: #fff;
	text-decoration: none;
}

/* Article count — subtle, at the bottom */
.author-profile__post-count {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.38);
	margin-top: 4px;
}

/* Bio strip */
.author-profile__bio-wrap {
	background: #fff;
	padding: 28px 48px;
	border-top: 1px solid #eef0f4;
}

.author-profile__bio {
	font-size: 15px;
	line-height: 1.75;
	color: #444;
	max-width: 800px;
}

.author-profile__bio p {
	margin: 0 0 10px;
}

.author-profile__bio p:last-child {
	margin-bottom: 0;
}

/* --------------------------------------------------
   Author posts section
   -------------------------------------------------- */
.author-posts__inner {
	max-width: 100%;
}

.author-posts__heading {
	font-family: "Bitter", Sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: #111;
	margin: 0 0 28px;
	padding-bottom: 12px;
	border-bottom: 2px solid #e8e8e8;
}

.author-posts__none {
	color: #666;
	font-size: 15px;
}

/* Posts grid */
.author-posts__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 40px;
}

/* Post card — full-image overlay style */
.author-post-card {
	border-radius: 16px;
	overflow: hidden;
	position: relative;
}

.author-post-card__link {
	display: block;
	position: relative;
	text-decoration: none;
	border-radius: 16px;
	overflow: hidden;
}

/* Image */
.author-post-card__image {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

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

.author-post-card__image--placeholder {
	background: #ccc;
}

.author-post-card__link:hover .author-post-card__image img {
	transform: scale(1.04);
}

/* Dark gradient overlay */
.author-post-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		transparent 35%,
		rgba(0, 0, 0, 0.72) 100%
	);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 20px;
	box-sizing: border-box;
}

/* Title */
.author-post-card__title {
	font-family: "Bitter", Sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 8px;
	line-height: 1.3;
}

/* Meta (date + icon) */
.author-post-card__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.85);
}

.author-post-card__meta svg {
	flex-shrink: 0;
	opacity: 0.85;
}


/* --------------------------------------------------
   Pagination
   -------------------------------------------------- */
.author-posts .navigation.pagination {
	margin-top: 48px;
	display: flex;
	justify-content: center;
}

.author-posts .nav-links {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: center;
}

/* All page links and prev/next */
.author-posts .nav-links a,
.author-posts .nav-links span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 14px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

/* Number links */
.author-posts .nav-links a.page-numbers {
	color: #1a1d2a;
	background: #f4f5f7;
	border: 1px solid #e4e6ea;
}

.author-posts .nav-links a.page-numbers:hover {
	background: #4298B5;
	border-color: #4298B5;
	color: #fff;
}

/* Current page */
.author-posts .nav-links span.current {
	background: #4298B5;
	border: 1px solid #4298B5;
	color: #fff;
}

/* Dots */
.author-posts .nav-links span.dots {
	background: transparent;
	border: none;
	color: #999;
	letter-spacing: 1px;
	min-width: auto;
	padding: 0 4px;
}

/* Prev / Next */
.author-posts .nav-links a.prev,
.author-posts .nav-links a.next {
	background: #1a1d2a;
	border: 1px solid #1a1d2a;
	color: #fff;
	gap: 6px;
	padding: 0 18px;
}

.author-posts .nav-links a.prev:hover,
.author-posts .nav-links a.next:hover {
	background: #4298B5;
	border-color: #4298B5;
	color: #fff;
}

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

@media (max-width: 680px) {
	.author-profile__banner {
		padding: 32px 24px;
	}

	.author-profile__banner-inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.author-profile__name {
		font-size: 28px;
	}

	.author-profile__social {
		display: flex;
		justify-content: center;
	}

	.author-profile__post-count {
		justify-content: center;
	}

	.author-profile__bio-wrap {
		padding: 24px;
	}

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