/* ===== Local Fonts ===== */
@font-face {
	font-family: 'Comic Neue';
	src: url('/ComicNeue-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Comic Neue';
	src: url('/ComicNeue-Italic.ttf') format('truetype');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Comic Neue';
	src: url('/ComicNeue-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'PxPlus HP 100LX';
	src: url('/PxPlus_HP_100LX_10x11.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--bg: #0a0a0f;
	--text: #e0e0e8;
	--text-muted: #8888a0;
	--glass-bg: rgba(255, 255, 255, 0.04);
	--glass-border: rgba(255, 255, 255, 0.08);
	--accent-purple: #a855f7;
	--accent-pink: #ec4899;
	--accent-cyan: #06b6d4;
	--accent-blue: #6366f1;
	--gradient-main: linear-gradient(135deg, var(--accent-purple), var(--accent-pink), var(--accent-cyan));
	--gradient-shift: linear-gradient(270deg, var(--accent-purple), var(--accent-pink), var(--accent-blue), var(--accent-cyan));
}

html {
	background: var(--bg);
	color: var(--text);
	font-family: 'Comic Neue', 'Inter', system-ui, -apple-system, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body {
	min-height: 100vh;
	position: relative;
}

.font-retro {
	font-family: 'PxPlus HP 100LX', monospace;
}

/* ===== "elsie" Easter Egg Watermark ===== */
body::before {
	content: "elsie";
	position: fixed;
	bottom: 1rem;
	right: 1.5rem;
	font-size: 0.7rem;
	color: rgba(255, 255, 255, 0.06);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	pointer-events: none;
	z-index: 9999;
}

/* ===== Aurora Background ===== */
.bg-aurora {
	position: fixed;
	inset: -50%;
	width: 200%;
	height: 200%;
	background: conic-gradient(
		from 0deg,
		rgba(168, 85, 247, 0.15),
		rgba(236, 72, 153, 0.1),
		rgba(99, 102, 241, 0.15),
		rgba(6, 182, 212, 0.08),
		rgba(168, 85, 247, 0.15)
	);
	animation: aurora-rotate 30s linear infinite;
	z-index: -3;
	pointer-events: none;
}

@keyframes aurora-rotate {
	to { transform: rotate(360deg); }
}

/* ===== Noise Overlay ===== */
.bg-noise {
	position: fixed;
	inset: 0;
	opacity: 0.03;
	z-index: -1;
	pointer-events: none;
}

.bg-noise svg {
	width: 100%;
	height: 100%;
}

/* ===== CRT Scanlines ===== */
.scanlines {
	position: fixed;
	inset: 0;
	background: repeating-linear-gradient(
		0deg,
		rgba(0, 0, 0, 0.03) 0px,
		rgba(0, 0, 0, 0.03) 1px,
		transparent 1px,
		transparent 3px
	);
	pointer-events: none;
	z-index: 9998;
}

/* ===== Floating Orbs ===== */
.orb {
	position: fixed;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.35;
	pointer-events: none;
	z-index: -2;
	animation: orb-float 20s ease-in-out infinite;
}

.orb:nth-child(1) {
	width: 400px;
	height: 400px;
	background: var(--accent-purple);
	top: -10%;
	left: -5%;
	animation-delay: 0s;
}

.orb:nth-child(2) {
	width: 350px;
	height: 350px;
	background: var(--accent-pink);
	top: 50%;
	right: -10%;
	animation-delay: -7s;
	animation-duration: 25s;
}

.orb:nth-child(3) {
	width: 300px;
	height: 300px;
	background: var(--accent-cyan);
	bottom: -5%;
	left: 30%;
	animation-delay: -14s;
	animation-duration: 22s;
}

@keyframes orb-float {
	0%, 100% { transform: translate(0, 0) scale(1); }
	25% { transform: translate(30px, -40px) scale(1.05); }
	50% { transform: translate(-20px, 20px) scale(0.95); }
	75% { transform: translate(15px, 35px) scale(1.02); }
}

/* ===== Page Wrapper ===== */
.page-wrapper {
	position: relative;
	max-width: 56rem;
	margin: 0 auto;
	padding: 2rem 1.5rem;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* ===== Header ===== */
header {
	text-align: center;
	padding: 4rem 0 2rem;
}

h1 {
	font-size: 4rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
	background: var(--gradient-shift);
	background-size: 300% 300%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: gradient-shift 6s ease-in-out infinite;
}

@keyframes gradient-shift {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

/* ===== Glitch Text Effect ===== */
.glitch {
	position: relative;
}

.glitch::before,
.glitch::after {
	content: attr(data-text);
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--bg);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	background: var(--gradient-shift);
	background-size: 300% 300%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: gradient-shift 6s ease-in-out infinite;
}

.glitch::before {
	animation: glitch-jitter-1 3s infinite linear alternate-reverse;
	clip-path: inset(20% 0 60% 0);
	color: var(--accent-cyan);
}

.glitch::after {
	animation: glitch-jitter-2 2.5s infinite linear alternate-reverse;
	clip-path: inset(60% 0 10% 0);
	color: var(--accent-pink);
}

@keyframes glitch-jitter-1 {
	0%, 90%, 100% { transform: translate(0); }
	92% { transform: translate(-3px, 1px); }
	94% { transform: translate(2px, -1px); }
	96% { transform: translate(-1px, 2px); }
	98% { transform: translate(3px, 0px); }
}

@keyframes glitch-jitter-2 {
	0%, 88%, 100% { transform: translate(0); }
	90% { transform: translate(2px, -1px); }
	93% { transform: translate(-3px, 2px); }
	95% { transform: translate(1px, -2px); }
	97% { transform: translate(-2px, 1px); }
}

/* ===== Typing Cursor ===== */
.typing-cursor::after {
	content: "|";
	animation: blink-cursor 0.8s step-end infinite;
	color: var(--accent-cyan);
	font-weight: 400;
}

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

header p {
	margin-top: 0.75rem;
	color: var(--text-muted);
	font-size: 0.95rem;
	max-width: 40ch;
	margin-inline: auto;
	line-height: 1.5;
}

/* ===== Pill Buttons ===== */
.pill-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

.pill-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 1.5rem;
	border: none;
	border-radius: 9999px;
	background: var(--glass-bg);
	color: var(--text);
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	cursor: pointer;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	border: 1px solid var(--glass-border);
}

.pill-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 9999px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.pill-btn:hover {
	transform: translateY(-2px);
}

.pill-btn:hover::before {
	opacity: 1;
}

.pill-btn--purple::before {
	background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(99, 102, 241, 0.15));
}
.pill-btn--purple:hover {
	box-shadow: 0 4px 20px rgba(168, 85, 247, 0.2);
}

.pill-btn--pink::before {
	background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(168, 85, 247, 0.15));
}
.pill-btn--pink:hover {
	box-shadow: 0 4px 20px rgba(236, 72, 153, 0.2);
}

.pill-btn--blue::before {
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(6, 182, 212, 0.15));
}
.pill-btn--blue:hover {
	box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

.pill-btn--lavender::before {
	background: linear-gradient(135deg, rgba(167, 139, 250, 0.25), rgba(196, 181, 253, 0.15));
}
.pill-btn--lavender:hover {
	box-shadow: 0 4px 20px rgba(167, 139, 250, 0.2);
}

.pill-btn span {
	position: relative;
	z-index: 1;
}

/* ===== Glass Card ===== */
.glass-card {
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: 24px;
	padding: 2.5rem;
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}

.glass-card.content {
	flex: 1;
	margin-top: 1rem;
	animation: card-breathe 8s ease-in-out infinite;
}

@keyframes card-breathe {
	0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.05); }
	50% { box-shadow: 0 0 40px rgba(168, 85, 247, 0.12), 0 0 80px rgba(236, 72, 153, 0.05); }
}

