/* Beehive Portfolio — Behance-style project page and cover grid. */

.bhp-project,
.bhp-grid-wrap {
	--bhp-bg: #0b0b0b;
	--bhp-surface: #161616;
	--bhp-line: #262626;
	--bhp-text: #f4f4f4;
	--bhp-muted: #9b9b9b;
	--bhp-accent: #ffc20e;
	--bhp-radius: 6px;
	--bhp-canvas: 1400px;
	font-family: "Tajawal", system-ui, sans-serif;
}

/* ---------- Project page ---------- */

.bhp-project {
	background: var(--bhp-bg);
	color: var(--bhp-text);
	padding: 0 0 72px;
}

.bhp-head-inner {
	max-width: var(--bhp-canvas);
	margin: 0 auto;
	padding: 40px 24px 28px;
	display: flex;
	align-items: center;
	gap: 16px;
}

.bhp-avatar {
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--bhp-accent);
	color: #111;
	font-weight: 700;
	font-size: 22px;
	display: grid;
	place-items: center;
}

.bhp-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bhp-head-text {
	flex: 1;
	min-width: 0;
}

.bhp-project .bhp-title {
	margin: 0;
	color: var(--bhp-text);
	font-family: inherit;
	font-size: clamp(22px, 2.6vw, 32px);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0;
}

.bhp-byline {
	margin: 6px 0 0;
	color: var(--bhp-muted);
	font-size: 15px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.bhp-owner {
	color: var(--bhp-accent);
	font-weight: 500;
}

.bhp-back {
	flex: none;
	padding: 10px 18px;
	border: 1px solid var(--bhp-line);
	border-radius: 999px;
	color: var(--bhp-text);
	font-size: 14px;
	text-decoration: none;
	transition: border-color .2s, color .2s;
}

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

/* The canvas: modules stacked edge to edge with no gaps, like Behance. */
.bhp-canvas {
	max-width: var(--bhp-canvas);
	margin: 0 auto;
	background: #fff;
	box-shadow: 0 0 0 1px var(--bhp-line);
}

.bhp-canvas .bhp-module {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	margin: 0;
	border: 0;
}

.bhp-text-module {
	padding: 48px clamp(20px, 6vw, 96px);
	color: #222;
	font-size: 17px;
	line-height: 1.8;
}

.bhp-info {
	max-width: 960px;
	margin: 56px auto 0;
	padding: 0 24px;
	text-align: center;
}

.bhp-project .bhp-info-title {
	margin: 0 0 24px;
	color: var(--bhp-text);
	font-family: inherit;
	font-size: 26px;
	font-weight: 700;
}

.bhp-facts {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 16px 48px;
	margin: 0;
}

.bhp-facts dt {
	color: var(--bhp-muted);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin-bottom: 6px;
}

.bhp-facts dd {
	margin: 0;
	font-size: 15px;
}

.bhp-tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.bhp-tag {
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--bhp-surface);
	border: 1px solid var(--bhp-line);
	font-size: 13px;
}

.bhp-pager {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--bhp-line);
}

.bhp-pager-link {
	display: flex;
	flex-direction: column;
	gap: 2px;
	color: var(--bhp-text);
	font-weight: 500;
	text-decoration: none;
	text-align: start;
}

.bhp-pager-next {
	margin-inline-start: auto;
	text-align: end;
}

.bhp-pager-link small {
	color: var(--bhp-muted);
	font-size: 12px;
	font-weight: 400;
}

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

.bhp-more {
	max-width: var(--bhp-canvas);
	margin: 72px auto 0;
	padding: 0 24px;
}

.bhp-project .bhp-more-title {
	margin: 0 0 20px;
	color: var(--bhp-text);
	font-family: inherit;
	font-size: 20px;
	font-weight: 700;
}

/* ---------- Cover grid ---------- */

.bhp-grid-wrap {
	color: var(--bhp-text);
}

.bhp-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0 0 28px;
}

.bhp-filter {
	padding: 8px 18px;
	border: 1px solid var(--bhp-line);
	border-radius: 999px;
	background: transparent;
	color: var(--bhp-text);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}

.bhp-filter:hover {
	border-color: var(--bhp-accent);
}

.bhp-filter.is-active {
	background: var(--bhp-accent);
	border-color: var(--bhp-accent);
	color: #111;
}

.bhp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 28px 24px;
}

.bhp-grid-4 {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.bhp-card[hidden] {
	display: none;
}

.bhp-card-media {
	position: relative;
	display: block;
	aspect-ratio: 808 / 632;
	border-radius: var(--bhp-radius);
	overflow: hidden;
	background: var(--bhp-surface);
}

.bhp-card-media .bhp-card-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform .5s ease;
}

.bhp-card-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	padding: 18px;
	background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0) 55%);
	opacity: 0;
	transition: opacity .3s ease;
}

.bhp-card-overlay-title {
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}

.bhp-card-media:hover .bhp-card-overlay,
.bhp-card-media:focus-visible .bhp-card-overlay {
	opacity: 1;
}

.bhp-card-media:hover .bhp-card-img {
	transform: scale(1.04);
}

.bhp-card-meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding-top: 10px;
}

.bhp-card-title {
	color: var(--bhp-text);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bhp-card-title:hover {
	color: var(--bhp-accent);
}

.bhp-card-sub {
	flex: none;
	color: var(--bhp-muted);
	font-size: 13px;
}

.bhp-empty {
	color: var(--bhp-muted);
	text-align: center;
}

@media (max-width: 600px) {
	.bhp-head-inner {
		padding: 24px 16px 20px;
		flex-wrap: wrap;
	}

	.bhp-back {
		order: 3;
		width: 100%;
		text-align: center;
	}

	.bhp-more,
	.bhp-info {
		padding: 0 16px;
	}

	.bhp-card-overlay {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bhp-card-media .bhp-card-img,
	.bhp-card-overlay {
		transition: none;
	}

	.bhp-card-media:hover .bhp-card-img {
		transform: none;
	}
}
