/*
 * استایل افزونه نویسندگان شانا — نسخه بازطراحی‌شده
 * رنگ اصلی برند: #b10046  |  رنگ‌های مکمل: #a60845 ، #aa012f
 */

:root {
	--shana-brand: #b10046;
	--shana-brand-alt1: #a60845;
	--shana-brand-alt2: #aa012f;
	--shana-brand-soft: #fdeef2;
	--shana-text: #201f24;
	--shana-muted: #74747d;
	--shana-border: #ececef;
	--shana-bg: #ffffff;
	--shana-shadow: 0 2px 14px rgba(20, 10, 20, 0.06);
	--shana-shadow-hover: 0 10px 28px rgba(177, 0, 70, 0.14);
}

.shana-author-box,
.shana-author-page,
.shana-recent-authors {
	direction: rtl;
	text-align: right;
	font-family: inherit;
	color: var(--shana-text);
	box-sizing: border-box;
}

.shana-author-box *,
.shana-author-page *,
.shana-recent-authors * {
	box-sizing: border-box;
}

/* =========================================================
   Author Box (پایان مطلب)
   ========================================================= */
.shana-author-box {
	position: relative;
	background: var(--shana-bg);
	border: 1px solid var(--shana-border);
	border-radius: 14px;
	padding: 22px 24px 24px;
	margin: 40px 0 24px;
	box-shadow: var(--shana-shadow);
	overflow: hidden;
}

.shana-author-box::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: linear-gradient(180deg, var(--shana-brand), var(--shana-brand-alt2));
}

.shana-author-box__kicker {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: var(--shana-brand);
	text-transform: uppercase;
	margin-bottom: 14px;
}

.shana-author-box__kicker-line {
	width: 18px;
	height: 2px;
	background: var(--shana-brand);
	border-radius: 2px;
}

.shana-author-box__main {
	display: flex;
	gap: 18px;
	align-items: flex-start;
}

.shana-author-box__photo-link {
	flex-shrink: 0;
	display: block;
	border-radius: 50%;
	transition: transform 0.2s ease;
}

.shana-author-box__photo-link:hover {
	transform: scale(1.04);
}

.shana-author-box__avatar,
.shana-author-box__avatar--placeholder {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	background: linear-gradient(135deg, var(--shana-brand), var(--shana-brand-alt2));
	box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--shana-brand-soft);
}

.shana-author-box__body {
	flex: 1;
	min-width: 0;
}

.shana-author-box__name {
	display: block;
	font-size: 17px;
	font-weight: 800;
	color: var(--shana-text);
	text-decoration: none;
	line-height: 1.4;
}

.shana-author-box__name:hover {
	color: var(--shana-brand);
}

.shana-author-box__job {
	display: inline-block;
	margin-top: 6px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--shana-brand-alt1);
	background: var(--shana-brand-soft);
	border-radius: 20px;
	padding: 3px 12px;
	line-height: 1.6;
}

.shana-author-box__bio {
	margin: 12px 0 8px;
	font-size: 13.5px;
	line-height: 1.95;
	color: var(--shana-muted);
	text-align: justify;
	text-align-last: right;
}

.shana-author-box__more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--shana-brand-alt1);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.shana-author-box__more span {
	transition: transform 0.15s ease;
}

.shana-author-box__more:hover {
	color: var(--shana-brand);
}

.shana-author-box__more:hover span {
	transform: translateX(-3px);
}

/* =========================================================
   Author Profile Page
   ========================================================= */
.shana-author-page {
	max-width: 980px;
	margin: 0 auto;
	padding: 0 16px 56px;
}

.shana-author-page__header {
	position: relative;
	display: flex;
	gap: 28px;
	align-items: center;
	padding: 36px 32px;
	margin: 24px 0 32px;
	border-radius: 16px;
	background: var(--shana-bg);
	border: 1px solid var(--shana-border);
	box-shadow: var(--shana-shadow);
	overflow: hidden;
}

.shana-author-page__header::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	top: 0;
	right: 0;
	left: 0;
	height: 5px;
	background: linear-gradient(90deg, var(--shana-brand), var(--shana-brand-alt1), var(--shana-brand-alt2));
}

.shana-author-page__avatar,
.shana-author-page__avatar--placeholder {
	width: 128px;
	height: 128px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: linear-gradient(135deg, var(--shana-brand), var(--shana-brand-alt2));
	border: 4px solid #fff;
	box-shadow: 0 0 0 3px var(--shana-brand-soft), var(--shana-shadow);
}

.shana-author-page__info {
	position: relative;
	z-index: 1;
}

