/**
 * BuddyPress Pro integration styles.
 *
 * Tab icons follow the same pattern Reign uses in nouveau-menu-icons.css:
 * `.reign-nav-iconic #{li-id} > a:before { content: "fa-unicode"; }`
 * Font Awesome 6 Pro is loaded by Reign — we only need to set `content`.
 *
 * @package WP_Career_Board_Pro
 * @since   1.0.0
 */

/* ── Top-level profile tab icons ─────────────────────────────────────────── */
/*
 * BuddyPress Nouveau renders LI IDs as {css_id}-personal-li (member context).
 * Only `content` is needed — Reign's base rule already sets font-family to FA6 Pro.
 */

/* My Jobs — briefcase */
.reign-nav-iconic #wcb-employer-personal-li > a:before {
	content: "\f0b1";
}

/* My Career — id-card */
.reign-nav-iconic #wcb-candidate-personal-li > a:before {
	content: "\f2c2";
}

/* ── Sub-nav tab icons ────────────────────────────────────────────────────── */

/* Posted jobs — list */
.reign-nav-iconic #wcb-jobs-personal-li > a:before {
	content: "\f03a";
}

/* Employer applications received — inbox */
.reign-nav-iconic #wcb-employer-applications-personal-li > a:before {
	content: "\f01c";
}

/* My applications (candidate) — file-lines */
.reign-nav-iconic #wcb-my-applications-personal-li > a:before {
	content: "\f15c";
}

/* Resume — address-card */
.reign-nav-iconic #wcb-resume-personal-li > a:before {
	content: "\f2c2";
}

/* Saved jobs — bookmark */
.reign-nav-iconic #wcb-saved-personal-li > a:before {
	content: "\f02e";
}

/* ── Tab action header — stat + CTA at the top of every BP tab ── */

.wcb-bp-tab-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wcb-space-md, 12px);
	padding: 14px var(--wcb-space-xl, 20px);
	background: var(--wcb-surface, #f6f7f9);
	border: 1px solid var(--wcb-border, #e2e4e7);
	border-radius: var(--wcb-radius-sm, 6px);
	margin-block-end: var(--wcb-space-xl, 20px);
}

.wcb-bp-tab-stat {
	display: flex;
	align-items: baseline;
	gap: 6px;
	min-width: 0;
}

.wcb-bp-stat-count {
	font-size: 22px;
	font-weight: var(--wcb-font-bold, 700);
	color: var(--wcb-contrast, #1d2327);
	line-height: 1;
	flex-shrink: 0;
}

.wcb-bp-stat-label {
	font-size: 13px;
	color: var(--wcb-text-secondary, #646970);
	white-space: nowrap;
}

/* BuddyPress wraps profile tabs in `#item-body .item-body` (specificity
 * 1,0,2) and applies link styling there. Prefixing with that container
 * lands at (1,1,2) which wins outright. Each rule needs both #item-body
 * and a generic fallback for non-BP renders. */
#item-body a.wcb-bp-action-btn,
a.wcb-bp-action-btn {
	display: inline-flex;
	align-items: center;
	padding: var(--wcb-space-sm, 8px) var(--wcb-space-lg, 16px);
	background: var(--wcb-primary, #2271b1);
	color: var(--wcb-on-primary, #fff);
	border-radius: var(--wcb-radius-sm, 6px);
	text-decoration: none;
	font-size: 13px;
	font-weight: var(--wcb-font-medium, 500);
	line-height: 1.4;
	border: none;
	white-space: nowrap;
	flex-shrink: 0;
	transition: background var(--wcb-transition-snappy) ease;
}

#item-body a.wcb-bp-action-btn:hover,
#item-body a.wcb-bp-action-btn:focus,
a.wcb-bp-action-btn:hover,
a.wcb-bp-action-btn:focus {
	background: var(--wcb-primary-dark, #135e96);
	color: var(--wcb-on-primary, #fff);
	text-decoration: none;
}

#item-body a.wcb-bp-action-btn:focus-visible,
a.wcb-bp-action-btn:focus-visible {
	outline: 2px solid var(--wcb-primary-dark, #135e96);
	outline-offset: 2px;
}

@media (max-width: 640px) {
	.wcb-bp-tab-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		padding: var(--wcb-space-md, 12px) var(--wcb-space-lg, 16px);
	}
}
