/* Step 7: Full Cyberpunk/Batman Fusion - Rodygin-Inspired FUI Design */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600;700&display=swap');

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	font-family: 'Rajdhani', sans-serif;
	background: #0a0a0a;
	background-image: 
		radial-gradient(circle at 20% 50%, var(--color-base-rgba-01) 0%, transparent 50%),
		radial-gradient(circle at 80% 80%, var(--color-base-rgba-01) 0%, transparent 50%),
		radial-gradient(circle at 50% 20%, var(--color-base-rgba-01) 0%, transparent 50%),
		linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
	color: #e0e0e0;
	line-height: 1.6;
	font-weight: 400;
	letter-spacing: 0.5px;
	min-height: 100vh;
	position: relative;
	overflow-x: hidden;
}

body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: 
		repeating-linear-gradient(0deg, transparent, transparent 2px, var(--color-base-rgba-01) 2px, var(--color-base-rgba-01) 4px),
		repeating-linear-gradient(90deg, transparent, transparent 2px, var(--color-base-rgba-01) 2px, var(--color-base-rgba-01) 4px);
	pointer-events: none;
	z-index: 0;
	animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
	0% { transform: translateY(0); }
	100% { transform: translateY(4px); }
}

body::after {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: 
		radial-gradient(circle at 10% 20%, var(--color-base-rgba-01) 0%, transparent 30%),
		radial-gradient(circle at 90% 80%, var(--color-base-rgba-01) 0%, transparent 30%);
	pointer-events: none;
	z-index: 0;
	animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 0.5; }
	50% { opacity: 1; }
}

body > *:not(.style-control) {
	max-width: 1200px;
	margin-inline: auto;
	padding: 2em;
	position: relative;
	z-index: 1;
}

h1 {
	font-family: 'Orbitron', sans-serif;
	color: var(--highlight-base);
	text-shadow: 
		0 0 10px var(--highlight-rgba-08),
		0 0 20px var(--highlight-rgba-05),
		0 0 30px var(--highlight-rgba-03),
		0 0 40px var(--highlight-rgba-01);
	font-weight: 900;
	font-size: 3em;
	letter-spacing: 4px;
	text-transform: uppercase;
	text-align: center;
	margin-bottom: 0.5em;
	margin-top: 100px;
	position: relative;
	animation: glow 2s ease-in-out infinite alternate;
	overflow: visible;
}

h1::before {
	content: '';
	position: absolute;
	top: -80px;
	left: 50%;
	transform: translateX(-50%);
	width: 30%;
	max-width: 300px;
	height: 0;
	padding-bottom: 10%;
	background-image: url('batman.svg');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	filter: drop-shadow(0 0 8px var(--highlight-rgba-05)) drop-shadow(0 0 15px var(--highlight-rgba-03));
	margin: 20px;
}

@keyframes glow {
	from {
		text-shadow: 
			0 0 10px var(--highlight-rgba-08),
			0 0 20px var(--highlight-rgba-05),
			0 0 30px var(--highlight-rgba-03);
	}
	to {
		text-shadow: 
			0 0 15px var(--highlight-base),
			0 0 25px var(--highlight-rgba-08),
			0 0 35px var(--highlight-rgba-05),
			0 0 45px var(--highlight-rgba-03);
	}
}


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

h2 {
	font-family: 'Orbitron', sans-serif;
	color: var(--color-base);
	border-bottom: 1px solid var(--color-base-rgba-05);
	padding-bottom: 0.5em;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-top: 0;
	text-shadow: 
		0 0 10px var(--color-base-rgba-05),
		0 0 20px var(--color-base-rgba-03);
}

h2::before {
	content: '▶ ';
	color: var(--color-base);
	font-size: 0.8em;
	text-shadow: 0 0 5px var(--color-base);
}

h3 {
	font-family: 'Orbitron', sans-serif;
	color: var(--color-light);
	font-weight: 700;
	letter-spacing: 1px;
	text-shadow: 
		0 0 8px var(--color-base-rgba-05),
		0 0 15px var(--color-base-rgba-03);
}

