/**
 * TEKHIVE design system — Geologica + brand palette.
 */

:root {
	--tek-primary: #148332;
	--tek-primary-dark: #106828;
	--tek-primary-soft: #e7f3ea;
	--tek-black: #000000;
	--tek-text: #000000;
	--tek-text-muted: #4d4d4d;
	--tek-text-inverse: #ffffff;
	--tek-bg: #ffffff;
	--tek-bg-alt: #f5f8f6;
	--tek-border: #d6d6d6;
	--tek-border-light: #cccccc;
	--tek-grey: #999999;
	--tek-error: #e81111;
	--tek-error-soft: #fdecec;
	--tek-success-soft: #e7f3ea;
	--tek-warning-soft: #fff8e6;
	--tek-radius: 12px;
	--tek-radius-sm: 8px;
	--tek-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
	--tek-font: "Geologica", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Base scope */
.tekhive-wrap,
.tekhive-account,
.tekhive-single-job,
.tekhive-jobs-shortcode,
.tekhive-login-shortcode,
.tekhive-register-shortcode {
	font-family: var(--tek-font);
	color: var(--tek-text);
	line-height: 1.5;
}

.tekhive-wrap {
	max-width: 1140px;
	margin: 0 auto;
	padding: 2rem 1.25rem;
}

/* Typography */
.tekhive-account h1,
.tekhive-wrap h1,
.tekhive-single-job h1 {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 0.5rem;
	color: var(--tek-text);
}

.tekhive-account h2,
.tekhive-wrap h2,
.tekhive-single-job h2 {
	font-size: 20px;
	font-weight: 600;
	margin: 1.5rem 0 0.75rem;
}

.tekhive-card h3,
.tekhive-account h3 {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 0.5rem;
}

.tekhive-subtitle,
.tekhive-hint {
	font-size: 14px;
	color: var(--tek-text-muted);
	margin: 0 0 1.5rem;
}

.tekhive-page-header {
	margin-bottom: 1.5rem;
}

.tekhive-page-header .tekhive-subtitle {
	margin-bottom: 0;
}

.tekhive-job-body {
	font-size: 14px;
	color: var(--tek-text-muted);
	margin-bottom: 1.5rem;
	line-height: 1.6;
}

/* Account layout */
.tekhive-account {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
}

.tekhive-account__sidebar {
	background: var(--tek-bg);
	border: 1px solid var(--tek-border-light);
	border-radius: var(--tek-radius);
	padding: 1.25rem;
	box-shadow: var(--tek-shadow);
	position: sticky;
	top: 1.5rem;
}

.tekhive-account__brand {
	font-size: 14px;
	font-weight: 600;
	color: var(--tek-primary);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 1rem;
}

.tekhive-account__content {
	background: var(--tek-bg);
	border: 1px solid var(--tek-border-light);
	border-radius: var(--tek-radius);
	padding: 1.75rem 2rem;
	box-shadow: var(--tek-shadow);
	min-height: 320px;
}

/* Navigation */
.tekhive-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tekhive-nav li {
	margin: 0;
}

.tekhive-nav a {
	display: block;
	padding: 0.65rem 0.85rem;
	margin-bottom: 0.25rem;
	border-radius: var(--tek-radius-sm);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	color: var(--tek-text-muted);
	transition: background 0.15s ease, color 0.15s ease;
}

.tekhive-nav a:hover {
	background: var(--tek-bg-alt);
	color: var(--tek-text);
}

.tekhive-nav .is-active a {
	background: var(--tek-primary-soft);
	color: var(--tek-primary);
	font-weight: 600;
}

.tekhive-nav__sign-out {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--tek-border-light);
}

.tekhive-nav__sign-out a {
	color: var(--tek-grey);
	font-size: 13px;
}

/* Cards */
.tekhive-cards {
	display: grid;
	gap: 1rem;
}

.tekhive-card {
	border: 1px solid var(--tek-border-light);
	border-radius: var(--tek-radius);
	padding: 1.25rem 1.5rem;
	background: var(--tek-bg);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tekhive-card:hover {
	border-color: var(--tek-primary);
	box-shadow: 0 6px 20px rgba(20, 131, 50, 0.08);
}

.tekhive-card h3 a {
	color: var(--tek-text);
	text-decoration: none;
}

.tekhive-card h3 a:hover {
	color: var(--tek-primary);
}

.tekhive-card__excerpt,
.tekhive-card__meta {
	font-size: 14px;
	color: var(--tek-text-muted);
	margin: 0 0 0.75rem;
}

.tekhive-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin-top: 1rem;
}

/* Badges */
.tekhive-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: var(--tek-bg-alt);
	color: var(--tek-text-muted);
	text-transform: capitalize;
}

.tekhive-badge--open,
.tekhive-badge--reopened {
	background: var(--tek-primary-soft);
	color: var(--tek-primary);
}

.tekhive-badge--in_progress,
.tekhive-badge--processing {
	background: #eef4ff;
	color: #1d4ed8;
}

