/* ─── project.css — single project detail page (pr- prefix) ─── */

/* ──────────────────────────────────────────────
   Variables
────────────────────────────────────────────── */
:root {
	--pr-accent: #a259ff;
	--pr-accent-dim: rgba(162, 89, 255, 0.12);
	--pr-border: rgba(255, 255, 255, 0.07);
	--pr-surface: rgba(255, 255, 255, 0.03);
	--pr-surface-2: rgba(255, 255, 255, 0.05);
	--pr-text: rgba(255, 255, 255, 0.85);
	--pr-muted: rgba(255, 255, 255, 0.45);
}

/* ──────────────────────────────────────────────
   Breadcrumb bar
────────────────────────────────────────────── */
.pr-back-bar {
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--pr-border);
	background: rgba(255, 255, 255, 0.015);
}

.pr-back-bar__container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 2rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.82rem;
	color: var(--pr-muted);
}

.pr-back-bar__link {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--pr-accent);
	text-decoration: none;
	font-weight: 500;
	transition: opacity 0.2s;
}
.pr-back-bar__link:hover {
	opacity: 0.8;
}
.pr-back-bar__link svg {
	flex-shrink: 0;
}

.pr-back-bar__chevron {
	opacity: 0.35;
}

.pr-back-bar__current {
	color: var(--pr-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 420px;
}

/* ──────────────────────────────────────────────
   Hero
────────────────────────────────────────────── */
.pr-hero {
	padding: 4.5rem 0 3.5rem;
}

.pr-hero__container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 2rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

/* content */
.pr-hero__content {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.pr-hero__label {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pr-accent);
	background: var(--pr-accent-dim);
	border: 1px solid rgba(162, 89, 255, 0.25);
	padding: 0.28rem 0.75rem;
	border-radius: 100px;
	width: fit-content;
}

.pr-hero__title {
	font-size: clamp(1.8rem, 3.5vw, 2.6rem);
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	margin: 0;
}

.pr-hero__desc {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--pr-muted);
	margin: 0;
}

.pr-hero__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: 0.25rem;
}

.pr-hero__year {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.82rem;
	color: var(--pr-muted);
}
.pr-hero__year svg {
	opacity: 0.6;
}

.pr-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.55rem 1.3rem;
	background: var(--pr-accent);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 600;
	border-radius: 8px;
	text-decoration: none;
	transition:
		filter 0.2s,
		transform 0.2s;
}
.pr-hero__cta:hover {
	filter: brightness(1.15);
	transform: translateY(-1px);
}

/* image */
.pr-hero__visual {
	position: relative;
}

.pr-hero__img-wrap {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--pr-border);
	box-shadow:
		0 0 0 1px var(--pr-border),
		0 24px 64px rgba(0, 0, 0, 0.45),
		0 0 80px rgba(162, 89, 255, 0.08);
}

.pr-hero__img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 3/2;
	object-fit: cover;
	transition: transform 0.55s ease;
}
.pr-hero__img-wrap:hover .pr-hero__img {
	transform: scale(1.03);
}

/* ──────────────────────────────────────────────
   Content + Sidebar
────────────────────────────────────────────── */
.pr-content {
	padding: 3rem 0 4rem;
	border-top: 1px solid var(--pr-border);
}

.pr-content__container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 2rem;
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 4rem;
	align-items: start;
}

.pr-content__heading {
	font-size: 1.35rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 1.2rem;
}

.pr-content__text {
	font-size: 0.97rem;
	line-height: 1.82;
	color: var(--pr-muted);
	margin: 0;
	white-space: pre-line;
}

/* ──────────────────────────────────────────────
   Sidebar
────────────────────────────────────────────── */
.pr-sidebar {
	display: flex;
	flex-direction: column;
	gap: 0;
	border: 1px solid var(--pr-border);
	border-radius: 14px;
	background: var(--pr-surface);
	overflow: hidden;
	position: sticky;
	top: 100px;
}

.pr-sidebar__block {
	padding: 1.1rem 1.4rem;
	border-bottom: 1px solid var(--pr-border);
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.pr-sidebar__label {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pr-muted);
}

.pr-sidebar__value {
	font-size: 0.9rem;
	color: var(--pr-text);
	font-weight: 500;
}

