/* ===== CSS VARIABLES ===== */
:root {
	/* Core colors */
	--color-primary: #ff3366;
	--color-secondary: #00d4ff;
	--color-tertiary: #00ff88;
	--color-warning: #ff9933;

	/* Type colors for posts */
	--color-local: #ff3366;
	--color-pixelfed: #ff9933;
	--color-pikaspath: #00ff88;
}

/* Dark theme (default) */
body[data-theme="dark"] {
	/* Background and surfaces */
	--bg-main: #0a0e1a;
	--bg-surface: #121825;
	--bg-elevated: #1a2236;
	--bg-hover: #222b44;
	--bg-gradient-start: #0a0e1a;
	--bg-gradient-end: #141b2d;

	/* Text colors */
	--text-primary: #e8eaef;
	--text-secondary: #9ca3b4;
	--text-muted: #6b7280;

	/* Effects */
	--grid-color: rgba(0, 212, 255, 0.03);
	--border-color: rgba(0, 212, 255, 0.2);
	--glow-color: rgba(0, 212, 255, 0.1);
}

/* Light theme - Black Sun aesthetic */
body[data-theme="light"] {
	/* Background and surfaces */
	--bg-main: #f8f9fa;
	--bg-surface: #ffffff;
	--bg-elevated: #f3f4f6;
	--bg-hover: #e5e7eb;
	--bg-gradient-start: #ffffff;
	--bg-gradient-end: #f3f4f6;

	/* Text colors */
	--text-primary: #111827;
	--text-secondary: #4b5563;
	--text-muted: #9ca3af;

	/* Effects */
	--grid-color: rgba(0, 0, 0, 0.02);
	--border-color: rgba(0, 0, 0, 0.1);
	--glow-color: rgba(0, 0, 0, 0.05);
}

/* Spacing and other constants remain the same */
:root {
	/* Spacing */
	--spacing-xs: 0.25rem;
	--spacing-sm: 0.5rem;
	--spacing-md: 1rem;
	--spacing-lg: 1.5rem;
	--spacing-xl: 2rem;
	--spacing-xxl: 3rem;

	/* Border radius */
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 12px;

	/* Transitions */
	--transition-fast: 150ms ease;
	--transition-base: 250ms ease;
	--transition-slow: 350ms ease;
}

/* ===== RESET & BASE ===== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-primary);
	background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
	min-height: 100vh;
	overflow-x: hidden;
	position: relative;
	transition: background var(--transition-slow), color var(--transition-base);
}

/* ===== BACKGROUND EFFECTS ===== */
.grid-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image:
		repeating-linear-gradient(0deg,
			transparent,
			transparent 49px,
			var(--grid-color) 49px,
			var(--grid-color) 50px),
		repeating-linear-gradient(90deg,
			transparent,
			transparent 49px,
			var(--grid-color) 49px,
			var(--grid-color) 50px);
	pointer-events: none;
	z-index: 1;
	transition: opacity var(--transition-base);
}

.scan-line {
	position: fixed;
	top: -100%;
	left: 0;
	right: 0;
	height: 100%;
	background: linear-gradient(180deg,
		transparent 0%,
		var(--glow-color) 50%,
		transparent 100%);
	animation: scan 8s linear infinite;
	pointer-events: none;
	z-index: 2;
}

/* Light theme adjustments for effects */
body[data-theme="light"] .scan-line {
	background: linear-gradient(180deg,
		transparent 0%,
		rgba(255, 51, 102, 0.05) 50%,
		transparent 100%);
}

@keyframes scan {
	0% { top: -100%; }
	100% { top: 100%; }
}

/* ===== HEADER ===== */
.site-header {
	position: relative;
	z-index: 10;
	padding: var(--spacing-xl) var(--spacing-lg);
	background: rgba(18, 24, 37, 0.8);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border-color);
	transition: background var(--transition-base);
}

body[data-theme="light"] .site-header {
	background: rgba(255, 255, 255, 0.9);
}

.header-content {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--spacing-lg);
}

.header-controls {
	display: flex;
	align-items: center;
	gap: var(--spacing-lg);
}

.logo-link {
	display: inline-block;
	transition: transform var(--transition-base);
}

.logo-link:hover {
	transform: scale(1.05);
}

.site-logo {
	height: 48px;
	width: auto;
	filter: drop-shadow(0 0 20px rgba(255, 51, 102, 0.5));
}

