/* === THEME VARIABLES === */
@import url('css/themes/variables.css');

/* === FONTLAR === */

@font-face {
	font-family: "Pixel NES";
	src: url("/fonts/Pixel_NES.woff") format("woff");
}

@font-face {
	font-family: "NEC_APC3";
	src: url("/fonts/Web437_NEC_APC3_8x16.woff") format("woff");
}

/* === GENEL GÖRÜNÜM === */

::selection {
	background-color: var(--highlight);
	color: #000;
}

body {
	font-family: "NEC_APC3", "MS UI Gothic", Tahoma, monospace;
	font-size: 18px;
	background: black;
	color: var(--primary);
	margin: 0;
	padding: 20px;
	position: relative;
	overflow-x: hidden;
	-webkit-font-smoothing: none;
	-moz-osx-font-smoothing: none;
	text-rendering: optimizeSpeed;
}

/* === YAPI === */

#container {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 10px;
	box-sizing: border-box;
}

table {
	width: 100%;
	table-layout: fixed;
	border-collapse: separate;
	border-spacing: 10px;
}

td {
	vertical-align: top;
}

#maintd {
	width: 30%;
}

#menutd {
	width: 10%;
	max-width: 225px;
	box-sizing: border-box;
	position: relative;
}

.highlight-pink {
	color: var(--accent);
	text-shadow: 0 0 5px var(--shadow);
	font-weight: bold;
	animation: flickering 2s infinite;
}

/* === LOGO & BAŞLIKLAR === */

#logo,
.box h2,
.box h3,
#effect-controls h3 {
	font-family: "Pixel NES", 'Press Start 2P', cursive;
}

#logo {
	text-align: center;
	font-size: 60px;
	color: var(--neon-primary);
	text-shadow: 0 0 25px var(--neon-primary), 0 0 35px var(--neon-primary);
	animation: neon 2s ease-in-out infinite alternate, flickering 2s infinite;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

.hub-part {
	color: var(--neon-secondary);
	text-shadow:
		0 0 25px var(--neon-secondary),
		0 0 35px var(--neon-secondary);
}

/* === LANGUAGE TOGGLE === */
.language-toggle {
	position: absolute;
	right: -5px;
	top: -20px;
	display: flex;
	align-items: center;
	gap: 5px;
	font-family: "Pixel NES", 'Press Start 2P', cursive;
	font-size: 10px;
	padding: 5px;
	z-index: 11;
	user-select: none;
}

.lang-btn {
	background: none;
	border: none;
	color: var(--secondary);
	font-family: "Pixel NES", 'Press Start 2P', cursive;
	font-size: 10px;
	cursor: pointer;
	padding: 3px 5px;
	transition: all 0.2s ease;
	user-select: none;
}

.lang-btn:hover {
	color: var(--highlight);
	text-shadow: 0 0 5px var(--highlight);
}

.lang-btn.active {
	color: var(--highlight);
	text-shadow: 0 0 10px var(--highlight);
}

.lang-divider {
	color: var(--secondary);
	font-size: 12px;
}

body.dark-mode .lang-btn,
body.dark-mode .lang-divider {
	filter: grayscale(100%);
}

body.dark-mode .lang-btn.active {
	filter: grayscale(100%);
}

/* === KUTULAR === */

.box {
	background: rgba(0, 0, 0, 0.8);
	border: 2px solid var(--border);
	padding: 10px 15px 15px;
	margin-bottom: 10px;
	color: var(--text-main);
	word-break: break-word;
	position: relative;
}

.box h2 {
	margin: 0;
	line-height: 0.9;
}

#maintd .box h2+p,
#maintd .box ul {
	color: var(--text-secondary);
}

.box p a {
	color: var(--text-main);
	text-decoration: none;
	filter: brightness(0.55);
}

.box p a:hover {
	color: var(--highlight);
	text-shadow: 0 0 5px var(--highlight);
	filter: brightness(0.22);
}

/* === LİNKLER === */

.navlink {
	color: var(--accent);
	text-decoration: none;
}

.navlink:hover {
	color: var(--highlight);
}

#first-nav-link {
	display: inline-block;
	margin-top: 10px;
}

/* === EFEKT ARKA PLANLARI === */

#stars,
#effect-canvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

#stars {
	z-index: 10;
	pointer-events: none;
}

#effect-canvas {
	z-index: -1;
}

