/* Custom CSS overrides for your blog */

/* Link hover effects - fade to custom color with no underline */
a {
	transition: color 0.3s ease, opacity 0.3s ease !important;
	text-decoration: none !important;
	border-bottom: none !important;
}

a:hover {
	color: var(--link-hover-color) !important;
	text-decoration: none !important;
	border-bottom: none !important;
}

/* Social icons hover effect */
.social-icons a svg,
.social-icons a i {
	transition: color 0.3s ease, fill 0.3s ease, opacity 0.3s ease !important;
}

.social-icons a:hover svg,
.social-icons a:hover i {
	color: var(--link-hover-color) !important;
	fill: var(--link-hover-color) !important;
}

/* Menu links hover */
.menu a {
	transition: color 0.3s ease !important;
}

.menu a:hover {
	color: var(--link-hover-color) !important;
}

/* ============================================================================
 * DRACULA CODE BLOCK STYLING - DO NOT OVERRIDE
 * ============================================================================
 * These styles ensure Dracula theme displays correctly for code blocks.
 * IMPORTANT: Do not use var(--background) here as it conflicts with theme
 * variables. Always use the explicit Dracula background color #282A36.
 * 
 * Specificity is increased to prevent accidental overrides:
 * - Using attribute selectors [class*="language-"] for higher specificity
 * - Using !important to ensure these styles take precedence
 * - Scoped to both pre and code elements
 * ============================================================================ */

/* Base code block styling - Dracula theme background */
code[class*="language-"],
pre[class*="language-"] {
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", Helvetica, Arial, sans-serif !important;
	font-size: 0.9em !important;
	background: none !important;
}

/* Code blocks (pre elements) - Dracula dark background */
pre[class*="language-"],
pre code[class*="language-"],
article pre[class*="language-"],
.post-content pre[class*="language-"],
main pre[class*="language-"] {
	background: #282A36 !important; /* Dracula theme background - DO NOT CHANGE */
	border: none !important;
	box-shadow: none !important;
}

/* Inline code - Dracula dark background */
:not(pre) > code[class*="language-"],
article :not(pre) > code[class*="language-"],
.post-content :not(pre) > code[class*="language-"],
main :not(pre) > code[class*="language-"] {
	background: #282A36 !important; /* Dracula theme background - DO NOT CHANGE */
	border: none !important;
	box-shadow: none !important;
}

/* SAFEGUARD: Ensure Dracula background is never overridden by theme variables */
/* This rule has maximum specificity to prevent any accidental overrides */
html body article pre[class*="language-"],
html body article .post-content pre[class*="language-"],
html body main pre[class*="language-"],
html body article :not(pre) > code[class*="language-"],
html body article .post-content :not(pre) > code[class*="language-"],
html body main :not(pre) > code[class*="language-"] {
	background: #282A36 !important; /* Dracula theme background - NEVER USE var(--background) HERE */
}

/* Feature image styling - full width of post */
.post-feature-image {
	width: 100%;
	margin: 2rem 0;
}

.post-feature-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* Logo cursor color - green */
.logo__cursor {
	background: #50DB9B !important;
	animation: cursor 1s infinite !important;
}

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

/* Light mode - White body with grey navbar */
[data-theme="light"] body,
[data-theme="light"] .container {
	background: #fff !important;
}

[data-theme="light"] .header,
[data-theme="light"] .menu,
[data-theme="light"] .submenu,
[data-theme="light"] button.button,
[data-theme="light"] .button {
	background: #e5e5e5 !important;
}

@media (prefers-color-scheme: light) {
	body,
	.container {
		background: #fff !important;
	}
	
	.header,
	.menu,
	.submenu,
	button.button,
	.button {
		background: #e5e5e5 !important;
	}
}

/* Light mode - Front page text black (not grey) */
[data-theme="light"] main,
[data-theme="light"] main h1,
[data-theme="light"] main p,
[data-theme="light"] main .typing-subtitle,
[data-theme="light"] main .media-label,
[data-theme="light"] main .media-content,
[data-theme="light"] main .social-icons,
[data-theme="light"] main .social-icons a,
[data-theme="light"] main .social-icons svg {
	color: #000 !important;
}

[data-theme="light"] main .media-label {
	opacity: 1 !important;
	color: #000 !important;
	font-weight: 400 !important;
}

@media (prefers-color-scheme: light) {
	main,
	main h1,
	main p,
	main .typing-subtitle,
	main .media-label,
	main .media-content,
	main .social-icons,
	main .social-icons a,
	main .social-icons svg {
		color: #000 !important;
	}
	
	main .media-label {
		opacity: 1 !important;
		color: #000 !important;
		font-weight: 400 !important;
	}
}

/* Dark mode - Oil Black body with Rich Black navbar */
[data-theme="dark"] body,
[data-theme="dark"] .container {
	background: #0C0C0C !important;
}

[data-theme="dark"] .header,
[data-theme="dark"] .menu,
[data-theme="dark"] .submenu,
[data-theme="dark"] button.button,
[data-theme="dark"] .button {
	background: #0A0A0A !important;
}

