/**
 * Author profile — Published by section (tabs, blog shell, Phase 0 listing parity).
 *
 * @package Listeo_Child
 */

/* Phase 0 card tokens (parity with taxonomy archives; avoids body.tax-listing_category). */
body.appsinsight-author-profile.appsinsight-author-phase0-cards .appsinsight-lc-phase0 {
	--appsinsight-lc-glass-bg: rgba(255, 255, 255, 0.72);
	--appsinsight-lc-glass-border: rgba(15, 23, 42, 0.08);
	--appsinsight-lc-glass-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
	--appsinsight-lc-radius: 16px;
	--appsinsight-lc-accent: var(--appsinsight-accent, var(--primary-color, #f91942));
}

.appsinsight-author-published__body {
	position: relative;
}

.appsinsight-author-published__tabs-shell {
	margin-bottom: 8px;
}

/* Typography aligned with author-page.css (.about-text-modern, .section-title-modern, .stat-label). */
.author-profile-modern .appsinsight-author-published {
	font-size: 15px;
	line-height: 1.6;
}

.appsinsight-author-published__tablist {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	list-style: none;
	margin: 0 0 22px;
	padding: 14px;
	border-radius: 14px;
	background: rgba(248, 250, 252, 0.95);
	border: 1px solid rgba(15, 23, 42, 0.06);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.author-profile-modern .appsinsight-author-published__tab {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 18px;
	border-radius: 999px;
	font-size: 15px;
	line-height: 1.35;
	font-weight: 600;
	border: 1px solid rgba(15, 23, 42, 0.1);
	background: #fff;
	color: #666;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.author-profile-modern .appsinsight-author-published__tab:hover,
.author-profile-modern .appsinsight-author-published__tab:focus-visible {
	outline: none;
	border-color: rgba(249, 25, 66, 0.35);
	color: var(--appsinsight-lc-accent, var(--primary-color, #f91942));
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.author-profile-modern .appsinsight-author-published__tab.is-active {
	background: var(--appsinsight-lc-accent, var(--primary-color, #f91942));
	border-color: transparent;
	color: #fff;
	box-shadow: 0 4px 16px rgba(249, 25, 66, 0.22);
}

.author-profile-modern .appsinsight-author-published__tab.is-active .appsinsight-author-published__tab-count {
	opacity: 0.95;
}

.author-profile-modern .appsinsight-author-published__tab-count {
	display: inline-flex;
	min-width: 1.5rem;
	justify-content: center;
	padding: 2px 8px;
	font-size: 14px;
	line-height: 1.35;
	font-weight: 700;
	letter-spacing: 0.02em;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.06);
	color: inherit;
}

.author-profile-modern .appsinsight-author-published__tab.is-active .appsinsight-author-published__tab-count {
	background: rgba(255, 255, 255, 0.22);
}

.appsinsight-author-published__panel {
	padding-top: 4px;
}

.appsinsight-author-published__listing-grid {
	min-height: 1px;
}

/* Blog cards — horizontal rhythm loosely aligned with archive listing rows. */
.appsinsight-author-published__blog-list {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.appsinsight-author-published__blog-card {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 20px;
	padding: 20px;
	border-radius: var(--appsinsight-lc-radius, 16px);
	background: var(--appsinsight-lc-glass-bg, rgba(255, 255, 255, 0.88));
	border: 1px solid var(--appsinsight-lc-glass-border, rgba(15, 23, 42, 0.08));
	box-shadow: var(--appsinsight-lc-glass-shadow, 0 10px 32px rgba(15, 23, 42, 0.08));
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.appsinsight-author-published__blog-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 44px rgba(15, 23, 42, 0.1);
}

.appsinsight-author-published__blog-thumb {
	flex: 0 0 clamp(100px, 22%, 176px);
	max-width: 176px;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	align-self: flex-start;
}

.appsinsight-author-published__blog-thumb img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	aspect-ratio: 4 / 3;
}

.author-profile-modern .appsinsight-author-published__blog-body {
	flex: 1 1 0%;
	min-width: 0;
	font-size: 15px;
	line-height: 1.6;
}

/* Matches .section-title-modern (author-page.css): 18px / 600 / #222. */
.author-profile-modern .appsinsight-author-published__blog-title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	color: #222;
}

/* About Me bio: explicit body size = blog excerpt + sidebar contact (author-page lacks font-size). */
.author-profile-modern .main-content-modern .about-text-modern,
.author-profile-modern .main-content-modern .about-text-modern p {
	font-size: 15px;
	line-height: 1.6;
	color: #666;
}

.author-profile-modern .appsinsight-author-published__blog-title a {
	color: inherit;
	text-decoration: none;
	border-radius: 4px;
}

.author-profile-modern .appsinsight-author-published__blog-title a:hover,
.author-profile-modern .appsinsight-author-published__blog-title a:focus-visible {
	color: var(--appsinsight-lc-accent, var(--primary-color, #f91942));
	outline: 2px solid var(--appsinsight-lc-accent, var(--primary-color, #f91942));
	outline-offset: 2px;
}

/* Sidebar-adjacent meta: aligns with .member-since-modern rhythm (≈13–14px, softer weight). */
.author-profile-modern .appsinsight-author-published__blog-date {
	display: block;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	color: #777;
	margin-bottom: 10px;
}

/* Uses .about-text-modern for color + line-height; explicit size matches profile body copy. */
.author-profile-modern .appsinsight-author-published__blog-excerpt.about-text-modern {
	font-size: 15px;
	line-height: 1.6;
	color: #666;
	margin-bottom: 12px;
}

.author-profile-modern .appsinsight-author-published__blog-excerpt.about-text-modern p:last-child {
	margin-bottom: 0;
}

.author-profile-modern .appsinsight-author-published__blog-more {
	display: inline-block;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.6;
	margin-top: 2px;
	color: var(--listeo-primary-color, var(--appsinsight-lc-accent, var(--primary-color, #f91942)));
	text-decoration: none;
}

.author-profile-modern .appsinsight-author-published__blog-more:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/**
 * Author-published pagers — Blogs tab + Companies tab; isolated from Listeo `.pagination`.
 * Normal: soft panel, rounded tiles. Hover: lift + accent border. Active: filled accent.
 */
.author-profile-modern .appsinsight-author-published__pager-wrap {
	padding: 14px 18px;
	border-radius: 14px;
	background: linear-gradient(180deg, #fdfefe 0%, #f4f7fb 100%);
	border: 1px solid rgba(15, 23, 42, 0.07);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.author-profile-modern .appsinsight-author-pager {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	text-align: center;
	overflow: visible;
}

.author-profile-modern .appsinsight-author-pager ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.2;
	font-weight: 600;
}

.author-profile-modern .appsinsight-author-pager ul.page-numbers > li {
	display: inline-flex;
	margin: 0;
	padding: 0;
	list-style: none;
	vertical-align: middle;
}

/* Prev / next / page links */
.author-profile-modern .appsinsight-author-pager a.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	box-sizing: border-box;
	border-radius: 10px;
	text-decoration: none;
	color: #475569;
	background: #ffffff;
	border: 1px solid rgba(15, 23, 42, 0.1);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
	transition:
		color 0.2s ease,
		background 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

.author-profile-modern .appsinsight-author-pager a.page-numbers:hover {
	color: var(--listeo-primary-color, var(--appsinsight-lc-accent, var(--primary-color, #f91942)));
	background: #ffffff;
	border-color: rgba(249, 25, 66, 0.35);
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
	transform: translateY(-2px);
}

.author-profile-modern .appsinsight-author-pager a.page-numbers:focus-visible {
	outline: 2px solid var(--listeo-primary-color, var(--appsinsight-lc-accent, var(--primary-color, #f91942)));
	outline-offset: 3px;
	z-index: 1;
}

.author-profile-modern .appsinsight-author-pager a.page-numbers i {
	font-size: 0.85em;
	line-height: 1;
}

/* Ellipsis */
.author-profile-modern .appsinsight-author-pager span.page-numbers.dots,
.author-profile-modern .appsinsight-author-pager .page-numbers.dots {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	min-height: 44px;
	padding: 0 6px;
	border: none;
	background: transparent;
	box-shadow: none;
	color: #94a3b8;
	font-weight: 700;
	letter-spacing: 0.06em;
	cursor: default;
	pointer-events: none;
}

/* Current page */
.author-profile-modern .appsinsight-author-pager span.page-numbers.current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 10px;
	box-sizing: border-box;
	color: #ffffff;
	background: var(--listeo-primary-color, var(--appsinsight-lc-accent, var(--primary-color, #f91942)));
	border: 1px solid transparent;
	box-shadow: 0 4px 16px rgba(249, 25, 66, 0.22);
	cursor: default;
}

@media (prefers-reduced-motion: reduce) {
	.author-profile-modern .appsinsight-author-pager a.page-numbers:hover {
		transform: none;
	}
}

body#dark-mode .author-profile-modern .appsinsight-author-published__pager-wrap {
	background: rgba(34, 34, 34, 0.92);
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: none;
}

body#dark-mode .author-profile-modern .appsinsight-author-pager a.page-numbers {
	background: #2a2a2a;
	border-color: rgba(255, 255, 255, 0.12);
	color: #cbd5e1;
	box-shadow: none;
}

body#dark-mode .author-profile-modern .appsinsight-author-pager a.page-numbers:hover {
	background: #333;
	color: var(--listeo-primary-color, #f91942);
	border-color: rgba(249, 25, 66, 0.45);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

body#dark-mode .author-profile-modern .appsinsight-author-pager span.page-numbers.current {
	color: #fff;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

body#dark-mode .author-profile-modern .appsinsight-author-pager span.page-numbers.dots,
body#dark-mode .author-profile-modern .appsinsight-author-pager .page-numbers.dots {
	color: #64748b;
}

.appsinsight-author-published__software-more {
	margin-top: 12px;
}

.appsinsight-software-archive-card__thumb img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.author-profile-modern .appsinsight-author-published .appsinsight-software-archive-card__excerpt {
	margin: 10px 0 0;
	font-size: 15px;
	line-height: 1.6;
	color: #666;
}

body#dark-mode .author-profile-modern .appsinsight-author-published__tablist {
	background: rgba(40, 40, 40, 0.95);
	border-color: rgba(255, 255, 255, 0.08);
}

body#dark-mode .author-profile-modern .appsinsight-author-published__tab {
	background: #2a2a2a;
	border-color: rgba(255, 255, 255, 0.12);
	color: #aaa;
}

body#dark-mode .author-profile-modern .appsinsight-author-published__tab-count {
	background: rgba(255, 255, 255, 0.08);
}

body#dark-mode .author-profile-modern .appsinsight-author-published__blog-title,
body#dark-mode .author-profile-modern .appsinsight-author-published__blog-title a {
	color: #ddd;
}

body#dark-mode .author-profile-modern .appsinsight-author-published__blog-date {
	color: #999;
}

body#dark-mode .author-profile-modern .appsinsight-author-published__blog-excerpt.about-text-modern {
	color: #aaa;
}

body#dark-mode .author-profile-modern .appsinsight-author-published .appsinsight-software-archive-card__excerpt {
	color: #aaa;
}

body#dark-mode .author-profile-modern .main-content-modern .about-text-modern,
body#dark-mode .author-profile-modern .main-content-modern .about-text-modern p {
	color: #aaa;
}

@media (max-width: 767px) {
	.appsinsight-author-published__blog-card {
		flex-direction: column;
	}

	.appsinsight-author-published__blog-thumb {
		max-width: none;
		flex: none;
		width: 100%;
	}

	.appsinsight-author-published__tablist {
		padding: 10px;
	}
}
