/*
Theme Name: Tzaid
Theme URI: https://tzaid.sa/
Author: Tzaid
Description: Purpose-built RTL marketplace theme for Haraj Tzaid.
Version: 1.0.1
Text Domain: tzaid
Requires PHP: 8.1
*/

:root {
	--tzaid-primary: #0b40cc;
	--tzaid-text: #172033;
	--tzaid-surface: #ffffff;
	--tzaid-background: #f7f9fc;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--tzaid-background);
	color: var(--tzaid-text);
	direction: rtl;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

.tzaid-site-main {
	min-height: 55vh;
}

.tzaid-content {
	width: min(1180px, calc(100% - 32px));
	margin: 40px auto;
	padding: 32px;
	background: #fff;
	border: 1px solid #e6eaf0;
	border-radius: 22px;
}

.tzaid-component-error {
	width: min(900px, calc(100% - 32px));
	margin: 32px auto;
	padding: 20px;
	border: 1px solid #fecaca;
	border-radius: 14px;
	background: #fff1f2;
	color: #991b1b;
	text-align: center;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Public seller profile */
.tzaid-author-page {
	width: min(1200px, calc(100% - 32px));
	margin: 34px auto 54px;
	font-family: "Cairo", Arial, sans-serif;
}

.tzaid-author-hero {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr) minmax(310px, auto);
	align-items: center;
	gap: 28px;
	padding: 30px;
	background:
		radial-gradient(circle at 100% 0, rgba(49, 39, 131, 0.13), transparent 38%),
		#fff;
	border: 1px solid #e2e8f0;
	border-radius: 28px;
	box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
}

.tzaid-author-avatar-wrap {
	position: relative;
	width: 150px;
	height: 150px;
	padding: 5px;
	background: linear-gradient(145deg, #312783, #755ee8);
	border-radius: 50%;
	box-shadow: 0 14px 30px rgba(49, 39, 131, 0.22);
}

.tzaid-author-avatar {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #f1f5f9;
	border: 4px solid #fff;
	border-radius: inherit;
}

.tzaid-author-eyebrow {
	display: block;
	margin-bottom: 7px;
	color: #312783;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.02em;
}

.tzaid-author-intro h1,
.tzaid-author-ads-heading h2 {
	margin: 0;
	color: #172033;
	font-weight: 900;
}

.tzaid-author-intro h1 {
	font-size: clamp(26px, 3vw, 38px);
	line-height: 1.25;
}

.tzaid-author-description {
	max-width: 610px;
	margin: 10px 0 0;
	color: #475569;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.9;
}

.tzaid-author-description.is-muted {
	color: #64748b;
}

.tzaid-author-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(110px, 1fr));
	gap: 10px;
}

.tzaid-author-stat {
	min-width: 0;
	padding: 15px 12px;
	background: rgba(248, 250, 252, 0.9);
	border: 1px solid #e2e8f0;
	border-radius: 17px;
	text-align: center;
}

.tzaid-author-stat i {
	display: block;
	margin-bottom: 7px;
	color: #312783;
	font-size: 20px;
}

.tzaid-author-stat span,
.tzaid-author-stat strong {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tzaid-author-stat span {
	color: #64748b;
	font-size: 10px;
	font-weight: 800;
}

.tzaid-author-stat strong {
	margin-top: 4px;
	color: #172033;
	font-size: 15px;
	font-weight: 900;
}

.tzaid-author-ads.tzc2 {
	margin-top: 24px;
	padding: 26px;
	background: transparent;
	overflow: visible;
}

.tzaid-author-ads-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 18px;
}

.tzaid-author-ads-heading h2 {
	font-size: 24px;
}

.tzaid-author-count {
	flex: 0 0 auto;
	padding: 8px 16px;
	color: #312783;
	background: #f3f1ff;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 900;
}

.tzaid-author-pagination {
	margin-top: 28px;
}

.tzaid-author-pagination ul {
	display: flex;
	justify-content: center;
	gap: 7px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.tzaid-author-pagination a,
.tzaid-author-pagination span {
	display: grid;
	min-width: 40px;
	height: 40px;
	padding: 0 11px;
	place-items: center;
	color: #475569;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 11px;
	font-size: 13px;
	font-weight: 900;
	text-decoration: none;
}

.tzaid-author-pagination .current,
.tzaid-author-pagination a:hover {
	color: #fff;
	background: #312783;
	border-color: #312783;
}

@media (max-width: 960px) {
	.tzaid-author-hero {
		grid-template-columns: 130px minmax(0, 1fr);
	}

	.tzaid-author-avatar-wrap {
		width: 130px;
		height: 130px;
	}

	.tzaid-author-stats {
		grid-column: 1 / -1;
	}
}

@media (max-width: 620px) {
	.tzaid-author-page {
		width: min(100% - 20px, 1200px);
		margin-top: 18px;
	}

	.tzaid-author-hero {
		grid-template-columns: 1fr;
		gap: 18px;
		padding: 22px 16px;
		text-align: center;
	}

	.tzaid-author-avatar-wrap {
		margin: 0 auto;
	}

	.tzaid-author-description {
		margin-right: auto;
		margin-left: auto;
	}

	.tzaid-author-stats {
		grid-column: auto;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tzaid-author-stat {
		padding: 13px 7px;
	}

	.tzaid-author-ads.tzc2 {
		padding: 22px 2px;
	}

	.tzaid-author-ads-heading {
		align-items: flex-start;
		padding: 0 4px;
	}
}
