/**
 * Public styles for AI-Blocker Lite
 * Cyberpunk/surveillance/dark web theme
 *
 * @package AIBlockerLite
 * @since 1.0.0
 */

/* Reset and base styles */
.aib-challenge-page {
	margin: 0;
	padding: 0;
	background: #262626;
	color: #ffffff;
	font-family: 'Courier New', monospace;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow-x: hidden;
}

/* Animated grid background */
.aib-challenge-page::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: 
		linear-gradient(rgba(209, 28, 28, 0.1) 1px, transparent 1px),
		linear-gradient(90deg, rgba(209, 28, 28, 0.1) 1px, transparent 1px);
	background-size: 50px 50px;
	opacity: 0.3;
	z-index: 0;
	animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
	0% {
		transform: translate(0, 0);
	}
	100% {
		transform: translate(50px, 50px);
	}
}

/* Scanline effect */
.aib-challenge-page::after {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		to bottom,
		transparent 50%,
		rgba(0, 0, 0, 0.3) 50%
	);
	background-size: 100% 4px;
	pointer-events: none;
	z-index: 1000;
	opacity: 0.1;
}

/* Main container */
.aib-container {
	position: relative;
	z-index: 10;
	max-width: 600px;
	width: 90%;
	background: rgba(38, 38, 38, 0.95);
	border: 2px solid #d11c1c;
	border-radius: 8px;
	padding: 40px;
	box-shadow: 
		0 0 30px rgba(209, 28, 28, 0.3),
		inset 0 0 50px rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(10px);
	animation: containerPulse 3s ease-in-out infinite;
}

@keyframes containerPulse {
	0%, 100% {
		box-shadow: 
			0 0 30px rgba(209, 28, 28, 0.3),
			inset 0 0 50px rgba(0, 0, 0, 0.5);
	}
	50% {
		box-shadow: 
			0 0 40px rgba(209, 28, 28, 0.5),
			inset 0 0 50px rgba(0, 0, 0, 0.5);
	}
}

/* Header */
.aib-header {
	text-align: center;
	margin-bottom: 30px;
	position: relative;
}

.aib-logo {
	margin-bottom: 20px;
}

.aib-logo i {
	font-size: 60px;
	color: #d11c1c;
	text-shadow: 0 0 20px rgba(209, 28, 28, 0.8);
	animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoGlow {
	0%, 100% {
		text-shadow: 0 0 20px rgba(209, 28, 28, 0.8);
		transform: scale(1);
	}
	50% {
		text-shadow: 0 0 30px rgba(209, 28, 28, 1);
		transform: scale(1.05);
	}
}

.aib-header h1 {
	margin: 0 0 10px;
	font-size: 28px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 3px;
	color: #ffffff;
	text-shadow: 0 0 10px rgba(209, 28, 28, 0.5);
}

.aib-subtitle {
	margin: 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
	letter-spacing: 1px;
}

/* Progress container */
.aib-progress-container {
	margin-bottom: 30px;
}

.aib-progress-bar {
	width: 100%;
	height: 8px;
	background: rgba(0, 0, 0, 0.6);
	border: 1px solid rgba(209, 28, 28, 0.3);
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 20px;
	position: relative;
}

.aib-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #d11c1c, #ff2424);
	box-shadow: 0 0 10px rgba(209, 28, 28, 0.8);
	transition: width 0.5s ease;
	position: relative;
	overflow: hidden;
}

.aib-progress-fill::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
	animation: progressShine 2s linear infinite;
}

@keyframes progressShine {
	0% {
		left: -100%;
	}
	100% {
		left: 100%;
	}
}

/* Challenge steps */
.aib-challenge-steps {
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

.aib-step {
	flex: 1;
	text-align: center;
	padding: 15px 5px;
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(209, 28, 28, 0.2);
	border-radius: 4px;
	transition: all 0.3s ease;
}

.aib-step.completed {
	background: rgba(209, 28, 28, 0.2);
	border-color: #d11c1c;
	box-shadow: 0 0 15px rgba(209, 28, 28, 0.3);
}

.aib-step.active {
	background: rgba(209, 28, 28, 0.3);
	border-color: #d11c1c;
	box-shadow: 0 0 20px rgba(209, 28, 28, 0.5);
	animation: stepPulse 1.5s ease-in-out infinite;
}

@keyframes stepPulse {
	0%, 100% {
		box-shadow: 0 0 20px rgba(209, 28, 28, 0.5);
	}
	50% {
		box-shadow: 0 0 30px rgba(209, 28, 28, 0.8);
	}
}

.aib-step.pending {
	opacity: 0.5;
}

.aib-step-icon {
	font-size: 24px;
	margin-bottom: 8px;
}

.aib-step.completed .aib-step-icon i {
	color: #46b450;
	text-shadow: 0 0 10px rgba(70, 180, 80, 0.8);
}

.aib-step.active .aib-step-icon i {
	color: #d11c1c;
	text-shadow: 0 0 10px rgba(209, 28, 28, 0.8);
}

.aib-step.pending .aib-step-icon i {
	color: rgba(255, 255, 255, 0.3);
}

.aib-step-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #ffffff;
}