.tekhive-badge--completed {
	background: var(--tek-success-soft);
	color: var(--tek-primary);
}

.tekhive-badge--tek-delivered {
	background: var(--tek-warning-soft);
	color: #92600a;
}

/* Buttons */
.tekhive-btn,
.tekhive-wrap .button,
.tekhive-account .button,
.tekhive-single-job .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1.1rem;
	font-family: var(--tek-font);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	border-radius: var(--tek-radius-sm);
	border: 1px solid var(--tek-border);
	background: var(--tek-bg);
	color: var(--tek-text);
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tekhive-btn:hover,
.tekhive-wrap .button:hover,
.tekhive-account .button:hover {
	background: var(--tek-bg-alt);
	border-color: var(--tek-grey);
	color: var(--tek-text);
}

.tekhive-btn--primary,
.tekhive-wrap .button-primary,
.tekhive-account .button-primary,
.tekhive-single-job .button-primary {
	background: var(--tek-primary);
	border-color: var(--tek-primary);
	color: var(--tek-text-inverse);
}

.tekhive-btn--primary:hover,
.tekhive-wrap .button-primary:hover,
.tekhive-account .button-primary:hover {
	background: var(--tek-primary-dark);
	border-color: var(--tek-primary-dark);
	color: var(--tek-text-inverse);
}

.tekhive-btn--ghost {
	background: transparent;
	border-color: transparent;
	color: var(--tek-primary);
}

.tekhive-btn--danger {
	border-color: var(--tek-error);
	color: var(--tek-error);
}

.tekhive-btn--lg {
	font-size: 16px;
	padding: 0.7rem 1.35rem;
}

/* Notices */
.tekhive-notice {
	padding: 0.85rem 1.1rem;
	border-radius: var(--tek-radius-sm);
	margin-bottom: 1.25rem;
	font-size: 14px;
	border: 1px solid transparent;
}

.tekhive-notice--success {
	background: var(--tek-success-soft);
	color: var(--tek-primary-dark);
	border-color: #b8dfc4;
}

.tekhive-notice--error {
	background: var(--tek-error-soft);
	color: var(--tek-error);
	border-color: #f5bcbc;
}

.tekhive-notice--warning {
	background: var(--tek-warning-soft);
	color: #92600a;
	border-color: #f0d78c;
}

/* Empty state */
.tekhive-empty {
	color: var(--tek-text-muted);
	padding: 2.5rem 1.5rem;
	text-align: center;
	border: 1px dashed var(--tek-border);
	border-radius: var(--tek-radius);
	background: var(--tek-bg-alt);
	font-size: 14px;
}

/* Earnings */
.tekhive-earnings {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1rem;
	margin: 1.25rem 0;
}

.tekhive-earnings__box {
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--tek-border-light);
	border-radius: var(--tek-radius);
	background: var(--tek-bg-alt);
}

.tekhive-earnings__box span {
	display: block;
	font-size: 13px;
	color: var(--tek-text-muted);
	margin-bottom: 0.35rem;
}

.tekhive-earnings__box strong {
	font-size: 24px;
	font-weight: 700;
	color: var(--tek-primary);
}

/* Forms */
.tekhive-form {
	max-width: 640px;
}

.tekhive-form p {
	margin-bottom: 1.1rem;
}

.tekhive-form label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 0.35rem;
	color: var(--tek-text);
}

