/* ===================================================================
   GTA VI Articles — استایل فرانت‌اند
   توجه: هیچ font-family در این فایل تعریف نشده — همه‌چیز از فونت خود سایت
   ارث‌بری می‌کند. هرجا وزن فونت لازم بوده فقط bold (700) استفاده شده.
   =================================================================== */

/* ---------- گرید کارت‌های مقالات (صفحه news/) ---------- */
/* موبایل: ۲ کارت در هر ردیف / دسکتاپ: ۳ کارت در هر ردیف */

.gtavi-art-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin: 24px 0;
	direction: rtl;
}

@media (min-width: 1025px) {
	.gtavi-art-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 24px;
	}
}

.gtavi-art-card {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	border-radius: 16px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(16px) saturate(180%);
	-webkit-backdrop-filter: blur(16px) saturate(180%);
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
	transition: transform 0.3s ease, box-shadow 0.4s ease, border-color 0.3s ease;
	color: #e8e8ec;
	text-decoration: none;
}

/* خط نور بالای کارت — فقط روی هاور نمایان می‌شود */
.gtavi-art-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: inherit;
	border-top: 1px solid rgba(255, 45, 120, 0.75);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.gtavi-art-card:hover::before {
	opacity: 1;
}

/* هاور نئونی روی کارت */
.gtavi-art-card:hover {
	transform: translateY(-4px);
	border-color: rgba(255, 45, 120, 0.6);
	box-shadow:
		0 18px 50px -12px rgba(255, 45, 120, 0.45),
		0 12px 28px rgba(0, 0, 0, 0.35);
}

.gtavi-art-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.gtavi-art-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0;
	transition: transform 0.35s ease;
}

.gtavi-art-card:hover .gtavi-art-card__img {
	transform: scale(1.05);
}

.gtavi-art-card__img--placeholder {
	background: linear-gradient(135deg, #1a1a22, #2a2a35);
}

.gtavi-art-card__badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(4px);
	color: #00e5ff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	padding: 4px 12px;
	border-radius: 999px;
}

.gtavi-art-card__body {
	padding: 16px 18px 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.gtavi-art-card__title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: #fff;
	line-height: 1.6;
	transition: text-shadow 0.3s ease;
}

.gtavi-art-card:hover .gtavi-art-card__title {
	text-shadow: 0 0 14px rgba(255, 45, 120, 0.4);
}