@media (prefers-color-scheme: dark) {
	body,
	.container {
		background: #0C0C0C !important;
	}
	
	.header,
	.menu,
	.submenu,
	button.button,
	.button {
		background: #0A0A0A !important;
	}
}


/* Add your other custom styles below */

/* Media Widgets (GoodReads & Spotify) - Inline Version */
.media-widgets-inline {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 1.25rem 0;
	font-size: 0.75rem !important;
	align-items: flex-start;
	color: var(--text) !important;
}

.media-widget-inline {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex-wrap: wrap;
	font-size: 0.75rem !important;
	color: var(--text) !important;
}

.media-widget-inline i {
	font-size: 0.75rem !important;
	display: inline-block;
	line-height: 1;
	vertical-align: middle;
}

.media-widget-inline .spotify-equalizer,
.media-widget-inline .podcast-wave {
	font-size: 0.7rem !important;
}

.media-icon-wrapper {
	display: inline-flex;
	align-items: center;
}

.media-label {
	font-size: 0.75rem !important;
	color: var(--text) !important;
	opacity: 0.6;
	white-space: nowrap;
	font-weight: 400;
}

.media-content {
	font-size: 0.75rem !important;
	color: var(--text) !important;
	font-weight: 400;
}

.media-content a {
	font-size: 0.75rem !important;
	color: var(--text) !important;
	text-decoration: none !important;
	border-bottom: none !important;
}

.media-content a:hover {
	color: var(--link-hover-color);
	border-bottom: none !important;
}

/* Spotify Equalizer Animation */
.spotify-equalizer {
	display: inline-flex;
	align-items: flex-end;
	gap: 1.5px;
	height: 12px;
	width: 14px;
	position: relative;
	vertical-align: middle;
}

.spotify-equalizer .bar {
	width: 2.5px;
	background: #50DB9B;
	border-radius: 1px;
	animation: equalizer 0.8s ease-in-out infinite;
	transform-origin: bottom;
	display: block;
}

.spotify-equalizer .bar:nth-child(1) {
	animation-delay: 0s;
	height: 10px;
}

.spotify-equalizer .bar:nth-child(2) {
	animation-delay: 0.2s;
	height: 7px;
}

.spotify-equalizer .bar:nth-child(3) {
	animation-delay: 0.4s;
	height: 9px;
}

.spotify-equalizer .bar:nth-child(4) {
	animation-delay: 0.6s;
	height: 5px;
}

@keyframes equalizer {
	0%, 100% {
		transform: scaleY(1);
	}
	25% {
		transform: scaleY(0.4);
	}
	50% {
		transform: scaleY(0.7);
	}
	75% {
		transform: scaleY(0.3);
	}
}

/* Podcast Soundwave Animation */
.podcast-wave {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 16px;
	height: 14px;
	vertical-align: middle;
}

.podcast-wave i {
	font-size: 0.7rem;
	color: #50DB9B;
	position: relative;
	z-index: 2;
}

.podcast-wave .wave-ring {
	position: absolute;
	width: 100%;
	height: 100%;
	border: 1.5px solid #50DB9B;
	border-radius: 50%;
	opacity: 0;
	animation: podcast-pulse 2.5s ease-out infinite;
}

.podcast-wave .wave-ring:nth-child(2) {
	animation-delay: 0s;
}

.podcast-wave .wave-ring:nth-child(3) {
	animation-delay: 1.25s;
}

@keyframes podcast-pulse {
	0% {
		transform: scale(0.6);
		opacity: 0.6;
	}
	100% {
		transform: scale(1.8);
		opacity: 0;
	}
}

/* Footer customization - Centered single line - Force consistent size everywhere */
html body .container .footer,
html body .container .footer *,
html body .container .footer__inner,
html body .container .footer__inner *,
html body .container .footer__content,
html body .container .footer__content *,
html body .container .footer__content span,
html body .container .footer__content a,
html body .container .footer__content i,
html body .container .footer__content svg {
	font-size: 0.75rem !important;
}

.footer {
	text-align: center !important;
	padding: 40px 20px !important;
}

.footer__inner {
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	margin: 0 auto !important;
	width: 100% !important;
	max-width: 100% !important;
}

.footer__content {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: center !important;
	flex-wrap: wrap !important;
	gap: 0.5rem 0.75rem !important;
	font-size: 0.75rem !important;
	line-height: 1.5 !important;
}

.footer__content span {
	display: inline-flex !important;
	align-items: center !important;
	font-size: 0.75rem !important;
	line-height: 1.5 !important;
	white-space: nowrap !important;
	word-break: keep-all !important;
}

.footer__content a {
	font-size: 0.75rem !important;
	line-height: 1.5 !important;
	display: inline-flex !important;
	align-items: center !important;
	text-decoration: none !important;
	border-bottom: none !important;
}

.footer__content a:hover {
	text-decoration: none !important;
	border-bottom: none !important;
}

.footer__content i {
	font-size: 0.75rem !important;
	display: inline-block !important;
	vertical-align: middle !important;
	margin: 0 0.25rem !important;
}

