:root {
	--primary-bg: #1a1a1a;
	--secondary-bg: #000;
	--accent-bg: #2a2a2a;
	--highlight: #333333;
	--bright-accent: #60a5fa;
	--text-primary: #e0e0e0;
	--text-secondary: #a0a0a0;
	--text-dim: #707070;
	--border-color: #3a3a3a;
	--hover-bg: #333333;
	--gradient-start: #60a5fa;
	--gradient-mid: #a78bfa;
	--gradient-end: #ec4899;
}

@font-face {
	font-family: 'PressStart2P';
	src: url('../font/PressStart2P-vaV7.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

* {
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
	font-size: 14px;
	color: var(--text-primary);
	margin: 0;
	padding: 0;
	background: #000000;

	/* Animated background image */
	background-image: url('/static/img/bg.gif');
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	background-attachment: fixed;
	animation: bgMove 120s linear infinite;

	/* Darken and blur effect layer */
	position: relative;
}

body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.93); /* Darken to 25% brightness */
	backdrop-filter: blur(3px);
	z-index: -1;
}

@keyframes bgMove {
	0% {
		background-position: -300px -300px;
		background-size: 100%;
	}
	50% {
		background-position: 500px 500px;
		background-size: 50%;
	}
	100% {
		background-position: 700px 700px;
		background-size: 0%;
	}
}

strong {
	color: #60a5fa;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
	font-weight: 600;
	letter-spacing: -0.02em;
	background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	line-height: 1.2;
}

.author {
	color: var(--gradient-end);
}
#adslot {
	display: None;
}
/* Layout */
#wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

#container {
	width: 100%;
	margin: 0;
	padding: 40px 0 0;
}

/* Header */
#header,
#headersg {
	width: 100%;
	background: transparent;
	padding: 10px 10px;
	border-radius: 12px 12px 0 0;
	border-bottom: 3px solid var(--bright-accent);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
	container-type: inline-size;
	container-name: header;
}

#header h1,
#headersg h1 {
	margin: 0;
	font-size: clamp(8px, 3vw, 36px);
	font-weight: 700;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#header h1 a,
#headersg h1 a {
	background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

#header h1 a:hover,
#headersg h1 a:hover {
	opacity: 0.8;
}

#header p,
#headersg p {
	font-size: 14px;
	font-weight: 500;
	color: var(--text-secondary);
	margin: 8px 0 0;
}

/* Navigation */
#navigator {
	width: 100%;
	background: transparent;
	padding: 0;
	border-bottom: 1px solid var(--border-color);
}

#navigator ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.page_item,
.home,
.current_page_item {
	display: inline-block;
}

.page_item a,
.home a,
.current_page_item a {
	display: block;
	padding: 14px 24px;
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s ease;
	border-bottom: 3px solid transparent;
}

.page_item a:hover,
.home a:hover {
	color: var(--text-primary);
	background: var(--hover-bg);
	border-bottom-color: var(--bright-accent);
}

.current_page_item a {
	color: var(--bright-accent);
	border-bottom-color: var(--bright-accent);
}

/* Content Areas */
#body-content {
	background: transparent;
	border-radius: 0 0 12px 12px;
	overflow: hidden;
}

#content {
	padding: 30px 0;
}

#post-entry {
	padding: 20px 30px;
	display: flex;
	gap: 30px;
	flex-wrap: wrap;
}

#post {
	flex: 1;
	min-width: 300px;
	padding-bottom: 30px;
}

#post h1 {
	font-size: 24px;
	margin: 0 0 6px;
	font-weight: 700;
	padding-top: 20px;
	line-height: 1.2;
}

#post h1 a {
	background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

#post h1 a:hover {
	opacity: 0.8;
}

#post h2 {
	font-size: 18px;
	margin: 24px 0 16px;
}

.by {
	font-size: 14px;
	color: var(--text-dim);
	margin: 0 0 20px;
}

.by a {
	color: var(--text-secondary);
	text-decoration: none;
	transition: color 0.2s ease;
}

.by a:hover {
	color: var(--bright-accent);
}

.com-count {
	display: None;
	background: var(--accent-bg);
	padding: 12px 16px;
	border-radius: 8px;
	margin: 16px 0;
	border-left: 4px solid var(--bright-accent);
}

.com-count a {
	color: var(--text-primary);
	text-decoration: none;
	font-weight: 500;
}