/* خط زیر عنوان که با هاور از راست به چپ کامل می‌شود */
.gtavi-art-card__rule {
	display: block;
	width: 48px;
	max-width: 40%;
	height: 2px;
	background: linear-gradient(90deg, #ff2d78, #8b2fe0);
	transform: scaleX(0.3);
	transform-origin: right center;
	transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.gtavi-art-card:hover .gtavi-art-card__rule {
	transform: scaleX(1);
}

.gtavi-art-card__excerpt {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.8;
	color: #c7c7d1;
	flex: 1;
}

.gtavi-art-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 6px;
	font-size: 12px;
	font-weight: 700;
	color: #9a9aa5;
}

.gtavi-art-card__views {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.gtavi-art-card__views svg {
	width: 14px;
	height: 14px;
}

.gtavi-art-no-posts {
	opacity: 0.7;
	font-weight: 700;
}

/* ---------- بخش «آخرین اخبار» (صفحه اصلی) ---------- */

.gtavi-art-section {
	direction: rtl;
	margin: 32px 0;
}

.gtavi-art-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 20px;
}

.gtavi-art-section__heading {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.gtavi-art-section__title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	color: #fff;
	line-height: 1.5;
}

.gtavi-art-section__subtitle {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: #9a9aa5;
}

.gtavi-art-section__view-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	font-size: 13px;
	font-weight: 700;
	color: #e8e8ec;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.06);
	padding: 9px 18px;
	border-radius: 999px;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.gtavi-art-section__view-all svg {
	width: 16px;
	height: 16px;
}

.gtavi-art-section__view-all:hover {
	color: #fff;
	border-color: rgba(0, 229, 255, 0.8);
	box-shadow:
		0 0 14px rgba(0, 229, 255, 0.45),
		0 0 38px rgba(255, 45, 120, 0.3),
		0 6px 24px rgba(0, 0, 0, 0.4);
}

/* موبایل و تبلت: اسکرول افقی کارتی — دسکتاپ: سه ستون ثابت بدون اسکرول */
.gtavi-art-grid--section {
	display: flex;
	grid-template-columns: none;
	margin: 0;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 6px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.gtavi-art-grid--section::-webkit-scrollbar {
	display: none;
}

.gtavi-art-grid--section > .gtavi-art-card {
	flex: 0 0 78%;
	max-width: 320px;
	scroll-snap-align: start;
}

@media (min-width: 640px) {
	.gtavi-art-grid--section > .gtavi-art-card {
		flex-basis: 46%;
	}
}

@media (min-width: 1025px) {
	.gtavi-art-grid--section {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 24px;
		overflow: visible;
		padding-bottom: 0;
	}

	.gtavi-art-grid--section > .gtavi-art-card {
		flex: none;
		max-width: none;
	}
}

/* ---------- صفحه تکی مقاله ---------- */

.gtavi-art-single {
	max-width: 960px;
	margin: 0 auto;
	padding: 24px 16px 64px;
	color: #e8e8ec;
	direction: rtl;
}
@media (min-width: 1025px) {
	.gtavi-art-single {
		margin: 130px auto;
	}
}

.gtavi-art-single__back-link {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	color: #00e5ff;
	text-decoration: none;
	margin-bottom: 18px;
}

.gtavi-art-single__back-link:hover {
	text-decoration: underline;
}

.gtavi-art-single__badge {
	display: inline-flex;
	align-items: center;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: #00e5ff;
	border: 1px solid rgba(0, 229, 255, 0.4);
	padding: 5px 14px;
	border-radius: 999px;
	margin-bottom: 14px;
}

.gtavi-art-single__title {
	margin: 0 0 14px;
	font-size: 30px;
	font-weight: 700;
	color: #fff;
	line-height: 1.5;
}

.gtavi-art-single__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 700;
	color: #9a9aa5;
	margin-bottom: 16px;
}

.gtavi-art-single__meta-sep {
	opacity: 0.6;
}

.gtavi-art-single__views {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.gtavi-art-single__views svg {
	width: 15px;
	height: 15px;
}

.gtavi-art-single__author {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 22px;
}

.gtavi-art-single__author img {
	border-radius: 50%;
	display: block;
}

.gtavi-art-single__author-name {
	font-size: 13px;
	font-weight: 700;
	color: #c7c7d1;
}

.gtavi-art-single__hero-media {
	border-radius: 14px;
	overflow: hidden;
	margin-bottom: 24px;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.gtavi-art-single__hero-img {
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
	margin: 0;
}

.gtavi-art-single__content {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(16px) saturate(180%);
	-webkit-backdrop-filter: blur(16px) saturate(180%);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 16px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
	padding: 24px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.9;
}

.gtavi-art-single__content p {
	margin: 0 0 1.2em;
}

.gtavi-art-single__content p:last-child {
	margin-bottom: 0;
}

.gtavi-art-single__content h2,
.gtavi-art-single__content h3 {
	color: #fff;
	font-weight: 700;
}

.gtavi-art-single__content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* ---------- اسلایدر بزرگ آخرین مقالات و اخبار (صفحه اصلی) ---------- */

.gtavi-art-slider {
	position: relative;
	direction: rtl;
	border-radius: 20px;
	overflow: hidden;
	margin: 24px 0;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.gtavi-art-slider__viewport {
	overflow: hidden;
	width: 100%;
}

.gtavi-art-slider__track {
	display: flex;
	width: 100%;
	transition: transform 0.5s ease;
}

.gtavi-art-slider__slide {
	position: relative;
	flex: 0 0 100%;
	display: block;
	text-decoration: none;
	color: #fff;
	aspect-ratio: 16 / 7;
	min-height: 260px;
}

.gtavi-art-slider__media {
	position: absolute;
	inset: 0;
	display: block;
	overflow: hidden;
}

.gtavi-art-slider__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0;
}

.gtavi-art-slider__img--placeholder {
	background: linear-gradient(135deg, #1a1a22, #2a2a35);
}

.gtavi-art-slider__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.05) 100%);
}

.gtavi-art-slider__content {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px 20px;
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(14px) saturate(180%);
	-webkit-backdrop-filter: blur(14px) saturate(180%);
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.gtavi-art-slider__badge {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: #00e5ff;
	border: 1px solid rgba(0, 229, 255, 0.5);
	padding: 5px 14px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.3);
}

.gtavi-art-slider__title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	line-height: 1.5;
}

.gtavi-art-slider__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	color: #c7c7d1;
}

.gtavi-art-slider__meta-sep {
	opacity: 0.6;
}

.gtavi-art-slider__views {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.gtavi-art-slider__views svg {
	width: 15px;
	height: 15px;
}

.gtavi-art-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(8px);
	color: #fff;
	cursor: pointer;
	padding: 0;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
	z-index: 2;
}

.gtavi-art-slider__arrow svg {
	width: 22px;
	height: 22px;
}

.gtavi-art-slider__arrow:hover {
	border-color: #ff2d78;
	background: rgba(0, 0, 0, 0.65);
	box-shadow: 0 0 10px rgba(255, 45, 120, 0.55), 0 0 20px rgba(139, 47, 224, 0.4);
}

.gtavi-art-slider__arrow--prev {
	right: 16px;
}

.gtavi-art-slider__arrow--next {
	left: 16px;
}

.gtavi-art-slider__dots {
	position: absolute;
	top: 16px;
	left: 20px;
	display: flex;
	gap: 6px;
	z-index: 2;
}

.gtavi-art-slider__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.5);
	background: rgba(255, 255, 255, 0.25);
	padding: 0;
	cursor: pointer;
	transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.gtavi-art-slider__dot:hover {
	background: rgba(255, 255, 255, 0.6);
}

.gtavi-art-slider__dot.is-active {
	background: #ff2d78;
	border-color: #ff2d78;
	box-shadow: 0 0 8px rgba(255, 45, 120, 0.7);
	transform: scale(1.15);
}

@media (min-width: 1025px) {
	.gtavi-art-slider__slide {
		aspect-ratio: 16 / 5.2;
		min-height: 380px;
	}

	.gtavi-art-slider__content {
		right: 0;
		left: auto;
		bottom: 0;
		width: min(560px, 55%);
		border-radius: 0 20px 0 0;
		border-top: none;
		border-right: none;
		border-inline-start: 1px solid rgba(255, 255, 255, 0.18);
		padding: 32px 36px;
	}

	.gtavi-art-slider__title {
		font-size: 30px;
	}

	.gtavi-art-slider__arrow {
		width: 52px;
		height: 52px;
	}
}