h4 {
	font-family: 'Rajdhani', sans-serif;
	color: var(--color-base);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-shadow: 
		0 0 5px var(--color-base-rgba-05),
		0 0 10px var(--color-base-rgba-03);
}

h4::before {
	content: '▸ ';
	color: var(--color-base);
	text-shadow: 0 0 5px var(--color-base);
}

section {
	margin-block: 3em;
	padding: 2em;
	background: rgba(26, 26, 26, 0.85);
	border: 1px solid var(--color-base-rgba-05);
	border-top: 1px solid var(--highlight-rgba-05);
	border-left: 1px solid var(--color-base-rgba-05);
	box-shadow: 
		0 4px 20px rgba(0, 0, 0, 0.7),
		inset 0 0 30px var(--color-base-rgba-01),
		0 0 40px var(--color-base-rgba-01),
		inset -2px 0 10px var(--color-base-rgba-01);
	display: grid;
	gap: 1.5em;
	position: relative;
	backdrop-filter: blur(2px);
	transition: all 0.3s ease;
}

section:hover {
	box-shadow: 
		0 6px 30px rgba(0, 0, 0, 0.8),
		inset 0 0 40px var(--color-base-rgba-01),
		0 0 60px var(--color-base-rgba-01),
		inset -2px 0 15px var(--color-base-rgba-01);
	border-top-color: var(--highlight-rgba-05);
}

section::before {
	content: '';
	position: absolute;
	width: 1px;
	height: 1px;
	top: -1px;
	left: -1px;
	background: var(--color-base);
	box-shadow: 
		0 0 3px var(--color-base),
		0 0 6px var(--color-base-rgba-05);
	z-index: 2;
	animation: corner-pulse 2s ease-in-out infinite;
}

@keyframes corner-pulse {
	0%, 100% { 
		opacity: 1;
	}
	50% { 
		opacity: 0.7;
	}
}

section::after {
	content: '';
	position: absolute;
	width: 1px;
	height: 1px;
	bottom: -1px;
	right: -1px;
	background: var(--highlight-base);
	box-shadow: 
		0 0 3px var(--highlight-base),
		0 0 6px var(--highlight-rgba-05);
	z-index: 2;
	animation: corner-pulse 2s ease-in-out infinite 1s;
}

section > * {
	margin: 0;
}

table {
	display: flex;
	flex-direction: row;
	gap: 1.5em;
	width: 100%;
	font-family: 'Rajdhani', sans-serif;
	margin: 1em 0;
	position: relative;
	flex-wrap: wrap;
}

tbody {
	display: contents;
}

thead {
	display: contents;
}

table::before {
	content: 'DATA TABLE';
	position: absolute;
	top: -25px;
	left: 0;
	font-family: 'Orbitron', sans-serif;
	font-size: 0.7em;
	color: var(--color-base);
	letter-spacing: 2px;
	text-shadow: 0 0 5px var(--color-base);
}

tr {
	display: flex;
	flex-direction: column;
	flex: 0 1 clamp(250px, calc((100% - 3em) / 3), 100%);
	background: rgba(15, 15, 15, 0.9);
	border: 1px solid var(--color-base-rgba-05);
	padding: 1.5em;
	position: relative;
	transition: all 0.2s ease;
	box-shadow: 
		inset 0 0 20px var(--color-base-rgba-01),
		0 0 15px var(--color-base-rgba-01);
}

tr::before {
	content: '';
	position: absolute;
	width: 1px;
	height: 1px;
	top: -1px;
	left: -1px;
	background: var(--color-base);
	box-shadow: 
		0 0 3px var(--color-base),
		0 0 6px var(--color-base-rgba-05);
	z-index: 2;
}

tr::after {
	content: '';
	position: absolute;
	width: 1px;
	height: 1px;
	bottom: -1px;
	right: -1px;
	background: var(--highlight-base);
	box-shadow: 
		0 0 3px var(--highlight-base),
		0 0 6px var(--highlight-rgba-05);
	z-index: 2;
}