/* ===== Content Typography ===== */
.glass-card h2 {
	font-size: 1.6rem;
	font-weight: 700;
	margin-top: 3rem;
	margin-bottom: 0.75rem;
	scroll-margin-top: 1rem;
	background: var(--gradient-main);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.glass-card h2:first-child {
	margin-top: 0;
}

.glass-card p {
	margin-bottom: 1rem;
	color: var(--text);
	text-shadow: 0 0 30px rgba(168, 85, 247, 0.08);
}

.glass-card ul, .glass-card ol {
	margin-bottom: 1rem;
	padding-left: 1.5rem;
}

.glass-card li {
	margin-bottom: 0.4rem;
}

.glass-card em {
	color: var(--accent-pink);
	font-style: italic;
}

/* ===== Links ===== */
a {
	color: var(--accent-cyan);
	text-decoration: none;
	position: relative;
	transition: color 0.2s ease;
}

a::after {
	content: "";
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 0;
	height: 1px;
	background: var(--gradient-main);
	transition: width 0.3s ease;
}

a:hover {
	color: var(--accent-purple);
}

a:hover::after {
	width: 100%;
}

a:visited {
	color: var(--accent-pink);
}

a:active {
	transform: scale(0.97);
}

/* ===== Images ===== */
img {
	max-width: 100%;
	height: auto;
	border-radius: 16px;
	border: 1px solid var(--glass-border);
	transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

img:hover {
	transform: scale(1.01) rotate(-0.5deg);
	box-shadow: 0 8px 40px rgba(168, 85, 247, 0.25), 0 0 60px rgba(236, 72, 153, 0.1);
	filter: saturate(1.15);
}

/* ===== Rainbow Shimmer Text ===== */
.rainbow-text {
	background: linear-gradient(
		90deg,
		#ff0000, #ff8800, #ffff00, #00ff00, #00ffff, #0088ff, #ff00ff, #ff0000
	);
	background-size: 400% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: rainbow-scroll 4s linear infinite;
}

@keyframes rainbow-scroll {
	0% { background-position: 0% 50%; }
	100% { background-position: 400% 50%; }
}

/* ===== Wiggle Effect ===== */
.wiggle:hover {
	animation: wiggle-shake 0.4s ease-in-out;
}

@keyframes wiggle-shake {
	0%, 100% { transform: rotate(0deg); }
	20% { transform: rotate(-3deg); }
	40% { transform: rotate(3deg); }
	60% { transform: rotate(-2deg); }
	80% { transform: rotate(2deg); }
}

/* ===== Marquee Ticker ===== */
.marquee-ticker {
	overflow: hidden;
	white-space: nowrap;
	background: linear-gradient(90deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.15), rgba(6, 182, 212, 0.15));
	border: 1px solid var(--glass-border);
	border-radius: 9999px;
	padding: 0.4rem 0;
	margin: 1.5rem 0;
	font-family: 'PxPlus HP 100LX', monospace;
	font-size: 0.85rem;
	color: var(--accent-cyan);
}

.marquee-ticker .marquee-inner {
	display: inline-block;
	animation: marquee-scroll 20s linear infinite;
	padding-left: 100%;
}

@keyframes marquee-scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-100%); }
}

