/**
 * Works4U Job Details page — clean Figma-inspired layout.
 */

body.works4u-job-details-page .hp-page__title {
	display: none !important;
}

body.works4u-job-details-page .hp-page__content {
	padding-top: 0;
}

body.works4u-job-details-page .site-content,
body.works4u-job-details-page .content-area {
	background: var(--w4u-bg, #f5f8f6);
}

/* Breadcrumb */
.works4u-job-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px;
	font-size: 14px;
	color: var(--w4u-text-muted, #999);
}

.works4u-job-breadcrumb a {
	color: var(--w4u-text-body, #4d4d4d);
	text-decoration: none;
}

.works4u-job-breadcrumb a:hover {
	color: var(--w4u-primary, #148332);
}

.works4u-job-breadcrumb__current {
	color: var(--w4u-text, #000);
	font-weight: 500;
}

/* Layout */
.works4u-job-page__columns.hp-page__columns {
	align-items: flex-start;
	gap: 28px;
}

.works4u-job-page .hp-page__sidebar {
	padding-top: 0;
}

/* TaskHive wraps the sidebar in .inner-wrapper-sticky with its own card + shadow */
.works4u-job-details-page .site-sidebar .inner-wrapper-sticky,
.works4u-job-page .site-sidebar .inner-wrapper-sticky {
	box-shadow: none;
	background-color: transparent;
	border-radius: 0;
}

/* Hero */
.works4u-job-hero {
	background: var(--w4u-primary-soft, #e7f3ea);
	border: 1px solid rgba(20, 131, 50, 0.12);
	border-radius: var(--w4u-radius-lg, 16px);
	padding: clamp(24px, 4vw, 32px);
	margin-bottom: 24px;
}

.works4u-job-hero__posted {
	margin: 0 0 10px;
	font-size: 14px;
	color: var(--w4u-primary-mid, #609d6d);
	font-weight: 500;
}

.works4u-job-hero__title {
	margin: 0 0 12px;
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 700;
	line-height: 1.25;
	color: var(--w4u-text, #000);
}

.works4u-job-hero__location {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	font-size: 15px;
	color: var(--w4u-text-body, #4d4d4d);
}

.works4u-job-hero__location svg {
	color: var(--w4u-primary, #148332);
	flex-shrink: 0;
}

.works4u-job-hero__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.works4u-job-tag {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid rgba(20, 131, 50, 0.2);
	color: var(--w4u-primary, #148332);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
}

.works4u-job-tag:hover {
	background: var(--w4u-primary, #148332);
	color: #fff;
}

/* Sections */
.works4u-job-section {
	background: #fff;
	border: 1px solid var(--w4u-border, #d6d6d6);
	border-radius: var(--w4u-radius-lg, 16px);
	padding: clamp(20px, 3vw, 28px);
	margin-bottom: 20px;
}

.works4u-job-section__title {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 600;
	color: var(--w4u-text, #000);
}

/* Overview */
.works4u-job-overview__content {
	font-size: 15px;
	line-height: 1.7;
	color: var(--w4u-text-body, #4d4d4d);
}

.works4u-job-overview__content p:last-child {
	margin-bottom: 0;
}

/* Images */
.works4u-job-page .hp-listing__images {
	border-radius: var(--w4u-radius-lg, 16px);
	overflow: hidden;
	margin-bottom: 20px;
	border: 1px solid var(--w4u-border, #d6d6d6);
}

.works4u-job-page .hp-listing__images img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 420px;
	object-fit: cover;
}

/* Specs grid */
.works4u-job-specs__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

@media (min-width: 640px) {
	.works4u-job-specs__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.works4u-job-specs__item {
	background: var(--w4u-bg, #f5f8f6);
	border: 1px solid var(--w4u-border, #d6d6d6);
	border-radius: var(--w4u-radius, 10px);
	padding: 16px;
	min-height: 88px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
}

.works4u-job-specs__icon {
	color: var(--w4u-primary, #148332);
	margin-bottom: 4px;
}

.works4u-job-specs__icon svg {
	display: block;
}

/* Hashtags */
.works4u-job-hashtags__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.works4u-job-hashtag {
	display: inline-block;
	padding: 6px 12px;
	font-size: 14px;
	font-weight: 500;
	color: var(--w4u-primary, #148332);
	background: var(--w4u-primary-soft, #e7f3ea);
	border-radius: 999px;
}

/* Skills */
.works4u-job-skills__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.works4u-job-skill {
	display: inline-block;
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 500;
	color: var(--w4u-primary-mid, #609d6d);
	background: #f0f7f2;
	border: 1px solid rgba(20, 131, 50, 0.15);
	border-radius: 999px;
}

/* Preferred qualifications */
.works4u-job-preferred__list {
	margin: 0;
}

.works4u-job-preferred__row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid #f0f0f0;
	font-size: 15px;
}

.works4u-job-preferred__row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.works4u-job-preferred__row dt {
	margin: 0;
	font-weight: 600;
	color: var(--w4u-text, #000);
}

.works4u-job-preferred__row dd {
	margin: 0;
	text-align: right;
	color: var(--w4u-text-body, #4d4d4d);
}

.works4u-job-specs__label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--w4u-text-muted, #999);
	font-weight: 600;
}

.works4u-job-specs__value {
	font-size: 15px;
	font-weight: 600;
	color: var(--w4u-text, #000);
	line-height: 1.35;
}

/* Activity */
.works4u-job-activity__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.works4u-job-activity__grid--five .works4u-job-activity__item {
	flex: 1 1 120px;
	min-width: 110px;
}

@media (min-width: 900px) {
	.works4u-job-activity__grid--five {
		flex-wrap: nowrap;
	}
}

.works4u-job-activity__item {
	flex: 1 1 140px;
	background: var(--w4u-bg, #f5f8f6);
	border: 1px solid var(--w4u-border, #d6d6d6);
	border-radius: var(--w4u-radius, 10px);
	padding: 16px;
	text-align: center;
}

.works4u-job-activity__item strong {
	display: block;
	font-size: 22px;
	font-weight: 700;
	color: var(--w4u-primary, #148332);
	margin-bottom: 4px;
}

.works4u-job-activity__item span {
	font-size: 13px;
	color: var(--w4u-text-body, #4d4d4d);
}

/* Quotes section */
.works4u-job-page #offers.hp-section {
	background: #fff;
	border: 1px solid var(--w4u-border, #d6d6d6);
	border-radius: var(--w4u-radius-lg, 16px);
	padding: clamp(20px, 3vw, 28px);
	margin-top: 4px;
}

.works4u-job-page #offers .hp-section__title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 16px;
}

/* Sidebar */
.works4u-job-sidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.works4u-job-sidebar__card {
	background: #fff;
	border: 1px solid var(--w4u-border, #d6d6d6);
	border-radius: var(--w4u-radius-lg, 16px);
	padding: 24px;
	box-shadow: var(--w4u-shadow, 0 8px 24px rgba(20, 131, 50, 0.08));
}

.works4u-job-sidebar__budget-label {
	display: block;
	font-size: 13px;
	color: var(--w4u-text-muted, #999);
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 600;
}

.works4u-job-sidebar__budget-value {
	font-size: 28px;
	font-weight: 700;
	color: var(--w4u-primary, #148332);
	margin-bottom: 20px;
	line-height: 1.2;
}

.works4u-job-apply-btn {
	display: block;
	width: 100%;
	text-align: center;
	padding: 14px 20px !important;
	border-radius: 10px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	background: var(--w4u-primary, #148332) !important;
	border: none !important;
	color: #fff !important;
	cursor: pointer;
	text-decoration: none;
	box-sizing: border-box;
}

.works4u-job-apply-btn:hover {
	background: var(--w4u-primary-dark, #0f6b28) !important;
	color: #fff !important;
}

.works4u-job-apply-btn--secondary {
	background: #fff !important;
	color: var(--w4u-primary, #148332) !important;
	border: 1px solid var(--w4u-primary, #148332) !important;
}

.works4u-job-sidebar__hint {
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--w4u-text-muted, #999);
	text-align: center;
}

.works4u-job-sidebar__heading {
	margin: 0 0 16px;
	font-size: 16px;
	font-weight: 600;
}

.works4u-job-buyer {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.works4u-job-buyer__avatar img {
	border-radius: 50%;
	display: block;
}

.works4u-job-buyer__name {
	display: block;
	font-size: 16px;
	margin-bottom: 4px;
}

.works4u-job-buyer__name a {
	color: var(--w4u-text, #000);
	text-decoration: none;
}

.works4u-job-buyer__name a:hover {
	color: var(--w4u-primary, #148332);
}

.works4u-job-buyer__meta {
	margin: 0;
	font-size: 13px;
	color: var(--w4u-text-muted, #999);
	line-height: 1.5;
}

/* Buyer panel (Figma-style sidebar cards) */
.works4u-buyer-panel {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.works4u-buyer-panel__section {
	margin: 0;
}

.works4u-buyer-panel__about {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.works4u-buyer-panel__subline {
	margin: 0 0 8px;
	font-size: 13px;
	color: var(--w4u-text-muted, #999);
	line-height: 1.4;
}

.works4u-buyer-panel__dot {
	opacity: 0.5;
}

.works4u-buyer-panel__rating {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
}

.works4u-buyer-panel__stars {
	display: inline-flex;
	gap: 2px;
}

.works4u-buyer-panel__rating-text {
	font-size: 13px;
	color: var(--w4u-text-muted, #999);
}

.works4u-buyer-panel__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
}

.works4u-buyer-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 500;
	border-radius: 999px;
	background: #f3f3f3;
	color: var(--w4u-text-muted, #999);
}

.works4u-buyer-badge::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #ccc;
}

.works4u-buyer-badge.is-verified {
	background: #e8f5ec;
	color: var(--w4u-primary, #148332);
}

.works4u-buyer-badge.is-verified::before {
	background: var(--w4u-primary, #148332);
}

.works4u-buyer-panel__bio {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--w4u-text, #333);
}

.works4u-buyer-dl {
	margin: 0;
}

.works4u-buyer-dl__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f0;
	font-size: 14px;
}

.works4u-buyer-dl__row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.works4u-buyer-dl__row dt {
	margin: 0;
	font-weight: 500;
	color: var(--w4u-text, #333);
}

.works4u-buyer-dl__row dd {
	margin: 0;
	text-align: right;
	color: var(--w4u-text-muted, #666);
}

.works4u-buyer-panel__notice,
.works4u-buyer-panel__empty {
	margin: 0;
	font-size: 13px;
	color: var(--w4u-text-muted, #999);
}

.works4u-buyer-insights {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.works4u-buyer-insights__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.works4u-buyer-insights__label {
	font-size: 12px;
	color: var(--w4u-text-muted, #999);
}

.works4u-buyer-insights__item strong {
	font-size: 15px;
	font-weight: 600;
	color: var(--w4u-text, #000);
}

.works4u-buyer-files {
	list-style: none;
	margin: 0;
	padding: 0;
}

.works4u-buyer-files__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f0;
}

.works4u-buyer-files__item:last-child {
	border-bottom: none;
}

.works4u-buyer-files__icon {
	font-size: 18px;
	line-height: 1;
}

.works4u-buyer-files__info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.works4u-buyer-files__name {
	font-size: 14px;
	font-weight: 500;
}

.works4u-buyer-files__date {
	font-size: 12px;
	color: var(--w4u-text-muted, #999);
}

.works4u-buyer-files__dl {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #f5f5f5;
	color: var(--w4u-text, #333);
	text-decoration: none;
	font-size: 16px;
}

.works4u-buyer-files__dl:hover {
	background: #e8f5ec;
	color: var(--w4u-primary, #148332);
}

.works4u-buyer-message-btn {
	display: block;
	width: 100%;
	text-align: center;
	padding: 12px 16px !important;
	border-radius: 8px !important;
	font-weight: 600 !important;
	background: #fff !important;
	color: var(--w4u-primary, #148332) !important;
	border: 1px solid var(--w4u-primary, #148332) !important;
	text-decoration: none;
}

.works4u-buyer-message-btn:hover {
	background: var(--w4u-primary, #148332) !important;
	color: #fff !important;
}

/* Hide default HivePress clutter on job page */
.works4u-job-page .hp-listing__details--primary,
.works4u-job-page .hp-listing__title,
.works4u-job-page .hp-listing__categories,
.works4u-job-page .hp-listing__created-date,
.works4u-job-page .hp-listing__attributes--primary,
.works4u-job-page .hp-vendor.hp-vendor--view-block,
.works4u-job-modals {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Mobile: sidebar below content */
@media (max-width: 767px) {
	.works4u-job-specs__grid {
		grid-template-columns: 1fr 1fr;
	}

	.works4u-job-sidebar__card--cta {
		order: -1;
	}
}