/* === AYAR PANELİ === */

#effect-controls {
	font-family: 'Press Start 2P', monospace;
	font-size: 20px;
	/*border: 1px solid #ff3ca0;*/
	background: rgba(0, 0, 0, 0.4);
	padding: 12px;
	margin: 0 auto;
}

#effect-controls h2 {
	font-size: 14px;
	text-align: left;
	margin: 0 0 12px 0;
	padding: 0;
	border: none;
	letter-spacing: 1px;
}

#effect-controls label {
	font-family: "VT323", monospace;
	font-size: 12px;
	color: var(--text-main);
	white-space: nowrap;
	margin: 0;
	line-height: 0.5;
}

#effect-controls .control-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.5px;
}

#effect-controls input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	width: 9px;
	height: 9px;
	border: 1px solid var(--accent);
	background: transparent;
	border-radius: 0;
	cursor: pointer;
	position: relative;
}

#effect-controls input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 5px;
	height: 5px;
	background: var(--text-main);
	border-radius: 0;
}

#effect-controls input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	max-width: 100px;
	height: 6px;
	background: #000000;
	border: 1px solid var(--accent);
	cursor: pointer;
}

#effect-controls input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 10px;
	height: 10px;
	background: #000000;
	border: 1px solid var(--accent);
	border-radius: 0;
	cursor: pointer;
}

#effect-controls input[type="range"]::-moz-range-thumb {
	width: 10px;
	height: 10px;
	background: var(--text-main);
	border: 1px solid var(--accent);
	border-radius: 0;
	cursor: pointer;
}

.stars-label {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
}

.stars-label::after {
	content: "";
	display: inline-block;
	width: 20px;
	height: 20px;
	background-image: url('images/grey-star.png');
	filter: brightness(1) sepia(0.4) hue-rotate(var(--hue-rotate)) saturate(1.8);
	background-size: cover;
}

.rain-label {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	cursor: pointer;
}

.rain-label::after {
	content: "";
	display: inline-block;
	width: 18px;
	height: 18px;
	background-image: url('images/rain.png');
	filter: brightness(1) sepia(0.4) hue-rotate(var(--hue-rotate)) saturate(1.8);
	background-size: cover;
}

.snow-label {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	cursor: pointer;
}

.snow-label::after {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	background-image: url('images/snow.png');
	filter: brightness(1) sepia(0.4) hue-rotate(var(--hue-rotate)) saturate(1.8);
	background-size: cover;
}

/* === MODLAR & DURUMLAR === */

#crt-overlay {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 10000;
	background-image: repeating-linear-gradient(to bottom,
			var(--crt-line) 0px,
			var(--crt-line) 1px,
			transparent 2px,
			transparent 6px);
}

body.dark-mode {
	filter: none;
	background-color: #111;
}

body.dark-mode #crt-overlay {
	background-image: repeating-linear-gradient(to bottom,
			rgba(100, 100, 100, 0.08) 0px,
			rgba(100, 100, 100, 0.08) 1px,
			transparent 2px,
			transparent 6px);
}

body.dark-mode .box,
body.dark-mode #logo,
body.dark-mode .hub-part,
body.dark-mode .navlink,
body.dark-mode #maintd .box h2+p,
body.dark-mode #maintd .box ul,
body.dark-mode .lamp-image,
body.dark-mode .lamp-image.broken,
body.dark-mode .control-item label {
	filter: grayscale(100%);
}

footer {
	text-align: center;
	color: var(--primary);
	font-size: 12px;
	margin: 24px 0 8px 0;
	letter-spacing: 1px;
	background: transparent;
	border: none;
	padding: 0;
}

body.dark-mode footer {
	color: #575757;
	background: transparent;
}

.snow-weather-control.hidden,
.sound-weather-control.hidden {
	display: none;
}

/* === HEADCRAB === */
.headcrab-image {
	position: absolute;
	top: -40px;
	left: -5px;
	width: 50px;
	z-index: 10;
	image-rendering: pixelated;
	user-select: none;
	display: none;
}

body.dark-mode .headcrab-image {
	filter: grayscale(100%);
}


/* === LAMBA GÖRSELLERİ === */
.lamp-image {
	position: absolute;
	top: -15px;
	left: -5px;
	width: 30px;
	z-index: 10;
	transition: filter 0.4s ease, transform 0.3s ease;
	user-select: none;
}

