/**
 * Artists Section Styles
 * طراحی خلاقانه با انیمیشن تغییر رنگ بکگراند
 */

/* Section Base */
.artists-section {
	position: relative;
	width: 100%;
	max-width: 100vw;
	min-height: 100vh;
	overflow: hidden;
	isolation: isolate;
	background: #000000;
	padding: 0;
}

/* Background */
.artists-section__background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
}

.artists-section__grid-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: 
		linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 50px 50px;
	opacity: 0;
	animation: gridFadeIn 1.5s ease-out forwards;
}

@keyframes gridFadeIn {
	to {
		opacity: 1;
	}
}

/* Container */
.artists-section__container {
	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 100vh;
	z-index: 10;
}

/* متن مرکزی با انیمیشن تایپینگ - دقیقاً وسط سکشن */
.artists-section__center-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 15;
	opacity: 0;
	pointer-events: none;
	width: auto;
	max-width: 90%;
	margin: 0;
	padding: 0;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2rem;
}

/* Badge */
.artists-section__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-family: 'Peyda', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: rgba(255, 215, 0, 0.9);
	padding: 0.75rem 1.5rem;
	border: 1px solid rgba(255, 215, 0, 0.3);
	border-radius: 50px;
	width: fit-content;
	background: rgba(255, 215, 0, 0.05);
	backdrop-filter: blur(10px);
	transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
	position: relative;
	overflow: hidden;
	opacity: 0;
	z-index: 16;
	margin: 0 auto;
}

.artists-section[data-badge-visible="true"] .artists-section__badge {
	opacity: 1;
}

.artists-section__badge::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
	transition: left 0.6s ease;
}

.artists-section__badge:hover::before {
	left: 100%;
}

.artists-section__badge:hover {
	border-color: rgba(255, 215, 0, 0.6);
	background: rgba(255, 215, 0, 0.1);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

.artists-section__badge-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 215, 0, 0.9);
	box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
	animation: artistsBadgeDotPulse 2s ease-in-out infinite;
}

@keyframes artistsBadgeDotPulse {
	0%, 100% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(1.3);
		opacity: 0.7;
	}
}

.artists-section__badge-text {
	position: relative;
	z-index: 1;
}