/* Better spacing for coffee icon after "Powered by" */
.footer__content i.fa-coffee {
	margin-left: 0.5rem !important;
	margin-right: 0.4rem !important;
}

/* Better spacing for X/Twitter icon */
.footer__content i.fa-x-twitter {
	margin-left: 0.5rem !important;
	margin-right: 0.4rem !important;
}

.footer__content svg {
	width: 14px !important;
	height: 14px !important;
	vertical-align: middle !important;
	margin: 0 0.25rem !important;
}

/* Footer bullets between items - DISABLED - Override theme default */
.footer__content > *:not(:last-child)::after {
	content: "" !important;
	padding: 0 !important;
}

/* Light mode - Footer text black */
[data-theme="light"] .footer,
[data-theme="light"] .footer *,
[data-theme="light"] .footer__content,
[data-theme="light"] .footer__content *,
[data-theme="light"] .footer__content span,
[data-theme="light"] .footer__content a,
[data-theme="light"] .footer__content i,
[data-theme="light"] .footer__content svg {
	color: #000 !important;
	fill: #000 !important;
	stroke: #000 !important;
}

@media (prefers-color-scheme: light) {
	.footer,
	.footer *,
	.footer__content,
	.footer__content *,
	.footer__content span,
	.footer__content a,
	.footer__content i,
	.footer__content svg {
		color: #000 !important;
		fill: #000 !important;
		stroke: #000 !important;
	}
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.media-widgets-inline {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
		padding-left: 1rem;
		padding-right: 1rem;
	}
	
	.media-label {
		font-size: 0.7rem !important;
		color: var(--text) !important;
	}
	
	.media-content {
		font-size: 0.7rem !important;
		color: var(--text) !important;
	}
	
	.media-content a {
		font-size: 0.7rem !important;
		color: var(--text) !important;
	}
	
	.media-widget-inline i,
	.media-widget-inline .spotify-equalizer,
	.media-widget-inline .podcast-wave {
		font-size: 0.65rem !important;
	}
	
	.spotify-equalizer {
		height: 10px;
		width: 12px;
	}
	
	.podcast-wave {
		width: 14px;
		height: 12px;
	}
	
	.podcast-wave i {
		font-size: 0.6rem;
	}
	
	/* Footer responsive fixes for mobile */
	.footer {
		padding: 30px 15px !important;
	}
	
	.footer__content {
		flex-direction: row !important;
		flex-wrap: wrap !important;
		gap: 0.4rem 0.6rem !important;
		justify-content: center !important;
		align-items: center !important;
		padding: 0 10px !important;
	}
	
	/* Remove bullets on mobile when items wrap */
	.footer__content > *:not(:last-child)::after {
		content: "" !important;
		padding: 0 !important;
	}
	
	.footer__content span {
		display: inline-flex !important;
		align-items: center !important;
		white-space: normal !important;
		word-break: break-word !important;
		line-height: 1.4 !important;
		max-width: 100% !important;
		flex-shrink: 1 !important;
	}
	
	html body .container .footer,
	html body .container .footer *,
	html body .container .footer__inner,
	html body .container .footer__inner *,
	html body .container .footer__content,
	html body .container .footer__content *,
	html body .container .footer__content span,
	html body .container .footer__content a,
	html body .container .footer__content i {
		font-size: 0.7rem !important;
	}
	
	html body .container .footer__content svg {
		width: 12px !important;
		height: 12px !important;
	}
	
	.footer__content a {
		line-height: 1.4 !important;
		word-break: break-word !important;
		white-space: normal !important;
	}
	
	.footer__content i,
	.footer__content svg {
		margin: 0 0.2rem !important;
		flex-shrink: 0 !important;
	}
}

/* Extra small mobile devices */
@media (max-width: 480px) {
	.footer {
		padding: 20px 8px !important;
	}
	
	.footer__content {
		flex-direction: row !important;
		flex-wrap: wrap !important;
		gap: 0.25rem 0.4rem !important;
		justify-content: center !important;
		align-items: center !important;
		padding: 0 !important;
		line-height: 1.3 !important;
	}
	
	/* Ensure no bullets on very small screens */
	.footer__content > *:not(:last-child)::after {
		content: "" !important;
		padding: 0 !important;
	}
	
	.footer__content span {
		text-align: center !important;
		white-space: normal !important;
		word-break: break-word !important;
		line-height: 1.3 !important;
		display: inline-flex !important;
		align-items: center !important;
	}
	
	.footer__content a {
		line-height: 1.3 !important;
		white-space: normal !important;
		word-break: break-word !important;
	}
	
	html body .container .footer,
	html body .container .footer *,
	html body .container .footer__inner,
	html body .container .footer__inner *,
	html body .container .footer__content,
	html body .container .footer__content *,
	html body .container .footer__content span,
	html body .container .footer__content a,
	html body .container .footer__content i {
		font-size: 0.6rem !important;
		line-height: 1.3 !important;
	}
	
	html body .container .footer__content svg {
		width: 10px !important;
		height: 10px !important;
		margin: 0 0.15rem !important;
	}
	
	.footer__content i {
		font-size: 0.6rem !important;
		margin: 0 0.15rem !important;
	}
}