.lamp-image:hover {
	box-shadow: none;
	filter: drop-shadow(0 0 10px var(--highlight)) drop-shadow(0 0 20px color-mix(in srgb, var(--highlight) 50%, transparent)) brightness(0.9);
	transform: scale(1.1);
}

.lamp-image.broken {
	opacity: 0.8;
}

.lamp-image.repaired {
	animation: repair-glow 0.5s ease;
}

.lamp-image.pressing {
	animation: grow 1s ease forwards;
}

/* === ANİMASYONLAR === */
@keyframes flickering {

	0%,
	100% {
		opacity: 0.9;
	}

	50% {
		opacity: 1;
	}
}

@keyframes grow {
	from {
		transform: scale(1);
	}

	to {
		transform: scale(1.2);
	}
}

@keyframes repair-glow {
	0% {
		opacity: 0.8;
		transform: scale(1);
	}

	50% {
		opacity: 1;
		transform: scale(1.1);
	}

	100% {
		opacity: 1;
		transform: scale(1);
	}
}

/* === UYDULAR === */

.moon-icon {
	width: 16px;
	height: 16px;
	vertical-align: middle;
	margin-right: 1px;
	image-rendering: pixelated;
	filter: brightness(1) sepia(0.4) hue-rotate(var(--hue-rotate)) saturate(1.8);
	transition: filter 0.2s ease;
}

.navlink:hover .moon-icon {
	filter: brightness(1.1) sepia(0.5) hue-rotate(var(--hue-rotate-hover)) saturate(2);
}

.navlink .moon-name {
	display: inline;
}

.navlink .page-name {
	display: none;
	color: var(--neon-secondary);
	text-shadow: 0 0 5px var(--neon-secondary), 0 0 10px var(--neon-secondary);
	animation: flickering 2s infinite;
}

.navlink:hover .moon-name {
	display: none;
}

.navlink:hover .page-name {
	display: inline;
}

/* === LAST.FM QUERY === */

#lastfm-container {
	margin-top: 10px;
}

#lastfm-container h3 {
	margin: 0 0 8px 0;
	font-size: 14px;
}

.lastfm-content {
	display: flex;
	align-items: center;
}

.lastfm-cover {
	width: 48px;
	height: 48px;
	margin-right: 8px;
	border: 1px solid var(--border);
	box-shadow: 0 0 5px var(--shadow);
	image-rendering: pixelated;
	flex-shrink: 0;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.lastfm-info {
	flex: 1;
	min-width: 0;
}

.lastfm-now-playing {
	display: flex;
	align-items: center;
	font-size: 11px;
	color: var(--accent);
	margin-bottom: 2px;
	text-shadow: 0 0 5px var(--shadow);
	animation: flickering 1.5s infinite;
}

.lastfm-now-playing::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	background-color: #2ecc71;
	border-radius: 50%;
	margin-right: 5px;
	box-shadow: 0 0 5px #2ecc71, 0 0 8px #2ecc71;
	animation: pulseGreen 5s infinite;
}

@keyframes pulseGreen {
	0% {
		opacity: 0.6;
		box-shadow: 0 0 5px #2ecc71;
	}

	50% {
		opacity: 1;
		box-shadow: 0 0 6px #2ecc71, 0 0 12px #2ecc71;
	}

	100% {
		opacity: 0.6;
		box-shadow: 0 0 5px #2ecc71;
	}
}

.lastfm-last-played {
	display: block;
	font-size: 11px;
	color: var(--secondary);
	margin-bottom: 2px;
}

.lastfm-link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.lastfm-song {
	font-weight: bold;
	color: var(--highlight);
	margin-bottom: 2px;
	font-size: 13px;
	white-space: nowrap;
	position: relative;
	overflow: hidden;
	width: 140px;
	white-space: nowrap;
	display: inline-block;
	vertical-align: middle;
}

.scroll-text {
	display: inline-block;
	animation: scroll-left 10s linear infinite;
	animation-play-state: paused;
}

.lastfm-song:hover .scroll-text {
	animation-play-state: running;
}

@keyframes scroll-left {
	0% {
		transform: translateX(0%);
	}

	100% {
		transform: translateX(-100%);
	}
}