.artists-section[data-typing-complete="true"] .artists-section__center-text {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.artists-section__typing-text {
	font-family: 'Peyda', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: clamp(2.5rem, 8vw, 6rem);
	font-weight: 800;
	line-height: 1.2;
	color: #ffffff;
	margin: 0;
	position: relative;
	white-space: nowrap;
	direction: rtl;
	text-align: center;
	display: inline-block;
}

.artists-section__typing-content {
	display: inline-block;
	position: relative;
	direction: rtl;
	text-align: center;
	unicode-bidi: embed;
}

.artists-section__typing-cursor {
	display: inline-block;
	color: rgba(255, 215, 0, 1);
	animation: artistsTypingCursor 1s ease-in-out infinite;
	margin-left: 0.2em;
	font-weight: 300;
	direction: rtl;
}

.artists-section[data-typing-complete="true"] .artists-section__typing-cursor {
	opacity: 0;
}

@keyframes artistsTypingCursor {
	0%, 50% {
		opacity: 1;
	}
	51%, 100% {
		opacity: 0;
	}
}

/* Artists Grid - چیدمان نامنظم اطراف متن مرکزی */
.artists-section__artists {
	position: relative;
	width: 100%;
	height: 100vh;
	opacity: 0;
	transform: scale(0.9);
	transition: opacity 1s ease, transform 1s ease;
	display: block;
}

.artists-section[data-artists-visible="true"] .artists-section__artists {
	opacity: 1;
	transform: scale(1);
}

/* چیدمان نامنظم برای عکس‌ها - دور متن مرکزی */

/* تبلت - 768px تا 1024px */
@media (min-width: 768px) and (max-width: 1023px) {
	.artists-section__artists {
		height: 100vh;
	}
	
	/* چیدمان دور متن مرکزی - تبلت */
	.artists-section__artist--1 {
		position: absolute;
		top: 12%;
		left: 50%;
		transform: translateX(-50%) rotate(-12deg);
		width: 140px;
	}
	
	.artists-section__artist--2 {
		position: absolute;
		top: 30%;
		right: 8%;
		transform: rotate(15deg);
		width: 150px;
	}
	
	.artists-section__artist--3 {
		position: absolute;
		bottom: 20%;
		right: 10%;
		transform: rotate(-10deg);
		width: 145px;
	}
	
	.artists-section__artist--4 {
		position: absolute;
		bottom: 12%;
		left: 50%;
		transform: translateX(-50%) rotate(8deg);
		width: 155px;
	}
	
	.artists-section__artist--5 {
		position: absolute;
		bottom: 20%;
		left: 10%;
		transform: rotate(-15deg);
		width: 140px;
	}
	
	.artists-section__artist--6 {
		position: absolute;
		top: 30%;
		left: 8%;
		transform: rotate(12deg);
		width: 150px;
	}
}

/* دسکتاپ - بزرگتر از 1024px */
@media (min-width: 1024px) {
	.artists-section__artists {
		height: 100vh;
	}
	
	/* چیدمان خلاقانه دور متن مرکزی - دسکتاپ */
	
	/* عکس 1 - بالای متن */
	.artists-section__artist--1 {
		position: absolute;
		top: 8%;
		left: 50%;
		transform: translateX(-50%) rotate(-8deg);
		width: 170px;
	}
	
	/* عکس 2 - سمت راست بالا */
	.artists-section__artist--2 {
		position: absolute;
		top: 20%;
		right: 12%;
		transform: rotate(12deg);
		width: 180px;
	}
	
	/* عکس 3 - سمت راست پایین */
	.artists-section__artist--3 {
		position: absolute;
		bottom: 18%;
		right: 8%;
		transform: rotate(-15deg);
		width: 195px;
	}
	
	/* عکس 4 - پایین متن */
	.artists-section__artist--4 {
		position: absolute;
		bottom: 8%;
		left: 50%;
		transform: translateX(-50%) rotate(10deg);
		width: 185px;
	}
	
	/* عکس 5 - سمت چپ پایین */
	.artists-section__artist--5 {
		position: absolute;
		bottom: 18%;
		left: 8%;
		transform: rotate(-12deg);
		width: 175px;
	}
	
	/* عکس 6 - سمت چپ بالا */
	.artists-section__artist--6 {
		position: absolute;
		top: 20%;
		left: 12%;
		transform: rotate(18deg);
		width: 165px;
	}
}

/* دسکتاپ بزرگ - بیشتر از 1440px */
@media (min-width: 1440px) {
	/* عکس‌ها بزرگتر و فاصله بیشتر */
	.artists-section__artist--1 {
		width: 190px;
		top: 10%;
	}
	
	.artists-section__artist--2 {
		width: 200px;
		right: 15%;
		top: 22%;
	}
	
	.artists-section__artist--3 {
		width: 210px;
		right: 12%;
		bottom: 20%;
	}
	
	.artists-section__artist--4 {
		width: 200px;
		bottom: 10%;
	}
	
	.artists-section__artist--5 {
		width: 190px;
		left: 12%;
		bottom: 20%;
	}
	
	.artists-section__artist--6 {
		width: 180px;
		left: 15%;
		top: 22%;
	}
}

/* Artist Item - اندازه‌های مختلف برای چیدمان نامنظم */
.artists-section__artist {
	position: absolute;
	display: block;
	border-radius: 50%;
	overflow: visible;
	transform-style: preserve-3d;
	perspective: 1000px;
	opacity: 0;
	transform: scale(0);
	transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
	width: 150px;
	aspect-ratio: 1;
	margin: 0;
}

.artists-section[data-artists-visible="true"] .artists-section__artist {
	opacity: 1;
	transform: scale(1);
}

/* اندازه‌ها و چرخش‌های مختلف برای هر آرتیست - چیدمان نامنظم */
.artists-section__artist--1 {
	transition-delay: 0.2s;
	transform: scale(0);
}

.artists-section[data-artists-visible="true"] .artists-section__artist--1 {
	transform: scale(1);
}

.artists-section__artist--2 {
	transition-delay: 0.4s;
	transform: scale(0);
}

.artists-section[data-artists-visible="true"] .artists-section__artist--2 {
	transform: scale(1);
}

.artists-section__artist--3 {
	transition-delay: 0.6s;
	transform: scale(0);
}

.artists-section[data-artists-visible="true"] .artists-section__artist--3 {
	transform: scale(1);
}

.artists-section__artist--4 {
	transition-delay: 0.8s;
	transform: scale(0);
}

.artists-section[data-artists-visible="true"] .artists-section__artist--4 {
	transform: scale(1);
}

.artists-section__artist--5 {
	transition-delay: 1s;
	transform: scale(0);
}

.artists-section[data-artists-visible="true"] .artists-section__artist--5 {
	transform: scale(1);
}

.artists-section__artist--6 {
	transition-delay: 1.2s;
	transform: scale(0);
}

.artists-section[data-artists-visible="true"] .artists-section__artist--6 {
	transform: scale(1);
}

/* Artist Image Wrapper - دایره‌ای */
.artists-section__artist-image-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.05);
	border: 3px solid rgba(255, 255, 255, 0.15);
	transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
	box-shadow: 
		0 20px 50px rgba(0, 0, 0, 0.4),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
	cursor: pointer;
}