/* ===== Cursor Sparkle Trail ===== */
.sparkle {
	position: fixed;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	pointer-events: none;
	z-index: 9997;
	animation: sparkle-fade 0.6s ease-out forwards;
}

@keyframes sparkle-fade {
	0% { opacity: 1; transform: scale(1); }
	100% { opacity: 0; transform: scale(0); }
}

/* ===== Confetti Burst ===== */
.confetti-piece {
	position: fixed;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	pointer-events: none;
	z-index: 10000;
	animation: confetti-fly 1s ease-out forwards;
}

@keyframes confetti-fly {
	0% {
		opacity: 1;
		transform: translate(0, 0) rotate(0deg) scale(1);
	}
	100% {
		opacity: 0;
		transform: translate(var(--confetti-x), var(--confetti-y)) rotate(var(--confetti-r)) scale(0);
	}
}

/* ===== Footer ===== */
footer {
	text-align: center;
	padding: 2rem 0 1.5rem;
	margin-top: 2rem;
}

.footer-divider {
	height: 2px;
	background: var(--gradient-main);
	opacity: 0.4;
	margin-bottom: 1.5rem;
	border: none;
}

footer p {
	color: var(--text-muted);
	font-size: 0.8rem;
}

.footer-vibes {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin-bottom: 1.25rem;
}