.lastfm-artist {
	color: var(--text-secondary);
	margin-bottom: 2px;
	font-size: 11px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.lastfm-album {
	color: var(--secondary);
	font-size: 10px;
	font-style: italic;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.lastfm-cover[src*="http"] {
	opacity: 1;
}

.lastfm-cover:not([src*="http"]) {
	display: none;
}

#presence-status {
	text-align: center;
	display: none;
	user-select: none;
}

#presence-status .im-part {
	font-family: "NEC_APC3", monospace;
	font-size: 17px;
	color: var(--text-secondary);
	margin-right: 6px;
	text-transform: none;
}

#presence-status h2 {
	display: inline;
	font-family: "Pixel NES", monospace;
	font-size: 22px;
	margin: 0;
}

.status-part-online {
	color: #39ff14;
	text-shadow:
		0 0 4px #39ff14,
		0 0 8px #39ff14,
		0 0 12px rgba(57, 255, 20, 0.6);
}

.status-part-offline {
	color: #ff4040;
	text-shadow:
		0 0 4px #ff4040,
		0 0 8px #ff4040,
		0 0 12px rgba(255, 64, 64, 0.6);
}

.status-part-idle {
	color: #ffe240;
	text-shadow:
		0 0 4px #ffe240,
		0 0 8px #ffe240,
		0 0 12px rgba(255, 210, 64, 0.6);
}

.status-part-dnd {
	color: #ff4040;
	text-shadow:
		0 0 4px #ff4040,
		0 0 8px #ff4040,
		0 0 12px rgba(255, 64, 64, 0.6);
}

.lastfm-cover.cover-square {
	width: 48px;
	height: 48px;
	object-fit: cover;
}

.lastfm-cover.cover-16-9 {
	width: 48px;
	height: 27px;
	object-fit: cover;
	background: #000;
	display: block;
	margin: 0 12px 0 0;
}

.last-seen-text {
	font-size: 10px;
	margin-top: 10px;
	line-height: 0.1;
	position: relative;
	color: #aaa;
	display: none;
}

body.dark-mode .lastfm-cover,
body.dark-mode .lastfm-song,
body.dark-mode .lastfm-artist,
body.dark-mode .lastfm-album,
body.dark-mode .lastfm-now-playing,
body.dark-mode .lastfm-last-played {
	filter: grayscale(100%);
}

/* === AY FAZLARI === */
.moon-phases-container {
	padding: 8px;
	background: transparent;
}

.moon-phases-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
	margin-top: 8px;
}

@media (max-width: 600px) {
	.moon-phases-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.moon-phase-item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 4px;
	transition: all 0.3s ease;
	background: transparent;
	border: 1px solid transparent;
	cursor: pointer;
}

.moon-phase-item:hover,
.moon-phase-item:focus {
	background: color-mix(in srgb, var(--primary) 20%, transparent);
	border: 1px solid color-mix(in srgb, var(--highlight) 30%, transparent);
	outline: none;
}

.moon-phase-icon {
	width: 24px;
	height: 24px;
	margin-bottom: 2px;
	filter: sepia(0.4) hue-rotate(var(--hue-rotate)) saturate(1.8);
}

.moon-phase-name {
	font-size: 10px;
	color: var(--text-main);
	text-align: center;
	white-space: nowrap;
	margin: 0;
	line-height: 1.2;
}

.moon-phase-date {
	font-size: 10px;
	color: var(--accent);
	margin: 0;
	line-height: 1.2;
}

.moon-phase-tooltip {
	position: absolute;
	background: rgba(0, 0, 0, 0.9);
	border: 1px solid var(--border);
	color: var(--highlight);
	padding: 6px 10px;
	border-radius: 0px;
	font-size: 12px;
	z-index: 100;
	top: -40px;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	box-shadow: 0 0 5px var(--shadow);
	pointer-events: none;
}

.current-date-display {
	font-family: "VT323", monospace;
	text-shadow: 0 0 5px var(--shadow);
	font-size: 12px;
	color: var(--accent);
	text-align: center;
	margin: 8px 0;
}

@keyframes pulseMoon {
	0% {
		transform: scale(1);
		filter: brightness(1) sepia(0.4) hue-rotate(var(--hue-rotate)) saturate(1.8);
	}

	50% {
		transform: scale(1.1);
		filter: brightness(1.2) sepia(0.5) hue-rotate(var(--hue-rotate-hover)) saturate(2);
	}

	100% {
		transform: scale(1);
		filter: brightness(1) sepia(0.4) hue-rotate(var(--hue-rotate)) saturate(1.8);
	}
}