/* Table of Contents - Collapsible Dropdown */
.toc-container {
	margin: 1rem 0;
	font-size: 0.75rem;
	background: transparent !important;
}

.toc-toggle {
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	color: var(--text);
	font-size: 0.75rem;
	font-weight: 700;
	transition: color 0.2s ease;
	outline: none !important;
}

.toc-toggle:focus {
	outline: none !important;
	background: transparent !important;
	box-shadow: none !important;
	border: none !important;
}

.toc-toggle:focus-visible {
	outline: none !important;
	background: transparent !important;
	box-shadow: none !important;
	border: none !important;
}

.toc-toggle:active {
	background: transparent !important;
	outline: none !important;
	box-shadow: none !important;
	border: none !important;
}

.toc-toggle:hover {
	color: var(--link-hover-color);
}

.toc-toggle-text {
	flex: 1;
	text-align: left;
}

.toc-toggle-arrow {
	margin-left: 0.5rem;
	font-size: 0.7rem;
	transition: transform 0.2s ease;
	display: inline-block;
}

.toc-toggle[aria-expanded="true"] .toc-toggle-arrow {
	transform: rotate(180deg);
}

.toc-hr {
	margin: 0.5rem 0;
	border: none;
	border-top: 1px solid var(--border);
	opacity: 0.3;
}

.toc-content {
	font-size: 0.75rem;
	line-height: 1.6;
	margin-top: 0.75rem;
	overflow: hidden;
	transition: max-height 0.3s ease, opacity 0.3s ease;
	max-height: 0;
	opacity: 0;
	background: transparent !important;
	font-weight: 500;
}

.toc-content.toc-expanded {
	max-height: 2000px;
	opacity: 1;
}