/* Challenge box */
.aib-challenge-box {
	background: rgba(0, 0, 0, 0.6);
	border: 1px solid rgba(209, 28, 28, 0.3);
	border-radius: 4px;
	padding: 30px;
	min-height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 30px;
	position: relative;
	overflow: hidden;
}

.aib-challenge-box::before {
	content: '';
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	background: linear-gradient(45deg, #d11c1c, transparent, #d11c1c);
	opacity: 0.3;
	animation: borderRotate 4s linear infinite;
	z-index: -1;
}

@keyframes borderRotate {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* Loading state */
.aib-loading {
	text-align: center;
}

.aib-loading i {
	font-size: 48px;
	color: #d11c1c;
	margin-bottom: 15px;
	display: block;
	text-shadow: 0 0 20px rgba(209, 28, 28, 0.8);
}

.aib-loading p {
	margin: 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
	letter-spacing: 1px;
}

/* Challenge content */
.aib-challenge-content {
	width: 100%;
	text-align: center;
}

.aib-challenge-title {
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	margin-bottom: 15px;
	color: #d11c1c;
	text-shadow: 0 0 10px rgba(209, 28, 28, 0.5);
}

.aib-challenge-title i {
	margin-right: 10px;
}

.aib-challenge-description {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 20px;
	line-height: 1.6;
}

/* PoW Challenge */
.aib-pow-status {
	font-size: 16px;
	color: #ffffff;
	margin: 20px 0;
	padding: 15px;
	background: rgba(209, 28, 28, 0.1);
	border: 1px solid rgba(209, 28, 28, 0.3);
	border-radius: 4px;
}

.aib-pow-progress {
	margin-top: 15px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.6);
}

.aib-pow-progress i {
	margin-right: 8px;
	color: #46b450;
}

/* PoD Challenge */
.aib-pod-details {
	margin-top: 20px;
	padding: 15px;
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(209, 28, 28, 0.2);
	border-radius: 4px;
	text-align: left;
	max-height: 200px;
	overflow-y: auto;
}

.aib-pod-check {
	padding: 8px 12px;
	margin: 5px 0;
	background: rgba(209, 28, 28, 0.1);
	border-left: 3px solid #46b450;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.9);
	animation: fadeInCheck 0.3s ease-in;
}

@keyframes fadeInCheck {
	0% {
		opacity: 0;
		transform: translateX(-10px);
	}
	100% {
		opacity: 1;
		transform: translateX(0);
	}
}

.aib-pod-check i {
	margin-right: 8px;
	color: #46b450;
	text-shadow: 0 0 10px rgba(70, 180, 80, 0.5);
}

/* PoA Challenge (Timer) */
.aib-poa-timer {
	margin: 30px 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

.aib-timer-circle {
	width: 150px;
	height: 150px;
	border: 3px solid #d11c1c;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(209, 28, 28, 0.1);
	box-shadow: 
		0 0 20px rgba(209, 28, 28, 0.4),
		inset 0 0 30px rgba(0, 0, 0, 0.5);
	position: relative;
	animation: timerPulse 2s ease-in-out infinite;
}

@keyframes timerPulse {
	0%, 100% {
		box-shadow: 
			0 0 20px rgba(209, 28, 28, 0.4),
			inset 0 0 30px rgba(0, 0, 0, 0.5);
		transform: scale(1);
	}
	50% {
		box-shadow: 
			0 0 30px rgba(209, 28, 28, 0.6),
			inset 0 0 30px rgba(0, 0, 0, 0.5);
		transform: scale(1.05);
	}
}

.aib-timer-text {
	font-size: 42px;
	font-weight: 700;
	color: #d11c1c;
	text-shadow: 0 0 20px rgba(209, 28, 28, 0.8);
	font-family: 'Courier New', monospace;
}

.aib-timer-text i {
	font-size: 50px;
}

.aib-timer-message {
	margin-top: 20px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
	letter-spacing: 1px;
}

/* PoI Challenge (Click points) */
.aib-click-area {
	position: relative;
	width: 100%;
	height: 300px;
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(209, 28, 28, 0.3);
	border-radius: 4px;
	margin: 20px 0;
	overflow: hidden;
	cursor: crosshair;
}

.aib-click-point {
	position: absolute;
	width: 40px;
	height: 40px;
	background: radial-gradient(circle, #d11c1c, transparent);
	border: 2px solid #d11c1c;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	cursor: pointer;
	transition: all 0.3s ease;
	animation: pointPulse 1.5s ease-in-out infinite;
	box-shadow: 0 0 20px rgba(209, 28, 28, 0.6);
}

@keyframes pointPulse {
	0%, 100% {
		transform: translate(-50%, -50%) scale(1);
		box-shadow: 0 0 20px rgba(209, 28, 28, 0.6);
	}
	50% {
		transform: translate(-50%, -50%) scale(1.1);
		box-shadow: 0 0 30px rgba(209, 28, 28, 0.8);
	}
}

.aib-click-point:hover {
	transform: translate(-50%, -50%) scale(1.2);
	box-shadow: 0 0 30px rgba(209, 28, 28, 1);
}

.aib-click-point.clicked {
	background: radial-gradient(circle, #46b450, transparent);
	border-color: #46b450;
	animation: clickSuccess 0.5s ease-out;
}

@keyframes clickSuccess {
	0% {
		transform: translate(-50%, -50%) scale(1);
	}
	50% {
		transform: translate(-50%, -50%) scale(1.5);
	}
	100% {
		transform: translate(-50%, -50%) scale(0);
		opacity: 0;
	}
}

.aib-click-counter {
	margin-top: 15px;
	font-size: 16px;
	color: #ffffff;
}

/* Buttons */
.aib-button {
	background: #d11c1c;
	border: 2px solid #d11c1c;
	color: #ffffff;
	padding: 12px 30px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(209, 28, 28, 0.4);
	position: relative;
	overflow: hidden;
}

.aib-button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s ease;
}

.aib-button:hover::before {
	left: 100%;
}

.aib-button:hover {
	background: #ff2424;
	border-color: #ff2424;
	box-shadow: 0 6px 25px rgba(209, 28, 28, 0.6);
	transform: translateY(-2px);
}

.aib-button:active {
	transform: translateY(0);
	box-shadow: 0 2px 10px rgba(209, 28, 28, 0.4);
}

.aib-button:disabled {
	background: rgba(209, 28, 28, 0.3);
	border-color: rgba(209, 28, 28, 0.3);
	cursor: not-allowed;
	opacity: 0.5;
}

/* Footer */
.aib-footer {
	text-align: center;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid rgba(209, 28, 28, 0.2);
}

.aib-footer p {
	margin: 0;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.5);
	letter-spacing: 1px;
	text-transform: uppercase;
}

/* Error message */
.aib-error {
	background: rgba(220, 50, 50, 0.2);
	border: 1px solid #dc3232;
	color: #ffffff;
	padding: 15px;
	border-radius: 4px;
	margin: 15px 0;
	text-align: center;
}

.aib-error i {
	margin-right: 8px;
}

/* Success message */
.aib-success {
	background: rgba(70, 180, 80, 0.2);
	border: 1px solid #46b450;
	color: #ffffff;
	padding: 15px;
	border-radius: 4px;
	margin: 15px 0;
	text-align: center;
}

.aib-success i {
	margin-right: 8px;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
	.aib-container {
		width: 95%;
		padding: 25px;
	}
	
	.aib-header h1 {
		font-size: 22px;
	}
	
	.aib-logo i {
		font-size: 48px;
	}
	
	.aib-challenge-steps {
		flex-wrap: wrap;
	}
	
	.aib-step {
		flex-basis: calc(50% - 5px);
		margin-bottom: 10px;
	}
	
	.aib-step-label {
		font-size: 10px;
	}
	
	.aib-timer-circle {
		width: 120px;
		height: 120px;
	}
	
	.aib-timer-text {
		font-size: 36px;
	}
	
	.aib-click-area {
		height: 250px;
	}
	
	.aib-click-point {
		width: 50px;
		height: 50px;
	}
	
	.aib-pod-details {
		max-height: 150px;
	}
}

@media screen and (max-width: 480px) {
	.aib-challenge-box {
		padding: 20px;
	}
	
	.aib-button {
		width: 100%;
	}
	
	.aib-challenge-title {
		font-size: 16px;
	}
	
	.aib-timer-circle {
		width: 100px;
		height: 100px;
	}
	
	.aib-timer-text {
		font-size: 30px;
	}
}