.shana-author-page__name {
	font-size: 27px;
	font-weight: 800;
	margin: 0 0 8px;
	color: var(--shana-text);
}

.shana-author-page__job {
	display: inline-block;
	font-size: 12.5px;
	font-weight: 700;
	color: #fff;
	background: var(--shana-brand);
	border-radius: 20px;
	padding: 4px 14px;
	margin: 0 0 14px;
}

.shana-author-page__bio {
	font-size: 14.5px;
	line-height: 2;
	color: var(--shana-muted);
	max-width: 660px;
	text-align: justify;
	text-align-last: right;
}

.shana-author-page__links {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 0;
	margin: 16px 0 10px;
}

.shana-author-page__links a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--shana-brand-alt1);
	text-decoration: none;
	background: var(--shana-brand-soft);
	border: 1px solid transparent;
	border-radius: 20px;
	padding: 5px 14px;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.shana-author-page__links a:hover {
	background: var(--shana-brand);
	color: #fff;
	transform: translateY(-1px);
}

.shana-author-page__count {
	font-size: 13px;
	color: var(--shana-muted);
	margin-top: 4px;
}

.shana-author-page__count strong {
	color: var(--shana-brand);
	font-size: 15px;
}

.shana-author-page__submeta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: -14px 0 22px;
	padding: 10px 16px;
	font-size: 12px;
	color: var(--shana-muted);
	background: #fafafb;
	border: 1px solid var(--shana-border);
	border-radius: 10px;
}

.shana-author-page__submeta strong {
	color: var(--shana-text);
	font-weight: 700;
}

.shana-author-page__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	padding: 14px 18px;
	margin-bottom: 28px;
	background: #fafafb;
	border: 1px solid var(--shana-border);
	border-radius: 12px;
}

.shana-author-page__share {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.shana-author-page__share-label,
.shana-author-page__shortlink-label {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--shana-muted);
}

.shana-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--shana-border);
	color: var(--shana-muted);
	transition: all 0.15s ease;
}

.shana-share-btn:hover {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.shana-share-btn--telegram:hover {
	background: #229ed9;
	border-color: #229ed9;
}

.shana-share-btn--whatsapp:hover {
	background: #25d366;
	border-color: #25d366;
}

.shana-share-btn--x:hover {
	background: #000;
	border-color: #000;
}

.shana-share-btn--facebook:hover {
	background: #1877f2;
	border-color: #1877f2;
}

.shana-share-btn--linkedin:hover {
	background: #0a66c2;
	border-color: #0a66c2;
}

.shana-share-btn--email:hover {
	background: var(--shana-brand);
	border-color: var(--shana-brand);
}

.shana-author-page__shortlink {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.shana-author-page__shortlink input {
	direction: ltr;
	font-size: 12px;
	color: var(--shana-text);
	border: 1px solid var(--shana-border);
	border-radius: 8px;
	padding: 6px 10px;
	background: #fff;
	width: 190px;
	max-width: 45vw;
}

.shana-copy-btn {
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: var(--shana-brand);
	border: none;
	border-radius: 8px;
	padding: 6px 14px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.shana-copy-btn:hover {
	background: var(--shana-brand-alt1);
}

.shana-copy-btn.is-copied {
	background: #0a7a2f;
}

.shana-author-page__layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 26px;
	align-items: start;
	margin-bottom: 8px;
}

.shana-author-page__sidebar {
	position: sticky;
	top: 20px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: #fafafb;
	border: 1px solid var(--shana-border);
	border-radius: 14px;
	padding: 18px 16px;
	scrollbar-width: thin;
}

.shana-author-page__sidebar-title {
	font-size: 14px;
	font-weight: 800;
	margin: 0 0 14px;
	color: var(--shana-text);
	position: relative;
	padding-inline-start: 10px;
}

.shana-author-page__sidebar-title::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	top: 2px;
	bottom: 2px;
	width: 3px;
	border-radius: 3px;
	background: var(--shana-brand);
}

.shana-other-authors {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.shana-other-authors__link {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	padding: 7px 6px;
	border-radius: 8px;
	transition: background 0.15s ease;
}

.shana-other-authors__link:hover {
	background: var(--shana-brand-soft);
}

.shana-other-authors__avatar,
.shana-other-authors__avatar--placeholder {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: linear-gradient(135deg, var(--shana-brand), var(--shana-brand-alt2));
}

.shana-other-authors__name {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--shana-text);
	line-height: 1.4;
}

.shana-other-authors__link:hover .shana-other-authors__name {
	color: var(--shana-brand-alt1);
}

.shana-author-page__rating-card {
	background: linear-gradient(180deg, #fff, #fefbfc);
	border: 1px solid var(--shana-border);
	border-radius: 18px;
	box-shadow: var(--shana-shadow);
	padding: 28px 30px 30px;
	margin-bottom: 28px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.shana-author-page__rating-card::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	top: 0;
	right: 0;
	left: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--shana-brand), var(--shana-brand-alt1), var(--shana-brand-alt2));
}