/* Artist Image */
.artists-section__artist-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1), filter 1s ease;
	filter: grayscale(0.3) brightness(0.9) contrast(1.1);
	will-change: transform;
}


/* Artist Overlay */
.artists-section__artist-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, transparent 100%);
	opacity: 0;
	transition: opacity 0.6s ease;
	z-index: 2;
	pointer-events: none;
}



/* Artist Glow */
.artists-section__artist-glow {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
	border-radius: 50%;
	filter: blur(50px);
	opacity: 0;
	transition: opacity 0.8s ease, transform 0.8s ease;
	z-index: 1;
	pointer-events: none;
}



/* Artist Frame */
.artists-section__artist-frame {
	position: absolute;
	top: -6px;
	left: -6px;
	right: -6px;
	bottom: -6px;
	border: 3px solid rgba(255, 215, 0, 0.4);
	border-radius: 30px;
	opacity: 0;
	transition: opacity 0.6s ease, transform 0.6s ease;
	z-index: 3;
	pointer-events: none;
	transform: scale(0.95);
}



@keyframes artistsFramePulse {
	0%, 100% {
		transform: scale(1);
		opacity: 0.8;
	}
	50% {
		transform: scale(1.05);
		opacity: 1;
	}
}

/* افکت اضافی: Floating Animation - فقط بعد از ظاهر شدن */
.artists-section[data-artists-visible="true"] .artists-section__artist--1 {
	animation: artistsFloat 6s ease-in-out infinite;
	animation-delay: 0s;
}

.artists-section[data-artists-visible="true"] .artists-section__artist--2 {
	animation: artistsFloat 7s ease-in-out infinite;
	animation-delay: 1s;
}

.artists-section[data-artists-visible="true"] .artists-section__artist--3 {
	animation: artistsFloat 8s ease-in-out infinite;
	animation-delay: 2s;
}

.artists-section[data-artists-visible="true"] .artists-section__artist--4 {
	animation: artistsFloat 6.5s ease-in-out infinite;
	animation-delay: 1.5s;
}

.artists-section[data-artists-visible="true"] .artists-section__artist--5 {
	animation: artistsFloat 7.5s ease-in-out infinite;
	animation-delay: 0.5s;
}

.artists-section[data-artists-visible="true"] .artists-section__artist--6 {
	animation: artistsFloat 8.5s ease-in-out infinite;
	animation-delay: 2.5s;
}

@keyframes artistsFloat {
	0%, 100% {
		transform: translateY(0) scale(1);
	}
	50% {
		transform: translateY(-15px) scale(1.02);
	}
}


/* Responsive - تنظیمات عمومی */
@media (max-width: 1024px) {
	.artists-section {
		padding: 0;
	}
	
	.artists-section__container {
		height: 100vh;
		min-height: 100vh;
	}
	
	.artists-section__center-text {
		max-width: 90%;
		padding: 0 1.5rem;
	}
	
	.artists-section__badge {
		font-size: 0.8rem;
		padding: 0.7rem 1.3rem;
		letter-spacing: 2.5px;
	}
	
	.artists-section__typing-text {
		font-size: clamp(2.5rem, 7vw, 5rem);
		white-space: nowrap;
		overflow: visible;
	}
	
	.artists-section__artists {
		height: 100vh;
	}
}

