/**
 * Frontend styles for Popup Coupon Generator for WooCommerce
 */

.popucoge-popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.popucoge-popup-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
}

.popucoge-popup-container {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	max-width: 90%;
	width: 500px;
	max-height: 90vh;
	overflow-y: auto;
	z-index: 1000000;
}

.popucoge-popup-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: transparent;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: #666;
	cursor: pointer;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s;
	z-index: 10;
}

.popucoge-popup-close:hover {
	color: #000;
}

.popucoge-popup-content {
	padding: 40px;
}

.popucoge-popup-form {
	margin-top: 20px;
}

.popucoge-popup-form label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
	color: #333;
}

.popucoge-popup-form input[type="email"],
.popucoge-popup-form input[type="text"] {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	margin-bottom: 15px;
	box-sizing: border-box;
}

.popucoge-popup-form input[type="email"]:focus,
.popucoge-popup-form input[type="text"]:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.popucoge-subscribe-button {
	background-color: #0073aa;
	color: #ffffff;
	border: none;
	padding: 12px 24px;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s;
	width: 100%;
}

.popucoge-subscribe-button:hover {
	background-color: #005a87;
}

.popucoge-subscribe-button:active {
	background-color: #004d73;
}

.popucoge-form-message {
	margin-top: 15px;
	padding: 10px;
	border-radius: 4px;
	display: none;
}

.popucoge-form-message.success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
	display: block;
}

.popucoge-form-message.error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
	display: block;
}

/* Responsive */
@media (max-width: 768px) {
	.popucoge-popup-container {
		width: 95%;
		max-width: 95%;
	}
	
	.popucoge-popup-content {
		padding: 30px 20px;
	}
}