.shana-author-page__rating-title {
	font-size: 17px;
	font-weight: 800;
	margin: 0 0 22px;
}

.shana-rating-score {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	max-width: 340px;
	margin: 0 auto 26px;
}

.shana-rating-score__number {
	font-size: 42px;
	font-weight: 800;
	line-height: 1;
	background: linear-gradient(135deg, var(--shana-brand), var(--shana-brand-alt2));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--shana-brand);
	flex-shrink: 0;
}

.shana-rating-score__details {
	flex: 1;
	text-align: start;
}

.shana-rating-score__bar {
	height: 8px;
	border-radius: 8px;
	background: #eee;
	overflow: hidden;
	margin-bottom: 6px;
}

.shana-rating-score__bar-fill {
	height: 100%;
	border-radius: 8px;
	background: linear-gradient(90deg, var(--shana-brand-alt1), var(--shana-brand));
	transition: width 0.4s ease;
}

.shana-rating-score__meta {
	font-size: 12px;
	color: var(--shana-muted);
}

.shana-rating__stars {
	display: inline-flex;
	gap: 8px;
	font-size: 40px;
	line-height: 1;
}

.shana-rating__star {
	background: none;
	border: none;
	cursor: pointer;
	color: #e4e4e9;
	padding: 2px 4px;
	border-radius: 8px;
	transition: color 0.12s ease, transform 0.12s ease, background 0.12s ease;
}

.shana-rating__star:hover,
.shana-rating__star.is-hover,
.shana-rating__star.is-active {
	color: var(--shana-brand);
	transform: scale(1.15) translateY(-2px);
	background: var(--shana-brand-soft);
	filter: drop-shadow(0 2px 4px rgba(177, 0, 70, 0.25));
}

.shana-rating__star:disabled {
	cursor: default;
}

.shana-rating__star:focus-visible {
	outline: 2px solid var(--shana-brand);
	outline-offset: 2px;
}

.shana-rating__hint {
	margin: 12px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--shana-muted);
	min-height: 18px;
}

.shana-rating__message {
	margin: 12px 0 0;
	font-size: 13.5px;
	font-weight: 700;
	color: #0a7a2f;
	background: #eafaf0;
	display: inline-block;
	padding: 6px 16px;
	border-radius: 20px;
}

.shana-author-page__comments-section {
	margin-top: 8px;
	margin-bottom: 40px;
}

.shana-author-page__comments-card {
	background: var(--shana-bg);
	border: 1px solid var(--shana-border);
	border-radius: 16px;
	box-shadow: var(--shana-shadow);
	padding: 26px 28px 30px;
}

.shana-author-page__comments-title {
	font-size: 18px;
	font-weight: 800;
	margin: 0 0 20px;
	padding-bottom: 14px;
	border-bottom: 2px solid var(--shana-brand-soft);
	position: relative;
}

.shana-author-page__comments-title::before {
	content: '';
	position: absolute;
	bottom: -2px;
	right: 0;
	width: 60px;
	height: 2px;
	background: var(--shana-brand);
}

.shana-author-page__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	flex-wrap: wrap;
	gap: 10px;
}

.shana-author-page__list-title {
	font-size: 19px;
	font-weight: 800;
	margin: 0;
	position: relative;
	padding-inline-start: 12px;
}

.shana-author-page__list-title::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	top: 3px;
	bottom: 3px;
	width: 4px;
	border-radius: 3px;
	background: var(--shana-brand);
}

.shana-author-page__sort select {
	border-radius: 8px;
	border: 1px solid var(--shana-border);
	padding: 6px 12px;
	font-size: 13px;
	background: #fff;
}

.shana-author-page__posts {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 22px;
}

