/* VA Community Box Styles */
#va-community-box {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.6);
	z-index: 999999;
	display: flex; /* Flex is always on, but hidden */
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	backdrop-filter: blur(3px); /* Glassmorphism effect */
}

#va-community-box.va-show {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

#va-community-box .va-cb-container {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.3);
	width: 90%;
	max-width: 400px;
	padding: 25px 20px 20px;
	position: relative;
	text-align: center;
	transform: translateY(20px) scale(0.95);
	transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	overflow: hidden;
}

#va-community-box.va-show .va-cb-container {
	transform: translateY(0) scale(1);
}

#va-community-box .va-cb-close {
	position: absolute;
	top: 10px;
	right: 15px;
	background: transparent;
	border: none;
	font-size: 24px;
	color: #888;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, color 0.2s;
}

#va-community-box .va-cb-close:hover {
	color: #333;
	background: #f0f0f0;
}

#va-community-box .va-cb-teaser {
	font-size: 16px;
	color: #333;
	margin-bottom: 20px;
	font-weight: 500;
	line-height: 1.4;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#va-community-box .va-cb-plugin {
	margin: 0 auto 20px;
	display: flex;
	justify-content: center;
	min-height: 130px; /* reserve space for iframe */
}

#va-community-box .va-cb-action {
	border-top: 1px solid #eee;
	padding-top: 15px;
	margin-top: 10px;
}

#va-community-box .va-cb-action span {
	color: #666;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	text-decoration: underline;
	display: inline-block;
	padding: 5px 10px;
	transition: color 0.2s;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#va-community-box .va-cb-action span:hover {
	color: #000;
}

/* Responsive adjustment */
@media (max-width: 400px) {
	#va-community-box .va-cb-container {
		width: 95%;
		padding: 20px 15px 15px;
	}
}