.toc-content ul {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.toc-content li {
	margin: 0.25rem 0;
}

.toc-content a {
	color: var(--text);
	opacity: 0.7;
	text-decoration: none;
	transition: color 0.2s ease, opacity 0.2s ease;
	font-weight: 500;
}

.toc-content a:hover {
	color: var(--link-hover-color);
	opacity: 1;
	text-decoration: underline;
}

.toc-content ul ul {
	padding-left: 1rem;
	margin-top: 0.25rem;
}

.toc-content ul ul ul {
	padding-left: 1rem;
}

.toc-separator {
	display: flex;
	align-items: center;
	margin-top: 1rem;
	gap: 0.5rem;
}

.toc-separator-line {
	flex: 1;
	border: none;
	border-top: 1px solid var(--border);
	opacity: 0.3;
	margin: 0;
}

.toc-separator-icon {
	font-size: 0.7rem;
	opacity: 0.5;
	flex-shrink: 0;
}

/* Light mode specific TOC styling */
[data-theme="light"] .toc-container {
	background: transparent !important;
}

[data-theme="light"] .toc-content {
	background: transparent !important;
}

[data-theme="light"] .toc-toggle {
	color: #000;
	background: transparent !important;
	font-weight: 700;
}

@media (prefers-color-scheme: light) {
	.toc-container {
		background: transparent !important;
	}
	
	.toc-content {
		background: transparent !important;
	}
	
	.toc-toggle {
		color: #000;
		background: transparent !important;
		font-weight: 700;
	}
}

[data-theme="light"] .toc-toggle:hover {
	color: #50DB9B;
}

@media (prefers-color-scheme: light) {
	.toc-toggle:hover {
		color: #50DB9B;
	}
}

[data-theme="light"] .toc-hr {
	border-top-color: #dcdcdc;
	opacity: 0.6;
}

@media (prefers-color-scheme: light) {
	.toc-hr {
		border-top-color: #dcdcdc;
		opacity: 0.6;
	}
}

[data-theme="light"] .toc-content a {
	color: #000;
	font-weight: 500;
}

@media (prefers-color-scheme: light) {
	.toc-content a {
		color: #000;
		font-weight: 500;
	}
}

[data-theme="light"] .toc-content a:hover {
	color: #50DB9B;
}

@media (prefers-color-scheme: light) {
	.toc-content a:hover {
		color: #50DB9B;
	}
}

[data-theme="light"] .toc-separator-line {
	border-top-color: #dcdcdc;
	opacity: 0.6;
}

@media (prefers-color-scheme: light) {
	.toc-separator-line {
		border-top-color: #dcdcdc;
		opacity: 0.6;
	}
}

[data-theme="light"] .toc-separator-icon {
	opacity: 0.4;
}

@media (prefers-color-scheme: light) {
	.toc-separator-icon {
		opacity: 0.4;
	}
}

[data-theme="light"] .toc-toggle:focus {
	outline: none !important;
	background: transparent !important;
	box-shadow: none !important;
	border: none !important;
}

[data-theme="light"] .toc-toggle:focus-visible {
	outline: none !important;
	background: transparent !important;
	box-shadow: none !important;
	border: none !important;
}

[data-theme="light"] .toc-toggle:active {
	background: transparent !important;
	outline: none !important;
	box-shadow: none !important;
	border: none !important;
}

@media (prefers-color-scheme: light) {
	.toc-toggle:focus {
		outline: none !important;
		background: transparent !important;
		box-shadow: none !important;
		border: none !important;
	}
	
	.toc-toggle:focus-visible {
		outline: none !important;
		background: transparent !important;
		box-shadow: none !important;
		border: none !important;
	}
	
	.toc-toggle:active {
		background: transparent !important;
		outline: none !important;
		box-shadow: none !important;
		border: none !important;
	}
}

/* Dark mode specific TOC styling */
[data-theme="dark"] .toc-content a {
	color: var(--text);
	opacity: 0.7;
	font-weight: 500;
}

[data-theme="dark"] .toc-content a:hover {
	color: var(--link-hover-color);
	opacity: 1;
}

@media (prefers-color-scheme: dark) {
	.toc-content a {
		color: var(--text);
		opacity: 0.7;
		font-weight: 500;
	}
	
	.toc-content a:hover {
		color: var(--link-hover-color);
		opacity: 1;
	}
	
	.toc-toggle:focus {
		outline: none !important;
		background: transparent !important;
		box-shadow: none !important;
		border: none !important;
	}
	
	.toc-toggle:focus-visible {
		outline: none !important;
		background: transparent !important;
		box-shadow: none !important;
		border: none !important;
	}
	
	.toc-toggle:active {
		background: transparent !important;
		outline: none !important;
		box-shadow: none !important;
		border: none !important;
	}
}

/* Highlight Animation - Only animates when visible */
.highlight-animated {
	position: relative;
	display: inline;
	padding: 0.15em 0.3em;
	margin: 0 -0.3em;
	border-radius: 0.25em;
	background: transparent;
	background-image: linear-gradient(90deg, rgba(80, 219, 155, 0.5) 0%, rgba(80, 219, 155, 0.5) 100%);
	background-size: 0% 100%;
	background-position: left center;
	background-repeat: no-repeat;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
	box-shadow: none;
	color: #ffffff;
	/* No animation by default - only when visible */
}

/* Animation only triggers when element has 'highlight-visible' class */
.highlight-animated.highlight-visible {
	animation: highlight-slide 2.5s ease-out forwards;
}

@keyframes highlight-slide {
	0% {
		background-size: 0% 100%;
		box-shadow: none;
	}
	100% {
		background-size: 100% 100%;
		box-shadow: 0 0 8px rgba(80, 219, 155, 0.3);
	}
}

/* Light mode highlight color - more vibrant */
[data-theme="light"] .highlight-animated {
	background: transparent;
	background-image: linear-gradient(90deg, rgba(80, 219, 155, 0.5) 0%, rgba(80, 219, 155, 0.5) 100%);
	background-size: 0% 100%;
	background-position: left center;
	background-repeat: no-repeat;
	box-shadow: none;
	color: #000000;
}

[data-theme="light"] .highlight-animated.highlight-visible {
	animation: highlight-slide-light 2.5s ease-out forwards;
}

@keyframes highlight-slide-light {
	0% {
		background-size: 0% 100%;
		box-shadow: none;
	}
	100% {
		background-size: 100% 100%;
		box-shadow: 0 0 6px rgba(80, 219, 155, 0.4);
	}
}

@media (prefers-color-scheme: light) {
	.highlight-animated {
		background: transparent;
		background-image: linear-gradient(90deg, rgba(80, 219, 155, 0.5) 0%, rgba(80, 219, 155, 0.5) 100%);
		background-size: 0% 100%;
		background-position: left center;
		background-repeat: no-repeat;
		box-shadow: none;
		color: #000000;
	}
	
	.highlight-animated.highlight-visible {
		animation: highlight-slide-light 2.5s ease-out forwards;
	}
}

/* Dark mode highlight color - more vibrant */
[data-theme="dark"] .highlight-animated {
	background: transparent;
	background-image: linear-gradient(90deg, rgba(80, 219, 155, 0.5) 0%, rgba(80, 219, 155, 0.5) 100%);
	background-size: 0% 100%;
	background-position: left center;
	background-repeat: no-repeat;
	box-shadow: none;
	color: #ffffff;
}

[data-theme="dark"] .highlight-animated.highlight-visible {
	animation: highlight-slide 2.5s ease-out forwards;
}

@media (prefers-color-scheme: dark) {
	.highlight-animated {
		background: transparent;
		background-image: linear-gradient(90deg, rgba(80, 219, 155, 0.5) 0%, rgba(80, 219, 155, 0.5) 100%);
		background-size: 0% 100%;
		background-position: left center;
		background-repeat: no-repeat;
		box-shadow: none;
		color: #ffffff;
	}
	
	.highlight-animated.highlight-visible {
		animation: highlight-slide 2.5s ease-out forwards;
	}
}

/* Underline Animation - Only animates when visible */
.underline-animated {
	position: relative;
	display: inline;
	text-decoration: none;
	background-image: linear-gradient(90deg, rgba(80, 219, 155, 0.8) 0%, rgba(80, 219, 155, 0.8) 100%);
	background-size: 0% 2px;
	background-position: left bottom;
	background-repeat: no-repeat;
	padding-bottom: 2px;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
	color: #ffffff;
	/* No animation by default - only when visible */
}

/* Animation only triggers when element has 'underline-visible' class */
.underline-animated.underline-visible {
	animation: underline-slide 2.5s ease-out forwards;
}

@keyframes underline-slide {
	0% {
		background-size: 0% 2px;
		box-shadow: 0 0 0px rgba(80, 219, 155, 0);
	}
	100% {
		background-size: 100% 2px;
		box-shadow: 0 2px 4px rgba(80, 219, 155, 0.2);
	}
}

/* Light mode underline color */
[data-theme="light"] .underline-animated {
	background-image: linear-gradient(90deg, rgba(80, 219, 155, 0.7) 0%, rgba(80, 219, 155, 0.7) 100%);
	background-size: 0% 2px;
	background-position: left bottom;
	background-repeat: no-repeat;
	color: #000000;
}

[data-theme="light"] .underline-animated.underline-visible {
	animation: underline-slide-light 2.5s ease-out forwards;
}

@keyframes underline-slide-light {
	0% {
		background-size: 0% 2px;
		box-shadow: 0 0 0px rgba(80, 219, 155, 0);
	}
	100% {
		background-size: 100% 2px;
		box-shadow: 0 2px 4px rgba(80, 219, 155, 0.3);
	}
}

@media (prefers-color-scheme: light) {
	.underline-animated {
		background-image: linear-gradient(90deg, rgba(80, 219, 155, 0.7) 0%, rgba(80, 219, 155, 0.7) 100%);
		background-size: 0% 2px;
		background-position: left bottom;
		background-repeat: no-repeat;
		color: #000000;
	}
	
	.underline-animated.underline-visible {
		animation: underline-slide-light 2.5s ease-out forwards;
	}
}

/* Dark mode underline color */
[data-theme="dark"] .underline-animated {
	background-image: linear-gradient(90deg, rgba(80, 219, 155, 0.8) 0%, rgba(80, 219, 155, 0.8) 100%);
	background-size: 0% 2px;
	background-position: left bottom;
	background-repeat: no-repeat;
	color: #ffffff;
}

[data-theme="dark"] .underline-animated.underline-visible {
	animation: underline-slide 2.5s ease-out forwards;
}

@media (prefers-color-scheme: dark) {
	.underline-animated {
		background-image: linear-gradient(90deg, rgba(80, 219, 155, 0.8) 0%, rgba(80, 219, 155, 0.8) 100%);
		background-size: 0% 2px;
		background-position: left bottom;
		background-repeat: no-repeat;
		color: #ffffff;
	}
	
	.underline-animated.underline-visible {
		animation: underline-slide 2.5s ease-out forwards;
	}
}

/* Typing Subtitle Animation */
.typing-subtitle {
	position: relative;
	min-height: 1.5em; /* Prevent layout shift */
}

.typing-subtitle::after {
	content: '';
	display: inline-block;
	width: 2px;
	height: 1em;
	margin-left: 3px;
	background-color: var(--link-hover-color);
	vertical-align: text-bottom;
	animation: typing-cursor 1s infinite;
}

@keyframes typing-cursor {
	0%, 50% {
		opacity: 1;
	}
	51%, 100% {
		opacity: 0;
	}
}

/* Light mode typing cursor */
[data-theme="light"] .typing-subtitle::after {
	background-color: #50DB9B;
}

@media (prefers-color-scheme: light) {
	.typing-subtitle::after {
		background-color: #50DB9B;
	}
}

/* Projects List Layout - Minimal Horizontal */
.projects {
	padding: 2rem 0;
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

.projects h1.post-title {
	margin: 0 0 1rem 0;
	text-align: center;
}

.projects .content {
	margin-bottom: 1.5rem;
	text-align: left;
}

.projects-list {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	margin-top: 2rem;
}

.project-item {
	border-bottom: 1px solid var(--border);
	padding-bottom: 2.5rem;
}

.project-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.project-item-link {
	display: flex;
	align-items: center;
	gap: 2rem;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s ease;
}

.project-item-link:hover {
	opacity: 0.8;
}

.project-item-thumbnail {
	flex-shrink: 0;
	width: 300px;
	height: 200px;
	overflow: hidden;
	background: var(--border);
}

.project-item-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.project-item-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	justify-content: center;
}

.project-item-content p {
	margin: 0;
	padding: 0;
	text-indent: 0;
}

.project-item-title {
	margin: 0;
	font-size: 1.5rem;
	color: var(--text);
	line-height: 1.3;
}

.project-item-link:hover .project-item-title {
	color: var(--link-hover-color);
}

.project-item-description {
	margin: 0;
	padding: 0;
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--text);
	opacity: 0.8;
	word-wrap: break-word;
	overflow-wrap: break-word;
	hyphens: auto;
	text-indent: 0;
	text-align: left;
}

