/**
 * Стили для плагина Blog Authors Info
 */

/* Внешний блок информации (тот, который реально виден как \"цитата\") */
.bai-author-info-inserted {
	margin: 20px 0 30px;
	padding: 20px;
	background: #ffffff;
	border: 1px solid #f3f3f3;
	border-left: 3px solid #db2d2e;
	-webkit-box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
	-moz-box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

/* Внутренняя обертка теперь нейтральная, без стилей \"цитаты\" */
.bai-author-info-wrapper {
	margin: 0;
	padding: 0;
	background: transparent;
	border: none;
	box-shadow: none;
}

/* Блок с автором и рецензентом */
.bai-author-info {
	display: flex;
	flex-wrap: wrap;
	gap: 25px 40px;
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #f0f0f0;
}

.bai-info-item {
	display: flex;
	align-items: center;
	gap: 15px;
	font-size: 16px;
	line-height: 1.6;
}

.bai-avatar-wrapper {
	flex-shrink: 0;
}

.bai-avatar-wrapper .bai-avatar-img {
	border-radius: 50%;
	width: 60px;
	height: 60px;
	object-fit: cover;
	border: 2px solid #db2d2e;
	padding: 2px;
	display: block;
}

.bai-info-content {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.bai-label {
	color: #626262;
	font-weight: 600;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.bai-label i {
	color: #db2d2e;
	font-size: 14px;
}

.bai-author-link,
.bai-reviewer-link {
	color: #363636;
	text-decoration: none;
	font-weight: 600;
	font-size: 18px;
	line-height: 1.4;
	transition: color 0.3s ease;
}

.bai-author-link:hover,
.bai-reviewer-link:hover {
	color: #db2d2e;
	text-decoration: underline;
}

/* Блок с датами */
.bai-dates-info {
	display: flex;
	flex-wrap: wrap;
	gap: 15px 30px;
}

.bai-date-item {
	display: flex;
	align-items: center;
	font-size: 14px;
	color: #626262;
}

.bai-date-item time {
	color: #363636;
	font-weight: 500;
}

/* Страница автора */
.bai-author-page {
	padding: 40px 0;
}

.bai-author-header {
	display: flex;
	align-items: center;
	gap: 30px;
	margin-bottom: 40px;
	padding: 30px;
	background: #ffffff;
	border: 1px solid #f3f3f3;
	-webkit-box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
	-moz-box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.bai-author-avatar {
	width: 150px;
	height: 150px;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 50%;
	border: 3px solid #db2d2e;
	padding: 3px;
}

.bai-author-avatar img {
	border-radius: 50%;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bai-author-details {
	flex: 1;
}

.bai-author-name {
	font-size: 32px;
	line-height: 1.2;
	color: #363636;
	margin-bottom: 10px;
	font-weight: 700;
	text-transform: uppercase;
}

.bai-author-position {
	font-size: 18px;
	color: #db2d2e;
	font-weight: 600;
	margin-bottom: 10px;
	font-style: italic;
}

.bai-author-email {
	font-size: 15px;
	color: #626262;
}

.bai-author-email a {
	color: #db2d2e;
	text-decoration: none;
}

.bai-author-email a:hover {
	text-decoration: underline;
}

.bai-author-email i {
	margin-right: 5px;
}

.bai-author-bio {
	margin-bottom: 40px;
	padding: 30px;
	background: #ffffff;
	border: 1px solid #f3f3f3;
	-webkit-box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
	-moz-box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.bai-author-bio h2 {
	font-size: 24px;
	color: #363636;
	margin-bottom: 20px;
	font-weight: 700;
	text-transform: uppercase;
	border-bottom: 2px solid #db2d2e;
	padding-bottom: 10px;
}

.bai-bio-content {
	font-size: 15px;
	line-height: 1.8;
	color: #626262;
}

.bai-bio-content p {
	margin-bottom: 15px;
}

.bai-author-achievements,
.bai-author-publications {
	margin-bottom: 40px;
	padding: 30px;
	background: #ffffff;
	border: 1px solid #f3f3f3;
	-webkit-box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
	-moz-box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.bai-author-achievements h2,
.bai-author-publications h2 {
	font-size: 24px;
	color: #363636;
	margin-bottom: 20px;
	font-weight: 700;
	text-transform: uppercase;
	border-bottom: 2px solid #db2d2e;
	padding-bottom: 10px;
}

.bai-achievements-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bai-achievements-list li {
	position: relative;
	padding-left: 25px;
	margin-bottom: 10px;
	font-size: 15px;
	line-height: 1.6;
	color: #626262;
}

.bai-achievements-list li:before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: #db2d2e;
	font-weight: 700;
}

.bai-publications-list {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	justify-content: flex-start;
}

.bai-publication-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	border-bottom: 1px solid #f0f0f0;
	padding-bottom: 15px;
}

.bai-publication-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.bai-publication-logo {
	width: 150px;
	margin-bottom: 15px;
}

.bai-publication-logo img {
	max-width: 100%;
	max-height: 80px;
	height: auto;
	display: block;
	object-fit: contain;
}

.bai-publication-logo a {
	display: block;
	transition: opacity 0.3s ease;
}

.bai-publication-logo a:hover {
	opacity: 0.8;
}

.bai-publication-name {
	font-size: 15px;
	font-weight: 600;
	color: #363636;
	margin-bottom: 10px;
	line-height: 1.5;
}

.bai-publication-name a {
	color: #363636;
	text-decoration: underline;
	transition: color 0.3s ease;
}

.bai-publication-name a:hover {
	color: #db2d2e;
}

.bai-publication-date {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-size: 13px;
	color: #999999;
	margin-top: 5px;
}

.bai-publication-date i {
	color: #db2d2e;
	font-size: 12px;
}

.bai-author-posts {
	padding: 30px;
	background: #ffffff;
	border: 1px solid #f3f3f3;
	-webkit-box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
	-moz-box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

/* ------------------------------------------------------------------
 * Хедер на странице автора
 * Делаем хедер светлым (как на обычных страницах), только для author-архива
 * ------------------------------------------------------------------ */
body.author #header,
body.author #header.default-header,
body.author #page.header-hidden .defualt,
body.author #page.header-hidden .transparent-fullwidth {
	background: #ffffff !important;
}

/* Фон подменю / области меню */
body.author #header .menu-list-items,
body.author #header.default-header .menu-list-items,
body.author #header.transparent-fullwidth .menu-list-items,
body.author #header .desktopTopFixed .menu-list-items {
	background: #ffffff !important;
}

/* Цвет ссылок меню и иконок в шапке на странице автора */
body.author #header #primary-menu > li.menu-item > a,
body.author #header #primary-menu > li > .menu-item-woocommerce-cart-wrapper > a,
body.author #header #primary-menu > li > .searchform .search > a,
body.author #header .header-right-part a,
body.author #header .header-right-part i {
	color: #262626 !important;
}

/* Логотип/текст логотипа (если есть текстовый) */
body.author #header .logo,
body.author #header .logo a {
	color: #262626 !important;
}

.bai-author-posts h2 {
	font-size: 24px;
	color: #363636;
	margin-bottom: 30px;
	font-weight: 700;
	text-transform: uppercase;
	border-bottom: 2px solid #db2d2e;
	padding-bottom: 10px;
}

.bai-posts-list {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.bai-post-item {
	display: flex;
	gap: 20px;
	padding-bottom: 25px;
	border-bottom: 1px solid #f0f0f0;
}

.bai-post-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.bai-post-thumbnail {
	flex-shrink: 0;
	width: 150px;
}

.bai-post-thumbnail img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	transition: transform 0.3s ease;
}

.bai-post-thumbnail a:hover img {
	transform: scale(1.05);
}

.bai-post-content {
	flex: 1;
}

.bai-post-title {
	font-size: 20px;
	line-height: 1.4;
	margin-bottom: 10px;
}

.bai-post-title a {
	color: #363636;
	text-decoration: none;
	font-weight: 600;
	text-transform: uppercase;
	transition: color 0.3s ease;
}

.bai-post-title a:hover {
	color: #db2d2e;
}

.bai-post-meta {
	margin-bottom: 10px;
	font-size: 13px;
	color: #999999;
}

.bai-post-date {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.bai-post-date i {
	color: #db2d2e;
}

.bai-post-excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: #626262;
}

/* Блок автора под статьей */
.bai-author-box {
	margin: 40px 0;
	padding: 30px;
	background: #ffffff;
	border: 1px solid #f3f3f3;
	border-left: 3px solid #db2d2e;
	-webkit-box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
	-moz-box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.bai-author-box-content {
	display: flex;
	gap: 30px;
	align-items: flex-start;
}

.bai-author-box-avatar-wrapper {
	flex-shrink: 0;
}

.bai-author-box-avatar {
	border-radius: 50%;
	width: 150px;
	height: 150px;
	object-fit: cover;
	border: 3px solid #db2d2e;
	padding: 3px;
	display: block;
}

.bai-author-box-info {
	flex: 1;
}

.bai-author-box-name {
	font-size: 24px;
	line-height: 1.3;
	color: #363636;
	margin-bottom: 10px;
	font-weight: 700;
	text-transform: uppercase;
}

.bai-author-box-name a {
	color: #363636;
	text-decoration: none;
	transition: color 0.3s ease;
}

.bai-author-box-name a:hover {
	color: #db2d2e;
}

.bai-author-box-position {
	font-size: 16px;
	color: #db2d2e;
	font-weight: 600;
	margin-bottom: 15px;
	font-style: italic;
}

.bai-author-box-bio {
	font-size: 15px;
	line-height: 1.8;
	color: #626262;
	margin-bottom: 20px;
}

.bai-author-box-link {
	display: inline-block;
	color: #db2d2e;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	transition: color 0.3s ease;
}

.bai-author-box-link:hover {
	color: #363636;
	text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 767px) {
	.bai-author-info {
		flex-direction: column;
		gap: 15px;
	}
	
	.bai-dates-info {
		flex-direction: column;
		gap: 10px;
	}
	
	.bai-author-header {
		flex-direction: column;
		text-align: center;
	}
	
	.bai-post-item {
		flex-direction: column;
	}
	
	.bai-post-thumbnail {
		width: 100%;
	}
	
	.bai-author-box-content {
		flex-direction: column;
		text-align: center;
	}
	
	.bai-author-box-avatar-wrapper {
		margin: 0 auto;
	}
}