.pr-sidebar__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.82rem;
	color: var(--pr-accent);
	text-decoration: none;
	word-break: break-all;
	transition: opacity 0.2s;
}
.pr-sidebar__link:hover {
	opacity: 0.75;
}

/* tags */
.pr-sidebar__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.pr-sidebar__tag {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.72rem;
	font-weight: 500;
	padding: 0.28rem 0.65rem;
	border-radius: 50px;
	background: var(--pr-surface-2);
	border: 1px solid var(--pr-border);
	color: rgba(255, 255, 255, 0.7);
	white-space: nowrap;
}
.pr-sidebar__tag svg {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
	opacity: 0.75;
}

/* contact CTA */
.pr-sidebar__contact {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 1rem 1.4rem;
	color: var(--pr-accent);
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	background: var(--pr-accent-dim);
	transition: background 0.2s;
}
.pr-sidebar__contact:hover {
	background: rgba(162, 89, 255, 0.18);
}

/* ──────────────────────────────────────────────
   Prev / Next navigation
────────────────────────────────────────────── */
.pr-nav {
	border-top: 1px solid var(--pr-border);
	padding: 2.5rem 0 4rem;
}

.pr-nav__container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 2rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

.pr-nav__spacer {
	display: block;
}

.pr-nav__card {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	padding: 1.4rem;
	border: 1px solid var(--pr-border);
	border-radius: 14px;
	background: var(--pr-surface);
	text-decoration: none;
	transition:
		border-color 0.25s,
		transform 0.25s,
		box-shadow 0.25s;
}
.pr-nav__card:hover {
	border-color: rgba(162, 89, 255, 0.3);
	transform: translateY(-3px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.pr-nav__card--next {
	align-items: flex-end;
	text-align: right;
}

.pr-nav__dir {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pr-accent);
}
.pr-nav__dir--right {
	flex-direction: row-reverse;
}

.pr-nav__thumb {
	width: 100%;
	aspect-ratio: 3/2;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--pr-border);
}
.pr-nav__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}
.pr-nav__card:hover .pr-nav__thumb img {
	transform: scale(1.05);
}

.pr-nav__name {
	font-size: 0.95rem;
	font-weight: 600;
	color: #fff;
	line-height: 1.3;
}

.pr-nav__cat {
	font-size: 0.75rem;
	color: var(--pr-muted);
}

/* ──────────────────────────────────────────────
   404 state
────────────────────────────────────────────── */
.pr-404 {
	min-height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pr-404__container {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

.pr-404__code {
	font-size: 6rem;
	font-weight: 800;
	color: var(--pr-accent);
	opacity: 0.25;
	line-height: 1;
}

.pr-404__title {
	font-size: 1.8rem;
	font-weight: 700;
	color: #fff;
	margin: 0;
}

.pr-404__desc {
	font-size: 0.95rem;
	color: var(--pr-muted);
	margin: 0;
}

.pr-404__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-top: 0.5rem;
	padding: 0.6rem 1.4rem;
	background: var(--pr-accent);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 600;
	border-radius: 8px;
	text-decoration: none;
	transition: filter 0.2s;
}
.pr-404__btn:hover {
	filter: brightness(1.15);
}

/* ──────────────────────────────────────────────
   Responsive
────────────────────────────────────────────── */
@media (max-width: 980px) {
	.pr-hero__container {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}
	.pr-hero__visual {
		order: -1;
		max-width: 560px;
		margin: 0 auto;
		width: 100%;
	}
}

@media (max-width: 860px) {
	.pr-content__container {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	.pr-sidebar {
		position: static;
	}
}

@media (max-width: 600px) {
	.pr-nav__container {
		grid-template-columns: 1fr;
	}
	.pr-nav__card--next {
		align-items: flex-start;
		text-align: left;
	}
	.pr-nav__dir--right {
		flex-direction: row;
	}

	.pr-hero {
		padding: 2.5rem 0 2rem;
	}
	.pr-back-bar__container {
		padding: 0 1rem;
	}
	.pr-hero__container {
		padding: 0 1rem;
	}
	.pr-content__container {
		padding: 0 1rem;
	}
	.pr-nav__container {
		padding: 0 1rem;
	}
}