body[data-theme="light"] .site-logo {
	filter: drop-shadow(0 0 10px rgba(255, 51, 102, 0.3));
}

/* Theme Toggle Button -- REVISED FOR SMOOTH RENDERING */
.theme-toggle {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--bg-elevated);
	border: 1px solid var(--border-color);
	color: var(--color-secondary);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all var(--transition-base);
	position: relative;
	overflow: hidden; /* Helps clip any potential jagged edges */
	-webkit-mask-image: -webkit-radial-gradient(white, black); /* Webkit anti-aliasing fix */
}

.toggle-icon {
	font-size: 1.5rem;
	font-weight: bold;
	z-index: 1;
	line-height: 1; /* Prevents alignment issues */
	transition: transform var(--transition-slow);
}

.theme-toggle:hover {
	border-color: var(--color-secondary);
	box-shadow: 0 0 15px var(--color-secondary);
	transform: scale(1.1);
}

.theme-toggle:hover .toggle-icon {
	transform: rotate(180deg);
}

.theme-toggle:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px var(--bg-main), 0 0 0 4px var(--color-secondary);
}


body[data-theme="light"] .theme-toggle {
	background: var(--bg-elevated);
	border-color: var(--border-color);
	color: var(--color-pixelfed);
}

body[data-theme="light"] .theme-toggle:hover {
	border-color: var(--color-pixelfed);
	box-shadow: 0 0 15px var(--color-pixelfed);
}

body[data-theme="light"] .theme-toggle:focus-visible {
	box-shadow: 0 0 0 2px var(--bg-main), 0 0 0 4px var(--color-pixelfed);
}


.status-indicator {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
	padding: var(--spacing-sm) var(--spacing-md);
	background: rgba(0, 255, 136, 0.1);
	border: 1px solid rgba(0, 255, 136, 0.3);
	border-radius: var(--radius-lg);
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--color-tertiary);
}

.status-dot {
	width: 8px;
	height: 8px;
	background: var(--color-tertiary);
	border-radius: 50%;
	animation: pulse 2s ease-in-out infinite;
	box-shadow: 0 0 10px var(--color-tertiary);
}

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

/* ===== MAIN CONTAINER ===== */
.main-container {
	position: relative;
	z-index: 5;
	max-width: 1200px;
	margin: 0 auto;
	padding: var(--spacing-xxl) var(--spacing-lg);
}

.content-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--spacing-xxl);
}

@media (min-width: 900px) {
	.content-grid {
		grid-template-columns: 2fr 1fr;
	}
}

/* ===== DATA CARDS (Posts) ===== */
.data-card {
	background: rgba(26, 34, 54, 0.6);
	backdrop-filter: blur(10px);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	overflow: hidden;
	margin-bottom: var(--spacing-xl);
	transition: all var(--transition-base);
	position: relative;
}

body[data-theme="light"] .data-card {
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.data-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg,
		var(--color-primary) 0%,
		var(--color-secondary) 50%,
		var(--color-tertiary) 100%);
	opacity: 0;
	transition: opacity var(--transition-base);
}

.data-card.type-local::before {
	background: var(--color-local);
}

.data-card.type-pixelfed::before {
	background: var(--color-pixelfed);
}

.data-card.type-pikaspath::before {
	background: var(--color-pikaspath);
}

.data-card:hover {
	border-color: rgba(0, 212, 255, 0.4);
	box-shadow: 0 10px 40px var(--glow-color);
}

body[data-theme="light"] .data-card:hover {
	border-color: rgba(255, 51, 102, 0.3);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

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

/* Post type variations */
.data-card.type-local {
	border-color: rgba(255, 51, 102, 0.3);
}

.data-card.type-pixelfed {
	border-color: rgba(255, 153, 51, 0.3);
}

.data-card.type-pikaspath {
	border-color: rgba(0, 255, 136, 0.3);
}

.card-header {
	padding: var(--spacing-lg);
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.post-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: var(--spacing-sm);
	color: var(--text-primary);
	letter-spacing: -0.02em;
}

.post-metadata {
	display: flex;
	flex-wrap: wrap;
	gap: var(--spacing-sm);
}

.meta-chip {
	display: inline-flex;
	align-items: center;
	gap: var(--spacing-xs);
	padding: var(--spacing-xs) var(--spacing-sm);
	background: rgba(255, 255, 255, 0.05);
	border-radius: var(--radius-sm);
	font-size: 0.75rem;
	font-family: 'JetBrains Mono', monospace;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--text-secondary);
	transition: all var(--transition-fast);
}

