/* VH Portfolio Submit — themed-but-not-coupled-to-Bridge form */

.vh-ps-wrap {
	max-width: 760px;
	margin: 40px auto 80px;
	padding: 0 20px;
	color: #2a2a2a;
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

.vh-ps-wrap-wide {
	max-width: 1200px;
}

.vh-ps-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 32px;
	align-items: start;
}

@media (max-width: 960px) {
	.vh-ps-grid {
		grid-template-columns: 1fr;
	}
}

.vh-ps-card {
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 6px;
	padding: 40px 48px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.vh-ps-card-sidebar {
	padding: 24px;
	position: sticky;
	top: 20px;
}

.vh-ps-gate-card {
	max-width: 420px;
	margin: 80px auto;
}

.vh-ps-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 4px;
}

.vh-ps-header-actions {
	display: flex;
	gap: 14px;
	align-items: baseline;
	font-size: 13px;
}

.vh-ps-h1 {
	font-size: 28px;
	font-weight: 600;
	margin: 0 0 6px;
	letter-spacing: -0.01em;
	color: #1a1a1a;
}

.vh-ps-h2 {
	font-size: 16px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
}

.vh-ps-count {
	font-size: 12px;
	font-weight: 500;
	color: #888;
	letter-spacing: 0;
	text-transform: none;
}

.vh-ps-lede {
	color: #666;
	margin: 0 0 24px;
}

.vh-ps-link,
.vh-ps-logout {
	font-size: 13px;
	color: #888;
	text-decoration: none;
}
.vh-ps-link:hover,
.vh-ps-logout:hover {
	color: #222;
	text-decoration: underline;
}

.vh-ps-form {
	display: block;
}

.vh-ps-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
@media (max-width: 560px) {
	.vh-ps-row {
		grid-template-columns: 1fr;
	}
}

.vh-ps-field {
	margin-bottom: 18px;
}

.vh-ps-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #333;
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.vh-ps-req {
	color: #c0392b;
	font-weight: 700;
}

.vh-ps-input {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	color: #1a1a1a;
	background: #fff;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	padding: 10px 12px;
	transition: border-color 120ms ease, box-shadow 120ms ease;
}

.vh-ps-input:focus {
	outline: none;
	border-color: #1a1a1a;
	box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}

.vh-ps-textarea {
	min-height: 140px;
	resize: vertical;
	font-family: inherit;
}

.vh-ps-hint {
	font-size: 13px;
	color: #888;
	margin: 6px 0 0;
}

.vh-ps-center {
	text-align: center;
}

.vh-ps-btn {
	display: inline-block;
	font: inherit;
	font-weight: 600;
	border: 0;
	border-radius: 4px;
	padding: 12px 24px;
	margin-top: 1rem;
	cursor: pointer;
	transition: background-color 120ms ease, transform 60ms ease;
}

.vh-ps-btn-primary {
	background: #1a1a1a;
	color: #fff;
}

.vh-ps-btn-primary:hover {
	background: #000;
}

.vh-ps-btn-primary:active {
	transform: translateY(1px);
}

.vh-ps-btn-primary:disabled {
	background: #999;
	cursor: not-allowed;
}

.vh-ps-submit {
	width: 100%;
	margin-top: 16px;
	padding: 14px 24px;
	font-size: 16px;
}

.vh-ps-alert {
	border-radius: 4px;
	padding: 12px 14px;
	margin-bottom: 20px;
	font-size: 14px;
	border: 1px solid transparent;
}

.vh-ps-alert-error {
	background: #fdecea;
	border-color: #f5b8b2;
	color: #842029;
}

.vh-ps-alert-success {
	background: #e8f5ee;
	border-color: #b6dec8;
	color: #1d5b3a;
}

.vh-ps-notice {
	max-width: 600px;
	margin: 60px auto;
	background: #fff8e1;
	border: 1px solid #f0d27a;
	border-radius: 4px;
	padding: 16px 20px;
	color: #6b5400;
}

/* Drop zone */
.vh-ps-drop {
	position: relative;
	border: 2px dashed #c8c8c8;
	border-radius: 6px;
	background: #fafafa;
	padding: 32px 20px;
	text-align: center;
	cursor: pointer;
	transition: background-color 120ms ease, border-color 120ms ease;
}