.footer-counter {
	font-family: 'PxPlus HP 100LX', monospace;
	font-size: 0.9rem;
	color: var(--accent-cyan);
	margin-top: 1rem;
	text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.footer-marquee {
	overflow: hidden;
	white-space: nowrap;
	margin: 1rem 0;
	font-family: 'PxPlus HP 100LX', monospace;
	font-size: 0.75rem;
	color: var(--text-muted);
	opacity: 0.7;
}

.footer-marquee .marquee-inner {
	display: inline-block;
	animation: marquee-scroll 25s linear infinite;
	padding-left: 100%;
}

/* ===== 404 Page ===== */
.error-code {
	font-size: clamp(6rem, 20vw, 12rem);
	font-weight: 900;
	line-height: 1;
	background: var(--gradient-shift);
	background-size: 300% 300%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: gradient-shift 6s ease-in-out infinite, error-float 3s ease-in-out infinite;
	text-align: center;
	margin: 2rem 0 1rem;
	text-shadow: 0 0 40px rgba(168, 85, 247, 0.3);
}

.error-code.font-retro {
	font-family: 'PxPlus HP 100LX', monospace;
}

@keyframes error-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

.error-message {
	text-align: center;
	color: var(--text-muted);
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
}

.error-subtitle {
	text-align: center;
	color: var(--text-muted);
	font-size: 0.9rem;
	font-style: italic;
	margin-bottom: 1.5rem;
}

.error-cat {
	display: block;
	width: 180px;
	height: 180px;
	object-fit: cover;
	border-radius: 50%;
	margin: 1rem auto;
	border: 3px solid var(--accent-pink);
	box-shadow: 0 0 30px rgba(236, 72, 153, 0.3);
}

.error-suggestions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin: 1.5rem 0;
}

.error-link {
	display: inline-flex;
	align-items: center;
	padding: 0.6rem 2rem;
	border-radius: 9999px;
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	color: var(--accent-cyan);
	font-size: 0.95rem;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.error-link::after {
	display: none;
}

.error-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 20px rgba(6, 182, 212, 0.2);
	background: rgba(6, 182, 212, 0.08);
}

/* ===== Blog Promo Banner ===== */
.blog-promo {
	position: relative;
	text-align: center;
	margin: 2.5rem 0;
	padding: 2.5rem 2rem;
	border-radius: 20px;
	background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.12), rgba(6, 182, 212, 0.1));
	border: 2px solid transparent;
	background-clip: padding-box;
	overflow: hidden;
	animation: promo-glow 4s ease-in-out infinite alternate;
}

.blog-promo::before {
	content: "";
	position: absolute;
	inset: -2px;
	border-radius: 22px;
	background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink), var(--accent-cyan), var(--accent-purple));
	background-size: 300% 300%;
	z-index: -1;
	animation: gradient-shift 4s ease-in-out infinite;
}

.blog-promo::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 20px;
	background: rgba(10, 10, 15, 0.85);
	z-index: -1;
}

@keyframes promo-glow {
	0% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.2), 0 0 60px rgba(236, 72, 153, 0.05); }
	100% { box-shadow: 0 0 30px rgba(236, 72, 153, 0.25), 0 0 80px rgba(168, 85, 247, 0.1); }
}

.blog-promo h2 {
	font-size: 2rem;
	font-weight: 900;
	letter-spacing: 0.15em;
	background: var(--gradient-shift);
	background-size: 300% 300%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: gradient-shift 4s ease-in-out infinite;
	margin-bottom: 0.5rem;
	margin-top: 0;
}

.blog-promo p {
	color: var(--text-muted);
	font-size: 1rem;
	margin-bottom: 1.25rem;
}

.blog-promo-btn {
	display: inline-block;
	padding: 0.75rem 2.5rem;
	border-radius: 9999px;
	background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
	color: #fff !important;
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.02em;
	transition: transform 0.25s ease, box-shadow 0.3s ease;
	-webkit-text-fill-color: #fff;
}

.blog-promo-btn::after {
	display: none;
}

.blog-promo-btn:hover {
	transform: translateY(-3px) scale(1.03);
	box-shadow: 0 6px 30px rgba(168, 85, 247, 0.4), 0 0 60px rgba(236, 72, 153, 0.15);
	color: #fff !important;
}

.blog-promo-btn:visited {
	color: #fff !important;
	-webkit-text-fill-color: #fff;
}

.blog-promo-sparkle {
	font-size: 1.5rem;
	animation: sparkle-float 3s ease-in-out infinite;
	display: inline-block;
}

.blog-promo-sparkle:first-child {
	margin-bottom: 0.5rem;
}

.blog-promo-sparkle:last-child {
	margin-top: 0.75rem;
}