.meta-chip.type-local {
	background: rgba(255, 51, 102, 0.1);
	color: var(--color-local);
	border: 0px solid rgba(255, 51, 102, 0.2);
}

.meta-chip.type-pixelfed {
	background: rgba(255, 153, 51, 0.1);
	color: var(--color-pixelfed);
	border: 0px solid rgba(255, 153, 51, 0.2);
}

.meta-chip.type-pikaspath {
	background: rgba(0, 255, 136, 0.1);
	color: var(--color-pikaspath);
	border: 0px solid rgba(0, 255, 136, 0.2);
}

.meta-chip svg {
	width: 14px;
	height: 14px;
}

.post-media {
	position: relative;
	overflow: hidden;
	background: var(--bg-main);
}

.post-media img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform var(--transition-slow);
}

.data-card:hover .post-media img {
	transform: scale(1.02);
}

.post-content {
	padding: var(--spacing-lg);
	color: var(--text-primary);
	line-height: 1.7;
}

.post-content p {
	margin-bottom: var(--spacing-md);
}

.post-content p:last-child {
	margin-bottom: 0;
}

.post-content a {
	color: var(--color-secondary);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: all var(--transition-fast);
}

.post-content a:hover {
	color: var(--color-tertiary);
	border-bottom-color: var(--color-tertiary);
}

.post-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-md);
}

.post-content h3 {
	font-size: 1.1rem;
	font-weight: 600;
	margin: var(--spacing-xl) 0 var(--spacing-md) 0;
	color: var(--color-secondary);
}

.card-footer {
	padding: var(--spacing-md) var(--spacing-lg);
	background: rgba(0, 0, 0, 0.2);
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.action-link {
	display: inline-flex;
	align-items: center;
	gap: var(--spacing-sm);
	padding: var(--spacing-sm) var(--spacing-lg);
	color: var(--text-primary);
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--radius-md);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
	transition: all var(--transition-base);
	font-family: 'JetBrains Mono', monospace;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	position: relative;
	overflow: hidden;
}

/* Color-coded action buttons with glows */
.action-link.action-local {
	background: linear-gradient(135deg, rgba(255, 51, 102, 0.15) 0%, rgba(255, 51, 102, 0.05) 100%);
	border-color: rgba(255, 51, 102, 0.4);
	color: var(--color-local);
}

.action-link.action-local::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle, rgba(255, 51, 102, 0.4) 0%, transparent 70%);
	transform: translate(-50%, -50%) scale(0);
	transition: transform var(--transition-slow);
}

.action-link.action-local:hover {
	background: linear-gradient(135deg, rgba(255, 51, 102, 0.3) 0%, rgba(255, 51, 102, 0.1) 100%);
	border-color: var(--color-local);
	box-shadow:
		0 0 20px rgba(255, 51, 102, 0.4),
		0 0 40px rgba(255, 51, 102, 0.2),
		inset 0 0 20px rgba(255, 51, 102, 0.1);
	transform: translateY(-2px) scale(1.02);
	animation: pulse-glow-local 1s ease-in-out infinite;
}

.action-link.action-local:hover::before {
	transform: translate(-50%, -50%) scale(2);
}

.action-link.action-pixelfed {
	background: linear-gradient(135deg, rgba(255, 153, 51, 0.15) 0%, rgba(255, 153, 51, 0.05) 100%);
	border-color: rgba(255, 153, 51, 0.4);
	color: var(--color-pixelfed);
}

.action-link.action-pixelfed::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle, rgba(255, 153, 51, 0.4) 0%, transparent 70%);
	transform: translate(-50%, -50%) scale(0);
	transition: transform var(--transition-slow);
}

.action-link.action-pixelfed:hover {
	background: linear-gradient(135deg, rgba(255, 153, 51, 0.3) 0%, rgba(255, 153, 51, 0.1) 100%);
	border-color: var(--color-pixelfed);
	box-shadow:
		0 0 20px rgba(255, 153, 51, 0.4),
		0 0 40px rgba(255, 153, 51, 0.2),
		inset 0 0 20px rgba(255, 153, 51, 0.1);
	transform: translateY(-2px) scale(1.02);
	animation: pulse-glow-pixelfed 1s ease-in-out infinite;
}

.action-link.action-pixelfed:hover::before {
	transform: translate(-50%, -50%) scale(2);
}

