/* ==========================================================================
   uiux.pics — Single post (app detail) page
   ========================================================================== */

/* ── App header: icon + title, meta row below ───────────────────────────── */

.uiux-single__header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.25rem;
	margin-bottom: 2rem;
}

.uiux-single__intro {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	min-width: 0;
}

.uiux-single__meta {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 1.5rem;
	margin: 1rem 0 0.5rem;
	width: 100%;
	padding: 0;
	background: none;
	border-radius: 0;
	box-shadow: none;
}

.uiux-single__meta-item {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 0.35rem;
	flex: 1 1 0;
	min-width: 7.5rem;
	margin: 0;
	padding: 0;
	border-right: none;
}

.uiux-single__meta-item:last-child {
	border-right: none;
}

.uiux-single__meta-label {
	font-family: var(--wp--preset--font-family--onest, inherit);
	font-size: 0.62rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(0, 0, 0, 0.38);
	margin: 0;
}

.uiux-single__meta-value {
	font-family: var(--wp--preset--font-family--onest, inherit);
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1.35;
	color: rgba(0, 0, 0, 0.82);
	margin: 0;
}

.uiux-single__meta-value.is-empty {
	color: rgba(0, 0, 0, 0.22);
}

.uiux-single__meta-link {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid rgba(0, 0, 0, 0.18);
	transition: color 0.15s ease, border-color 0.15s ease;
}

.uiux-single__meta-link:hover {
	color: #000;
	border-bottom-color: rgba(0, 0, 0, 0.45);
}

.uiux-single__meta-sep {
	color: rgba(0, 0, 0, 0.28);
}

/* ── Shots / Flows tabs (under app icon) ─────────────────────────────────── */

.uiux-single__tabs {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 1rem;
	width: 100%;
}

.uiux-single__tab-wrap {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.uiux-single__tab-badge {
	display: inline-block;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.06);
	font-family: var(--wp--preset--font-family--onest, inherit);
	font-size: 0.625rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: rgba(0, 0, 0, 0.38);
	white-space: nowrap;
}

.uiux-single__tab {
	padding: 0 0 0.25rem;
	border: none;
	border-bottom: 3px solid transparent;
	background: none;
	font-family: var(--wp--preset--font-family--onest, inherit);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	color: rgba(0, 0, 0, 0.45);
	cursor: pointer;
	white-space: nowrap;
}

.uiux-single__tab.is-active {
	color: #000;
	border-bottom-color: #000;
}

.uiux-single__tab.is-muted,
.uiux-single__tab:disabled {
	color: rgba(0, 0, 0, 0.28);
	cursor: default;
}

/* ── Tab panels ──────────────────────────────────────────────────────────── */

.uiux-single__panel {
	display: none;
}

.uiux-single__panel.is-active {
	display: block;
}

.uiux-single__flows {
	font-size: 0.95rem;
	line-height: 1.6;
}

/* ── Screenshot gallery grid ─────────────────────────────────────────────── */

.uiux-single__gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.75rem;
}

@keyframes uiux-single-reveal-up {
	from {
		opacity: 0;
		transform: translateY(45px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.uiux-single__gallery .pic-preview {
	cursor: zoom-in;
	opacity: 0;
	animation: uiux-single-reveal-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	animation-delay: calc(var(--uiux-reveal-index, 0) * 75ms);
}

.uiux-single__gallery .pic-preview img {
	transition: opacity 0.15s ease;
}

.uiux-single__gallery .pic-preview:hover img {
	opacity: 0.88;
}

@media (prefers-reduced-motion: reduce) {
	.uiux-single__gallery .pic-preview {
		opacity: 1;
		animation: none;
		transform: none;
	}
}

/* ── Empty state ─────────────────────────────────────────────────────────── */

.uiux-single__empty {
	color: rgba(255, 255, 255, 0.35);
	font-size: 0.9rem;
	margin: 0;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media ( max-width: 600px ) {
	.uiux-single__gallery {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
		gap: 0.5rem;
	}

	.uiux-single__meta {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem 1.25rem;
		overflow: visible;
	}

	.uiux-single__meta-item {
		flex: unset;
		min-width: 0;
	}

	.uiux-single__meta-value {
		font-size: 0.78rem;
	}
}

[data-theme="dark"] .uiux-single__tab {
	color: rgba(255, 255, 255, 0.45);
}

[data-theme="dark"] .uiux-single__tab.is-active {
	color: #fff;
	border-bottom-color: #fff;
}

[data-theme="dark"] .uiux-single__tab.is-muted,
[data-theme="dark"] .uiux-single__tab:disabled {
	color: rgba(255, 255, 255, 0.28);
}

[data-theme="dark"] .uiux-single__tab-badge {
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.38);
}

[data-theme="dark"] .uiux-single__meta-label {
	color: rgba(255, 255, 255, 0.38);
}

[data-theme="dark"] .uiux-single__meta-value {
	color: rgba(255, 255, 255, 0.82);
}

[data-theme="dark"] .uiux-single__meta-value.is-empty {
	color: rgba(255, 255, 255, 0.22);
}

[data-theme="dark"] .uiux-single__meta-link {
	border-bottom-color: rgba(255, 255, 255, 0.22);
}

[data-theme="dark"] .uiux-single__meta-link:hover {
	color: #fff;
	border-bottom-color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .uiux-single__meta-sep {
	color: rgba(255, 255, 255, 0.28);
}
