/* =============================================
   Project Article Page Styles
   ============================================= */

/* --- Nav --- */
.project-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 2.5rem;
	background: var(--bg-color);
	border-bottom: 1px solid var(--border-color);
	backdrop-filter: blur(8px);
}

/* offset content so it doesn't sit under the fixed nav */
#main .inner {
	padding-top: 5rem;
}

.back-link {
	font-size: 0.9rem;
	color: var(--text-color);
	text-decoration: none;
	border-bottom: none !important;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	transition: color 0.2s;
}

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

.back-arrow {
	font-size: 1.1rem;
}

.project-nav-logo {
	font-size: 1.2rem;
	letter-spacing: 0.05em;
}

/* --- Header --- */
.project-header {
	max-width: 780px;
	margin: 0 auto 3rem;
	text-align: center;
}

.project-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 1rem;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--text-color);
}

.project-category {
	color: var(--accent-color);
	font-weight: 600;
}

.project-date {
	color: var(--text-color);
}

.project-title {
	font-size: 2.4rem;
	line-height: 1.2;
	color: var(--text-dark);
	font-weight: 700;
	margin-bottom: 1.2rem;
	font-family: 'Roboto Slab', serif;
}

.project-subtitle {
	font-size: 1.1rem;
	line-height: 1.7;
	color: var(--text-color);
	margin-bottom: 1.5rem;
}

.project-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	margin-bottom: 2rem;
}

.tag {
	font-size: 0.75rem;
	padding: 0.3rem 0.8rem;
	border-radius: 20px;
	border: 1px solid var(--border-color);
	color: var(--text-color);
	background: var(--code-bg);
	letter-spacing: 0.05em;
}

.project-actions {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

/* --- Hero Image --- */
.project-hero {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto 4rem;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--border-color);
	box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.project-hero img {
	width: 100%;
	height: auto;
	display: block;
}

/* --- Body --- */
.project-body {
	max-width: 780px;
	margin: 0 auto;
}

/* --- Sections --- */
.project-section {
	margin-bottom: 3.5rem;
}

.project-section h2 {
	font-size: 1.4rem;
	color: var(--text-dark);
	font-weight: 700;
	margin-bottom: 1rem;
	padding-bottom: 0.6rem;
	border-bottom: 2px solid var(--accent-color);
	display: inline-block;
}

.project-section p {
	font-size: 1rem;
	line-height: 1.85;
	color: var(--text-color);
	margin-bottom: 1rem;
}

/* --- Insights Grid --- */
.insights-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.2rem;
	margin-top: 1.5rem;
}

.insight-card {
	background: var(--sidebar-bg);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 1.5rem;
	transition: border-color 0.2s;
}

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

.insight-icon {
	font-size: 1.6rem;
	display: block;
	margin-bottom: 0.6rem;
}

.insight-card h3 {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--text-dark);
	margin-bottom: 0.5rem;
}

.insight-card p {
	font-size: 0.88rem;
	line-height: 1.6;
	color: var(--text-color);
	margin: 0;
}

/* --- Image Row --- */
.project-image-row {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.2rem;
	margin-top: 1.5rem;
}

.project-image-row figure {
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid var(--border-color);
}

.project-image-row img {
	width: 100%;
	height: auto;
	display: block;
}

.project-image-row.project-image-centered {
	grid-template-columns: 1fr;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 2rem;
}

.project-image-row figcaption {
	font-size: 0.78rem;
	color: var(--text-color);
	padding: 0.5rem 0.8rem;
	background: var(--sidebar-bg);
	text-align: center;
}

/* --- Tech Steps --- */
.tech-steps {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-top: 1.5rem;
}

.tech-step {
	display: flex;
	gap: 1.5rem;
	align-items: flex-start;
}

.step-num {
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--accent-color);
	opacity: 0.4;
	line-height: 1;
	min-width: 2.5rem;
	font-family: 'Roboto Slab', serif;
}

.tech-step h3 {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--text-dark);
	margin-bottom: 0.4rem;
}

.tech-step p {
	font-size: 0.9rem;
	line-height: 1.7;
	color: var(--text-color);
	margin: 0;
}

/* --- CTA Footer --- */
.project-cta {
	text-align: center;
	padding: 3rem 2rem;
	margin-top: 2rem;
	border-top: 1px solid var(--border-color);
}

.project-cta h2 {
	font-size: 1.5rem;
	color: var(--text-dark);
	font-weight: 700;
	margin-bottom: 0.8rem;
}

.project-cta p {
	color: var(--text-color);
	margin-bottom: 1.5rem;
}

/* --- Data Sources --- */
.data-sources {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.2rem;
	margin-top: 1.5rem;
}

.data-source-card {
	background: var(--sidebar-bg);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 1.5rem;
	transition: border-color 0.2s;
}

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

.data-num {
	display: block;
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--accent-color);
	font-family: 'Roboto Slab', serif;
	margin-bottom: 0.4rem;
}

.data-source-card h3 {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--text-dark);
	margin-bottom: 0.5rem;
}

.data-source-card p {
	font-size: 0.85rem;
	line-height: 1.6;
	color: var(--text-color);
	margin: 0;
}

/* --- Metrics Grid --- */
.metrics-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin-top: 1.5rem;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.metric-card {
	background: var(--sidebar-bg);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 1.4rem 1rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.metric-value {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--accent-color);
	font-family: 'Roboto Slab', serif;
}

.metric-label {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--text-dark);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.metric-note {
	font-size: 0.75rem;
	color: var(--text-color);
	line-height: 1.4;
}

/* --- Insights Bullet List --- */
.insights-list {
	list-style: disc;
	padding-left: 1.4rem;
	margin-top: 1rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.insights-list li {
	font-size: 0.95rem;
	line-height: 1.8;
	color: var(--text-color);
	padding-left: 0.3rem;
}

.insights-list li strong {
	color: var(--text-dark);
}

/* --- Use Case List --- */
.use-case-list {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.use-case-list li {
	padding: 0.7rem 1rem 0.7rem 1.2rem;
	border-left: 3px solid var(--accent-color);
	background: var(--sidebar-bg);
	border-radius: 0 6px 6px 0;
	font-size: 0.9rem;
	color: var(--text-color);
	line-height: 1.5;
}

.use-case-list li strong {
	color: var(--text-dark);
}

/* --- Responsive --- */
@media (max-width: 700px) {
	.project-title {
		font-size: 1.7rem;
	}

	.insights-grid,
	.project-image-row,
	.data-sources {
		grid-template-columns: 1fr;
	}

	.metrics-grid {
		grid-template-columns: 1fr;
		max-width: 100%;
	}

	.tech-step {
		flex-direction: column;
		gap: 0.4rem;
	}

	.step-num {
		font-size: 1.2rem;
	}

	.project-actions {
		flex-direction: column;
		align-items: center;
	}
}