.project-item-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.25rem;
}

.project-item-tag {
	display: inline-block;
	font-size: 0.8rem;
	color: var(--text);
	opacity: 0.6;
}

.project-item-tag:not(:last-child)::after {
	content: "•";
	margin-left: 0.5rem;
	margin-right: 0.25rem;
	opacity: 0.4;
}

/* Project Single Page */
.project {
	padding: 2rem 0;
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

@media (max-width: 768px) {
	.project {
		max-width: 600px;
		padding-left: 15px;
		padding-right: 15px;
	}
}

@media (max-width: 480px) {
	.project {
		padding-left: 10px;
		padding-right: 10px;
	}
}

.project-info {
	margin-bottom: 1.5rem;
}

.project-info p {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0.5rem 0;
	font-size: 0.9rem;
	color: var(--text);
	opacity: 0.7;
}

.project-info svg {
	width: 18px;
	height: 18px;
}

.project-info a {
	color: var(--link-hover-color);
	text-decoration: none;
	transition: color 0.2s ease;
}

.project-info a:hover {
	color: var(--link-hover-color);
}

.project-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin-top: 0.5rem;
}

.project-links p {
	margin: 0;
}

.project article {
	margin-bottom: 2rem;
	width: 100%;
}

.project article > * {
	text-align: left;
}