@keyframes sparkle-float {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	50% { transform: translateY(-6px) rotate(10deg); }
}

/* ===== Blog List ===== */
.blog-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: 1.5rem;
}

.blog-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.5rem 2rem;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--glass-border);
	transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.3s ease;
	text-decoration: none;
	color: var(--text);
}

.blog-card::after {
	display: none;
}

.blog-card:hover {
	transform: translateY(-3px);
	background: rgba(255, 255, 255, 0.06);
	box-shadow: 0 8px 30px rgba(168, 85, 247, 0.15), 0 0 60px rgba(236, 72, 153, 0.05);
	color: var(--text);
}

.blog-card:visited {
	color: var(--text);
}

.blog-card-inner h3 {
	font-size: 1.2rem;
	font-weight: 700;
	background: var(--gradient-main);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 0.25rem;
}

.blog-card-inner time {
	font-size: 0.8rem;
	color: var(--text-muted);
}

.blog-card-inner p {
	margin-top: 0.5rem;
	font-size: 0.9rem;
	color: var(--text-muted);
	line-height: 1.5;
}

.blog-card-arrow {
	font-size: 1.5rem;
	color: var(--accent-purple);
	transition: transform 0.25s ease;
	flex-shrink: 0;
	margin-left: 1rem;
}

.blog-card:hover .blog-card-arrow {
	transform: translateX(4px);
}

/* ===== Blog Post ===== */
.blog-post-header {
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--glass-border);
}

.blog-post-header h2 {
	margin-top: 0 !important;
}

.blog-post-header time {
	font-size: 0.85rem;
	color: var(--text-muted);
}

.blog-post-body h2 {
	font-size: 1.4rem;
}

.blog-post-body h3 {
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--accent-cyan);
	margin-top: 2rem;
	margin-bottom: 0.5rem;
}

.blog-post-body blockquote {
	border-left: 3px solid var(--accent-purple);
	padding-left: 1rem;
	margin: 1.5rem 0;
	color: var(--text-muted);
	font-style: italic;
}

.blog-post-body code {
	background: rgba(168, 85, 247, 0.15);
	padding: 0.15em 0.4em;
	border-radius: 6px;
	font-size: 0.9em;
	color: var(--accent-pink);
}

.blog-post-body pre {
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid var(--glass-border);
	border-radius: 12px;
	padding: 1.25rem;
	overflow-x: auto;
	margin: 1.5rem 0;
}

.blog-post-body pre code {
	background: none;
	padding: 0;
	color: var(--text);
	font-size: 0.85rem;
	line-height: 1.6;
}

.blog-post-body table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
	font-size: 0.9rem;
}

.blog-post-body th {
	text-align: left;
	padding: 0.75rem 1rem;
	background: rgba(168, 85, 247, 0.1);
	border-bottom: 2px solid var(--accent-purple);
	color: var(--accent-purple);
	font-weight: 600;
}

.blog-post-body td {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--glass-border);
}

.blog-post-body hr {
	border: none;
	height: 1px;
	background: var(--gradient-main);
	opacity: 0.3;
	margin: 2.5rem 0;
}

/* ===== Vibe Buttons ===== */
.vibe-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--glass-border);
}

.vibe-btn {
	padding: 0.6rem 1.5rem;
	border: none;
	border-radius: 9999px;
	background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
	color: var(--text);
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 500;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
	border: 1px solid rgba(168, 85, 247, 0.3);
}

.vibe-btn:hover {
	transform: scale(1.05) translateY(-2px);
	box-shadow: 0 0 20px rgba(168, 85, 247, 0.3), 0 0 60px rgba(236, 72, 153, 0.1);
	background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(236, 72, 153, 0.35));
}

.vibe-btn:active {
	transform: scale(0.97);
}

/* ===== Back Link ===== */
.back-link {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 1.5rem;
	border-radius: 9999px;
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	color: var(--accent-cyan);
	font-size: 0.9rem;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.back-link::after {
	display: none;
}

.back-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 20px rgba(6, 182, 212, 0.2);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
	.page-wrapper {
		padding: 1rem;
	}

	header {
		padding: 2rem 0 1.5rem;
	}

	h1 {
		font-size: 2.5rem;
	}

	.glass-card {
		padding: 1.5rem;
		border-radius: 16px;
	}

	.pill-btn {
		padding: 0.4rem 1rem;
		font-size: 0.8rem;
	}

	.orb {
		opacity: 0.2;
	}

	.scanlines {
		display: none;
	}

	.marquee-ticker {
		margin: 1rem 0;
	}

	.error-suggestions {
		flex-direction: column;
		align-items: center;
	}
}