tr:hover {
	background: rgba(15, 15, 15, 0.95);
	box-shadow: 
		inset 0 0 30px var(--color-base-rgba-01),
		0 0 25px var(--color-base-rgba-03);
	transform: translateY(-2px);
}

tr * {
	border: none;
	padding: 0;
	margin: 0;
}

th {
	text-align: left;
	font-weight: 700;
	color: var(--color-base);
	background: transparent;
	font-family: 'Orbitron', sans-serif;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 0.7em;
	width: auto;
	text-shadow: 
		0 0 5px var(--color-base-rgba-05),
		0 0 10px var(--color-base-rgba-03);
	border: none;
	position: static;
	margin-bottom: 0.75em;
}

th::after {
	display: none;
}

td {
	color: #e0e0e0;
	font-weight: 400;
	font-size: 1.2em;
	font-family: 'Rajdhani', sans-serif;
	line-height: 1.4;
	text-shadow: 0 0 2px rgba(224, 224, 224, 0.3);
}

blockquote {
	margin: 1.5em 0;
	padding: 1.5em 2em;
	border-left: 1px solid var(--highlight-rgba-05);
	font-style: italic;
	color: var(--highlight-base);
	font-size: 1.1em;
	background: var(--highlight-rgba-01);
	box-shadow: 
		inset 0 0 30px var(--highlight-rgba-01),
		0 0 25px var(--highlight-rgba-03),
		inset -1px 0 10px var(--highlight-rgba-01);
	text-shadow: 
		0 0 5px var(--highlight-rgba-03),
		0 0 10px var(--highlight-rgba-01);
	position: relative;
}

blockquote::before {
	content: '"';
	position: absolute;
	left: 10px;
	top: -10px;
	font-size: 3em;
	color: var(--highlight-rgba-03);
	font-family: serif;
}

pre {
	background: rgba(15, 15, 15, 0.95);
	padding: 1.5em;
	border: 1px solid var(--color-base-rgba-05);
	border-left: 1px solid var(--color-base-rgba-05);
	color: var(--color-base);
	font-family: 'Courier New', monospace;
	letter-spacing: 0.5px;
	overflow-x: auto;
	box-shadow: 
		inset 0 0 30px var(--color-base-rgba-03),
		0 0 30px var(--color-base-rgba-03),
		inset -3px 0 15px var(--color-base-rgba-01);
	text-shadow: 
		0 0 5px var(--color-base-rgba-08),
		0 0 10px var(--color-base-rgba-03);
	position: relative;
}

pre::before {
	content: 'TERMINAL';
	position: absolute;
	top: -20px;
	left: 0;
	font-family: 'Orbitron', sans-serif;
	font-size: 0.7em;
	color: var(--color-base);
	letter-spacing: 2px;
	text-shadow: 0 0 5px var(--color-base);
}

strong {
	color: var(--highlight-base);
	font-weight: 700;
	text-shadow: 
		0 0 5px var(--highlight-rgba-05),
		0 0 10px var(--highlight-rgba-03);
}

em {
	color: var(--highlight-base);
	font-style: italic;
	text-shadow: 
		0 0 5px var(--highlight-rgba-03),
		0 0 10px var(--highlight-rgba-01);
}

ul, ol {
	padding-left: 2em;
	display: flex;
	flex-direction: column;
	gap: 0.5em;
}

li {
	margin: 0;
	position: relative;
	padding-left: 0.5em;
	transition: transform 0.2s ease;
}

li:hover {
	transform: translateX(5px);
}

ul li::marker {
	color: var(--color-base);
	text-shadow: 
		0 0 5px var(--color-base-rgba-05),
		0 0 10px var(--color-base-rgba-03);
}

ol li::marker {
	color: var(--highlight-base);
	text-shadow: 
		0 0 5px var(--highlight-rgba-05),
		0 0 10px var(--highlight-rgba-03);
}

