/* ==========================================================================
   Consent Sentinel v1.0.1 – Frontend Styles
   Crafted by iNTERVOLUTIONS · intervolutions.com
   ========================================================================== */

/* ── CSS Variables ──────────────────────────────────────────────────── */
:root {
	--css-primary: #00ff41;
	--css-bg: #0a0a0a;
	--css-text: #e0e0e0;
	--css-border: #222;
	--css-overlay: rgba(0, 0, 0, 0.75);
	--css-radius: 8px;
	--css-shadow: 0 -2px 16px rgba(0, 0, 0, 0.12);
	--css-font: 'Courier New', Courier, 'Lucida Console', monospace;
}

/* ── Banner Base ───────────────────────────────────────────────────── */
.css-consent-banner {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 999999;
	background: var(--css-bg);
	color: var(--css-text);
	box-shadow: var(--css-shadow);
	font-family: var(--css-font);
	font-size: 14px;
	line-height: 1.6;
	padding: 0;
	box-sizing: border-box;
}

.css-banner--bottom { bottom: 0; }
.css-banner--top { top: 0; box-shadow: 0 2px 16px rgba(0,0,0,0.12); }

.css-banner--modal {
	top: 0; bottom: 0;
	display: flex !important;
	align-items: center;
	justify-content: center;
	background: var(--css-overlay);
}
.css-banner--modal .css-banner__inner {
	max-width: 640px;
	margin: auto;
	background: var(--css-bg);
	border-radius: var(--css-radius);
	box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

/* ── Light theme ───────────────────────────────────────────────────── */
.css-banner--light {
	--css-bg: #ffffff;
	--css-text: #333333;
	--css-border: #dddddd;
	--css-primary: #0073aa;
	--css-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.css-banner--light .css-banner__inner,
.css-prefs--light .css-prefs__dialog {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Dark theme ────────────────────────────────────────────────────── */
.css-banner--dark {
	--css-bg: #1e1e1e;
	--css-text: #e0e0e0;
	--css-border: #444;
	--css-primary: #0073aa;
	--css-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===========================================================================
   ██████╗ ███████╗██╗███╗   ██╗████████╗    ████████╗██╗  ██╗███████╗███╗   ███╗███████╗
  ██╔═══██╗██╔════╝██║████╗  ██║╚══██╔══╝    ╚══██╔══╝██║  ██║██╔════╝████╗ ████║██╔════╝
  ██║   ██║███████╗██║██╔██╗ ██║   ██║          ██║   ███████║█████╗  ██╔████╔██║█████╗
  ██║   ██║╚════██║██║██║╚██╗██║   ██║          ██║   ██╔══██║██╔══╝  ██║╚██╔╝██║██╔══╝
  ╚██████╔╝███████║██║██║ ╚████║   ██║          ██║   ██║  ██║███████╗██║ ╚═╝ ██║███████╗
   ╚═════╝ ╚══════╝╚═╝╚═╝  ╚═══╝   ╚═╝          ╚═╝   ╚═╝  ╚═╝╚══════╝╚═╝     ╚═╝╚══════╝
   OSINT Cinematic Mode – Inspired by brokenufo.com
   =========================================================================== */

.css-banner--osint {
	--css-bg: #0a0a0a;
	--css-text: #c8d6c3;
	--css-border: rgba(0, 255, 65, 0.15);
	--css-primary: #00ff41;
	--css-font: 'Courier New', Courier, 'Lucida Console', monospace;
	--css-glow: 0 0 8px rgba(0, 255, 65, 0.3), 0 0 24px rgba(0, 255, 65, 0.08);
	--css-glow-strong: 0 0 12px rgba(0, 255, 65, 0.5), 0 0 40px rgba(0, 255, 65, 0.15);

	background: linear-gradient(180deg, #0a0a0a 0%, #0d120d 50%, #0a0a0a 100%);
	border-top: 1px solid rgba(0, 255, 65, 0.2);
	box-shadow: 0 -4px 40px rgba(0, 255, 65, 0.06), inset 0 1px 0 rgba(0, 255, 65, 0.08);
	overflow: hidden;
}

.css-banner--osint.css-banner--top {
	border-top: none;
	border-bottom: 1px solid rgba(0, 255, 65, 0.2);
	box-shadow: 0 4px 40px rgba(0, 255, 65, 0.06), inset 0 -1px 0 rgba(0, 255, 65, 0.08);
}

.css-banner--osint.css-banner--modal {
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(8px);
}
.css-banner--osint.css-banner--modal .css-banner__inner {
	border: 1px solid rgba(0, 255, 65, 0.25);
	box-shadow: var(--css-glow-strong), 0 16px 64px rgba(0, 0, 0, 0.5);
}

/* ── OSINT Radar ───────────────────────────────────────────────────── */
.css-osint-radar {
	position: absolute;
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
	width: 100px;
	height: 100px;
	border-radius: 50%;
	opacity: 0.3;
	pointer-events: none;
}

.css-osint-radar__ring {
	position: absolute;
	border: 1px solid rgba(0, 255, 65, 0.2);
	border-radius: 50%;
}
.css-osint-radar__ring--1 { inset: 0; }
.css-osint-radar__ring--2 { inset: 15%; }
.css-osint-radar__ring--3 { inset: 35%; }

.css-osint-radar__sweep {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: conic-gradient(
		from 0deg,
		transparent 0deg,
		rgba(0, 255, 65, 0.3) 30deg,
		transparent 60deg
	);
	animation: css-radar-spin 3s linear infinite;
}

.css-osint-radar__dot {
	position: absolute;
	width: 4px;
	height: 4px;
	background: #00ff41;
	border-radius: 50%;
	top: 30%;
	left: 60%;
	box-shadow: 0 0 6px #00ff41;
	animation: css-radar-blink 2s ease-in-out infinite;
}

@keyframes css-radar-spin {
	to { transform: rotate(360deg); }
}
@keyframes css-radar-blink {
	0%, 100% { opacity: 0.2; }
	50% { opacity: 1; }
}

/* ── OSINT Scanline ────────────────────────────────────────────────── */
.css-osint-scanline {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	background: repeating-linear-gradient(
		0deg,
		transparent,
		transparent 2px,
		rgba(0, 255, 65, 0.015) 2px,
		rgba(0, 255, 65, 0.015) 4px
	);
}

.css-osint-scanline::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.08), transparent);
	animation: css-scanline-move 4s linear infinite;
}

@keyframes css-scanline-move {
	0% { top: -3px; }
	100% { top: 100%; }
}

/* ── OSINT Header Tags ─────────────────────────────────────────────── */
.css-osint-header {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(0, 255, 65, 0.1);
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.css-osint-tag {
	color: rgba(0, 255, 65, 0.5);
	font-family: var(--css-font);
}

.css-osint-tag--blink {
	color: #00ff41;
	animation: css-blink-glow 1.5s ease-in-out infinite;
}

@keyframes css-blink-glow {
	0%, 100% { opacity: 1; text-shadow: 0 0 4px rgba(0,255,65,0.5); }
	50% { opacity: 0.4; text-shadow: none; }
}

/* ── OSINT Classification / Stamps ─────────────────────────────────── */
.css-osint-classification {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 3px;
	color: rgba(0, 255, 65, 0.4);
	margin-bottom: 8px;
}

.css-osint-stamp {
	display: inline-block;
	border: 1px solid rgba(255, 60, 60, 0.5);
	color: #ff4444;
	padding: 2px 8px;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 3px;
	margin-right: 8px;
	transform: rotate(-1deg);
	text-shadow: 0 0 4px rgba(255, 60, 60, 0.3);
}

.css-osint-stamp-inline {
	color: #00ff41;
	text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
	margin-right: 6px;
}

/* ── OSINT Legal micro text ────────────────────────────────────────── */
.css-osint-legal-micro {
	font-size: 10px;
	color: rgba(200, 214, 195, 0.35);
	letter-spacing: 0.5px;
	margin-top: 8px;
	line-height: 1.6;
}

.css-osint-legal-micro a {
	color: rgba(0, 255, 65, 0.5) !important;
	text-decoration: none;
	border-bottom: 1px dotted rgba(0, 255, 65, 0.3);
}
.css-osint-legal-micro a:hover {
	color: #00ff41 !important;
}

/* ── OSINT Footer Bar ──────────────────────────────────────────────── */
.css-osint-footer-bar {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 14px;
	padding-top: 10px;
	border-top: 1px solid rgba(0, 255, 65, 0.08);
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: rgba(0, 255, 65, 0.3);
}

/* ── OSINT Banner Text ─────────────────────────────────────────────── */
.css-banner--osint .css-banner__text p {
	color: #c8d6c3;
	font-size: 13px;
	line-height: 1.7;
}

.css-banner--osint .css-banner__text a {
	color: #00ff41 !important;
	text-decoration: none;
	border-bottom: 1px solid rgba(0, 255, 65, 0.3);
	transition: all 0.2s;
}
.css-banner--osint .css-banner__text a:hover {
	text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
	border-bottom-color: #00ff41;
}

/* ── OSINT Buttons ─────────────────────────────────────────────────── */
.css-banner--osint .css-btn--primary {
	background: transparent;
	color: #00ff41;
	border: 1px solid #00ff41;
	text-shadow: 0 0 6px rgba(0, 255, 65, 0.4);
	box-shadow: var(--css-glow), inset 0 0 20px rgba(0, 255, 65, 0.03);
	transition: all 0.3s;
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 2px;
	font-family: var(--css-font);
}
.css-banner--osint .css-btn--primary:hover {
	background: rgba(0, 255, 65, 0.1);
	box-shadow: var(--css-glow-strong), inset 0 0 30px rgba(0, 255, 65, 0.05);
}

.css-banner--osint .css-btn--secondary {
	background: transparent;
	color: #ff4444;
	border: 1px solid rgba(255, 68, 68, 0.4);
	font-family: var(--css-font);
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 2px;
	transition: all 0.3s;
}
.css-banner--osint .css-btn--secondary:hover {
	border-color: #ff4444;
	box-shadow: 0 0 8px rgba(255, 68, 68, 0.2);
}

.css-banner--osint .css-btn--outline {
	background: transparent;
	color: rgba(0, 255, 65, 0.6);
	border: 1px solid rgba(0, 255, 65, 0.25);
	font-family: var(--css-font);
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 2px;
	transition: all 0.3s;
}
.css-banner--osint .css-btn--outline:hover {
	color: #00ff41;
	border-color: rgba(0, 255, 65, 0.5);
	box-shadow: var(--css-glow);
}

/* ===========================================================================
   OSINT Preferences Modal
   =========================================================================== */
.css-prefs--osint .css-prefs__dialog {
	background: linear-gradient(180deg, #0c0c0c 0%, #0a0f0a 100%);
	border: 1px solid rgba(0, 255, 65, 0.2);
	box-shadow: var(--css-glow-strong), 0 16px 64px rgba(0, 0, 0, 0.5);
	font-family: 'Courier New', Courier, monospace;
	color: #c8d6c3;
	overflow: hidden;
}

.css-prefs--osint .css-prefs__header {
	border-bottom-color: rgba(0, 255, 65, 0.15);
	background: rgba(0, 255, 65, 0.02);
}

.css-prefs--osint .css-prefs__header h2 {
	color: #00ff41;
	text-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 3px;
	font-weight: 400;
}

.css-prefs--osint .css-prefs__close {
	color: rgba(0, 255, 65, 0.5);
}
.css-prefs--osint .css-prefs__close:hover {
	color: #00ff41;
	text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}

.css-prefs--osint .css-prefs__footer {
	border-top-color: rgba(0, 255, 65, 0.1);
	background: rgba(0, 0, 0, 0.3);
}

.css-osint-intro {
	color: rgba(200, 214, 195, 0.65);
	font-size: 12px;
	line-height: 1.7;
	letter-spacing: 0.3px;
}

/* ── OSINT Category Rows ───────────────────────────────────────────── */
.css-pref-category--osint {
	border-bottom-color: rgba(0, 255, 65, 0.08);
	padding: 16px 0;
	transition: background 0.3s;
}
.css-pref-category--osint:hover {
	background: rgba(0, 255, 65, 0.015);
}

.css-pref-category--osint .css-pref-category__label {
	color: #c8d6c3;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.css-osint-icon {
	margin-right: 6px;
	font-size: 16px;
}

.css-osint-subtitle {
	display: block;
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: rgba(0, 255, 65, 0.35);
	font-weight: 400;
	margin-top: 2px;
}

.css-pref-category--osint .css-pref-category__desc {
	color: rgba(200, 214, 195, 0.45);
	font-size: 12px;
}

/* ── OSINT Toggle ──────────────────────────────────────────────────── */
.css-prefs--osint .css-toggle__slider,
.css-banner--osint .css-toggle__slider {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(0, 255, 65, 0.15);
}
.css-prefs--osint .css-toggle:checked + .css-toggle__slider,
.css-banner--osint .css-toggle:checked + .css-toggle__slider {
	background: rgba(0, 255, 65, 0.25);
	border-color: #00ff41;
	box-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
}
.css-prefs--osint .css-toggle__slider::after,
.css-banner--osint .css-toggle__slider::after {
	background: #666;
}
.css-prefs--osint .css-toggle:checked + .css-toggle__slider::after,
.css-banner--osint .css-toggle:checked + .css-toggle__slider::after {
	background: #00ff41;
	box-shadow: 0 0 6px rgba(0, 255, 65, 0.5);
}

/* ── OSINT Prefs Buttons ───────────────────────────────────────────── */
.css-prefs--osint .css-btn--primary {
	background: transparent;
	color: #00ff41;
	border: 1px solid #00ff41;
	text-shadow: 0 0 6px rgba(0, 255, 65, 0.4);
	box-shadow: 0 0 8px rgba(0, 255, 65, 0.15);
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 2px;
	font-family: 'Courier New', monospace;
	transition: all 0.3s;
}
.css-prefs--osint .css-btn--primary:hover {
	background: rgba(0, 255, 65, 0.1);
	box-shadow: 0 0 16px rgba(0, 255, 65, 0.3);
}
.css-prefs--osint .css-btn--outline {
	background: transparent;
	color: rgba(0, 255, 65, 0.6);
	border: 1px solid rgba(0, 255, 65, 0.25);
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 2px;
	font-family: 'Courier New', monospace;
	transition: all 0.3s;
}
.css-prefs--osint .css-btn--outline:hover {
	color: #00ff41;
	border-color: rgba(0, 255, 65, 0.5);
}

/* ── DNS category OSINT override ───────────────────────────────────── */
.css-prefs--osint .css-pref-category--dns {
	border-top: 1px solid rgba(255, 68, 68, 0.2);
	margin-top: 12px;
	padding-top: 16px;
}

/* ===========================================================================
   OSINT Entry Animation
   =========================================================================== */
.css-banner--osint {
	animation: css-osint-entry 0.6s ease-out;
}
@keyframes css-osint-entry {
	0% {
		opacity: 0;
		transform: translateY(20px);
		filter: blur(4px);
	}
	60% {
		opacity: 1;
		filter: blur(0);
	}
	100% {
		transform: translateY(0);
	}
}

.css-prefs--osint .css-prefs__dialog {
	animation: css-osint-modal-entry 0.5s ease-out;
}
@keyframes css-osint-modal-entry {
	0% {
		opacity: 0;
		transform: scale(0.95) translateY(10px);
		filter: blur(4px);
	}
	100% {
		opacity: 1;
		transform: scale(1) translateY(0);
		filter: blur(0);
	}
}

/* ===========================================================================
   Generic Styles (shared across all themes)
   =========================================================================== */

.css-banner__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	position: relative;
	z-index: 2;
}

.css-banner__text {
	flex: 1 1 400px;
}
.css-banner__text p { margin: 0 0 6px; }
.css-banner__text a {
	color: var(--css-primary);
	text-decoration: underline;
	margin-left: 6px;
}

.css-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex-shrink: 0;
}

/* ── Buttons ───────────────────────────────────────────────────────── */
.css-btn {
	display: inline-block;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	line-height: 1;
	border-radius: var(--css-radius);
	cursor: pointer;
	transition: opacity 0.2s, background 0.2s;
	border: 2px solid transparent;
	white-space: nowrap;
}
.css-btn:focus-visible {
	outline: 3px solid var(--css-primary);
	outline-offset: 2px;
}
.css-btn--primary {
	background: var(--css-primary);
	color: #ffffff;
	border-color: var(--css-primary);
}
.css-btn--primary:hover { opacity: 0.9; }
.css-btn--secondary {
	background: transparent;
	color: var(--css-text);
	border-color: var(--css-text);
}
.css-btn--secondary:hover { background: rgba(128,128,128,0.1); }
.css-btn--outline {
	background: transparent;
	color: var(--css-primary);
	border-color: var(--css-primary);
}
.css-btn--outline:hover { background: rgba(0,115,170,0.08); }

/* ── Preferences Modal ─────────────────────────────────────────────── */
.css-consent-prefs {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--css-font);
	font-size: 14px;
	line-height: 1.5;
	color: var(--css-text);
}

.css-prefs__overlay {
	position: absolute;
	inset: 0;
	background: var(--css-overlay);
}
.css-prefs--osint .css-prefs__overlay {
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(6px);
}

.css-prefs__dialog {
	position: relative;
	z-index: 1;
	background: var(--css-bg);
	border-radius: var(--css-radius);
	box-shadow: 0 8px 32px rgba(0,0,0,0.25);
	width: 90%;
	max-width: 560px;
	max-height: 85vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.css-prefs__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px 12px;
	border-bottom: 1px solid var(--css-border);
}
.css-prefs__header h2 {
	margin: 0;
	font-size: 18px;
	color: var(--css-text);
}
.css-prefs__close {
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: var(--css-text);
	padding: 0 4px;
}
.css-prefs__close:focus-visible {
	outline: 3px solid var(--css-primary);
	outline-offset: 2px;
}

.css-prefs__body {
	padding: 16px 24px;
	overflow-y: auto;
	flex: 1;
}
.css-prefs__body > p { margin: 0 0 16px; }

.css-pref-category {
	padding: 14px 0;
	border-bottom: 1px solid var(--css-border);
}
.css-pref-category:last-child { border-bottom: none; }

.css-pref-category__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}
.css-pref-category__label {
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
}
.css-pref-category__desc {
	margin: 6px 0 0;
	color: var(--css-text);
	opacity: 0.75;
	font-size: 13px;
}