.action-link.action-pikaspath {
	background: linear-gradient(135deg, rgba(0, 255, 136, 0.15) 0%, rgba(0, 255, 136, 0.05) 100%);
	border-color: rgba(0, 255, 136, 0.4);
	color: var(--color-pikaspath);
}

.action-link.action-pikaspath::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle, rgba(0, 255, 136, 0.4) 0%, transparent 70%);
	transform: translate(-50%, -50%) scale(0);
	transition: transform var(--transition-slow);
}

.action-link.action-pikaspath:hover {
	background: linear-gradient(135deg, rgba(0, 255, 136, 0.3) 0%, rgba(0, 255, 136, 0.1) 100%);
	border-color: var(--color-pikaspath);
	box-shadow:
		0 0 20px rgba(0, 255, 136, 0.4),
		0 0 40px rgba(0, 255, 136, 0.2),
		inset 0 0 20px rgba(0, 255, 136, 0.1);
	transform: translateY(-2px) scale(1.02);
	animation: pulse-glow-pikaspath 1s ease-in-out infinite;
}

.action-link.action-pikaspath:hover::before {
	transform: translate(-50%, -50%) scale(2);
}

/* Glow animations for each button type */
@keyframes pulse-glow-local {
	0%, 100% {
		box-shadow:
			0 0 20px rgba(255, 51, 102, 0.4),
			0 0 40px rgba(255, 51, 102, 0.2),
			inset 0 0 20px rgba(255, 51, 102, 0.1);
	}
	50% {
		box-shadow:
			0 0 30px rgba(255, 51, 102, 0.6),
			0 0 60px rgba(255, 51, 102, 0.3),
			inset 0 0 30px rgba(255, 51, 102, 0.15);
	}
}

@keyframes pulse-glow-pixelfed {
	0%, 100% {
		box-shadow:
			0 0 20px rgba(255, 153, 51, 0.4),
			0 0 40px rgba(255, 153, 51, 0.2),
			inset 0 0 20px rgba(255, 153, 51, 0.1);
	}
	50% {
		box-shadow:
			0 0 30px rgba(255, 153, 51, 0.6),
			0 0 60px rgba(255, 153, 51, 0.3),
			inset 0 0 30px rgba(255, 153, 51, 0.15);
	}
}

@keyframes pulse-glow-pikaspath {
	0%, 100% {
		box-shadow:
			0 0 20px rgba(0, 255, 136, 0.4),
			0 0 40px rgba(0, 255, 136, 0.2),
			inset 0 0 20px rgba(0, 255, 136, 0.1);
	}
	50% {
		box-shadow:
			0 0 30px rgba(0, 255, 136, 0.6),
			0 0 60px rgba(0, 255, 136, 0.3),
			inset 0 0 30px rgba(0, 255, 136, 0.15);
	}
}

.action-link svg {
	width: 14px;
	height: 14px;
	transition: transform var(--transition-fast);
}

.action-link:hover svg {
	transform: translateX(3px);
	filter: drop-shadow(0 0 5px currentColor);
}

/* ===== ERROR CARD ===== */
.error-card .error-graphic {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.875rem;
	color: var(--color-primary);
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: var(--spacing-xl) 0;
	opacity: 0.8;
	letter-spacing: 0.2em;
}

/* ===== NAVIGATION CONTROLS ===== */
.navigation-controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: var(--spacing-lg);
	background: rgba(26, 34, 54, 0.6);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(0, 212, 255, 0.2);
	border-radius: var(--radius-lg);
	margin-top: var(--spacing-xl);
}

.nav-button {
	display: inline-flex;
	align-items: center;
	gap: var(--spacing-sm);
	padding: var(--spacing-sm) var(--spacing-md);
	background: rgba(0, 212, 255, 0.1);
	border: 1px solid rgba(0, 212, 255, 0.3);
	border-radius: var(--radius-md);
	color: var(--color-secondary);
	text-decoration: none;
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: all var(--transition-fast);
}

.nav-button:hover:not(.disabled) {
	background: rgba(0, 212, 255, 0.2);
	border-color: var(--color-secondary);
	transform: scale(1.05);
}

.nav-button.disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.nav-status {
	display: flex;
	align-items: center;
	gap: var(--spacing-xs);
	font-family: 'JetBrains Mono', monospace;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--text-primary);
}

