/* Frontend CSS for Official Promo Popup */

.opp-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 999999;
	display: none; /* Handled by JS */
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
	backdrop-filter: blur(4px);
}

.opp-popup-overlay.opp-show {
	opacity: 1;
}

.opp-popup-content {
	background: #ffffff;
	width: 90%;
	max-width: 500px;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	position: relative;
	overflow: hidden;
	transform: scale(0.95) translateY(20px);
	transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.opp-popup-overlay.opp-show .opp-popup-content {
	transform: scale(1) translateY(0);
}

.opp-popup-close {
	position: absolute !important;
	top: 15px !important;
	right: 15px !important;
	background: rgba(0, 0, 0, 0.5) !important; /* Dark translucent circle */
	border: none !important;
	outline: none !important;
	width: 32px !important;
	height: 32px !important;
	border-radius: 50% !important; /* Ensure it's a circle */
	font-size: 20px !important;
	line-height: 1 !important;
	cursor: pointer !important;
	color: #ffffff !important;
	z-index: 10 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
	transition: background 0.2s, transform 0.2s !important;
	padding: 0 !important;
	margin: 0 !important;
}

.opp-popup-close:hover {
	background: rgba(0, 0, 0, 0.8) !important;
	transform: scale(1.1) !important;
	color: #ffffff !important;
}

.opp-popup-image {
	width: 100%;
	max-height: 350px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: transparent;
	overflow: hidden;
}

.opp-popup-image img {
	width: 100%;
	height: 100%;
	max-height: 350px;
	object-fit: contain; /* Mengubah dari cover menjadi contain agar gambar utuh (tidak kepotong) */
	display: block;
}

.opp-popup-body {
	padding: 30px;
	text-align: center;
}

.opp-popup-title {
	margin: 0 0 15px;
	font-size: 24px;
	font-weight: 700;
	color: #1a202c;
	line-height: 1.3;
}

.opp-popup-message {
	font-size: 16px;
	color: #4a5568;
	line-height: 1.6;
	margin-bottom: 25px;
}

.opp-popup-message p:last-child {
	margin-bottom: 0;
}

.opp-popup-action {
	margin-top: 10px;
}

.opp-popup-button {
	display: inline-block;
	background-color: #e53e3e; /* Theme red/primary */
	color: #ffffff;
	text-decoration: none;
	padding: 12px 24px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 16px;
	transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
	box-shadow: 0 4px 6px rgba(229, 62, 62, 0.2);
}

.opp-popup-button:hover,
.opp-popup-button:focus {
	background-color: #c53030;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(229, 62, 62, 0.3);
}

/* Responsive adjustments */
@media (max-width: 480px) {
	.opp-popup-body {
		padding: 20px;
	}
	.opp-popup-title {
		font-size: 20px;
	}
	.opp-popup-message {
		font-size: 14px;
	}
	.opp-popup-image, .opp-popup-image img {
		max-height: 250px;
	}
}
