/* ============ بطاقة الكاتب - الواجهة الأمامية ============ */
.atb-author-box {
	margin: 40px 0;
	padding: 24px;
	background: var(--atb-bg, #f8f9fa);
	border: 1px solid var(--atb-border, #e2e4e7);
	border-radius: 12px;
	direction: rtl;
	text-align: right;
	box-sizing: border-box;
	overflow: hidden;
}

.atb-author-box *,
.atb-author-box *::before,
.atb-author-box *::after {
	box-sizing: border-box;
}

.atb-author-box .atb-title {
	margin: 0 0 16px;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: var(--atb-title, #1d2327);
	border-bottom: 1px solid var(--atb-border, #e2e4e7);
	padding-bottom: 10px;
}

.atb-body {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	flex-wrap: nowrap;
}

/* حاوية الصورة: حجم ثابت لا يتأثر بحجم الصورة الأصلية ولا يسمح لها بالتمدد */
.atb-author-box .atb-avatar {
	flex: 0 0 var(--atb-avatar-size, 100px);
	width: var(--atb-avatar-size, 100px);
	height: var(--atb-avatar-size, 100px);
	line-height: 0;
}

.atb-author-box .atb-avatar a {
	display: block;
	width: 100%;
	height: 100%;
}

/* تثبيت حجم الصورة بالقوة بغض النظر عن حجمها الأصلي أو تنسيقات القالب */
.atb-author-box .atb-avatar img,
.atb-author-box .atb-avatar-img {
	width: var(--atb-avatar-size, 100px) !important;
	height: var(--atb-avatar-size, 100px) !important;
	max-width: var(--atb-avatar-size, 100px) !important;
	min-width: 0 !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	display: block !important;
}

.atb-author-box .atb-content {
	flex: 1 1 0%;
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
}

.atb-name {
	margin: 0 0 8px;
	font-size: 18px;
	overflow-wrap: break-word;
	word-break: break-word;
}

.atb-name a {
	color: var(--atb-title, #1d2327);
	text-decoration: none;
}

.atb-name a:hover {
	color: var(--atb-link, #2271b1);
}

.atb-bio {
	margin: 0 0 12px;
	line-height: 1.7;
	color: var(--atb-text, #3c434a);
	font-size: 14.5px;
	overflow-wrap: break-word;
	word-break: break-word;
}

.atb-social {
	display: flex;
	gap: 10px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.atb-social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--atb-border, #e2e4e7);
	color: var(--atb-link, #2271b1);
	text-decoration: none;
	transition: all .2s ease;
}

.atb-social-icon:hover {
	background: var(--atb-link, #2271b1);
	color: #fff;
	transform: translateY(-2px);
}

.atb-social-icon .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.atb-posts-link {
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	color: var(--atb-link, #2271b1);
	text-decoration: none;
	overflow-wrap: break-word;
	word-break: break-word;
}

.atb-posts-link:hover {
	text-decoration: underline;
}

@media (max-width: 480px) {
	.atb-body {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.atb-social {
		justify-content: center;
	}
}

/* ============ صفحة الإعدادات - لوحة التحكم ============ */
.atb-settings-wrap .atb-settings-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 20px;
}

.atb-settings-wrap .atb-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 20px;
	margin-top: 20px;
}

.atb-settings-wrap .atb-card h2 {
	margin-top: 0;
	font-size: 16px;
	border-bottom: 1px solid #f0f0f1;
	padding-bottom: 10px;
}

@media (max-width: 900px) {
	.atb-settings-wrap .atb-settings-grid {
		grid-template-columns: 1fr;
	}
}