.page-indicator {
	color: var(--color-secondary);
	text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.separator {
	color: var(--text-muted);
}

.page-total {
	color: var(--text-secondary);
}

/* ===== INFO PANEL (Sidebar) ===== */
.panel-card {
	background: rgba(26, 34, 54, 0.6);
	backdrop-filter: blur(10px);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	overflow: hidden;
	margin-bottom: var(--spacing-xl);
	transition: all var(--transition-base);
}

body[data-theme="light"] .panel-card {
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.panel-header {
	padding: var(--spacing-md) var(--spacing-lg);
	background: rgba(0, 0, 0, 0.3);
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

body[data-theme="light"] .panel-header {
	background: rgba(0, 0, 0, 0.05);
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.panel-title {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--text-secondary);
}

.panel-indicator {
	width: 6px;
	height: 6px;
	background: var(--color-tertiary);
	border-radius: 50%;
	opacity: 0.6;
}

.panel-indicator.blink {
	animation: blink 1s ease-in-out infinite;
}

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

.panel-content {
	padding: var(--spacing-lg);
}

.panel-content p {
	margin-bottom: var(--spacing-md);
	color: var(--text-primary);
	line-height: 1.6;
}

.panel-content p:last-child {
	margin-bottom: 0;
}

.data-sources {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-sm);
	margin-top: var(--spacing-lg);
}

.source-item {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
	font-size: 0.875rem;
	color: var(--text-secondary);
}

.source-indicator {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--text-muted);
}

.source-item.type-local .source-indicator {
	background: var(--color-local);
	box-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
}

.source-item.type-pixelfed .source-indicator {
	background: var(--color-pixelfed);
	box-shadow: 0 0 10px rgba(255, 153, 51, 0.5);
}

.source-item.type-pikaspath .source-indicator {
	background: var(--color-pikaspath);
	box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.source-item a {
	color: var(--text-secondary);
	text-decoration: none;
	transition: color var(--transition-fast);
}

.source-item a:hover {
	color: var(--color-secondary);
}

.highlight-link {
	color: var(--color-secondary);
	text-decoration: none;
	font-weight: 600;
	border-bottom: 1px solid transparent;
	transition: all var(--transition-fast);
}

.highlight-link:hover {
	color: var(--color-tertiary);
	border-bottom-color: var(--color-tertiary);
}

.stat-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: var(--spacing-xs) 0;
	font-size: 0.875rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-row:last-child {
	border-bottom: none;
}

.stat-label {
	color: var(--text-muted);
	font-family: 'JetBrains Mono', monospace;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 0.75rem;
}

.stat-value {
	color: var(--text-primary);
	font-weight: 600;
	font-family: 'JetBrains Mono', monospace;
}

/* ===== FOOTER ===== */
.site-footer {
	position: relative;
	z-index: 10;
	padding: var(--spacing-lg);
	background: rgba(18, 24, 37, 0.8);
	backdrop-filter: blur(10px);
	border-top: 1px solid var(--border-color);
	margin-top: var(--spacing-xxl);
}

body[data-theme="light"] .site-footer {
	background: rgba(255, 255, 255, 0.9);
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: var(--spacing-md);
	flex-wrap: wrap;
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--text-muted);
}

.footer-separator {
	color: var(--color-secondary);
	opacity: 0.5;
}

/* Light theme specific adjustments */
body[data-theme="light"] .status-dot {
	box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

body[data-theme="light"] .meta-chip {
	background: rgba(0, 0, 0, 0.05);
}

body[data-theme="light"] .meta-chip.type-local {
	background: rgba(255, 51, 102, 0.08);
	border-color: rgba(255, 51, 102, 0.3);
}

body[data-theme="light"] .meta-chip.type-pixelfed {
	background: rgba(255, 153, 51, 0.08);
	border-color: rgba(255, 153, 51, 0.3);
}

body[data-theme="light"] .meta-chip.type-pikaspath {
	background: rgba(0, 255, 136, 0.08);
	border-color: rgba(0, 255, 136, 0.3);
}

body[data-theme="light"] .post-content a {
	color: #0066cc;
}

body[data-theme="light"] .post-content a:hover {
	color: var(--color-primary);
	border-bottom-color: var(--color-primary);
}

body[data-theme="light"] .nav-button {
	background: rgba(0, 0, 0, 0.05);
	border-color: rgba(0, 0, 0, 0.2);
	color: var(--text-primary);
}

body[data-theme="light"] .nav-button:hover:not(.disabled) {
	background: rgba(255, 51, 102, 0.1);
	border-color: var(--color-primary);
}

body[data-theme="light"] .card-footer {
	background: var(--bg-elevated);
	border-top: 1px solid var(--border-color);
}

body[data-theme="light"] .navigation-controls {
	background: var(--bg-surface);
	border-color: var(--border-color);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
	backdrop-filter: blur(10px);
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
	.site-header {
		padding: var(--spacing-lg);
	}

	.site-logo {
		height: 36px;
	}

	.main-container {
		padding: var(--spacing-lg);
	}

	.content-grid {
		grid-template-columns: 1fr;
		gap: var(--spacing-xl);
	}

	.navigation-controls {
		flex-direction: column;
		gap: var(--spacing-lg);
		text-align: center;
	}

	.nav-button span {
		display: none;
	}

	.post-title {
		font-size: 1.125rem;
	}

	.meta-chip {
		font-size: 0.625rem;
	}
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.data-card {
	animation: fadeIn 0.6s ease backwards;
}

.data-card:nth-child(1) { animation-delay: 0.1s; }
.data-card:nth-child(2) { animation-delay: 0.2s; }
.data-card:nth-child(3) { animation-delay: 0.3s; }
.data-card:nth-child(4) { animation-delay: 0.4s; }
.data-card:nth-child(5) { animation-delay: 0.5s; }

/* ===== SELECTION ===== */
::selection {
	background: rgba(0, 212, 255, 0.3);
	color: var(--text-primary);
}

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

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

::-webkit-scrollbar-thumb {
	background: rgba(0, 212, 255, 0.3);
	border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 212, 255, 0.5);
}

/* ===== EASTER EGG STYLES ===== */

/* Hidden class */
.hidden {
	display: none !important;
}

/* Secret message popup */
.secret-message {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
	color: white;
	padding: var(--spacing-lg) var(--spacing-xl);
	border-radius: var(--radius-lg);
	font-family: 'JetBrains Mono', monospace;
	font-size: 1.5rem;
	font-weight: 700;
	z-index: 9999;
	animation: secretPop 0.5s ease;
	box-shadow:
		0 0 50px rgba(255, 51, 102, 0.5),
		0 0 100px rgba(0, 212, 255, 0.3);
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes secretPop {
	0% {
		transform: translate(-50%, -50%) scale(0) rotate(180deg);
		opacity: 0;
	}
	50% {
		transform: translate(-50%, -50%) scale(1.2) rotate(-10deg);
	}
	100% {
		transform: translate(-50%, -50%) scale(1) rotate(0);
		opacity: 1;
	}
}

/* Floating monkeys */
.floating-monkey {
	position: fixed;
	font-size: 2rem;
	z-index: 1000;
	animation: floatUp 3s ease-out forwards;
	pointer-events: none;
	filter: drop-shadow(0 0 10px rgba(255, 51, 102, 0.5));
}

@keyframes floatUp {
	0% {
		bottom: -50px;
		opacity: 0;
		transform: rotate(0deg) scale(0);
	}
	20% {
		opacity: 1;
		transform: rotate(360deg) scale(1);
	}
	100% {
		bottom: 100vh;
		opacity: 0;
		transform: rotate(720deg) translateX(50px);
	}
}

/* Logo wiggle */
@keyframes wiggle {
	0%, 100% { transform: rotate(0deg); }
	25% { transform: rotate(10deg); }
	75% { transform: rotate(-10deg); }
}

/* Rainbow background */
@keyframes rainbow-bg {
	0% { filter: hue-rotate(0deg) brightness(1.2); }
	100% { filter: hue-rotate(360deg) brightness(1.2); }
}

/* Spin animation for images */
@keyframes spin360 {
	0% { transform: rotate(0deg) scale(1); }
	50% { transform: rotate(180deg) scale(1.1); }
	100% { transform: rotate(360deg) scale(1); }
}

/* Matrix rain effect - now Snow Crash themed */
.matrix-rain {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9998;
	pointer-events: none;
	overflow: hidden;
}

.matrix-rain.snow-crash {
	background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.4) 100%);
}

.matrix-column {
	position: absolute;
	color: #00ff88;
	font-family: 'JetBrains Mono', monospace;
	font-size: 14px;
	line-height: 20px;
	animation: matrixFall 5s linear infinite;
	text-shadow: 0 0 10px #00ff88;
}

.matrix-column span {
	display: block;
	animation: matrixFade 2s linear infinite;
	opacity: 0.8;
}

.matrix-column .crash-word {
	color: var(--color-primary);
	font-weight: bold;
	text-shadow: 0 0 20px var(--color-primary);
}

@keyframes matrixFall {
	0% { top: -600px; }
	100% { top: 100vh; }
}

@keyframes matrixFade {
	0%, 100% { opacity: 0.1; }
	50% { opacity: 1; }
}

/* Snow Crash Easter Egg Modes */
body.gargoyle-vision {
	animation: gargoyleFlicker 0.1s infinite;
}

@keyframes gargoyleFlicker {
	0%, 100% { filter: invert(0) hue-rotate(0deg); }
	50% { filter: invert(0.1) hue-rotate(10deg); }
}

body.gargoyle-vision::after {
	content: '[GARGOYLE MODE ACTIVE]';
	position: fixed;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 255, 0, 0.1);
	color: #00ff88;
	padding: 5px 15px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	border: 1px solid #00ff88;
	z-index: 10000;
	animation: dataPulse 1s infinite;
}

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

