/* Subpage Styles */

.subpage {
	background: #232323;
	min-height: 100vh;
	overflow-x: hidden;
	overflow-y: auto;
}

/* Override demo.css main styles for subpages */
.subpage main,
.subpage .subpage-main {
	overflow: visible;
	height: auto;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	position: relative;
}

.subpage-main {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2.5em;
}

/* Header */
.subpage-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 3em;
	padding-bottom: 1.5em;
	border-bottom: 1px solid #464646;
}

.subpage-header--code {
	border-bottom-color: rgba(224, 193, 67, 0.3);
}

.back-link {
	display: flex;
	align-items: center;
	gap: 0.5em;
	font-family: 'Caudex', sans-serif;
	font-size: 1rem;
	color: #a29f9f;
	text-decoration: none;
	transition: color 0.3s ease;
}

.back-link:hover {
	color: #8860ff;
}

.back-link--code {
	font-family: 'Monotalic', monospace;
	text-transform: lowercase;
}

.back-link--code:hover {
	color: #e0c143;
}

.back-arrow {
	font-size: 1.2em;
}

.subpage-title {
	font-family: 'Caudex', sans-serif;
	font-size: 2em;
	font-weight: 300;
	color: #fff;
	margin: 0;
	letter-spacing: 1.5px;
}

.subpage-title--code {
	font-family: 'Monotalic', monospace;
	text-transform: lowercase;
	color: #e0c143;
}

/* Section Titles */
.section-title {
	font-family: 'Caudex', sans-serif;
	font-size: 1.5em;
	font-weight: 300;
	color: #a29f9f;
	margin: 3em 0 1.5em;
	padding-bottom: 0.5em;
	border-bottom: 1px solid #464646;
}

.section-title--code {
	font-family: 'Monotalic', monospace;
	text-transform: lowercase;
	color: #e0c143;
	border-bottom-color: rgba(224, 193, 67, 0.3);
}

/* Projects Grid */
.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 2em;
}

/* Project Card */
.project-card {
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid #464646;
	border-radius: 4px;
	padding: 2em;
	transition: all 0.3s ease;
}

.project-card:hover {
	border-color: #8860ff;
	background: rgba(108, 58, 255, 0.05);
	transform: translateY(-2px);
}

.project-card--code {
	border-color: rgba(224, 193, 67, 0.3);
}

.project-card--code:hover {
	border-color: #e0c143;
	background: rgba(224, 193, 67, 0.05);
}

/* Featured cards now look like regular cards */

.project-card__year {
	font-family: 'Monotalic', monospace;
	font-size: 1rem;
	color: #8860ff;
	margin-bottom: 0.5em;
	letter-spacing: 1px;
}

.project-card__year--code {
	color: #e0c143;
}

.project-card__title {
	font-family: 'Caudex', sans-serif;
	font-size: 1.25em;
	font-weight: 400;
	color: #fff;
	margin: 0 0 0.25em;
	line-height: 1.3;
}

.project-card__title--code {
	font-family: 'Monotalic', monospace;
	text-transform: lowercase;
}

.project-card__client {
	font-family: 'Caudex', sans-serif;
	font-size: 1rem;
	color: #8860ff;
	margin: 0 0 1em;
	text-transform: uppercase;
	letter-spacing: 1.5px;
}

.project-card__client--code {
	font-family: 'Monotalic', monospace;
	text-transform: lowercase;
	color: #e0c143;
}

.project-card__description {
	font-family: 'Caudex', sans-serif;
	font-size: 1rem;
	color: #a29f9f;
	line-height: 1.7;
	margin: 0 0 1.5em;
}

/* Tags */
.project-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
}

.tag {
	font-family: 'Monotalic', monospace;
	font-size: 1rem;
	color: #585656;
	background: rgba(255, 255, 255, 0.03);
	padding: 0.35em 0.75em;
	border-radius: 2px;
	border: 1px solid #464646;
	text-transform: lowercase;
}

.tag--code {
	border-color: rgba(224, 193, 67, 0.2);
	color: rgba(224, 193, 67, 0.7);
}

/* Publications Section */
.publications-section {
	margin-top: 2em;
}

/* Illustrations Section */
.illustrations-section {
	margin-bottom: 2em;
}

.illustrations-section:first-of-type .section-title {
	margin-top: 0;
}

/* Footer */
.subpage-footer {
	margin-top: auto;
	padding-top: 3em;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid #464646;
}

.subpage-footer--code {
	border-top-color: rgba(224, 193, 67, 0.3);
}

.social-links {
	display: flex;
	gap: 2em;
}

.social-link {
	font-family: 'Monotalic', monospace;
	font-size: 1rem;
	color: #e0c143;
	text-decoration: none;
	text-transform: lowercase;
	transition: color 0.3s ease;
}

.social-link:hover {
	color: #fff;
}

/* Responsive */
@media screen and (max-width: 768px) {
	.subpage-main {
		padding: 1.5em;
	}

	.subpage-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 1em;
	}

	.subpage-title {
		font-size: 1.5em;
	}

	.projects-grid {
		grid-template-columns: 1fr;
	}

	.project-card {
		padding: 1.5em;
	}

	.subpage-footer {
		flex-direction: column;
		gap: 1.5em;
		align-items: flex-start;
	}
}

@media screen and (max-width: 480px) {
	.subpage-main {
		padding: 1em;
	}

	.project-card__title {
		font-size: 1.1em;
	}

	.section-title {
		font-size: 1.25em;
	}
}