.vh-ps-drop:hover,
.vh-ps-drop.is-dragover {
	background: #f1f5f9;
	border-color: #1a1a1a;
}

.vh-ps-drop input[type="file"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.vh-ps-drop-inner strong {
	display: block;
	color: #1a1a1a;
	font-size: 15px;
	margin-bottom: 4px;
}

.vh-ps-drop-inner span {
	display: block;
	color: #888;
	font-size: 13px;
}

.vh-ps-thumbs,
.vh-ps-existing-thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 10px;
	margin: 0 0 14px;
}

.vh-ps-thumbs {
	margin-top: 14px;
	margin-bottom: 0;
}

.vh-ps-thumb {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 4px;
	overflow: hidden;
	background: #f0f0f0;
	border: 1px solid #e0e0e0;
}

.vh-ps-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vh-ps-thumb-badge {
	position: absolute;
	left: 6px;
	top: 6px;
	background: rgba(0, 0, 0, 0.75);
	color: #fff;
	font-size: 11px;
	padding: 2px 6px;
	border-radius: 3px;
	letter-spacing: 0.02em;
}

.vh-ps-thumb-remove {
	position: absolute;
	right: 4px;
	top: 4px;
	width: 24px;
	height: 24px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.75);
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 120ms ease;
}

.vh-ps-thumb-remove:hover {
	background: #c0392b;
}

.vh-ps-thumb.is-removed {
	display: none;
}

/* Sidebar list */
.vh-ps-search {
	margin-bottom: 12px;
}

.vh-ps-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: calc(100vh - 220px);
	overflow-y: auto;
	border: 1px solid #ececec;
	border-radius: 4px;
}

.vh-ps-list-item {
	border-bottom: 1px solid #f0f0f0;
}
.vh-ps-list-item:last-child {
	border-bottom: 0;
}

.vh-ps-list-link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	color: #333;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.35;
	transition: background-color 100ms ease;
}

.vh-ps-list-link:hover {
	background: #f6f6f6;
	color: #1a1a1a;
}

.vh-ps-list-item.is-active .vh-ps-list-link {
	background: #1a1a1a;
	color: #fff;
	font-weight: 600;
}

.vh-ps-list-tag {
	font-size: 10px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: #f0d27a;
	color: #6b5400;
	border-radius: 3px;
	padding: 2px 6px;
	flex-shrink: 0;
}

.vh-ps-list-item.is-active .vh-ps-list-tag {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.vh-ps-list-empty {
	margin: 14px 0 0;
	font-size: 13px;
	color: #888;
	text-align: center;
}

/* Submitting state */
.vh-ps-form.is-submitting .vh-ps-submit {
	opacity: 0.6;
	pointer-events: none;
}

.vh-ps-form.is-submitting .vh-ps-submit::after {
	content: ' — Working…';
}

/* Full-screen overlay shown while the submission is in flight.
   Offset by 280px on desktop so the spinner is centered over the content area,
   not the entire viewport (Bridge's left vertical menu is 280px wide). */
.vh-ps-overlay {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 280px;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.78);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 220ms ease, visibility 220ms ease;
}

@media (max-width: 1000px) {
	.vh-ps-overlay {
		left: 0;
	}
}

.vh-ps-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

.vh-ps-overlay-inner {
	text-align: center;
	max-width: 320px;
	padding: 24px;
}

.vh-ps-overlay-logo {
	display: block;
	width: 140px;
	height: auto;
	margin: 0 auto 24px;
	animation: vhPsPulse 1.6s ease-in-out infinite;
	transform-origin: center;
}

.vh-ps-overlay-msg {
	font-size: 18px;
	font-weight: 600;
	color: #1a1a1a;
	letter-spacing: -0.005em;
	margin-bottom: 6px;
}

.vh-ps-overlay-sub {
	font-size: 14px;
	color: #666;
}

@keyframes vhPsPulse {
	0%, 100% {
		transform: scale(1);
		opacity: 0.55;
	}
	50% {
		transform: scale(1.08);
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vh-ps-overlay-logo {
		animation: vhPsFade 1.6s ease-in-out infinite;
	}
	@keyframes vhPsFade {
		0%, 100% { opacity: 0.6; }
		50%      { opacity: 1; }
	}
}
