/**
 * Sarakhon Core — Author Box
 * Structure: avatar -> name -> position/org/role -> bio -> follow / view-all buttons
 */

.sarakhon-author-box {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	background: #f8f8f8;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 24px;
	margin: 32px 0;
}

.sarakhon-author-box__avatar {
	flex-shrink: 0;
}

.sarakhon-author-box__avatar img {
	display: block;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
}

.sarakhon-author-box__content {
	flex: 1 1 auto;
	min-width: 0;
}

.sarakhon-author-box__name {
	margin: 0 0 4px;
	font-size: 18px;
	line-height: 1.3;
	font-weight: 700;
}

.sarakhon-author-box__name a {
	color: #1a1a1a;
	text-decoration: none;
}

.sarakhon-author-box__name a:hover,
.sarakhon-author-box__name a:focus {
	color: #e0212b;
}

.sarakhon-author-box__meta {
	margin: 0 0 12px;
	font-size: 13px;
	color: #767676;
}

.sarakhon-author-box__bio {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.7;
	color: #444444;
}

.sarakhon-author-box__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.sarakhon-author-box__follow,
.sarakhon-author-box__all-articles {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	padding: 9px 18px;
	border-radius: 4px;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sarakhon-author-box__follow {
	background: #e0212b;
	color: #ffffff;
}

.sarakhon-author-box__follow:hover,
.sarakhon-author-box__follow:focus {
	background: #b8161f;
	color: #ffffff;
}

.sarakhon-author-box__all-articles {
	background: transparent;
	color: #1a1a1a;
	border: 1px solid #d5d5d5;
}

.sarakhon-author-box__all-articles:hover,
.sarakhon-author-box__all-articles:focus {
	border-color: #e0212b;
	color: #e0212b;
}

/* Tablet */
@media (max-width: 782px) {
	.sarakhon-author-box {
		padding: 20px;
	}
}

/* Mobile */
@media (max-width: 480px) {
	.sarakhon-author-box {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.sarakhon-author-box__avatar img {
		width: 84px;
		height: 84px;
	}

	.sarakhon-author-box__actions {
		width: 100%;
		flex-direction: column;
	}

	.sarakhon-author-box__follow,
	.sarakhon-author-box__all-articles {
		text-align: center;
	}
}
