/**
 * Dashdig Analytics - Public Styles
 *
 * Styles for public-facing analytics tracking components.
 *
 * @package    Dashdig_Analytics
 * @subpackage Dashdig_Analytics/public/css
 * @since      1.0.0
 */

/* Tracking indicator (optional, hidden by default) */
.dashdig-tracking-indicator {
	display: none;
	position: fixed;
	bottom: 10px;
	right: 10px;
	padding: 8px 12px;
	background: rgba(255, 107, 53, 0.9);
	color: white;
	border-radius: 4px;
	font-size: 12px;
	z-index: 999999;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dashdig-tracking-indicator.active {
	display: block;
}

/* Event overlay for click tracking (invisible) */
.dashdig-event-overlay {
	position: absolute;
	pointer-events: none;
	z-index: 999998;
	animation: dashdig-pulse 0.6s ease-out;
}

@keyframes dashdig-pulse {
	0% {
		transform: scale(0.8);
		opacity: 0.8;
	}
	50% {
		transform: scale(1.2);
		opacity: 0.4;
	}
	100% {
		transform: scale(1.5);
		opacity: 0;
	}
}

/* Loading state for tracked elements */
.dashdig-tracking {
	position: relative;
}

.dashdig-tracking::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 107, 53, 0.05);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.dashdig-tracking.active::after {
	opacity: 1;
}

/* Heatmap overlay (if enabled) */
.dashdig-heatmap-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 999997;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.dashdig-heatmap-overlay.active {
	opacity: 1;
}

.dashdig-heatmap-point {
	position: absolute;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 107, 53, 0.6) 0%, rgba(255, 107, 53, 0) 70%);
	pointer-events: none;
	transform: translate(-50%, -50%);
}

/* Screen recording indicator (if enabled) */
.dashdig-recording-indicator {
	position: fixed;
	top: 10px;
	left: 10px;
	padding: 8px 12px;
	background: rgba(239, 68, 68, 0.9);
	color: white;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	z-index: 999999;
	display: none;
	align-items: center;
	gap: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dashdig-recording-indicator.active {
	display: flex;
}

.dashdig-recording-indicator::before {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: white;
	animation: dashdig-blink 1.5s infinite;
}

@keyframes dashdig-blink {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.3;
	}
}

/* Privacy-friendly: hide sensitive elements from tracking */
.dashdig-no-track,
[data-dashdig-ignore],
input[type="password"],
input[type="credit-card"],
.password,
.sensitive {
	/* These elements won't be captured in screenshots/recordings */
	filter: blur(8px);
}

/* Consent banner (optional) */
.dashdig-consent-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(51, 51, 51, 0.95);
	color: white;
	padding: 20px;
	z-index: 999998;
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.dashdig-consent-banner.show {
	display: flex;
}

.dashdig-consent-text {
	flex: 1;
	font-size: 14px;
	line-height: 1.5;
}

.dashdig-consent-actions {
	display: flex;
	gap: 10px;
}

.dashdig-consent-btn {
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.dashdig-consent-accept {
	background: #ff6b35;
	color: white;
}

.dashdig-consent-accept:hover {
	background: #e85a2a;
}

.dashdig-consent-decline {
	background: transparent;
	color: white;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.dashdig-consent-decline:hover {
	background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
	.dashdig-consent-banner {
		flex-direction: column;
		align-items: stretch;
	}

	.dashdig-consent-actions {
		flex-direction: column;
	}

	.dashdig-consent-btn {
		width: 100%;
	}
}