.post-content {
	font-size: 14px;
	line-height: 1.4;
	color: var(--text-primary);
	padding: 0px 0;
	background: transparent;
}


.post-content h3 {
	font-size: 17px;
	margin: 24px 0 12px;
	font-weight: 600;
}

.post-content h4 {
	font-size: 16px;
	margin: 20px 0 10px;
	font-weight: 600;
}

.post-content h5 {
	font-size: 15px;
	margin: 18px 0 8px;
	font-weight: 600;
}

.post-content h6 {
	font-size: 14px;
	margin: 16px 0 8px;
	font-weight: 600;
}

.post-content a {
	color: var(--bright-accent);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: all 0.2s ease;
}

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

.post-content img {
	max-width: 100%;
	max-height: 400px;
	border-radius: 8px;
	border: 2px solid var(--border-color);
	transition: border-color 0.2s ease;
	float: right;
	margin: 0 20px 10px 0;
}

.post-content img:hover {
	border-color: var(--bright-accent);
}

.post-content ul,
.post-content ol {
	padding-left: 24px;
	margin: 16px 0;
}

.post-content li {
	margin: 8px 0;
}

/* Sidebar */
#sidebar {
	width: 230px;
	min-width: 230px;
}

#sidebar h3 {
	font-size: 14px;
	background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-mid) 30%, var(--gradient-end) 50%);
	-webkit-text-fill-color: transparent;
	background-clip: initial;
	-webkit-background-clip: text;
	padding: 14px 18px;
	border-radius: 8px 8px 0 0;
	margin: 20px 0 0;
	font-weight: 600;
	border: 2px solid var(--bright-accent);
}

.list {
	padding: 8px;
	list-style: none;
	margin: 0 0 10px;
	border: none;
}

.list li {
	margin: 0 0 10px;
	font-size: 16px;
	list-style: none;
	list-style-type: none;
}

.list li a {
	color: var(--text-primary);
	text-decoration: none;
	padding: 5px 5px;
	display: flex;
	align-items: left;
	border-radius: 8px;
	font-family: monospace;
	font-weight: 400;
	font-size: 14px;
	letter-spacing: 0.05em;
	line-height: 1.5;
	transition: all 0.2s ease;
	position: relative;
	overflow: hidden;
}

.list li a::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 3px;
	transform: scaleY(0);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.list li a:hover {
	color: #ec4899;
	background: rgba(0, 255, 0, 0.05);
	text-shadow: 0 0 8px #c026d3, 0 0 12px #7c3aed;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.list li a:hover::before {
	transform: scaleY(1);
}

.list li a:active {
	transform: translateX(2px) scale(0.98);
}

.list ul {
	list-style-type: none;
	list-style: none;
	padding: 8px 0 0 16px;
	margin: 0;
}

#categories-list {
	list-style: none !important;
	list-style-type: none !important;
	padding: 0 !important;
	margin: 0;
}

#categories-list li,
#categories-list .cat-item {
	list-style: none !important;
	list-style-type: none !important;
}

#categories-list li a,
#categories-list .cat-item a {
	background: none !important;
	padding-left: 8px !important;
}

.list li ul li,
.list #categories-list li {
	list-style: none !important;
	list-style-type: none !important;
}

.play-tw {
	display: block;
	text-align: center;
	background: transparent;
	padding: 0px;
	border-radius: 0 0 1px 1px;
	font-family: 'PressStart2P', monospace;
	font-size: 20px;
	font-weight: 600;
	color: var(--text-primary);
	text-decoration: none;
	transition: all 0.2s ease;
	position: relative;
	overflow: hidden;
}

.play-tw::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 3px;
	transform: scaleY(0);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.play-tw:hover {
	color: #ec4899;
	text-shadow: 0 0 8px #c026d3, 0 0 12px #7c3aed;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.play-tw:hover::before {
	transform: scaleY(1);
}
.play-tw:active {
	transform: translateX(2px) scale(0.98);
}
.play-tw a {
	color: var(--gradient-start);
	text-decoration: none;
	transition: color 0.2s ease, text-shadow 0.2s ease, font-weight 0.2s ease, letter-spacing 0.2s ease;
	position: relative;
	z-index: 1;
	font-weight: inherit;
	letter-spacing: inherit;
}