body.deliverator-mode {
	animation: speedLines 0.5s infinite linear;
}

@keyframes speedLines {
	0% { background-position: 0 0; }
	100% { background-position: 0 10px; }
}

body.deliverator-mode::before {
	content: '🍕 DELIVERATOR MODE - 30 MINUTES OR LESS 🍕';
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: linear-gradient(90deg, #ff3366, #ff9933);
	color: white;
	padding: 10px 20px;
	font-family: 'JetBrains Mono', monospace;
	font-weight: bold;
	border-radius: 20px;
	z-index: 10000;
	animation: urgentBlink 0.5s infinite;
}

@keyframes urgentBlink {
	0%, 100% { transform: translateX(-50%) scale(1); }
	50% { transform: translateX(-50%) scale(1.05); }
}

/* Babel text for floating monkeys */
.floating-monkey {
	position: fixed;
	font-size: 2rem;
	z-index: 1000;
	animation: floatUp 3s ease-out forwards;
	pointer-events: none;
	filter: drop-shadow(0 0 10px rgba(255, 51, 102, 0.5));
	display: flex;
	flex-direction: column;
	align-items: center;
}

.floating-monkey .babel-text {
	font-size: 0.6rem;
	font-family: 'JetBrains Mono', monospace;
	color: var(--color-secondary);
	margin-top: -5px;
	font-weight: bold;
	text-shadow: 0 0 5px currentColor;
}

/* Disco mode for chips */
@keyframes disco {
	0% { background: rgba(255, 0, 0, 0.3); }
	20% { background: rgba(255, 165, 0, 0.3); }
	40% { background: rgba(255, 255, 0, 0.3); }
	60% { background: rgba(0, 255, 0, 0.3); }
	80% { background: rgba(0, 0, 255, 0.3); }
	100% { background: rgba(238, 130, 238, 0.3); }
}

/* Random monkey zone */
.monkey-zone {
	position: fixed;
	font-size: 3rem;
	z-index: 500;
	cursor: pointer;
	animation: monkeyBounce 2s ease-in-out infinite;
	filter: drop-shadow(0 0 20px rgba(255, 51, 102, 0.8));
	transition: all 0.3s ease;
}

.monkey-zone:hover {
	transform: scale(1.5) rotate(360deg);
}

@keyframes monkeyBounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-20px); }
}

