/**
 * HiTechCloud Popup - Frontend CSS
 * Minimal, responsive, fade in/out.
 */

.hcp-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.65);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
}

.hcp-overlay.is-visible {
	opacity: 1;
	pointer-events: auto;
}

.hcp-popup {
	position: relative;
	max-width: var(--hcp-width-desktop, 720px);
	width: 92%;
	background: transparent;
	border-radius: 16px;
	overflow: hidden;
	transform: scale(0.92) translateY(20px);
	transition: transform 0.35s ease;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.hcp-overlay.is-visible .hcp-popup {
	transform: scale(1) translateY(0);
}

.hcp-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	transition: background 0.2s ease, transform 0.2s ease;
	backdrop-filter: blur(8px);
}

.hcp-close:hover {
	background: rgba(220, 38, 38, 0.85);
	transform: scale(1.1);
}

.hcp-image-link {
	display: block;
	line-height: 0;
}

.hcp-popup img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
}

/* Mobile */
@media (max-width: 768px) {
	.hcp-popup {
		max-width: var(--hcp-width-mobile, 100%);
		width: 94%;
		border-radius: 12px;
	}

	.hcp-popup img {
		border-radius: 12px;
	}

	.hcp-close {
		top: 8px;
		right: 8px;
		width: 34px;
		height: 34px;
		font-size: 20px;
	}
}

/* Small mobile */
@media (max-width: 480px) {
	.hcp-popup {
		width: 96%;
	}

	.hcp-close {
		top: 6px;
		right: 6px;
		width: 30px;
		height: 30px;
		font-size: 18px;
	}
}
