/**
 * Community Section Styles
 * Remote Madam Design System
 */

/* ============================================
   COMMUNITY SECTION
   ============================================ */

.community {
	position: relative;
	background: linear-gradient(180deg, var(--bg) 0%, rgba(9, 9, 9, 0.98) 100%);
	padding: 140px 0 120px;
	overflow: hidden;
}

.community::before {
	content: '';
	position: absolute;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(245, 93, 174, 0.15) 0%, transparent 70%);
	top: 20%;
	right: 10%;
	filter: blur(80px);
	pointer-events: none;
}

.community::after {
	content: '';
	position: absolute;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(108, 99, 255, 0.12) 0%, transparent 70%);
	bottom: 20%;
	left: 5%;
	filter: blur(60px);
	pointer-events: none;
}

.community__container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 60px;
}

/* ============================================
   COMMUNITY INNER
   ============================================ */

.community__inner {
	display: grid;
	grid-template-columns: 48% 52%;
	gap: 60px;
	align-items: center;
	margin-bottom: 80px;
}

/* ============================================
   COMMUNITY CONTENT
   ============================================ */

.community__content {
	opacity: 0;
	transform: translateY(30px);
	animation: fadeUp 0.8s ease forwards;
}

.community__label {
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	color: var(--primary);
	background-color: rgba(245, 93, 174, 0.15);
	padding: 8px 20px;
	border-radius: 50px;
	margin-bottom: 20px;
}

.community__title {
	font-size: 48px;
	font-weight: 700;
	font-family: var(--font-heading);
	color: var(--text);
	margin: 0 0 24px;
	line-height: 1.2;
}

.community__description {
	font-size: 18px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.7);
	line-height: 1.7;
	margin: 0 0 32px;
	max-width: 520px;
}

.community__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* ============================================
   COMMUNITY VISUAL
   ============================================ */

.community__visual {
	position: relative;
	min-height: 550px;
}

.community__collage {
	position: relative;
	height: 100%;
}

.community__image-item {
	position: absolute;
	border-radius: 24px;
	overflow: hidden;
	background-color: #111111;
	border: 1px solid rgba(255, 255, 255, 0.06);
	opacity: 0;
	transform: scale(0.9);
	animation: scaleUp 0.6s ease forwards;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
	transition: all 0.3s ease;
}

.community__image-item:nth-child(1) {
	width: 280px;
	height: 220px;
	top: 0;
	left: 0;
	z-index: 1;
}

.community__image-item:nth-child(2) {
	width: 320px;
	height: 280px;
	top: 40px;
	right: 0;
	z-index: 2;
}

.community__image-item:nth-child(3) {
	width: 260px;
	height: 200px;
	bottom: 40px;
	left: 40px;
	z-index: 3;
}

.community__image-item:nth-child(4) {
	width: 200px;
	height: 160px;
	bottom: 0;
	right: 60px;
	z-index: 4;
}

.community__image-item:nth-child(5) {
	width: 180px;
	height: 140px;
	top: 180px;
	left: 120px;
	z-index: 5;
}

.community__image-item:nth-child(6) {
	width: 160px;
	height: 120px;
	top: 80px;
	left: 200px;
	z-index: 6;
}

.community__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform var(--transition);
}

.community__image-item:hover .community__image {
	transform: scale(1.05);
}

.community__image-item:hover {
	transform: translateY(-8px) scale(1.02);
	border-color: rgba(245, 93, 174, 0.3);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
	z-index: 10;
}

/* ============================================
   COMMUNITY STATS
   ============================================ */

.community__stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	padding-top: 60px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.community__stat {
	text-align: center;
	opacity: 0;
	transform: translateY(20px);
	animation: fadeUp 0.6s ease forwards;
}

.community__stat-label {
	display: block;
	font-size: 36px;
	font-weight: 700;
	font-family: var(--font-heading);
	color: var(--primary);
	margin-bottom: 8px;
}

.community__stat-title {
	display: block;
	font-size: 15px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* fadeUp keyframe defined in animations.css */

@keyframes scaleUp {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
	.community__container {
		padding: 0 40px;
	}

	.community__inner {
		grid-template-columns: 1fr 1fr;
		gap: 48px;
		margin-bottom: 60px;
	}

	.community__title {
		font-size: 40px;
		margin-bottom: 20px;
	}

	.community__description {
		font-size: 17px;
		max-width: 480px;
		margin-bottom: 28px;
	}

	.community__visual {
		min-height: 450px;
	}

	.community__image-item:nth-child(1) {
		width: 240px;
		height: 180px;
	}

	.community__image-item:nth-child(2) {
		width: 280px;
		height: 240px;
		top: 30px;
	}

	.community__image-item:nth-child(3) {
		width: 220px;
		height: 170px;
		bottom: 30px;
		left: 30px;
	}

	.community__image-item:nth-child(4) {
		width: 160px;
		height: 130px;
		right: 40px;
	}

	.community__image-item:nth-child(5) {
		width: 140px;
		height: 110px;
		top: 140px;
		left: 90px;
	}

	.community__image-item:nth-child(6) {
		width: 120px;
		height: 100px;
		top: 60px;
		left: 150px;
	}

	.community__stats {
		gap: 24px;
		padding-top: 48px;
	}

	.community__stat-label {
		font-size: 32px;
	}

	.community__stat-title {
		font-size: 14px;
	}
}

@media (max-width: 768px) {
	.community {
		padding: 100px 0 80px;
	}

	.community__container {
		padding: 0 24px;
	}

	.community__inner {
		grid-template-columns: 1fr;
		gap: 48px;
		margin-bottom: 50px;
	}

	.community__content {
		text-align: center;
	}

	.community__label {
		margin-bottom: 16px;
	}

	.community__title {
		font-size: 32px;
		margin-bottom: 18px;
	}

	.community__description {
		font-size: 16px;
		max-width: 100%;
		margin-bottom: 24px;
	}

	.community__visual {
		min-height: 350px;
		order: -1;
	}

	.community__collage {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.community__image-item {
		position: relative;
		width: 100% !important;
		height: 180px !important;
		top: auto !important;
		right: auto !important;
		bottom: auto !important;
		left: auto !important;
		z-index: auto !important;
	}

	.community__stats {
		grid-template-columns: repeat(2, 1fr);
		gap: 32px;
		padding-top: 40px;
	}

	.community__stat-label {
		font-size: 28px;
	}

	.community__stat-title {
		font-size: 13px;
	}
}

@media (max-width: 480px) {
	.community {
		padding: 80px 0 60px;
	}

	.community__container {
		padding: 0 20px;
	}

	.community__inner {
		gap: 40px;
	}

	.community__title {
		font-size: 28px;
		margin-bottom: 16px;
	}

	.community__description {
		font-size: 15px;
	}

	.community__visual {
		min-height: 300px;
	}

	.community__collage {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.community__image-item {
		height: 160px !important;
		border-radius: 20px;
	}

	.community__stats {
		grid-template-columns: 1fr;
		gap: 24px;
		padding-top: 32px;
	}

	.community__stat-label {
		font-size: 24px;
	}

	.community__stat-title {
		font-size: 12px;
	}
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
	.community__content,
	.community__image-item,
	.community__stat {
		animation: none;
		opacity: 1;
		transform: none;
	}

	.community__image {
		transition: none;
	}

	.community__image-item:hover .community__image {
		transform: none;
	}
}
