/**
 * Author Bio Shortcode Styles
 *
 * Styles for the [author_bio] shortcode and author archive pages.
 * Works in both shortcode context and native author archive pages.
 */

/* Archive Header Styles */
body.archive.author .archive-header,
.edd-author-bio-shortcode .archive-header {
	margin-bottom: 0 !important;
	padding-bottom: 2rem !important;
	border-bottom: 1px solid #e5e5e5 !important;
}

body.archive.author .archive-header div.row,
.edd-author-bio-shortcode .archive-header div.row {
	display: flex !important;
	align-items: flex-start !important;
}

body.archive.author .archive-header div.row .author-avatar,
.edd-author-bio-shortcode .archive-header div.row .author-avatar {
	flex-shrink: 0 !important;
	margin: 0 !important;
	padding-right: 1.5rem !important;
}

/* Square Avatar with 5px Radius */
body.archive.author .archive-header div.row .author-avatar img,
.edd-author-bio-shortcode .archive-header div.row .author-avatar img,
body.archive.author .archive-header div.row .author-avatar img.square-avatar,
.edd-author-bio-shortcode .archive-header div.row .author-avatar img.square-avatar {
	height: 150px !important;
	width: 150px !important;
	border-radius: 5px !important;
}

body.archive.author .archive-header div.row .author-meta,
.edd-author-bio-shortcode .archive-header div.row .author-meta {
	display: flex !important;
	flex-direction: column !important;
	gap: 0.75rem !important;
	flex: 1 !important;
	min-width: 0 !important;
}

/* Author Name and Job Title on Same Line */
body.archive.author .archive-header div.row .author-meta h1.author-name,
.edd-author-bio-shortcode .archive-header div.row .author-meta h1.author-name {
	font-size: 22px !important;
	margin-bottom: 0 !important;
	display: flex !important;
	align-items: baseline !important;
	gap: 0.5rem !important;
	flex-wrap: wrap !important;
	font-weight: 700 !important;
	line-height: 30px !important;
}

body.archive.author .archive-header div.row .author-meta h1.author-name .separator,
.edd-author-bio-shortcode .archive-header div.row .author-meta h1.author-name .separator {
	font-weight: 300 !important;
	color: #D1D5DB !important;
	font-size: 22px !important;
	line-height: 30px !important;
}

body.archive.author .archive-header div.row .author-meta h1.author-name .author-job-title,
.edd-author-bio-shortcode .archive-header div.row .author-meta h1.author-name .author-job-title {
	font-weight: 500 !important;
	font-size: 16px !important;
	line-height: 24px !important;
	color: #333 !important;
	border-left: none !important;
	padding-left: 0 !important;
	margin-left: 0 !important;
}

/* Inline Expertise with Badges */
body.archive.author .archive-header div.row .author-meta .author-expertise-inline,
.edd-author-bio-shortcode .archive-header div.row .author-meta .author-expertise-inline {
	display: flex !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 8px !important;
	margin: 0 !important;
}

body.archive.author .archive-header div.row .author-meta .author-expertise-inline .label,
.edd-author-bio-shortcode .archive-header div.row .author-meta .author-expertise-inline .label {
	font-size: 20px !important;
	line-height: 28px !important;
	font-weight: 600 !important;
	color: #000 !important;
	margin-right: 4px !important;
}

body.archive.author .archive-header div.row .author-meta .author-expertise-inline .expertise-badge,
.edd-author-bio-shortcode .archive-header div.row .author-meta .author-expertise-inline .expertise-badge {
	background-color: #F3F4F6 !important;
	padding: 4px 8px !important;
	border-radius: 2px !important;
	font-size: 14px !important;
	line-height: 18px !important;
	font-weight: 600 !important;
	color: #333 !important;
	display: inline-block !important;
}

/* Education with Green Link */
body.archive.author .archive-header div.row .author-meta .author-education,
.edd-author-bio-shortcode .archive-header div.row .author-meta .author-education {
	font-size: 1rem !important;
	line-height: 1.5 !important;
	margin: 0 !important;
}

body.archive.author .archive-header div.row .author-meta .author-education .label,
.edd-author-bio-shortcode .archive-header div.row .author-meta .author-education .label {
	font-weight: 700 !important;
	color: #000 !important;
	margin-right: 0.25rem !important;
}

body.archive.author .archive-header div.row .author-meta .author-education a,
.edd-author-bio-shortcode .archive-header div.row .author-meta .author-education a {
	color: #00a32a !important;
	text-decoration: none !important;
	font-size: 16px !important;
	line-height: 24px !important;
	font-weight: 500 !important;
}

body.archive.author .archive-header div.row .author-meta .author-education a:hover,
.edd-author-bio-shortcode .archive-header div.row .author-meta .author-education a:hover {
	text-decoration: underline !important;
}

