/**
 * Public Styles
 *
 * Styles for frontend verification modals, gates, and user-facing components.
 *
 * @package LFR
 * @since   1.0.0
 */

/* Modal Base */
.lfr-modal {
	display: none;
	position: fixed;
	z-index: 9999999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.8);
	align-items: center;
	justify-content: center;
}

.lfr-modal-content {
	background-color: #fefefe;
	margin: auto;
	padding: 30px;
	border: 1px solid #888;
	width: 90%;
	max-width: 600px;
	border-radius: 8px;
	text-align: center;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
}

.lfr-modal h2 {
	margin-top: 0;
	color: #333;
}

.lfr-modal p {
	color: #666;
	margin-bottom: 20px;
}

/* Video Container */
.lfr-video-container {
	position: relative;
	width: 100%;
	max-width: 500px;
	margin: 20px auto;
	background-color: #000;
	border-radius: 8px;
	overflow: hidden;
}

.lfr-video-container video,
.lfr-video-container canvas {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
}

/* Modal Feedback */
.lfr-modal-feedback {
	margin: 15px 0;
	color: #d9534f;
	font-weight: bold;
	min-height: 20px;
}

/* Form Elements */
.lfr-form-group {
	margin-bottom: 20px;
	text-align: left;
}

.lfr-form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
}

.lfr-form-group input[type="file"] {
	width: 100%;
	padding: 10px;
	border: 2px dashed #ccc;
	border-radius: 4px;
	background-color: #f9f9f9;
	cursor: pointer;
}

.lfr-form-group input[type="file"]:hover {
	border-color: #999;
}

.lfr-field-description {
	display: block;
	margin-top: 5px;
	color: #666;
	font-size: 13px;
}

/* Buttons */
.lfr-modal button {
	background-color: #4CAF50;
	color: white;
	padding: 14px 20px;
	margin: 8px 4px;
	border: none;
	cursor: pointer;
	border-radius: 4px;
	font-size: 16px;
	transition: all 0.3s ease;
}

.lfr-modal button:disabled {
	background-color: #cccccc;
	cursor: not-allowed;
	opacity: 0.6;
}

.lfr-modal button:hover:not(:disabled) {
	opacity: 0.9;
	transform: translateY(-1px);
}

.lfr-modal button.button-primary {
	background-color: #0073aa;
}

.lfr-modal button.button-primary:hover:not(:disabled) {
	background-color: #005a87;
}

/* Content Gates */
.lfr-content-gate-active {
	background-color: #fff3cd;
	border: 2px solid #ffc107;
	padding: 20px;
	margin: 20px 0;
	border-radius: 8px;
	text-align: center;
}

.lfr-content-gate-active h3 {
	color: #856404;
	margin-top: 0;
}

.lfr-content-blocked {
	background-color: #f8d7da;
	border: 2px solid #f5c6cb;
	padding: 30px;
	margin: 20px 0;
	border-radius: 8px;
	text-align: center;
}

.lfr-content-blocked h3 {
	color: #721c24;
	margin-top: 0;
}

.lfr-content-blocked p {
	color: #721c24;
	font-size: 16px;
}

/* Verification Check Gate */
.lfr-verification-check-gate {
	min-height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.lfr-check-container {
	background: white;
	padding: 50px;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	text-align: center;
	max-width: 600px;
	width: 100%;
}

.lfr-check-icon {
	font-size: 64px;
	margin-bottom: 20px;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%, 100% { 
		transform: scale(1); 
		opacity: 1; 
	}
	50% { 
		transform: scale(1.1); 
		opacity: 0.8; 
	}
}

.lfr-check-container h2 {
	color: #333;
	margin-bottom: 15px;
	font-size: 28px;
}

.lfr-check-message {
	color: #666;
	font-size: 16px;
	line-height: 1.6;
	margin-bottom: 30px;
}

.lfr-check-status {
	background: #fff3cd;
	border: 2px solid #ffc107;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 30px;
}

.lfr-check-status p {
	margin: 5px 0;
	color: #856404;
	font-weight: 500;
}

.lfr-verify-button {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	padding: 15px 40px;
	font-size: 18px;
	font-weight: bold;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s;
}

.lfr-verify-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Loading Spinner */
.lfr-modal .spinner {
	border: 4px solid #f3f3f3;
	border-top: 4px solid #3498db;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: lfr-spin 1s linear infinite;
	margin: 20px auto;
}

@keyframes lfr-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
	.lfr-modal-content {
		width: 95%;
		padding: 20px;
	}
	
	.lfr-modal button {
		width: 100%;
		margin: 8px 0;
	}
	
	.lfr-check-container {
		padding: 30px 20px;
	}
	
	.lfr-check-icon {
		font-size: 48px;
	}
	
	.lfr-check-container h2 {
		font-size: 22px;
	}
}

/* Toast Notifications */
.lfr-toast {
	position: fixed;
	top: 20px;
	right: 20px;
	background: #fff;
	border-left: 4px solid #46b450;
	padding: 20px 24px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 99999999;
	min-width: 300px;
	max-width: 400px;
	animation: slideInRight 0.3s ease-out;
}

.lfr-toast.error {
	border-left-color: #dc3232;
}

.lfr-toast.error .lfr-toast-icon {
	color: #dc3232;
}

.lfr-toast-content {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.lfr-toast-icon {
	font-size: 24px;
	color: #46b450;
	flex-shrink: 0;
}

.lfr-toast-message {
	flex: 1;
}

.lfr-toast-title {
	font-weight: 600;
	color: #333;
	margin-bottom: 4px;
	font-size: 15px;
}

.lfr-toast-text {
	color: #666;
	font-size: 14px;
	line-height: 1.4;
}

@keyframes slideInRight {
	from {
		transform: translateX(400px);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

@media (max-width: 768px) {
	.lfr-toast {
		left: 20px;
		right: 20px;
		min-width: auto;
	}
}