.play-tw:hover a {
	color: #ec4899;
	text-shadow: 0 0 8px #c026d3, 0 0 12px #7c3aed;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.play-tw a:hover {
	color: #ec4899;
	text-shadow: 0 0 8px #c026d3, 0 0 12px #7c3aed;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.sidebox {
	display: block;
	justify-content: center;
	background: transparent;
	padding: 16px;
	border-radius: 0 0 8px 8px;
	border: 2px solid var(--bright-accent);
	border-top: none;
	margin: 0 0 20px;
}

.sidebox form {
	margin: 0;
}

.sidebox p {
	margin: 0 0 12px;
	font-size: 14px;
}

.sbm-box,
#sidebar select,
input[type="text"],
input[type="email"],
textarea {
	width: 100%;
	padding: 20px 24px;
	font-size: 14px;
	font-family: inherit;
	background: var(--secondary-bg);
	border: 2px solid var(--border-color);
	border-radius: 6px;
	color: var(--text-primary);
	transition: all 0.2s ease;
}

textarea {
	min-height: 150px;
	max-height: 200px;
	min-width: 400px;
	resize: vertical;
}

.sbm-box:focus,
#sidebar select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
	outline: none;
	border-color: var(--bright-accent);
	background: var(--accent-bg);
}

/* Quotes and Code */
blockquote {
	margin: 20px 0;
	padding: 16px 20px;
	background: var(--primary-bg);
	border-left: 4px solid var(--bright-accent);
	border-radius: 4px;
	font-style: italic;
	color: var(--text-secondary);
}

blockquote blockquote {
	border-left-color: var(--highlight);
}

code {
	font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
	font-size: 14px;
	color: var(--gradient-mid);
	background: var(--primary-bg);
	padding: 2px 6px;
	border-radius: 4px;
}

pre.stardusk {
    font-family: 'Courier New', monospace;
    font-size: clamp(2px, 1.3cqi, 24px);
    line-height: 1.2;
    background: linear-gradient(90deg, #4da6ff 0%, #9966ff 50%, #ff6666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #fff; /* fallback */
    overflow-x: auto;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    white-space: pre;
}


table th, table td {
	border: 1px solid var(--border-color);
	padding: 4px;
}


pre {
	background: #000000;
	padding: 16px;
	border-radius: 8px;
	border: 1px solid var(--border-color);
	overflow-x: auto;
	margin: 20px 0;
	color: #f0f0f0;
}

pre code {
	background: #000000;
	padding: 0;
	color: #f0f0f0;
	white-space: pre-wrap;
}

/* Categories and Tags */
.cats {
	display: None;
	background: var(--accent-bg);
	padding: 5px;
	border-radius: 8px;
	border: 1px solid var(--border-color);
	font-size: 14px;
}

.cats a {
	color: var(--bright-accent);
	text-decoration: none;
	transition: color 0.2s ease;
}

.cats a:hover {
	color: var(--gradient-mid);
}

/* Post Navigation */
.post-nav {
	display: flex;
	gap: 12px;
	margin: 40px 0 20px;
	flex-wrap: wrap;
	clear: both;
	width: 100%;
}

.post-nav a {
	color: var(--text-primary);
	background: var(--bright-accent);
	padding: 10px 20px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.2s ease;
}

.post-nav a:hover {
	background: var(--highlight);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(96, 165, 250, 0.3);
}

/* Comments - Hidden */
#comment-template {
	display: none;
}

.com,
.com-alt {
	display: none;
}

#comment-form {
	display: none;
}

button,
input[type="submit"] {
	background: var(--bright-accent);
	color: var(--text-primary);
	padding: 12px 24px;
	border: none;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

button:hover,
input[type="submit"]:hover {
	background: var(--highlight);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(96, 165, 250, 0.3);
}

/* Footer */
#footer {
	background: var(--primary-bg);
	border-top: 3px solid var(--bright-accent);
	margin-top: 40px;
	padding: 40px 0 20px;
}

#footer-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.f-block {
	width: calc(33.333% - 20px);
	min-width: 250px;
	padding: 0 10px;
}

.f-block h3 {
	font-size: 20px;
	margin: 0 0 16px;
}

.f-block ul {
	list-style: none;
	padding: 0;
	margin: 0 0 24px;
}

.f-block ul li {
	margin: 0 0 10px;
	font-size: 14px;
}