/* ===== EXTREMA NYA EFFEKTER ===== */

/* ===== Pulsating Neon Border on Glass Cards ===== */
.glass-card {
	position: relative;
}

.glass-card::before {
	content: "";
	position: absolute;
	inset: -2px;
	border-radius: 26px;
	background: linear-gradient(45deg, #ff006e, #8338ec, #3a86ff, #06d6a0, #ff006e);
	background-size: 400% 400%;
	animation: neon-border-flow 6s linear infinite;
	z-index: -1;
	opacity: 0.6;
}

.glass-card::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 24px;
	background: var(--bg);
	z-index: -1;
}

@keyframes neon-border-flow {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

/* ===== Floating Emoji Rain ===== */
.emoji-rain {
	position: fixed;
	top: -50px;
	font-size: 1.5rem;
	pointer-events: none;
	z-index: 9996;
	animation: emoji-fall linear forwards;
	opacity: 0.6;
}

@keyframes emoji-fall {
	0% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
	100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ===== Text Selection Styling ===== */
::selection {
	background: rgba(168, 85, 247, 0.5);
	color: #fff;
	text-shadow: 0 0 10px rgba(236, 72, 153, 0.8);
}

::-moz-selection {
	background: rgba(168, 85, 247, 0.5);
	color: #fff;
	text-shadow: 0 0 10px rgba(236, 72, 153, 0.8);
}

/* ===== Gradient Scrollbar ===== */
::-webkit-scrollbar {
	width: 10px;
}

::-webkit-scrollbar-track {
	background: var(--bg);
}

::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, var(--accent-purple), var(--accent-pink), var(--accent-cyan));
	border-radius: 9999px;
	border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, var(--accent-pink), var(--accent-cyan), var(--accent-purple));
}

/* ===== Hover Glow Effect for Headings ===== */
.glass-card h2:hover {
	text-shadow: 0 0 20px rgba(168, 85, 247, 0.6), 0 0 40px rgba(236, 72, 153, 0.4), 0 0 80px rgba(6, 182, 212, 0.2);
	filter: brightness(1.3);
	transition: filter 0.3s ease, text-shadow 0.3s ease;
}

/* ===== Neon Underline Links ===== */
.blog-post-body a {
	background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink), var(--accent-purple));
	background-size: 200% 2px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	padding-bottom: 2px;
	transition: background-size 0.4s ease, color 0.3s ease;
}

.blog-post-body a:hover {
	background-size: 200% 100%;
	color: #fff;
	-webkit-text-fill-color: #fff;
}

/* ===== Floating Action Pulse ===== */
.vibe-btn {
	position: relative;
}

.vibe-btn::after {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 9999px;
	background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
	opacity: 0;
	z-index: -1;
	animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
	0% { transform: scale(1); opacity: 0.4; }
	100% { transform: scale(1.3); opacity: 0; }
}

/* ===== Blog Card Gradient Border on Hover ===== */
.blog-card {
	position: relative;
	overflow: hidden;
}

.blog-card::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 16px;
	padding: 1px;
	background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink), var(--accent-cyan));
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.blog-card:hover::before {
	opacity: 1;
}

/* ===== Animated Gradient Divider ===== */
.footer-divider {
	height: 3px !important;
	background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink), var(--accent-cyan), var(--accent-blue), var(--accent-purple)) !important;
	background-size: 300% 100% !important;
	animation: divider-flow 4s linear infinite !important;
}

@keyframes divider-flow {
	0% { background-position: 0% 50%; }
	100% { background-position: 300% 50%; }
}

/* ===== Tilt Card Effect ===== */
.blog-card:hover {
	transform: translateY(-3px) perspective(600px) rotateX(2deg);
}