.current-phase {
	background: color-mix(in srgb, var(--primary) 30%, transparent);
	border: 1px solid color-mix(in srgb, var(--highlight) 50%, transparent);
	box-shadow: 0 0 5px color-mix(in srgb, var(--highlight) 30%, transparent);
}

.current-phase .moon-phase-icon {
	animation: pulseMoon 3s infinite ease-in-out;
}

.current-phase .moon-phase-name,
.current-phase .moon-phase-date {
	color: var(--highlight);
	text-shadow: 0 0 3px var(--shadow);
}

.moon-phases-container h3 {
	margin: 0 0 8px;
	font-size: 14px;
	color: var(--highlight);
	text-align: center;
}

body.dark-mode .moon-phases-container {
	background: rgba(0, 0, 0, 0.9);
}

/* === SCROLLBAR === */

body::-webkit-scrollbar {
	width: 3px;
	height: 3px;
}

body::-webkit-scrollbar-thumb {
	background-color: var(--scrollbar);
	box-shadow: 0 0 5px var(--shadow);
}

body::-webkit-scrollbar-thumb:hover {
	background-color: var(--scrollbar-hover);
	box-shadow: 0 0 8px var(--shadow);
}

body.dark-mode::-webkit-scrollbar-thumb {
	background-color: #393939;
	border: 1px solid #333;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

body.dark-mode::-webkit-scrollbar-thumb:hover {
	background-color: #222;
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
}

body.dark-mode::-webkit-scrollbar-corner {
	background: rgba(0, 0, 0, 0.8);
	border: 1px solid #111;
}

body.dark-mode a {
	color: #747373;
}

/* === SATURN EASTER EGG === */

.navlink img[src="images/saturn.png"] {
	width: 50px;
	height: 50px;
}

@keyframes saturnShake {
	0% {
		transform: rotate(0deg) translateX(0);
	}

	10% {
		transform: rotate(2deg) translateX(2px);
	}

	20% {
		transform: rotate(-2deg) translateX(-2px);
	}

	30% {
		transform: rotate(2deg) translateX(2px);
	}

	40% {
		transform: rotate(-2deg) translateX(-2px);
	}

	50% {
		transform: rotate(1deg) translateX(1px);
	}

	60% {
		transform: rotate(-1deg) translateX(-1px);
	}

	70% {
		transform: rotate(1deg) translateX(1px);
	}

	80% {
		transform: rotate(-1deg) translateX(-1px);
	}

	90% {
		transform: rotate(0.5deg) translateX(0.5px);
	}

	100% {
		transform: rotate(0deg) translateX(0);
	}
}

.saturn-shake {
	animation: saturnShake 1s ease-in-out;
}

/* === TERMINAL === */

.terminal-input {
	background: transparent;
	border: none;
	color: var(--highlight);
	font-family: "NEC_APC3", monospace;
	font-size: 14px;
	outline: none;
	padding: 0;
	margin: 0;
	width: calc(100% - 20px);
	caret-color: transparent;
}

.prompt {
	color: var(--accent);
	margin-right: 5px;
}

.output {
	color: var(--highlight);
	margin-bottom: 4px;
	word-break: break-word;
}

.output.error {
	color: #ff5555;
}

.terminal-body::-webkit-scrollbar {
	width: 3px;
}

.terminal-body::-webkit-scrollbar-thumb {
	background-color: var(--primary);
}

.terminal-body::-webkit-scrollbar-track {
	background: transparent;
}

#konsole-terminal {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 400px;
	height: 250px;
	background: rgba(0, 0, 0, 0.9);
	border: 2px solid var(--border);
	border-radius: 0;
	font-family: "NEC_APC3", monospace;
	color: var(--highlight);
	box-shadow: 0 0 10px var(--shadow);
	z-index: 1000;
	display: flex;
	flex-direction: column;
}

.terminal-header {
	padding: 4px 8px;
	background: var(--primary);
	border-bottom: 1px solid var(--secondary);
	font-weight: bold;
	display: flex;
	justify-content: space-between;
	cursor: move;
	color: #000;
	text-shadow: 0 0 3px var(--shadow);
	font-family: "Pixel NES", monospace;
	font-size: 12px;
	height: 16px;
	line-height: 16px;
	align-items: center;
}