.monkey-zone.blink-away {
	animation: blinkAway 0.5s ease forwards;
}

@keyframes blinkAway {
	0% { opacity: 1; transform: scale(1); }
	100% { opacity: 0; transform: scale(2) rotate(720deg); }
}

/* Logo hover hint */
.logo-link[data-clicks="1"]::after,
.logo-link[data-clicks="2"]::after {
	content: attr(data-clicks);
	position: absolute;
	top: -20px;
	right: -10px;
	background: var(--color-primary);
	color: white;
	border-radius: 50%;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
	animation: pulse 0.5s ease;
}

.logo-link[data-clicks="6"]::after {
	content: "1 more!";
	width: auto;
	padding: 2px 8px;
	border-radius: var(--radius-sm);
	animation: shake 0.5s ease infinite;
}

@keyframes shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-5px); }
	75% { transform: translateX(5px); }
}

/* Special 404 animation */
.error-card .error-graphic {
	cursor: pointer;
	transition: all 0.3s ease;
}

.error-card .error-graphic:hover {
	animation: glitch 0.3s ease infinite;
}

@keyframes glitch {
	0%, 100% {
		text-shadow:
			2px 0 #ff3366,
			-2px 0 #00d4ff;
	}
	50% {
		text-shadow:
			-2px 0 #ff3366,
			2px 0 #00d4ff;
	}
}

