/* آرین دیزل – ویجت دفترچه‌ها | همه رنگ‌ها و اندازه‌ها از تب «استایل» المنتور قابل تغییر است */

.aryan-docs {
	--ad-page-bg: #F4F5F8;
	--ad-card-bg: #14171F;
	direction: rtl;
	color: #111827;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	background-color: var(--ad-page-bg);
	padding: 24px 24px 100px;
	box-sizing: border-box;
}

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

.aryan-docs__container {
	max-width: 1240px;
	margin: 0 auto;
	width: 100%;
}

/* ۱. هدر */
.aryan-docs__header {
	display: flex;
	align-items: center;
	gap: 18px;
	padding-bottom: 24px;
	border-bottom: 1px solid #E5E7EB;
	margin-bottom: 36px;
}

.aryan-docs__header-icon {
	flex-shrink: 0;
	display: inline-flex;
	color: #111827;
	font-size: 52px;
	line-height: 1;
}

.aryan-docs__header-icon svg {
	width: 1em;
	height: 1em;
}

.aryan-docs__header-icon svg:not([fill]) {
	stroke: currentColor;
}

.aryan-docs__title {
	font-size: 1.45rem;
	font-weight: 800;
	color: #111827;
	margin: 0 0 4px;
	line-height: 1.4;
}

.aryan-docs__subtitle {
	font-size: 0.85rem;
	color: #4B5563;
	background: #E5E7EB;
	display: inline-block;
	padding: 3px 12px;
	border-radius: 4px;
	font-weight: 500;
	margin: 0;
}

/* ۲. جستجو و تب‌ها */
.aryan-docs__controls {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	margin-bottom: 48px;
	width: 100%;
}

.aryan-docs__search {
	width: 100%;
	max-width: 500px;
	height: 52px;
	background: #FFFFFF;
	border-radius: 50px;
	display: flex;
	align-items: center;
	padding: 0 18px;
	border: 1px solid #E5E7EB;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
	transition: border-color .3s ease, box-shadow .3s ease;
}

.aryan-docs__search:focus-within {
	border-color: #111827;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.aryan-docs__search svg {
	width: 18px;
	height: 18px;
	stroke: #9CA3AF;
	fill: none;
	stroke-width: 2;
	margin-left: 10px;
	flex-shrink: 0;
}

.aryan-docs .aryan-docs__search input,
.aryan-docs .aryan-docs__search input[type="search"],
.aryan-docs .aryan-docs__search input:focus,
.aryan-docs .aryan-docs__search input[type="search"]:focus {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 100%;
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	border-radius: 0;
	font-family: inherit;
	font-size: 0.875rem;
	color: #111827;
	background: transparent;
	padding: 0;
	margin: 0;
	min-height: 0;
}

.aryan-docs__tabs {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
	width: 100%;
}

.aryan-docs .aryan-docs__tab {
	border: 1px solid #E5E7EB;
	outline: none;
	background: #FFFFFF;
	color: #4B5563;
	padding: 8px 22px;
	border-radius: 40px;
	font-family: inherit;
	font-size: 0.825rem;
	font-weight: 700;
	line-height: 1.6;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
	transition: all .25s ease;
	white-space: nowrap;
	text-transform: none;
	letter-spacing: normal;
}

.aryan-docs .aryan-docs__tab:hover,
.aryan-docs .aryan-docs__tab:focus {
	color: #111827;
	border-color: #D1D5DB;
	background: #FFFFFF;
}

.aryan-docs .aryan-docs__tab.is-active {
	background: #111827;
	color: #FFFFFF;
	border-color: #111827;
	box-shadow: 0 6px 16px rgba(17, 24, 39, 0.15);
}

/* ۳. گرید کارت‌ها */
.aryan-docs__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	width: 100%;
}

.aryan-docs__card {
	position: relative;
	height: 380px;
	background-color: var(--ad-card-bg);
	border-radius: 28px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
	transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .35s ease;
}

.aryan-docs__card.is-hidden {
	display: none;
}

.aryan-docs-lift-yes .aryan-docs__card:hover {
	transform: translateY(-6px);
}