/* ── Toggle switch ─────────────────────────────────────────────────── */
.css-toggle-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}
.css-toggle {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.css-toggle__slider {
	display: inline-block;
	width: 44px;
	height: 24px;
	background: #ccc;
	border-radius: 12px;
	position: relative;
	cursor: pointer;
	transition: background 0.2s;
}
.css-toggle__slider::after {
	content: '';
	position: absolute;
	width: 18px;
	height: 18px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.2s;
}
.css-toggle:checked + .css-toggle__slider {
	background: var(--css-primary);
}
.css-toggle:checked + .css-toggle__slider::after {
	transform: translateX(20px);
}
.css-toggle:disabled + .css-toggle__slider {
	opacity: 0.6;
	cursor: not-allowed;
}
.css-toggle:focus-visible + .css-toggle__slider {
	outline: 3px solid var(--css-primary);
	outline-offset: 2px;
}

.css-prefs__footer {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	padding: 12px 24px 20px;
	border-top: 1px solid var(--css-border);
}

.css-pref-category--dns {
	margin-top: 12px;
	padding-top: 16px;
	border-top: 2px solid var(--css-primary);
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 600px) {
	.css-banner__inner {
		flex-direction: column;
		text-align: center;
	}
	.css-banner__actions {
		justify-content: center;
		width: 100%;
	}
	.css-btn {
		flex: 1;
		text-align: center;
	}
	.css-osint-radar { display: none; }
	.css-osint-header { justify-content: center; }
	.css-osint-footer-bar { justify-content: center; }
}