/* Author Excerpt */
body.archive.author .archive-header div.row .author-meta .author-excerpt,
.edd-author-bio-shortcode .archive-header div.row .author-meta .author-excerpt {
	font-size: 1rem !important;
	line-height: 1.6 !important;
	color: #333 !important;
	margin: 0.5rem 0 0 0 !important;
}

/* Larger Black Social Icons */
body.archive.author .archive-header div.row .author-socials,
.edd-author-bio-shortcode .archive-header div.row .author-socials {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 15px;
}

body.archive.author .archive-header div.row .author-socials a,
.edd-author-bio-shortcode .archive-header div.row .author-socials a {
	text-decoration: none;
	opacity: 1;
	transition: opacity .25s ease-in-out;
}

body.archive.author .archive-header div.row .author-socials a:hover,
.edd-author-bio-shortcode .archive-header div.row .author-socials a:hover {
	opacity: 0.7;
}

body.archive.author .archive-header div.row .author-socials a img,
.edd-author-bio-shortcode .archive-header div.row .author-socials a img {
	height: 20px !important;
	width: 20px !important;
	filter: brightness(0) saturate(100%) invert(9%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(91%) contrast(87%) !important;
}

/* Section Styles - Bio Content Below Header */

body.archive.author section,
.edd-author-bio-shortcode section {
	margin-top: 2rem !important;
}

body.archive.author section div.container .row,
.edd-author-bio-shortcode section div.container .row {
	padding-bottom: 0 !important;
	padding-top: 0 !important;
	border-bottom: none !important;
}

/* Author Bio Content - Let it use its own structure */
body.archive.author .author-bio-content,
.edd-author-bio-shortcode .author-bio-content {
	font-size: 1rem !important;
	line-height: 1.6 !important;
	color: #333 !important;
}

body.archive.author .author-bio-content p,
.edd-author-bio-shortcode .author-bio-content p {
	margin-bottom: 1rem !important;
	line-height: 1.6 !important;
}

body.archive.author .author-bio-content ul,
.edd-author-bio-shortcode .author-bio-content ul {
	margin: 1rem 0 !important;
	padding-left: 1.25rem !important;
	list-style-type: disc !important;
}

body.archive.author .author-bio-content ul li,
.edd-author-bio-shortcode .author-bio-content ul li {
	margin-bottom: 0.5rem !important;
	line-height: 1.6 !important;
}

body.archive.author .author-bio-content h2,
.edd-author-bio-shortcode .author-bio-content h2,
body.archive.author .author-bio-content h3,
.edd-author-bio-shortcode .author-bio-content h3 {
	font-weight: 700 !important;
	margin-top: 1.5rem !important;
	margin-bottom: 0.75rem !important;
	color: #000 !important;
}

body.archive.author .author-bio-content h4,
.edd-author-bio-shortcode .author-bio-content h4 {
	font-size: 20px !important;
	line-height: 28px !important;
	font-weight: 400 !important;
	margin-top: 1.5rem !important;
	margin-bottom: 0.75rem !important;
	color: #000 !important;
}

body.archive.author .author-bio-content h2:first-child,
.edd-author-bio-shortcode .author-bio-content h2:first-child {
	margin-top: 0 !important;
}

/* Responsive Styles */
@media (max-width: 991px) {
	body.archive.author .archive-header div.row .author-avatar,
	.edd-author-bio-shortcode .archive-header div.row .author-avatar {
		text-align: center;
		margin-bottom: 1.5rem;
	}

	body.archive.author .archive-header div.row .author-meta,
	.edd-author-bio-shortcode .archive-header div.row .author-meta {
		text-align: center;
	}

	body.archive.author .archive-header div.row .author-meta h1.author-name,
	.edd-author-bio-shortcode .archive-header div.row .author-meta h1.author-name {
		justify-content: center;
	}

	body.archive.author .archive-header div.row .author-socials,
	.edd-author-bio-shortcode .archive-header div.row .author-socials {
		justify-content: center;
	}
}

@media (max-width: 767px) {
	body.archive.author .archive-header div.row .author-meta h1.author-name,
	.edd-author-bio-shortcode .archive-header div.row .author-meta h1.author-name {
		font-size: 1.5rem;
		flex-direction: column;
		align-items: center;
	}

	body.archive.author .archive-header div.row .author-meta h1.author-name .separator,
	.edd-author-bio-shortcode .archive-header div.row .author-meta h1.author-name .separator {
		display: none;
	}

	body.archive.author .archive-header div.row .author-meta h1.author-name .author-job-title,
	.edd-author-bio-shortcode .archive-header div.row .author-meta h1.author-name .author-job-title {
		font-size: 1.25rem;
		margin-top: 0.5rem;
	}
}