/* موبایل - 481px تا 768px */
@media (min-width: 481px) and (max-width: 768px) {
	.artists-section {
		padding: 0;
		min-height: 100vh;
	}
	
	.artists-section__container {
		height: 100vh;
		min-height: 100vh;
	}
	
	.artists-section__center-text {
		max-width: 85%;
		padding: 0 1.5rem;
	}
	
	.artists-section__badge {
		font-size: 0.75rem;
		padding: 0.6rem 1.2rem;
		letter-spacing: 2px;
	}
	
	.artists-section__badge-dot {
		width: 6px;
		height: 6px;
	}
	
	.artists-section__typing-text {
		font-size: clamp(2rem, 6vw, 4rem);
		white-space: nowrap;
		max-width: 90%;
		overflow: visible;
	}
	
	.artists-section__artists {
		height: 100vh;
	}
	
	/* چیدمان دور متن برای موبایل بزرگ */
	.artists-section__artist--1 {
		position: absolute;
		top: 10%;
		left: 50%;
		transform: translateX(-50%) rotate(-10deg);
		width: 120px;
	}
	
	.artists-section__artist--2 {
		position: absolute;
		top: 28%;
		right: 6%;
		transform: rotate(15deg);
		width: 110px;
	}
	
	.artists-section__artist--3 {
		position: absolute;
		bottom: 22%;
		right: 8%;
		transform: rotate(-12deg);
		width: 125px;
	}
	
	.artists-section__artist--4 {
		position: absolute;
		bottom: 10%;
		left: 50%;
		transform: translateX(-50%) rotate(12deg);
		width: 115px;
	}
	
	.artists-section__artist--5 {
		position: absolute;
		bottom: 22%;
		left: 8%;
		transform: rotate(-15deg);
		width: 110px;
	}
	
	.artists-section__artist--6 {
		position: absolute;
		top: 28%;
		left: 6%;
		transform: rotate(18deg);
		width: 120px;
	}
}

/* موبایل کوچک - کمتر از 481px */
@media (max-width: 480px) {
	.artists-section__center-text {
		max-width: 90%;
		padding: 0 1rem;
	}
	
	.artists-section__badge {
		font-size: 0.65rem;
		padding: 0.5rem 1rem;
		letter-spacing: 1.5px;
		gap: 0.5rem;
	}
	
	.artists-section__badge-dot {
		width: 5px;
		height: 5px;
	}
	
	.artists-section__typing-text {
		font-size: clamp(1.5rem, 5vw, 3rem);
		white-space: nowrap;
		line-height: 1.3;
		max-width: 90%;
		overflow: visible;
	}
	
	.artists-section__artists {
		height: 100vh;
	}
	
	/* چیدمان دور متن - موبایل کوچک */
	.artists-section__artist--1 {
		position: absolute;
		top: 12%;
		left: 50%;
		transform: translateX(-50%) rotate(-8deg);
		width: 95px;
	}
	
	.artists-section__artist--2 {
		position: absolute;
		top: 30%;
		right: 4%;
		transform: rotate(12deg);
		width: 85px;
	}
	
	.artists-section__artist--3 {
		position: absolute;
		bottom: 24%;
		right: 6%;
		transform: rotate(-10deg);
		width: 100px;
	}
	
	.artists-section__artist--4 {
		position: absolute;
		bottom: 12%;
		left: 50%;
		transform: translateX(-50%) rotate(10deg);
		width: 90px;
	}
	
	.artists-section__artist--5 {
		position: absolute;
		bottom: 24%;
		left: 6%;
		transform: rotate(-12deg);
		width: 85px;
	}
	
	.artists-section__artist--6 {
		position: absolute;
		top: 30%;
		left: 4%;
		transform: rotate(15deg);
		width: 90px;
	}
}

/* موبایل‌های خیلی کوچک - کمتر از 376px */
@media (max-width: 375px) {
	.artists-section__center-text {
		max-width: 92%;
		padding: 0 0.75rem;
	}
	
	.artists-section__badge {
		font-size: 0.6rem;
		padding: 0.45rem 0.9rem;
		letter-spacing: 1px;
		gap: 0.4rem;
	}
	
	.artists-section__badge-dot {
		width: 4px;
		height: 4px;
	}
	
	.artists-section__typing-text {
		font-size: clamp(1.25rem, 5vw, 2.5rem);
		line-height: 1.25;
		white-space: nowrap;
		max-width: 92%;
		overflow: visible;
	}
	
	/* چیدمان دور متن - موبایل خیلی کوچک */
	.artists-section__artist--1 {
		position: absolute;
		top: 14%;
		left: 50%;
		transform: translateX(-50%) rotate(-6deg);
		width: 80px;
	}
	
	.artists-section__artist--2 {
		position: absolute;
		top: 32%;
		right: 2%;
		transform: rotate(10deg);
		width: 70px;
	}
	
	.artists-section__artist--3 {
		position: absolute;
		bottom: 26%;
		right: 4%;
		transform: rotate(-8deg);
		width: 85px;
	}
	
	.artists-section__artist--4 {
		position: absolute;
		bottom: 14%;
		left: 50%;
		transform: translateX(-50%) rotate(8deg);
		width: 75px;
	}
	
	.artists-section__artist--5 {
		position: absolute;
		bottom: 26%;
		left: 4%;
		transform: rotate(-10deg);
		width: 70px;
	}
	
	.artists-section__artist--6 {
		position: absolute;
		top: 32%;
		left: 2%;
		transform: rotate(12deg);
		width: 75px;
	}
}