#konsole-close {
	cursor: pointer;
	color: #000;
	font-weight: bold;
	transition: color 0.2s ease;
	font-size: 14px;
	line-height: 14px;
	height: 14px;
	display: flex;
	align-items: center;
}

#konsole-close:hover {
	color: var(--highlight);
	text-shadow: 0 0 5px var(--shadow);
}

.terminal-body {
	flex: 1;
	padding: 10px;
	overflow-y: auto;
	font-size: 14px;
	line-height: 1.4;
}

.line {
	margin-bottom: 4px;
}

.cursor {
	animation: blink 1s step-start infinite;
	color: var(--accent);
}

@keyframes blink {
	50% {
		opacity: 0;
	}
}

body.dark-mode #konsole-terminal {
	border-color: #333;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
	filter: grayscale(100%);
}

body.dark-mode .terminal-header {
	background: #333;
	border-bottom-color: #444;
}

.ansi-blue-bold {
	color: #5555ff;
	font-weight: bold;
}

.ansi-green-bold {
	color: #55ff55;
	font-weight: bold;
}

.ansi-cyan-bold {
	color: #55ffff;
	font-weight: bold;
}

.ansi-magenta-bold {
	color: #ff55ff;
	font-weight: bold;
}

.ansi-yellow-bold {
	color: #ffff55;
	font-weight: bold;
}

.ansi-red-bold {
	color: #ff5555;
	font-weight: bold;
}

.ansi-bold {
	font-weight: bold;
}

body.dark-mode .ansi-blue-bold {
	color: #8888ff;
}

body.dark-mode .ansi-green-bold {
	color: #88ff88;
}

body.dark-mode .ansi-cyan-bold {
	color: #88ffff;
}

body.dark-mode .ansi-magenta-bold {
	color: #ff88ff;
}

body.dark-mode .ansi-yellow-bold {
	color: #ffff88;
}

body.dark-mode .ansi-red-bold {
	color: #ff8888;
}

.neofetch-container {
	font-family: "NEC_APC3", monospace;
	white-space: pre;
	line-height: 1.2;
	margin-bottom: 10px;
}

.neofetch-output {
	font-size: 12px;
	margin: 0;
	padding: 0;
	white-space: pre;
	font-family: "NEC_APC3", monospace;
}

.ansi-red-bold,
.ansi-green-bold,
.ansi-yellow-bold,
.ansi-blue-bold,
.ansi-magenta-bold,
.ansi-cyan-bold {
	display: inline-block;
	letter-spacing: 0;
	font-family: "NEC_APC3", monospace;
}

.color-blocks {
	letter-spacing: -1px;
	display: inline-flex;
	align-items: center;
	height: 12px;
	line-height: 1;
}

/* === DAILY TIP WINDOW === */
.tip-window {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.9);
	width: 300px;
	background: rgba(0, 0, 0, 0.9);
	border: 2px solid var(--border);
	box-shadow: 0 0 15px var(--shadow);
	z-index: 1001;
	opacity: 0;
	transition: all 0.3s ease;
	font-family: "NEC_APC3", monospace;
}

.tip-window.show {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.tip-header {
	padding: 4px 8px;
	background: var(--primary);
	border-bottom: 1px solid var(--secondary);
	font-weight: bold;
	display: flex;
	justify-content: space-between;
	cursor: move;
	color: #000;
	text-shadow: 0 0 3px var(--shadow);
	font-family: "Pixel NES", monospace;
	font-size: 12px;
	height: 16px;
	line-height: 16px;
	align-items: center;
}

#tip-close {
	cursor: pointer;
	color: #000;
	font-weight: bold;
	transition: color 0.2s ease;
	font-size: 14px;
	line-height: 14px;
	height: 14px;
	display: flex;
	align-items: center;
}

#tip-close:hover {
	color: var(--highlight);
	text-shadow: 0 0 5px var(--shadow);
}

.tip-body {
	padding: 15px;
	color: var(--highlight);
}

.tip-text {
	margin: 0;
	line-height: 1.4;
	font-size: 14px;
}

.tip-text::before {
	content: "💡 ";
}

.dont-show-again {
	padding: 0 15px 15px;
	font-size: 12px;
	color: var(--secondary);
	display: flex;
	align-items: center;
}

.dont-show-again input[type="checkbox"] {
	margin-right: 8px;
}

.dont-show-again label {
	cursor: pointer;
}

body.dark-mode .tip-window {
	border-color: #333;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
	filter: grayscale(100%);
}