/* Secret counter styles */
#secret-counter {
	background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
	0%, 100% { filter: brightness(1); }
	50% { filter: brightness(1.5); }
}

/* Cursor easter egg on specific dates */
body[data-special-day="true"] {
	cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><text x="0" y="24" font-size="24">🐵</text></svg>'), auto;
}

/* Ultra-secret: Type "developer" and the entire page becomes editable */
body[contenteditable="true"] *:hover {
	outline: 2px dashed var(--color-secondary);
	outline-offset: 2px;
}

/* Spooky shake for Friday 13th */
@keyframes spookyShake {
	0%, 100% { transform: translateX(0); }
	10% { transform: translateX(-2px) rotateZ(-1deg); }
	20% { transform: translateX(2px) rotateZ(1deg); }
	30% { transform: translateX(-2px) rotateZ(-1deg); }
	40% { transform: translateX(2px) rotateZ(1deg); }
	50% { transform: translateX(-1px) rotateZ(-0.5deg); }
	60% { transform: translateX(1px) rotateZ(0.5deg); }
	70% { transform: translateX(-1px) rotateZ(-0.5deg); }
}

/* Title explosion animation */
@keyframes titleExplosion {
	0% { transform: scale(1); }
	50% { transform: scale(1.2) rotate(5deg); }
	100% { transform: scale(1) rotate(0); }
}

/* Emoji float animation */
@keyframes emojiFloat {
	0% {
		transform: translateY(0) scale(0);
		opacity: 0;
	}
	50% {
		transform: translateY(-30px) scale(1.5);
		opacity: 1;
	}
	100% {
		transform: translateY(-60px) scale(0.5);
		opacity: 0;
	}
}

/* Navigation button secret hover after many hovers */
.nav-button:hover {
	--hover-count: 1;
}

.nav-button:hover:hover {
	--hover-count: 2;
}

/* Every 100th visitor gets sparkles (simulated with animation) */
@keyframes sparkle {
	0%, 100% { opacity: 0; }
	50% { opacity: 1; }
}

.site-header::before,
.site-header::after {
	content: ' ';
	position: absolute;
	font-size: 20px;
	animation: sparkle 2s ease-in-out infinite;
	pointer-events: none;
	opacity: 0;
}

.site-header:hover::before {
	opacity: 1;
	top: 10px;
	left: 10%;
	animation-delay: 0s;
}

.site-header:hover::after {
	opacity: 1;
	top: 20px;
	right: 10%;
	animation-delay: 1s;
}

/* Secret URL pattern - when visiting /monkeys */
body[data-url-easter-egg] {
	--color-primary: #FFD700;
	--color-secondary: #FF69B4;
	--color-tertiary: #00CED1;
}

/* Post cards gain sentience on triple click */
.data-card[data-sentient="true"] {
	animation: sentient 2s ease infinite;
}

@keyframes sentient {
	0%, 100% {
		transform: perspective(100px) rotateX(0) rotateY(0);
		box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
	}
	25% {
		transform: perspective(100px) rotateX(2deg) rotateY(-2deg);
		box-shadow: -10px 10px 40px rgba(255, 51, 102, 0.3);
	}
	50% {
		transform: perspective(100px) rotateX(-2deg) rotateY(2deg);
		box-shadow: 10px 10px 40px rgba(0, 255, 136, 0.3);
	}
	75% {
		transform: perspective(100px) rotateX(2deg) rotateY(2deg);
		box-shadow: 0 20px 60px rgba(255, 153, 51, 0.3);
	}
}

/* Secret gradient text on selection with specific pattern */
::selection:nth-child(odd) {
	background: linear-gradient(90deg, rgba(255, 51, 102, 0.3), rgba(0, 212, 255, 0.3));
}

/* Footer gains RGB mode when all secrets are found */
#secret-counter:has(#secret-count:contains("5")) {
	animation: rgbWave 2s linear infinite;
}

@keyframes rgbWave {
	0% { color: rgb(255, 0, 0); }
	33% { color: rgb(0, 255, 0); }
	66% { color: rgb(0, 0, 255); }
	100% { color: rgb(255, 0, 0); }
}

/* Meta chips become interactive toys */
.meta-chip {
	cursor: pointer;
	user-select: none;
}

.meta-chip:active {
	transform: scale(0.9);
	filter: brightness(1.5);
}

