/* Main stylesheet - enqueued via functions.php */

/* Import main CSS from assets/css */
@import url('../../../../assets/css/main.css');

/* ============================================
   GLOBAL BODY & LAYOUT FIXES
   ============================================ */

/* Body has pure black background - particle canvas sits on top */
body {
	background-color: #000000 !important;
	background: #000000 !important;
	margin: 0;
	padding: 0;
	min-height: 100vh;
	position: relative;
}

/* HTML has pure black background */
html {
	background-color: #000000 !important;
	background: #000000 !important;
}

/* Site main wrapper - transparent so particle canvas shows through */
.site-main {
	background-color: transparent !important;
	background: transparent !important;
	min-height: calc(100vh - 200px);
}

/* Content area - transparent so particle canvas shows through */
.content-area {
	background-color: transparent !important;
	background: transparent !important;
}

/* ============================================
   TERMINAL-BASED DESIGN SYSTEM
   For use on all pages and archives
   ============================================ */

/* Terminal page wrapper - transparent so particle canvas shows through */
.terminal-page-wrapper {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: transparent !important;
	color: #00FFFF;
	font-family: 'JetBrains Mono', 'Courier New', 'Consolas', monospace;
	position: relative;
	overflow: visible;
	z-index: 5;
}

/* Terminal static overlay */
.terminal-static-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48ZmlsdGVyIGlkPSJub2lzZSI+PGZlVHVyYnVsZW5jZSBiYXNlRnJlcXVlbmN5PSIwLjkiIG51bU9jdGF2ZXM9IjQiIHJlc3VsdD0ibm9pc2UiLz48ZmVDb2xvck1hdHJpeCBpbj0ibm9pc2UiIHR5cGU9InNhdHVyYXRlIiB2YWx1ZXM9IjAiLz48L2ZpbHRlcj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCIgaGVpZ2h0PSIxMDAiIGZpbHRlcj0idXJsKCNub2lzZSkiIG9wYWNpdHk9IjAuMDMiLz48L3N2Zz4=');
	opacity: 0.1;
	pointer-events: none;
	z-index: 3;
	/* Flickering animation removed - too straining */
}

/* Terminal content container */
.terminal-content-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem;
	position: relative;
	z-index: 10;
	flex: 1;
	background: transparent;
}

/* Terminal window style - semi-transparent so particle canvas shows through */
.terminal-window-base {
	background: rgba(0, 0, 0, 0.6);
	border: 2px solid #00FFFF;
	box-shadow: 
		0 0 30px rgba(0, 255, 255, 0.3),
		inset 0 0 30px rgba(0, 255, 255, 0.1);
	border-radius: 4px;
	overflow: hidden;
	position: relative;
	backdrop-filter: blur(5px);
	padding: 2rem;
	z-index: 10;
}

/* Terminal header */
.terminal-header-base {
	background: rgba(0, 255, 255, 0.1);
	border-bottom: 1px solid rgba(0, 255, 255, 0.3);
	padding: 0.75rem 1rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: -2rem -2rem 2rem -2rem;
}

/* Terminal controls */
.terminal-controls {
	display: flex;
	gap: 0.5rem;
}

.control-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(0, 255, 255, 0.5);
	box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.control-close {
	background: rgba(255, 0, 0, 0.7);
	box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.control-minimize {
	background: rgba(255, 255, 0, 0.7);
	box-shadow: 0 0 5px rgba(255, 255, 0, 0.5);
}

.control-maximize {
	background: rgba(0, 255, 0, 0.7);
	box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.terminal-title-base {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: rgba(0, 255, 255, 0.8);
	flex: 1;
	text-align: center;
}

/* Terminal body wrapper */
.terminal-body {
	padding: 2rem;
	min-height: 400px;
}

/* Terminal output container */
.terminal-output {
	margin-bottom: 2rem;
}

/* Terminal prompt style */
.terminal-prompt {
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
	opacity: 0.8;
}

.terminal-prompt-base {
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
	opacity: 0.8;
}

/* Terminal command style */
.terminal-command {
	font-size: 0.9rem;
	margin-bottom: 1rem;
}

.command-text {
	color: #00FFFF;
}

.cursor-blink {
	color: #00FFFF;
	animation: blink 1s infinite;
}

@keyframes blink {
	0%, 50% { opacity: 1; }
	51%, 100% { opacity: 0; }
}

/* Terminal response style */
.terminal-response {
	font-size: 0.9rem;
	margin-bottom: 1rem;
	opacity: 0.9;
}

.response-line {
	color: #00FFFF;
	margin-bottom: 0.5rem;
}

.prompt-user {
	color: #00FF00;
	text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.prompt-separator {
	color: rgba(0, 255, 255, 0.6);
}

.prompt-path {
	color: #00FFFF;
	text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.prompt-char {
	color: #00FFFF;
	margin-left: 0.25rem;
}

/* Remove sticky titles */
.sticky-title,
.page-title-sticky,
.entry-title-sticky {
	position: static !important;
}

/* Ensure no white backgrounds anywhere */
* {
	background-color: transparent;
}

body * {
	background-color: inherit;
}

/* Override any white backgrounds */
.white-bg,
.bg-white,
.has-white-background {
	background-color: #000000 !important;
}

/* Ensure site-main is transparent for particle canvas */
.site-main {
	background-color: transparent !important;
	background: transparent !important;
}

/* Ensure wrapper elements are transparent for particle canvas */
.wrapper,
#wrapper,
.site-wrapper {
	background-color: transparent !important;
	background: transparent !important;
}

/* Terminal page wrapper adjustments */
.terminal-page-wrapper .site-main {
	background: transparent;
	z-index: 10;
	position: relative;
}

/* Particle canvas for all terminal pages - above black background, below content */
.particle-canvas {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	z-index: 2 !important;
	pointer-events: none !important;
	background: transparent !important;
	opacity: 1 !important;
	visibility: visible !important;
}

/* Ensure footer appears on all pages */
.site-footer {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	background-color: #000000 !important;
	background: #000000 !important;
}

/* Remove any margin/padding that creates white gaps - but exclude particle canvas */
body > *:not(.particle-canvas) {
	background-color: transparent;
}

/* Ensure no white space between elements */
.site-main + .site-footer {
	margin-top: 0;
	padding-top: 3rem;
}
