/**
 * More Communities Widget Styles
 */

/* Main Container */
.awyb-more-communities {
	position: relative;
	overflow: hidden;
	background-color: var(--awyb-theme-banner-color);
}

/* Pattern Overlay */
.awyb-more-communities::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	mask-image: url("/wp-content/themes/awyb2025/assets/atlanta-pattern.svg");
	-webkit-mask-image: url("/wp-content/themes/awyb2025/assets/atlanta-pattern.svg");
	mask-size: 600px;
	-webkit-mask-size: 600px;
	mask-repeat: repeat;
	-webkit-mask-repeat: repeat;
	mask-position: top left;
	-webkit-mask-position: top left;
	z-index: 0;
	pointer-events: none;
	background-color: var(--awyb-theme-banner-pattern-color);
}

/* Container Layout */
.awyb-more-communities__container {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: stretch;
	max-width: 1300px;
	margin: 0 auto;
	padding-right: 70px;
}

/* Content Column (Left) */
.awyb-more-communities__content-column {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 48px 70px;
	max-width: 800px;
}

/* Content Text */
.awyb-more-communities__content-text {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 24px 0;
}

/* Sub-Header */
.awyb-more-communities__sub-header {
	font-family: var(--font-family-headings);
	font-size: var(--text-4xl-font-size);
	font-weight: 700;
	line-height: 38px;
	margin: 0;
	color: var(--awyb-theme-banner-text-color);
}

/* Body Copy */
.awyb-more-communities__body {
	font-family: var(--font-family-body);
	font-size: 20px;
	line-height: 24px;
	margin: 0;
	color: var(--awyb-theme-banner-text-color);
}

/* Social Links */
.awyb-more-communities__social-links {
	display: flex;
	gap: 27px;
	padding: 24px 0;
}

.awyb-more-communities__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--awyb-theme-banner-text-color);
	transition: transform 0.3s ease;
}

.awyb-more-communities__social-link:hover {
	transform: translateY(-4px);
}

/* SVG icon support */
.awyb-more-communities__social-icon {
	display: block;
	width: 40px;
	height: 40px;
}

.awyb-more-communities__social-icon path {
	fill: var(--awyb-theme-banner-text-color);
}

/* Communities Column (Right) */
.awyb-more-communities__communities-column {
	position: relative;
	width: 425px;
	flex-shrink: 0;
	overflow: hidden;
	transform: rotate(-5deg);
	transform-origin: bottom right;
	margin: -40px -40px -40px 0; /* Compensate for rotation overflow */
	background-color: var(--awyb-theme-banner-secondary-color);
}

/* Communities Wrapper */
.awyb-more-communities__communities-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	overflow: hidden;
	padding: 40px 55px;
}

/* Scrolling Container */
.awyb-more-communities__communities-scroll {
	display: flex;
	gap: 5px;
	flex-direction: column;
	animation: scrollCommunities 20s linear infinite;
}

/* Individual Community */
.awyb-more-communities__community {
	font-family: var(--font-family-headings);
	font-size: 28px;
	font-weight: 700;
	line-height: 34px;
	white-space: nowrap;
	color: var(--awyb-theme-banner-secondary-text-color);
}

/* Scrolling Animation */
@keyframes scrollCommunities {
	0% {
		transform: translateY(0);
	}
	100% {
		transform: translateY(-50%);
	}
}

/* Pause animation on hover */
.awyb-more-communities__communities-wrapper:hover .awyb-more-communities__communities-scroll {
	animation-play-state: paused;
}

/* Hide scrollbar */
.awyb-more-communities__communities-wrapper {
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE/Edge */
}

.awyb-more-communities__communities-wrapper::-webkit-scrollbar {
	display: none; /* Chrome/Safari/Opera */
}

/* Tablet Breakpoint */
@media (max-width: 1024px) {
	.awyb-more-communities__communities-column {
		width: 350px;
	}
}

/* Mobile Breakpoint */
@media (max-width: 800px) {
	.awyb-more-communities__container {
		flex-direction: column;
		padding-right: 0;
	}

	.awyb-more-communities__content-column {
		padding: 40px 24px;
		max-width: 100%;
		text-align: center;
	}

	.awyb-more-communities__content-text {
		padding: 0;
	}

	.awyb-more-communities__social-links {
		justify-content: center;
	}

	.awyb-more-communities__communities-column {
		width: 120%;
		height: 350px;
		margin: 0;
	}

	.awyb-more-communities__communities-wrapper {
		padding: 50px 20%;
	}
}