.f-block ul li a {
	color: var(--text-secondary);
	text-decoration: none;
	padding-left: 20px;
	display: block;
	background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8"><circle cx="4" cy="4" r="3" fill="%2360a5fa"/></svg>') no-repeat left 4px;
	transition: color 0.2s ease;
}

.f-block ul li a:hover {
	color: var(--text-primary);
}

.bottom-fc {
	padding: 20px 0;
	border-top: 1px solid var(--border-color);
	text-align: center;
	font-size: 14px;
	color: var(--text-dim);
}

.bottom-fc a {
	color: var(--text-secondary);
	text-decoration: none;
	transition: color 0.2s ease;
}

.bottom-fc a:hover {
	color: var(--bright-accent);
}

/* Utility Classes */
.alignleft {
	float: left;
	margin: 8px 20px 12px 0;
}

.alignright {
	float: right;
	margin: 8px 0 12px 20px;
}

.center {
	display: block;
	margin: 20px auto;
	text-align: center;
}

.clear-fix {
	clear: both;
	height: 0;
}

.green {
	color: var(--gradient-mid);
}

.rssfeed {
	padding: 12px 16px 12px 40px;
	background: var(--accent-bg) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23ec4899"><path d="M2 0a2 2 0 00-2 2v1a11 11 0 0111 11h1a2 2 0 002-2 13 13 0 00-13-13H2zm0 4a8 8 0 018 8h1a2 2 0 002-2 10 10 0 00-10-10H2a2 2 0 00-2 2v1a1 1 0 001 1zm1.5 9a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0z"/></svg>') no-repeat 12px center;
	border-radius: 6px;
	border: 1px solid var(--border-color);
	margin: 16px 0;
}

.rssfeed a {
	color: var(--gradient-end);
	text-decoration: none;
	font-weight: 500;
}

.rssfeed a:hover {
	color: var(--gradient-mid);
}

/* Pull Quotes */
.pullquote-left,
.pullquote-right {
	background: var(--accent-bg);
	border: 2px solid var(--border-color);
	border-radius: 8px;
	padding: 16px;
	margin: 12px;
	width: calc(33% - 24px);
	min-width: 200px;
	font-style: italic;
	color: var(--text-primary);
}

.pullquote-left {
	float: left;
}

.pullquote-right {
	float: right;
}

/* Image Captions */
.caption-img-left,
.caption-img-right {
	margin: 20px 16px;
}

.caption-img-left {
	float: left;
}

.caption-img-right {
	float: right;
}

.caption-img-left p,
.caption-img-right p {
	font-size: 13px;
	color: var(--text-dim);
	margin: 8px 0 0;
	font-style: italic;
}

/* Responsive Design */
@media (max-width: 868px) {
	#post-entry {
		flex-direction: column;
		padding: 20px 15px;
	}
	
	#sidebar {
		width: 100%;
	}
	
	.f-block {
		width: 100%;
		margin-bottom: 30px;
	}
	
	.pullquote-left,
	.pullquote-right {
		float: none;
		width: 100%;
		margin: 20px 0;
	}
	
}

/* Smooth Scrolling */
html {
	scroll-behavior: smooth;
}

/* Selection Color */
::selection {
	background: var(--bright-accent);
	color: #1a1a1a;
}

::-moz-selection {
	background: var(--bright-accent);
	color: #1a1a1a;
}

/* YouTube Previews */
.youtube-preview {
	max-width: 100%;
	margin: 24px 0;
	border: 2px solid var(--border-color);
	border-radius: 12px;
	overflow: hidden;
	transition: border-color 0.3s ease, transform 0.3s ease;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.youtube-preview:hover {
	border-color: var(--bright-accent);
	transform: translateY(-2px);
}

.youtube-wrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
	height: 0;
}

.youtube-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

a {
	cursor: pointer;
}

.clickable-image-link {
	display: inline-block;
}

.clickable-image-link:hover img {
	transform: scale(1.02);
	transition: transform 0.2s ease;
}

/* Toggle Visibility Button */
.toggle-visibility-btn {
	background: var(--accent-bg);
	border: 1px solid var(--border-color);
	color: var(--text-primary);
	padding: 2px 8px;
	margin-left: 8px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: all 0.2s ease;
}

.toggle-visibility-btn:hover:not(:disabled) {
	background: var(--hover-bg);
	border-color: var(--bright-accent);
	transform: scale(1.05);
}

.toggle-visibility-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
