:root {
	--shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
	--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
		0 4px 6px -4px rgb(0 0 0 / 0.1);
}

@media (prefers-color-scheme: dark) {
	:root {
		--shadow: 0 1px 3px 0 rgb(0 0 0 / 0.3), 0 1px 2px -1px rgb(0 0 0 / 0.3);
		--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3),
			0 4px 6px -4px rgb(0 0 0 / 0.3);
	}
}

body {
	font-family: 'Inter', Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI',
		sans-serif;
}

/* Profile Section */
.profile {
	padding: 2rem 0;
}

.avatar {
	box-shadow: var(--shadow-lg);
	transition: var(--transition);
}

.avatar:hover {
	box-shadow: var(--shadow-lg);
}

.bio {
	max-width: 400px;
	margin: 0 auto;
	line-height: 1.5;
}

/* Links Section */
.links {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	flex: 1;
}

.link-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 1rem 1.5rem;
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 0.75rem;
	text-decoration: none;
	color: var(--text-primary);
	font-weight: 500;
	font-size: 1rem;
	transition: var(--transition);
	box-shadow: var(--shadow);
	position: relative;
	overflow: hidden;
}

.link-button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.1),
		transparent
	);
	transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-button:hover {
	box-shadow: var(--shadow-lg), inset 0 0 0 2px var(--text-primary);
}

.link-button:hover::before {
	left: 100%;
}

.link-button:active {
	opacity: 0.9;
	transition: var(--transition);
}

.link-button .icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	transition: var(--transition);
	filter: brightness(0) invert(1);
}

/* Brand Colors */
.link-button.mastodon {
	background: linear-gradient(135deg, #6364ff 0%, #563acc 100%);
	color: white;
	border-color: #563acc;
}

.link-button.mastodon:hover {
	background: linear-gradient(135deg, #7575ff 0%, #6d4add 100%);
	box-shadow: 0 20px 25px -5px rgba(99, 100, 255, 0.3),
		0 10px 10px -5px rgba(99, 100, 255, 0.04), inset 0 0 0 2px #ffffff;
}

.link-button.bluesky {
	background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
	color: white;
	border-color: #0097a7;
}

.link-button.bluesky:hover {
	background: linear-gradient(135deg, #26c6da 0%, #00acc1 100%);
	box-shadow: 0 20px 25px -5px rgba(0, 188, 212, 0.3),
		0 10px 10px -5px rgba(0, 188, 212, 0.04), inset 0 0 0 2px #ffffff;
}

.link-button.steam {
	background: linear-gradient(135deg, #171a21 0%, #2a475e 100%);
	color: white;
	border-color: #2a475e;
}

.link-button.steam:hover {
	background: linear-gradient(135deg, #1e2328 0%, #355570 100%);
	box-shadow: 0 20px 25px -5px rgba(23, 26, 33, 0.4),
		0 10px 10px -5px rgba(23, 26, 33, 0.1), inset 0 0 0 2px #66c0f4;
}

.link-button.discord {
	background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
	color: white;
	border-color: #4752c4;
}

.link-button.discord:hover {
	background: linear-gradient(135deg, #6b75ff 0%, #5865f2 100%);
	box-shadow: 0 20px 25px -5px rgba(88, 101, 242, 0.3),
		0 10px 10px -5px rgba(88, 101, 242, 0.04), inset 0 0 0 2px #ffffff;
}

.link-button.github {
	background: linear-gradient(135deg, #24292e 0%, #1b1f23 100%);
	color: white;
	border-color: #1b1f23;
}

.link-button.github:hover {
	background: linear-gradient(135deg, #2f363d 0%, #24292e 100%);
	box-shadow: 0 20px 25px -5px rgba(36, 41, 46, 0.4),
		0 10px 10px -5px rgba(36, 41, 46, 0.1), inset 0 0 0 2px #f0f6fc;
}

.link-button.forgejo {
	background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
	color: white;
	border-color: #f7931e;
}

.link-button.forgejo:hover {
	background: linear-gradient(135deg, #ff7849 0%, #fb9d32 100%);
	box-shadow: 0 20px 25px -5px rgba(255, 107, 53, 0.3),
		0 10px 10px -5px rgba(255, 107, 53, 0.04), inset 0 0 0 2px #ffffff;
}

.link-button.gitlab {
	background: linear-gradient(135deg, #fc6d26 0%, #e24329 100%);
	color: white;
	border-color: #e24329;
}

.link-button.gitlab:hover {
	background: linear-gradient(135deg, #fd7a3a 0%, #f5633d 100%);
	box-shadow: 0 20px 25px -5px rgba(252, 109, 38, 0.3),
		0 10px 10px -5px rgba(252, 109, 38, 0.04), inset 0 0 0 2px #ffffff;
}

.footer {
	display: flex;
	justify-content: center;
	padding: 1rem 0;
	margin-top: auto;
	color: #6c6d6e;
}

a {
	color: #6c6d6e;
	text-decoration: none;
}

@media (prefers-color-scheme: dark) {
	.footer {
		color: #7d889b;
	}
	a {
		color: #7d889b;
	}
}

@media (max-width: 640px) {
	.container {
		padding: 1.5rem 1rem;
		gap: 1.5rem;
	}

	.name {
		font-size: 1.75rem;
	}

	.bio {
		font-size: 0.95rem;
	}

	.link-button {
		padding: 0.875rem 1.25rem;
		font-size: 0.95rem;
	}

	.avatar {
		width: 112px;
		height: 112px;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 1rem 0.75rem;
	}

	.name {
		font-size: 1.5rem;
	}

	.bio {
		font-size: 0.9rem;
	}

	.link-button {
		padding: 0.75rem 1rem;
		font-size: 0.9rem;
	}

	.avatar {
		width: 96px;
		height: 96px;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

.link-button:focus-visible {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
}

@media print {
	.link-button {
		box-shadow: none;
		border: 1px solid #000;
	}

	.footer::after {
		display: none;
	}
}