.tekhive-form input[type="text"],
.tekhive-form input[type="number"],
.tekhive-form input[type="email"],
.tekhive-form textarea,
.tekhive-form .widefat {
	width: 100%;
	max-width: 100%;
	padding: 0.65rem 0.85rem;
	font-family: var(--tek-font);
	font-size: 14px;
	border: 1px solid var(--tek-border);
	border-radius: var(--tek-radius-sm);
	background: var(--tek-bg);
	color: var(--tek-text);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tekhive-form input:focus,
.tekhive-form textarea:focus {
	outline: none;
	border-color: var(--tek-primary);
	box-shadow: 0 0 0 3px rgba(20, 131, 50, 0.15);
}

/* Quotes list */
.tekhive-quotes {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tekhive-quote {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	margin-bottom: 0.75rem;
	border: 1px solid var(--tek-border-light);
	border-radius: var(--tek-radius-sm);
	background: var(--tek-bg-alt);
}

/* Manage job details */
.tekhive-manage {
	margin-top: 0.5rem;
}

.tekhive-manage summary {
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	color: var(--tek-primary);
}

.tekhive-manage .tekhive-btn,
.tekhive-manage .button {
	margin-top: 0.5rem;
	margin-right: 0.35rem;
}

/* Quick links */
.tekhive-quick-links {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.tekhive-quick-links a {
	display: block;
	padding: 0.85rem 1rem;
	border-radius: var(--tek-radius-sm);
	background: var(--tek-bg-alt);
	color: var(--tek-text);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	border: 1px solid var(--tek-border-light);
}

.tekhive-quick-links a:hover {
	border-color: var(--tek-primary);
	color: var(--tek-primary);
	background: var(--tek-primary-soft);
}

/* Public single job */
.tekhive-single-job {
	max-width: 800px;
	margin: 0 auto;
	padding: 2rem 1.25rem;
}

.tekhive-single-job__content {
	font-size: 14px;
	color: var(--tek-text-muted);
	margin-bottom: 1.5rem;
}

.tekhive-single-job__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.5rem;
	font-size: 14px;
}

.tekhive-single-job__meta strong {
	color: var(--tek-text);
}

.tekhive-single-job__quote-box {
	margin-top: 2rem;
	padding: 1.5rem;
	border-radius: var(--tek-radius);
	background: var(--tek-bg-alt);
	border: 1px solid var(--tek-border-light);
}

.tekhive-single-job__owner-link {
	margin-top: 1.5rem;
}

.tekhive-jobs-shortcode__cta {
	margin-top: 1.5rem;
}
.tekhive-login-shortcode,
.tekhive-register-shortcode {
	max-width: 480px;
	margin: 0 auto;
	padding: 2rem;
	background: var(--tek-bg);
	border: 1px solid var(--tek-border-light);
	border-radius: var(--tek-radius);
	box-shadow: var(--tek-shadow);
	text-align: center;
}

.tekhive-register-shortcode .tekhive-btn,
.tekhive-register-shortcode .button {
	margin: 0.35rem;
}

/* Dashboard grid */
.tekhive-dashboard-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 0.75rem;
}

.tekhive-dashboard-grid a {
	display: block;
	padding: 1rem 1.1rem;
	border-radius: var(--tek-radius-sm);
	background: var(--tek-bg-alt);
	color: var(--tek-text);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	border: 1px solid var(--tek-border-light);
	min-height: 3.25rem;
}

.tekhive-dashboard-grid a:hover {
	border-color: var(--tek-primary);
	color: var(--tek-primary);
	background: var(--tek-primary-soft);
}

/* Site header navigation (Hello theme) */
.tekhive-site-nav-wrap {
	flex: 1;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.tekhive-site-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
	align-items: center;
}

.tekhive-site-nav__list a {
	font-family: var(--tek-font);
	font-size: 14px;
	font-weight: 500;
	color: var(--tek-text);
	text-decoration: none;
	padding: 0.35rem 0;
}

.tekhive-site-nav__list a:hover,
.tekhive-site-nav__list .current-menu-item a {
	color: var(--tek-primary);
}

.site-header .header-inner,
.site-header .site-header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.tekhive-dashboard-section-title {
	font-size: 20px;
	font-weight: 600;
	margin: 2rem 0 1rem;
}

.tekhive-dashboard-active {
	margin-bottom: 1.5rem;
}

.tekhive-dashboard-active__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.tekhive-dashboard-active__head h2 {
	font-size: 20px;
	font-weight: 600;
	margin: 0;
}

.tekhive-dashboard-active__link {
	font-size: 14px;
	font-weight: 500;
	color: var(--tek-primary);
	text-decoration: none;
}

.tekhive-badge--pending {
	background: #fff8e6;
	color: #92600a;
}

.tekhive-filters {
	margin-bottom: 1.5rem;
	padding: 1rem 1.25rem;
	background: var(--tek-bg-alt);
	border: 1px solid var(--tek-border-light);
	border-radius: var(--tek-radius-sm);
}

.tekhive-filters__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 0.75rem 1rem;
	align-items: end;
}

.tekhive-filters__submit {
	margin: 0;
}

.tekhive-table-wrap {
	overflow-x: auto;
	margin-bottom: 1.5rem;
}

.tekhive-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.tekhive-table th,
.tekhive-table td {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--tek-border-light);
	text-align: left;
	vertical-align: top;
}

.tekhive-table th {
	font-weight: 600;
	background: var(--tek-bg-alt);
}

.tekhive-table__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.tekhive-btn--sm {
	font-size: 12px;
	padding: 0.35rem 0.65rem;
}

.tekhive-inline-form {
	display: inline;
}

.tekhive-checklist {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 0.35rem 1rem;
}

.tekhive-checklist__item {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	font-weight: 400;
}

.tekhive-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 0.75rem;
	margin: 1rem 0 1.5rem;
}

.tekhive-gallery img {
	width: 100%;
	height: auto;
	border-radius: var(--tek-radius-sm);
	border: 1px solid var(--tek-border-light);
}

.tekhive-gallery--compact img {
	max-width: 100px;
}

.tekhive-feature-list {
	margin: 0.75rem 0 0;
	padding-left: 1.25rem;
	color: var(--tek-text-muted);
	font-size: 14px;
}

@media (max-width: 900px) {
	.tekhive-account {
		grid-template-columns: 1fr;
	}

	.tekhive-account__sidebar {
		position: static;
	}

	.tekhive-account__content {
		padding: 1.25rem;
	}

	.tekhive-account h1,
	.tekhive-wrap h1 {
		font-size: 26px;
	}
}
