/* Custom Author Page styles */

.cap-author-page {
	max-width: 1160px;
	margin: 40px auto;
	padding: 0 20px;
}

.cap-author-box {
	display: flex;
	align-items: center;
	gap: 32px;
	background: #fff;
	border: 1px solid #eaeaea;
	border-radius: 18px;
	padding: 40px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
	flex-wrap: wrap;
	margin-bottom: 40px;
}

.cap-author-image img {
	width: 160px;
	height: 160px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.cap-author-info {
	flex: 1;
	min-width: 260px;
}

.cap-author-name {
	margin: 0 0 12px;
	font-size: 28px;
	font-weight: 700;
}

.cap-author-bio {
	color: #444;
	line-height: 1.6;
	margin-bottom: 18px;
}

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

.cap-author-actions {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.cap-view-posts-btn {
	display: inline-block;
	background: #111;
	color: #fff;
	padding: 10px 22px;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease;
}

.cap-view-posts-btn:hover {
	background: #333;
	color: #fff;
}

.cap-social-links {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.cap-social-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	line-height: 1;
}

.cap-social-facebook  { background: #1877f2; }
.cap-social-instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.cap-social-linkedin  { background: #0a66c2; }
.cap-social-youtube   { background: #ff0000; }
.cap-social-x         { background: #000000; }
.cap-social-reddit    { background: #ff4500; }
.cap-social-tiktok    { background: #010101; }
.cap-social-mail      { background: #6b7280; }

.cap-social-icon:hover {
	opacity: 0.85;
	color: #fff;
}

/* Posts grid */
.cap-posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}

.cap-post-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.cap-post-thumb img {
	width: 100%;
	height: 190px;
	object-fit: cover;
	display: block;
}

.cap-post-title {
	font-size: 17px;
	margin: 14px 16px 8px;
}

.cap-post-title a {
	color: #111;
	text-decoration: none;
}

.cap-post-title a:hover {
	text-decoration: underline;
}

.cap-post-excerpt {
	margin: 0 16px 18px;
	color: #555;
	font-size: 14px;
	line-height: 1.5;
}

/* Pagination */
.cap-pagination {
	margin-top: 34px;
	display: flex;
	justify-content: center;
	gap: 6px;
	flex-wrap: wrap;
}

.cap-pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 8px;
	border: 1px solid #ddd;
	color: #333;
	text-decoration: none;
	font-size: 14px;
}

.cap-pagination .page-numbers.current {
	background: #111;
	color: #fff;
	border-color: #111;
}

.cap-pagination .page-numbers:hover:not(.current) {
	background: #f2f2f2;
}

@media (max-width: 720px) {
	.cap-author-box {
		flex-direction: column;
		text-align: center;
		padding: 28px 20px;
	}
	.cap-author-actions {
		justify-content: center;
	}
	.cap-posts-grid {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 721px) and (max-width: 1024px) {
	.cap-posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
