/* Layout */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	height: 100%;
}

:root {
	/* New Dark Theme Palette */
	--font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-mono: 'Fragment Mono', monospace;
	
	--bg-dark: #0A0A0A;      /* Deep dark background */
	--card-bg: #171717;      /* Dark card background */
	--text-main: #EDEDED;    /* High contrast text */
	--text-muted: #A3A3A3;   /* Muted text */
	--accent: #FFFFFF;       /* White accent */
	--border: rgba(255, 255, 255, 0.1);
	
	--vignette-blue: rgba(0, 107, 255, 0.1);
}

body {
	min-height: 100vh;
	font-family: var(--font-main);
	background: var(--bg-dark);
	color: var(--text-main);
	-webkit-font-smoothing: antialiased;
}

a {
	color: inherit;
	text-decoration: none;
}

.page {
	min-height: 100vh;
	max-width: 800px;
	margin: 0 auto;
	padding: 120px 24px 60px 100px; /* Left padding for sidebar */
	position: relative;
	z-index: 1;
}
/* Vignette Overlay */
.vignette-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	pointer-events: none;
	z-index: 0;
	background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
	box-shadow: inset 0 0 100px 30px var(--vignette-blue);
}

/* Typography Overrides */
.hero-name, .hero-link-label, .side-nav, .band-title, h1, h2, h3 {
	font-family: var(--font-main);
}

.prompt, .typing-cursor, .code-pill, .network-select {
	font-family: var(--font-mono);
}

/* Hide old moon effects */
.page::before, .page::after, .scanlines {
	display: none;
}

/* Glassmorphism improvements for header */
.hero-header {
	position: relative;
	z-index: 1;
}

@media (min-width: 960px) {
	.page::before {
		top: -6rem;
		right: -5rem;
		width: 210px;
		height: 210px;
		opacity: 0.85;
	}
	.page::after {
		top: 0.5rem;
		right: 1.5rem;
		width: 130px;
		height: 130px;
	}
}
/* ========================================= */

/* Hero */
.hero-header {
	margin-bottom: 2.5rem;
}

.hero-name {
	font-weight: 700;
	font-size: clamp(2.3rem, 4vw, 2.8rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--text-main);
}

.hero-role {
	margin-top: 0.8rem;
	font-size: 0.95rem;
	color: #64748b; /* Comment color */
	font-style: italic;
	min-height: 1.5em; /* Prevent layout shift */
	display: flex;
	align-items: center;
}

.typing-cursor {
	display: inline-block;
	color: var(--accent);
	margin-left: 4px;
	font-weight: bold;
	font-style: normal;
	animation: blink 1s step-end infinite;
}

.prompt {
	color: var(--text-muted);
	margin-right: 0.5rem;
	font-weight: bold;
}

/* Removed old .comment class as it's replaced by dynamic typing */
/* .comment { ... } */

.hero-text {
	max-width: 38rem;
	font-size: 0.95rem;
	line-height: 1.8;
	color: var(--text-main);
	display: grid;
	gap: 1.2rem;
	transition: opacity 0.25s ease;
}

.hero-text.is-switching {
	opacity: 0;
}

.highlight {
	color: #000;
	background: var(--accent);
	padding: 0 4px;
}

/* Links */
.hero-links {
	margin-top: 2.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.hero-link {
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(5px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 0.7rem 1.4rem;
	font-size: 0.85rem;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	color: var(--text-muted);
	cursor: pointer;
	border-radius: 4px;
	position: relative;
	overflow: hidden;
}

.hero-link:hover {
	border-color: var(--accent);
	color: var(--accent);
	transform: translateY(-2px);
	background: rgba(255, 255, 255, 0.1);
	box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.hero-link.highlight-btn {
	border-color: var(--accent);
	color: #000;
	background: var(--accent);
}

.hero-link.highlight-btn:hover {
	background: #fff;
	color: #000;
	box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

.hero-link-label {
	font-weight: 600;
	letter-spacing: 0.5px;
}

/* Sidebar Nav - Ported */
.sidebar-nav {
	position: fixed;
	left: 24px;
	top: 50%;
	transform: translateY(-50%);
	width: 72px;
	background: var(--card-bg);
	border-radius: 20px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	z-index: 100;
	transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
	white-space: nowrap;
}

.sidebar-nav:hover {
	width: 200px;
}

.nav-link-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px;
	border-radius: 12px;
	color: var(--text-muted);
	transition: all 0.2s;
	text-decoration: none;
	width: 100%;
}

.nav-link-item:hover,
.nav-link-item.active {
	background: rgba(255, 255, 255, 0.1);
	color: #FFFFFF;
}

.nav-icon {
	width: 24px;
	text-align: center;
	font-size: 18px;
}

.nav-text {
	font-size: 15px;
	font-weight: 500;
	opacity: 0;
	transform: translateX(-10px);
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-nav:hover .nav-text {
	opacity: 1;
	transform: translateX(0);
	transition-delay: 0.1s;
}

.footer {
	margin-top: 64px;
	padding-top: 24px;
	border-top: 1px dashed var(--border);
	color: var(--text-muted);
	font-size: 0.85rem;
	opacity: 0.7;
}

/* Footer & Band */
.band {
	display: none; /* Content is loaded via JS */
}



.blink {
	animation: blink 1s step-end infinite;
}

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

/* Band Titles & Lists (Injected Content) */
.band-title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--accent);
	margin-bottom: 1rem;
	border-bottom: 1px dashed var(--border);
	padding-bottom: 0.5rem;
}

.band-list {
	list-style: none;
}

.band-list li {
	margin-bottom: 0.5rem;
	color: var(--text-main);
	display: flex;
	gap: 0.5rem;
}

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

.link-list {
	list-style: none;
}

.link-list li {
	margin-bottom: 0.5rem;
}

.link-list a:hover {
	color: var(--accent);
	text-decoration: underline;
}

/* Disclaimer: Donate Modal Styles (Refined) */
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	z-index: 1000;
	opacity: 0;
	transition: opacity 0.3s ease;
	backdrop-filter: blur(5px);
	overflow-y: auto;
	padding: 1rem;
}

.modal.show {
	opacity: 1;
}

.modal-content {
	background-color: var(--card-bg);
	margin: 5% auto;
	padding: 2rem;
	width: 95%;
	max-width: 800px;
	border: 1px solid var(--border);
	position: relative;
	color: var(--text-main);
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
	transform: translateY(-20px);
	transition: transform 0.3s ease;
}

.modal.show .modal-content {
	transform: translateY(0);
}

.modal-header-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
	border-bottom: 1px solid var(--border);
	padding-bottom: 1rem;
}