.aryan-docs__card:hover {
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.14);
}

.aryan-docs .aryan-docs__img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 65%;
	max-width: none;
	object-fit: cover;
	z-index: 1;
	border-radius: 0;
	transition: transform .6s ease;
}

.aryan-docs__card:hover .aryan-docs__img {
	transform: scale(1.05);
}

.aryan-docs__fade {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(180deg,
		transparent 0%,
		transparent 35%,
		color-mix(in srgb, var(--ad-card-bg) 85%, transparent) 55%,
		var(--ad-card-bg) 70%,
		var(--ad-card-bg) 100%);
}

.aryan-docs__body {
	position: relative;
	z-index: 5;
	padding: 22px 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.aryan-docs__card-title {
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.35;
	color: #FFFFFF;
	margin: 0;
}

.aryan-docs .aryan-docs__btn {
	width: 100%;
	height: 48px;
	background-color: var(--ad-page-bg);
	color: #111827;
	border-radius: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.875rem;
	font-weight: 800;
	gap: 8px;
	text-decoration: none;
	border: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition: transform .25s ease, background-color .25s ease, color .25s ease;
}

.aryan-docs__card:hover .aryan-docs__btn {
	background-color: #FFFFFF;
	color: #000000;
	transform: translateY(-2px);
}

.aryan-docs__btn svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	stroke-width: 2.2;
	fill: none;
}

/* کارت کلیک‌پذیر: کل کارت لینک دکمه را باز می‌کند */
.aryan-docs__btn::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 4;
}

.aryan-docs__empty {
	display: none;
	text-align: center;
	color: #6B7280;
	padding: 40px 0;
	font-size: 0.9rem;
}

.aryan-docs__empty.is-visible {
	display: block;
}

/* تبلت */
@media (max-width: 1024px) {
	.aryan-docs__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

/* موبایل */
@media (max-width: 767px) {
	.aryan-docs {
		padding: 16px 16px 60px;
	}

	.aryan-docs__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		margin-bottom: 24px;
		padding-bottom: 18px;
	}

	.aryan-docs__header-icon {
		font-size: 42px;
	}

	.aryan-docs__title {
		font-size: 1.25rem;
	}

	.aryan-docs__subtitle {
		font-size: 0.775rem;
		line-height: 1.8;
	}

	.aryan-docs__controls {
		gap: 14px;
		margin-bottom: 32px;
	}

	.aryan-docs__search {
		height: 46px;
		padding: 0 14px;
		max-width: 100%;
	}

	.aryan-docs .aryan-docs__search input {
		font-size: 0.8rem;
	}

	.aryan-docs__tabs {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		padding-bottom: 6px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.aryan-docs__tabs::-webkit-scrollbar {
		display: none;
	}

	.aryan-docs .aryan-docs__tab {
		padding: 7px 18px;
		font-size: 0.775rem;
		flex-shrink: 0;
	}

	.aryan-docs__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.aryan-docs__card {
		height: 320px;
		border-radius: 22px;
	}

	.aryan-docs__body {
		padding: 16px;
		gap: 12px;
	}

	.aryan-docs__card-title {
		font-size: 1.05rem;
	}

	.aryan-docs .aryan-docs__btn {
		height: 44px;
		font-size: 0.825rem;
	}
}

.aryan-docs .aryan-docs__search input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

/* حذف کامل حاشیه/فوکوس قالب روی فیلد جستجو (در همه حالت‌ها) */
body .aryan-docs .aryan-docs__search input,
body .aryan-docs .aryan-docs__search input:hover,
body .aryan-docs .aryan-docs__search input:focus,
body .aryan-docs .aryan-docs__search input:focus-visible,
body .aryan-docs .aryan-docs__search input:active,
body .aryan-docs .aryan-docs__search input[type="search"],
body .aryan-docs .aryan-docs__search input[type="search"]:focus,
body .aryan-docs .aryan-docs__search input[type="search"]:focus-visible {
	border: 0 !important;
	border-width: 0 !important;
	outline: 0 !important;
	outline-offset: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	border-radius: 0 !important;
}