.project article .project-title {
	font-size: 2.5rem;
	margin: 0 0 1rem 0;
	color: var(--text);
	font-weight: 700;
	line-height: 1.2;
}

.project-excerpt {
	font-size: 1.2rem;
	line-height: 1.7;
	color: var(--text);
	opacity: 0.85;
	margin: 0 0 2.5rem 0;
	font-weight: 400;
	text-align: left;
}

.project-cover {
	width: 100%;
	margin: 2.5rem 0;
	display: flex;
	justify-content: center;
}

.project-feature-image {
	max-width: 600px;
	width: 100%;
	margin: 0 auto;
}

.project-feature-image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
}

@media (max-width: 768px) {
	.project-feature-image {
		max-width: 100%;
	}
}

.project-content {
	margin-top: 2.5rem;
	line-height: 1.8;
	font-size: 1rem;
	max-width: 100%;
}

.project-content h2 {
	margin-top: 2.5rem;
	margin-bottom: 1rem;
	color: var(--text);
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1.3;
}

.project-content h2:first-of-type {
	margin-top: 0;
}

.project-content h3 {
	margin-top: 2rem;
	margin-bottom: 0.75rem;
	color: var(--text);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.3;
}

.project-content h4 {
	margin-top: 1.5rem;
	margin-bottom: 0.75rem;
	color: var(--text);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
}

.project-content p {
	margin-bottom: 1.25rem;
	line-height: 1.8;
}

.project-content p:first-of-type {
	margin-top: 0;
}

.project-content ul,
.project-content ol {
	margin-left: 40px;
	margin-bottom: 1.25rem;
	padding: 0;
	line-height: 1.8;
}

.project-content li {
	margin-bottom: 0.75rem;
	padding-left: 0;
}

.project-content li::marker {
	color: var(--text);
	opacity: 0.7;
}

.project-content ul ul,
.project-content ol ol {
	margin-left: 30px;
	margin-top: 0.5rem;
}

.project-content code {
	background: var(--border);
	padding: 0.2rem 0.4rem;
	border-radius: 3px;
	font-size: 0.9em;
	font-family: 'Courier New', Courier, monospace;
}

.project-content pre {
	background: var(--border);
	padding: 1.25rem;
	border-radius: 4px;
	overflow-x: auto;
	margin-bottom: 1.25rem;
	line-height: 1.6;
}

.project-content pre code {
	background: none;
	padding: 0;
	font-size: 0.9em;
}

.project-content blockquote {
	border-left: 3px solid var(--link-hover-color);
	padding-left: 1.5rem;
	margin: 1.5rem 0;
	opacity: 0.8;
	font-style: italic;
}

.project-content hr {
	margin: 2rem 0;
	border: none;
	border-top: 1px solid var(--border);
	opacity: 0.3;
}

.project-content img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	margin: 1.5rem 0;
}

.project-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
}

.project-content table th,
.project-content table td {
	padding: 0.75rem;
	border: 1px solid var(--border);
	text-align: left;
}

.project-content table th {
	background: var(--border);
	font-weight: 600;
}

/* Responsive adjustments for projects */
@media (max-width: 768px) {
	.projects {
		padding-left: 20px;
		padding-right: 20px;
		max-width: 100%;
	}

	.projects h1 {
		font-size: 1.75rem;
		margin-bottom: 0.75rem;
	}

	.projects .content {
		margin-bottom: 1rem;
		font-size: 0.95rem;
	}

	.projects-list {
		gap: 2rem;
		margin-top: 1.5rem;
	}

	.project-item {
		padding-bottom: 2rem;
	}

	.project-item-link {
		flex-direction: column;
		gap: 1rem;
		align-items: center;
		text-align: center;
	}

	.project-item-thumbnail {
		width: 100%;
		max-width: 300px;
		height: 180px;
	}

	.project-item-content {
		align-items: center;
		text-align: center;
	}

	.project-item-title {
		font-size: 1.25rem;
		text-align: center;
	}

	.project-item-description {
		font-size: 0.9rem;
		text-align: center;
	}

	.project-item-tags {
		justify-content: center;
	}

	.project article .project-title {
		font-size: 2rem;
	}

	.project-excerpt {
		font-size: 1.1rem;
	}

	.project-content {
		font-size: 0.95rem;
	}

	.project-content ul,
	.project-content ol {
		margin-left: 30px;
	}

	.project-content h2 {
		font-size: 1.5rem;
	}

	.project-content h3 {
		font-size: 1.25rem;
	}

	.project-content h4 {
		font-size: 1.1rem;
	}
}