/* ===== Blockquote Neon Accent ===== */
.blog-post-body blockquote {
	border-left: 4px solid transparent !important;
	border-image: linear-gradient(180deg, var(--accent-purple), var(--accent-pink), var(--accent-cyan)) 1 !important;
	background: linear-gradient(135deg, rgba(168, 85, 247, 0.06), rgba(236, 72, 153, 0.04)) !important;
	padding: 1rem 1.5rem !important;
	border-radius: 0 12px 12px 0;
	position: relative;
}

/* ===== Code Block Neon ===== */
.blog-post-body pre {
	position: relative;
	border: 1px solid rgba(168, 85, 247, 0.3) !important;
	box-shadow: 0 0 15px rgba(168, 85, 247, 0.1), inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.blog-post-body pre::before {
	content: ">>> ";
	color: var(--accent-cyan);
	opacity: 0.5;
	font-family: 'PxPlus HP 100LX', monospace;
}

/* ===== Table Hover Row Highlight ===== */
.blog-post-body tr:hover td {
	background: rgba(168, 85, 247, 0.08);
	transition: background 0.2s ease;
}

/* ===== Mega Glow Footer Counter ===== */
.footer-counter {
	position: relative;
	display: inline-block;
	padding: 0.5rem 1.5rem;
	border-radius: 9999px;
	background: rgba(6, 182, 212, 0.08);
	border: 1px solid rgba(6, 182, 212, 0.2);
	animation: counter-glow 3s ease-in-out infinite alternate;
}

@keyframes counter-glow {
	0% { box-shadow: 0 0 10px rgba(6, 182, 212, 0.2), 0 0 30px rgba(6, 182, 212, 0.1); }
	100% { box-shadow: 0 0 20px rgba(6, 182, 212, 0.4), 0 0 60px rgba(168, 85, 247, 0.2), 0 0 100px rgba(236, 72, 153, 0.1); }
}

/* ===== Shake on Click ===== */
.vibe-btn:active,
.pill-btn:active {
	animation: click-shake 0.3s ease-in-out !important;
}

@keyframes click-shake {
	0%, 100% { transform: translate(0) rotate(0); }
	25% { transform: translate(-4px, 2px) rotate(-2deg); }
	50% { transform: translate(3px, -3px) rotate(1deg); }
	75% { transform: translate(-2px, 1px) rotate(-1deg); }
}

/* ===== Gradient Shadow on Images ===== */
img {
	box-shadow: 0 4px 20px rgba(168, 85, 247, 0.15), 0 0 40px rgba(236, 72, 153, 0.05);
}

/* ===== Retro CRT Flicker on Header ===== */
header h1 {
	text-shadow: 0 0 40px rgba(168, 85, 247, 0.3), 0 0 80px rgba(236, 72, 153, 0.15);
}

/* ===== Animated Background Gradient Mesh ===== */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	background:
		radial-gradient(ellipse at 20% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
		radial-gradient(ellipse at 80% 20%, rgba(236, 72, 153, 0.06) 0%, transparent 50%),
		radial-gradient(ellipse at 60% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
		radial-gradient(ellipse at 40% 30%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
	pointer-events: none;
	z-index: -2;
	animation: mesh-drift 20s ease-in-out infinite alternate;
}

@keyframes mesh-drift {
	0% { transform: scale(1) translate(0, 0); }
	50% { transform: scale(1.1) translate(20px, -10px); }
	100% { transform: scale(1) translate(-10px, 15px); }
}

/* ===== Typing Animation for Blog Titles ===== */
.blog-card-inner h3 {
	position: relative;
	display: inline-block;
}

.blog-card:hover .blog-card-inner h3 {
	animation: title-pop 0.4s ease-out;
}

@keyframes title-pop {
	0% { transform: scale(1); }
	50% { transform: scale(1.05); }
	100% { transform: scale(1); }
}

/* ===== Pill Button Shimmer ===== */
.pill-btn {
	background-image: linear-gradient(110deg, transparent 25%, rgba(255,255,255,0.08) 50%, transparent 75%);
	background-size: 250% 100%;
	animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.bg-aurora {
		animation: none;
	}

	.scanlines {
		display: none;
	}

	.glitch::before,
	.glitch::after {
		display: none;
	}

	.marquee-ticker .marquee-inner,
	.footer-marquee .marquee-inner {
		animation: none;
		padding-left: 1rem;
	}

	.sparkle,
	.confetti-piece {
		display: none;
	}
}