.modal-header-row h2 {
	font-size: 1.2rem;
	color: var(--text-main);
}

.close {
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--text-muted);
}

.close:hover {
	color: var(--accent);
}

.donate-header p {
	color: var(--text-muted);
	margin-bottom: 2rem;
}

.donate-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.5rem;
}

.donate-card {
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--border);
	padding: 1.5rem;
	border-radius: 4px;
}

.donate-card.okx .card-head {
	color: #06b6d4;
}

.donate-card:hover {
	border-color: var(--accent);
}

.card-head {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	color: var(--accent);
}

.code-pill {
	background: #000;
	border: 1px solid var(--border);
	padding: 0.5rem;
	margin-top: 0.5rem;
	font-size: 0.8rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #a3a3a3;
	max-width: 100%;
}

.code-pill span {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
	margin-right: 0.5rem;
	flex: 1;
}

.copy-btn {
	background: none;
	border: none;
	color: var(--text-muted);
	cursor: pointer;
	padding: 0.2rem;
}

.copy-btn:hover {
	color: var(--accent);
}

.network-select {
	width: 100%;
	background: #000;
	color: #fff;
	border: 1px solid var(--border);
	padding: 0.3rem;
	font-family: var(--font-mono);
}

.copy-toast {
	position: fixed;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	background: var(--accent);
	color: #000;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	font-weight: bold;
	opacity: 0;
	transition: opacity 0.3s;
	pointer-events: none;
}

.copy-toast.show {
	opacity: 1;
}

/* Responsive adjustments */
/* Responsive Mobile Dock */
@media (max-width: 1024px) {
	.page {
		padding-left: 24px;
		padding-bottom: 120px;
		max-width: 600px;
	}

	.sidebar-nav {
		display: flex;
		top: auto;
		bottom: 24px;
		left: 50%;
		transform: translateX(-50%);
		width: auto;
		height: auto;
		flex-direction: row;
		padding: 8px 12px;
		border-radius: 100px;
		background: rgba(23, 23, 23, 0.9);
		backdrop-filter: blur(12px);
		border: 1px solid rgba(255, 255, 255, 0.05);
	}

	.sidebar-nav:hover {
		width: auto;
	}

	.nav-link-item {
		width: auto;
		padding: 12px;
		border-radius: 50%;
		gap: 0;
	}

	.nav-text {
		display: none;
	}
}

@media (max-width: 540px) {
	.page {
		padding: 1.75rem 1.25rem 2.5rem;
		gap: 2rem;
	}
	.hero-links {
		flex-direction: column;
		align-items: stretch;
	}
	.hero-link {
		width: 100%;
		justify-content: space-between;
	}
	/* Optimized Modal Mobile */
	.modal-content {
		margin: 5% auto; /* Reduced from 12% */
		padding: 1rem; /* Reduced from 1.25rem */
		width: 92%;
	}
	.modal-header-row {
		flex-direction: row; /* Keep row for close button */
		justify-content: space-between;
		align-items: center;
		margin-bottom: 1rem;
		padding-bottom: 0.8rem;
	}
	.modal-header-row h2 {
		font-size: 1rem;
	}
	.donate-header p {
		font-size: 0.85rem;
		margin-bottom: 1.2rem;
	}
	.donate-grid {
		grid-template-columns: 1fr;
		gap: 1rem; /* Reduced gap */
	}
	.donate-card {
		padding: 1rem; /* Compact padding */
		min-width: 0; /* Critical for grid overflow fix */
	}
	.code-pill {
		font-size: 0.75rem; /* Smaller font for code */
		width: 100%; /* Force width containment */
	}
	.code-pill span {
		display: block; /* Ensure ellipsis works */
	}
}