body.dark-mode .tip-header {
	background: #333;
	border-bottom-color: #444;
}

/* === FRIENDS WEBSITE === */

.friend-website-link {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 10px;
	padding: 5px;
}

.friend-website-link a {
	display: flex;
	align-items: center;
	text-decoration: none;
	transition: transform 0.2s ease;
}

.friend-website-link a:hover {
	transform: scale(1.05);
}

.friend-gif {
	width: 60px;
	height: 20px;
	border-radius: 0;
	margin-right: 10px;
	border: none;
}

.friend-text {
	color: var(--highlight);
	font-size: 12px;
	position: relative;

	font-family: 'VT323', monospace;
	display: inline-block;
	vertical-align: middle;
}

body.dark-mode .friend-text,
body.dark-mode .friend-gif {
	filter: grayscale(100%);
}

/* === HUB SURPRISE === */
#hub-surprise {
	cursor: pointer;
	transition: all 0.2s ease;
}

#hub-surprise:hover {
	transform: scale(1.05);
	filter: brightness(1.2);
}

/* == MOBILE == */

.layout-container {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.layout-main {
	flex: 2;
	min-width: 300px;
}

.layout-sidebar {
	flex: 1;
	min-width: 225px;
}

@media (max-width: 768px) {
	.layout-container {
		flex-direction: column;
		gap: 10px;
	}

	#maintd,
	#menutd {
		width: 100%;
		max-width: 100%;
	}
}

@keyframes tremble {
  0%   { transform: translate(0, 0) rotate(0deg); }
  5%   { transform: translate(-8px, 6px) rotate(3deg); }
  10%  { transform: translate(10px, -7px) rotate(-4deg); }
  15%  { transform: translate(-12px, -5px) rotate(5deg); }
  20%  { transform: translate(7px, 10px) rotate(-6deg); }
  25%  { transform: translate(-9px, 8px) rotate(4deg); }
  30%  { transform: translate(11px, -10px) rotate(-5deg); }
  40%  { transform: translate(-14px, 6px) rotate(6deg); }
  50%  { transform: translate(15px, 12px) rotate(-7deg); }
  60%  { transform: translate(-10px, -12px) rotate(5deg); }
  70%  { transform: translate(12px, -8px) rotate(-4deg); }
  80%  { transform: translate(-8px, 14px) rotate(6deg); }
  90%  { transform: translate(6px, -6px) rotate(-3deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}


.box.approach-saturn,
#logo.approach-saturn,
.lamp-image.approach-saturn,
.friend-website-link.approach-saturn,
.language-toggle.approach-saturn {
	animation: tremble 0.15s ease-in-out infinite !important;
}

#logo.approach-saturn {
	animation: tremble 0.2s ease-in-out infinite !important;
}

.box,
#logo,
.lamp-image,
.friend-website-link,
.language-toggle {
	transition: transform 0.5s ease;
}

/* == BLOG META ICONS == */
.meta-icon {
	width: 16px;
	height: 16px;
	vertical-align: middle;
	margin-right: 4px;
	image-rendering: pixelated;
}

/* === SERVER STATUS === */
.status-container {
	font-family: "VT323", monospace;
	font-size: 14px;
	color: var(--text-main);
	margin-top: 8px;
}

.status-uptime {
	padding: 4px 0;
	margin-bottom: 8px;
}

.status-services {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.status-item {
	white-space: nowrap;
}

.status-ok {
	color: #00ff00;
	font-weight: bold;
	text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
}

.status-ok::before {
	content: "[ ";
	color: #ffffff;
	text-shadow: 0 0 5px #ffffff, 0 0 10px #ffffff;
}

.status-ok::after {
	content: " ]";
	color: #ffffff;
	text-shadow: 0 0 5px #ffffff, 0 0 10px #ffffff;
}

.status-error {
	color: #ff0000;
	font-weight: bold;
	text-shadow: 0 0 5px #ff0000, 0 0 10px #ff0000;
}

.status-error::before {
	content: "[ ";
	color: #ffffff;
	text-shadow: 0 0 5px #ffffff, 0 0 10px #ffffff;
}

.status-error::after {
	content: " ]";
	color: #ffffff;
	text-shadow: 0 0 5px #ffffff, 0 0 10px #ffffff;
}

body.dark-mode .status-container {
	filter: grayscale(100%);
}