dt {
	font-family: 'Orbitron', sans-serif;
	color: var(--highlight-base);
	font-weight: 700;
	margin-top: 1em;
	text-shadow: 
		0 0 5px var(--highlight-rgba-05),
		0 0 10px var(--highlight-rgba-03);
	position: relative;
	padding-left: 15px;
}

dt::before {
	content: '◄';
	position: absolute;
	left: 0;
	color: var(--color-base);
	text-shadow: 0 0 5px var(--color-base);
}

dd {
	margin-left: 1.5em;
	color: #ccc;
	margin-bottom: 0.5em;
	padding-left: 10px;
	border-left: 1px solid var(--color-base-rgba-01);
}

p {
	text-shadow: 0 0 2px rgba(224, 224, 224, 0.3);
}

figure {
	margin: 2em 0;
	padding: 2em;
	background: rgba(26, 26, 26, 0.85);
	border: 1px solid var(--color-base-rgba-05);
	border-top: 1px solid var(--highlight-rgba-05);
	box-shadow: 
		0 4px 20px rgba(0, 0, 0, 0.7),
		inset 0 0 30px var(--color-base-rgba-01),
		0 0 40px var(--color-base-rgba-01);
	display: flex;
	gap: 2em;
	align-items: center;
	backdrop-filter: blur(2px);
	position: relative;
	transition: all 0.3s ease;
}

figure::before {
	content: '';
	position: absolute;
	width: 1px;
	height: 1px;
	top: -1px;
	left: -1px;
	background: var(--color-base);
	box-shadow: 
		0 0 3px var(--color-base),
		0 0 6px var(--color-base-rgba-05);
	z-index: 2;
	animation: corner-pulse 2s ease-in-out infinite;
}

figure::after {
	content: '';
	position: absolute;
	width: 1px;
	height: 1px;
	bottom: -1px;
	right: -1px;
	background: var(--highlight-base);
	box-shadow: 
		0 0 3px var(--highlight-base),
		0 0 6px var(--highlight-rgba-05);
	z-index: 2;
	animation: corner-pulse 2s ease-in-out infinite 1s;
}

figure:hover {
	box-shadow: 
		0 6px 30px rgba(0, 0, 0, 0.8),
		inset 0 0 40px var(--color-base-rgba-01),
		0 0 60px var(--color-base-rgba-01);
	border-top-color: var(--highlight-rgba-05);
}

figure img {
	flex: 0 0 300px;
	max-width: 300px;
	border: 2px solid var(--color-base);
	box-shadow: 
		0 0 10px var(--color-base-rgba-03),
		0 0 20px var(--color-base-rgba-01);
	transition: all 0.3s ease;
}

figure:hover img {
	box-shadow: 
		0 0 15px var(--color-base-rgba-05),
		0 0 30px var(--color-base-rgba-03);
	border-color: var(--highlight-base);
}

figure blockquote {
	flex: 1;
	margin: 0;
}

h1 + p {
	margin-top: -0.5em;
	margin-bottom: 1.5em;
	font-family: 'Rajdhani', sans-serif;
}

h1 + p a {
	color: var(--color-base);
	text-decoration: none;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: all 0.3s ease;
	text-shadow: 
		0 0 5px var(--color-base-rgba-05),
		0 0 10px var(--color-base-rgba-03);
	position: relative;
	padding-left: 20px;
}

h1 + p a::before {
	content: '◄';
	position: absolute;
	left: 0;
	color: var(--color-base);
	text-shadow: 0 0 5px var(--color-base);
	transition: all 0.3s ease;
}

h1 + p a:hover {
	color: var(--highlight-base);
	text-shadow: 
		0 0 8px var(--highlight-rgba-05),
		0 0 15px var(--highlight-rgba-03);
}

h1 + p a:hover::before {
	color: var(--highlight-base);
	text-shadow: 0 0 8px var(--highlight-base);
	transform: translateX(-5px);
}

@media (max-width: 768px) {
	figure {
		flex-direction: column;
	}
	
	figure img {
		flex: 0 0 auto;
	}
}