.shana-author-page__post {
	border: 1px solid var(--shana-border);
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	box-shadow: var(--shana-shadow);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.shana-author-page__post:hover {
	box-shadow: var(--shana-shadow-hover);
	transform: translateY(-3px);
}

.shana-author-page__post-thumb {
	display: block;
	overflow: hidden;
}

.shana-author-page__post-thumb img {
	width: 100%;
	height: 170px;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.shana-author-page__post:hover .shana-author-page__post-thumb img {
	transform: scale(1.06);
}

.shana-author-page__post-body {
	padding: 14px 16px 18px;
}

.shana-author-page__post-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.6;
}

.shana-author-page__post-title a {
	color: var(--shana-text);
	text-decoration: none;
}

.shana-author-page__post-title a:hover {
	color: var(--shana-brand);
}

.shana-author-page__post-excerpt {
	font-size: 12.5px;
	color: var(--shana-muted);
	line-height: 1.85;
	margin: 0 0 12px;
}

.shana-author-page__post-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: nowrap;
	overflow-x: auto;
	white-space: nowrap;
	font-size: 11px;
	color: var(--shana-muted);
	border-top: 1px dashed var(--shana-border);
	padding-top: 10px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.shana-author-page__post-meta::-webkit-scrollbar {
	display: none;
}

.shana-author-page__post-date--gregorian {
	color: #9d9da5;
	direction: ltr;
	unicode-bidi: isolate;
}

.shana-author-page__post-readtime {
	color: var(--shana-brand-alt1);
	font-weight: 600;
	flex-shrink: 0;
}

.shana-author-page__post-meta span:not(:last-child)::after {
	content: '·';
	margin-inline-start: 8px;
	color: #c9c9cf;
}

.shana-author-page__pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 32px;
	flex-wrap: wrap;
}

.shana-author-page__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid var(--shana-border);
	border-radius: 8px;
	text-decoration: none;
	color: var(--shana-text);
	font-size: 13px;
	transition: background 0.15s ease, color 0.15s ease;
}

.shana-author-page__pagination .page-numbers:hover {
	background: var(--shana-brand-soft);
	color: var(--shana-brand);
}

.shana-author-page__pagination .page-numbers.current {
	background: var(--shana-brand);
	border-color: var(--shana-brand);
	color: #fff;
}

.shana-author-page__empty {
	color: var(--shana-muted);
	font-size: 14px;
	text-align: center;
	padding: 40px 0;
}

/* =========================================================
   Homepage Recent Authors Block (خودکار، بالای فهرست مطالب صفحه اصلی)
   ========================================================= */
.shana-homepage-authors {
	direction: rtl;
	margin: 0 0 32px;
}

.shana-homepage-authors__inner {
	background: var(--shana-bg);
	border: 1px solid var(--shana-border);
	border-radius: 14px;
	padding: 20px 22px 22px;
	box-shadow: var(--shana-shadow);
}

.shana-homepage-authors__title {
	font-size: 16px;
	font-weight: 800;
	color: var(--shana-text);
	margin: 0 0 16px;
	position: relative;
	padding-inline-start: 12px;
}

.shana-homepage-authors__title::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	top: 3px;
	bottom: 3px;
	width: 4px;
	border-radius: 3px;
	background: var(--shana-brand);
}

/* =========================================================
   Recent Authors Widget
   ========================================================= */
.shana-recent-authors {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 14px;
}

.shana-recent-authors__item {
	text-align: center;
}

.shana-recent-authors__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	text-decoration: none;
	text-align: center;
}

.shana-recent-authors__avatar,
.shana-recent-authors__avatar--placeholder {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	background: linear-gradient(135deg, var(--shana-brand), var(--shana-brand-alt2));
	border: 2px solid #fff;
	box-shadow: 0 0 0 2px var(--shana-brand-soft);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.shana-recent-authors__link:hover .shana-recent-authors__avatar,
.shana-recent-authors__link:hover .shana-recent-authors__avatar--placeholder {
	box-shadow: 0 0 0 2px var(--shana-brand);
	transform: translateY(-2px);
}

.shana-recent-authors__name {
	font-size: 11.5px;
	font-weight: 600;
	color: var(--shana-text);
	line-height: 1.4;
}

.shana-recent-authors__link:hover .shana-recent-authors__name {
	color: var(--shana-brand);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 782px) {
	.shana-author-box__main {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.shana-author-box__job {
		margin-inline: auto;
	}

	.shana-author-page__header {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 32px 20px;
	}

	.shana-author-page__links {
		justify-content: center;
	}

	.shana-author-page__toolbar {
		justify-content: center;
		text-align: center;
	}

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

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

	.shana-author-page__sidebar {
		position: static;
		order: 2;
	}

	.shana-other-authors {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
	}

	.shana-other-authors__link {
		flex-direction: column;
		text-align: center;
		width: 72px;
	}

	.shana-author-page__actions {
		justify-content: center;
		text-align: center;
	}

	.shana-recent-authors {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 480px) {
	.shana-recent-authors {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* =========================================================
   Admin (link repeater)
   ========================================================= */
.shana-link-row select {
	max-width: 140px;
}