@media (max-width: 480px) {
	.projects {
		padding: 1.5rem 20px;
	}

	.projects h1 {
		font-size: 1.5rem;
		margin-bottom: 0.5rem;
		text-align: center;
	}

	.projects .content {
		margin-bottom: 0.75rem;
		font-size: 0.9rem;
		text-align: center;
	}

	.projects-list {
		gap: 1.5rem;
		margin-top: 1rem;
	}

	.project-item {
		padding-bottom: 1.5rem;
	}

	.project-item-link {
		gap: 0.75rem;
		align-items: center;
		text-align: center;
	}

	.project-item-thumbnail {
		max-width: 280px;
		height: 160px;
	}

	.project-item-content {
		align-items: center;
		text-align: center;
	}

	.project-item-title {
		font-size: 1.15rem;
		text-align: center;
	}

	.project-item-description {
		font-size: 0.85rem;
		text-align: center;
	}

	.project-item-tags {
		justify-content: center;
	}

	.project-item-tag {
		font-size: 0.75rem;
	}

	.project article .project-title {
		font-size: 1.75rem;
	}

	.project-excerpt {
		font-size: 1rem;
		margin-bottom: 2rem;
	}

	.project-content {
		font-size: 0.9rem;
	}

	.project-content ul,
	.project-content ol {
		margin-left: 20px;
	}

	.project-content h2 {
		font-size: 1.35rem;
	}

	.project-content h3 {
		font-size: 1.15rem;
	}

	.project-content h4 {
		font-size: 1rem;
	}

	.project-links {
		flex-direction: column;
		gap: 1rem;
	}
}

/* Light mode project item adjustments */
[data-theme="light"] .project-item {
	border-bottom-color: #e0e0e0;
}

@media (prefers-color-scheme: light) {
	.project-item {
		border-bottom-color: #e0e0e0;
	}
}

/* ============================================================================
 * SNOWFALL ANIMATION
 * ============================================================================
 * Elegant falling snow effect with actual snowflake shapes ❄
 * Configurable via hugo.toml [params.snow] section
 * ============================================================================ */

.snowfall-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 9999;
	overflow: hidden;
}

.snowflake {
	position: absolute;
	top: -30px;
	pointer-events: none;
	will-change: transform;
	user-select: none;
	line-height: 1;
}


@keyframes snowfall {
	0% {
		transform: translateY(-30px) translateX(0) rotate(var(--rotation, 0deg));
	}
	25% {
		transform: translateY(25vh) translateX(calc(var(--sway, 20px) * 1)) rotate(calc(var(--rotation, 0deg) + 90deg));
	}
	50% {
		transform: translateY(50vh) translateX(calc(var(--sway, 20px) * -0.5)) rotate(calc(var(--rotation, 0deg) + 180deg));
	}
	75% {
		transform: translateY(75vh) translateX(calc(var(--sway, 20px) * 0.8 + var(--drift, 0px) * 0.5)) rotate(calc(var(--rotation, 0deg) + 270deg));
	}
	100% {
		transform: translateY(105vh) translateX(var(--drift, 0px)) rotate(var(--rotation-end, 360deg));
	}
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
	.snowfall-container {
		display: none;
	}
}

/* ============================================================================
 * LEAF FALL ANIMATION
 * ============================================================================
 * Elegant falling leaves effect 🍂🍁
 * Configurable via hugo.toml [params.leaves] section
 * ============================================================================ */

.leaffall-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 9999;
	overflow: hidden;
}

.leaf {
	position: absolute;
	top: -40px;
	pointer-events: none;
	will-change: transform;
	user-select: none;
	line-height: 1;
}

/* Dark mode - vibrant glowing leaves */
[data-theme="dark"] .leaf {
	filter: brightness(1.1) saturate(1.2) drop-shadow(0 0 4px rgba(255, 140, 0, 0.4));
}

@media (prefers-color-scheme: dark) {
	.leaf {
		filter: brightness(1.1) saturate(1.2) drop-shadow(0 0 4px rgba(255, 140, 0, 0.4));
	}
}

/* Light mode - natural looking leaves */
[data-theme="light"] .leaf {
	filter: saturate(1.1) drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.15));
}

@media (prefers-color-scheme: light) {
	.leaf {
		filter: saturate(1.1) drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.15));
	}
}

@keyframes leaffall {
	0% {
		transform: translateY(-40px) translateX(0) rotate(var(--rotation, 0deg));
	}
	100% {
		transform: translateY(105vh) translateX(var(--drift, 100px)) rotate(var(--rotation-end, 360deg));
	}
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
	.leaffall-container {
		display: none;
	}
}

