/**
 * CEOJournal Directorist Widgets — Frontend Styles
 *
 * Minimal, opinionated baseline. Most styling is driven by per-widget
 * Elementor controls (the user's choices in the editor). This file only
 * carries effects that can't be cleanly expressed as Elementor selectors —
 * primarily hover transitions and tier color presets.
 */

/* ============================================================
 * Editor-mode notice (shown when widget has no listing context)
 * ============================================================ */
.ceoj-editor-notice {
	padding: 16px 20px;
	background: #FFF6E5;
	border: 1px dashed #E0C988;
	border-radius: 4px;
	color: #6B4F1D;
	font-size: 13px;
	line-height: 1.5;
}
.ceoj-editor-notice strong {
	display: block;
	margin-bottom: 4px;
	color: #4A3713;
}

/* ============================================================
 * Profile Photo Widget
 * ============================================================ */
.ceoj-profile-photo-wrapper {
	display: flex;
	align-items: center;
	width: 100%;
}
.ceoj-profile-photo {
	display: block;
	max-width: 100%;
	transition: all 300ms ease;
}
.ceoj-profile-photo-link {
	display: inline-block;
	line-height: 0;
}

/* Hover effects (paired with widget's prefix_class) */
.ceoj-hover-zoom .ceoj-profile-photo:hover {
	transform: scale(1.05);
}
.ceoj-hover-grayscale .ceoj-profile-photo {
	filter: grayscale(100%);
}
.ceoj-hover-grayscale .ceoj-profile-photo:hover {
	filter: grayscale(0%);
}
.ceoj-hover-opacity .ceoj-profile-photo:hover {
	opacity: 0.7;
}
.ceoj-hover-lift .ceoj-profile-photo:hover {
	transform: translateY(-4px);
}

/* ============================================================
 * Executive Header Widget
 * ============================================================ */
.ceoj-exec-header {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.ceoj-exec-name {
	margin: 0;
	line-height: 1.15;
}
.ceoj-exec-position {
	font-weight: 500;
}
.ceoj-exec-company {
	opacity: 0.8;
}
.ceoj-exec-ticker {
	margin-top: 6px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-weight: 600;
}
.ceoj-exec-exchange {
	margin-right: 4px;
}

/* ============================================================
 * Alpha Score Badge Widget
 * ============================================================ */
.ceoj-alpha-badge {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}
.ceoj-alpha-score {
	font-weight: 700;
	line-height: 1;
}
.ceoj-alpha-tier {
	letter-spacing: 0.08em;
	font-size: 11px;
	font-weight: 600;
}

/* Tier color presets (Silka can override per the v2.0 spec) */
.ceoj-alpha-tier-high-conviction .ceoj-alpha-score { color: #1F7A3D; }
.ceoj-alpha-tier-noteworthy      .ceoj-alpha-score { color: #2E5BC3; }
.ceoj-alpha-tier-moderate        .ceoj-alpha-score { color: #B8924A; }
.ceoj-alpha-tier-low-conviction  .ceoj-alpha-score { color: #B84A4A; }
.ceoj-alpha-tier-no-score        .ceoj-alpha-score { color: #8C8C8C; }

/* ============================================================
 * Meta Inspector (debug widget)
 * ============================================================ */
.ceoj-meta-inspector {
	background: #FFF6E5;
	border: 2px dashed #E0C988;
	padding: 16px 20px;
	margin: 16px 0;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 13px;
	line-height: 1.5;
	color: #4A3713;
	border-radius: 4px;
}
.ceoj-meta-inspector-header {
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid #E0C988;
}
.ceoj-meta-inspector-header strong {
	display: block;
	font-size: 15px;
	color: #6B4F1D;
	margin-bottom: 6px;
}
.ceoj-meta-inspector-meta {
	color: #6B4F1D;
	margin-bottom: 6px;
}
.ceoj-meta-inspector-warning {
	color: #B84A4A;
	font-style: italic;
}
.ceoj-meta-inspector-empty {
	padding: 20px;
	text-align: center;
	color: #6B4F1D;
}
.ceoj-meta-inspector-table {
	width: 100%;
	border-collapse: collapse;
}
.ceoj-meta-inspector-table th {
	text-align: left;
	padding: 8px 10px;
	border-bottom: 2px solid #E0C988;
	color: #6B4F1D;
	font-weight: 600;
}
.ceoj-meta-inspector-table td {
	padding: 6px 10px;
	border-bottom: 1px solid rgba(224, 201, 136, 0.4);
	vertical-align: top;
}
.ceoj-meta-inspector-table code {
	background: rgba(0, 0, 0, 0.05);
	padding: 2px 6px;
	border-radius: 3px;
	white-space: nowrap;
	font-size: 12px;
}
.ceoj-meta-inspector-value {
	word-break: break-word;
	max-width: 600px;
}

/* ============================================================
 * External Links Bar
 * ============================================================ */
.ceoj-ext-links-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}
.ceoj-ext-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: color 0.2s ease;
}
.ceoj-ext-link svg {
	display: block;
}

/* ============================================================
 * KPI Strip
 * ============================================================ */
.ceoj-kpi-strip {
	display: grid;
	width: 100%;
}
.ceoj-kpi-tile {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.ceoj-kpi-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
}
.ceoj-kpi-value {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.1;
}
.ceoj-kpi-sub {
	font-size: 11px;
	opacity: 0.7;
	margin-top: 2px;
}

/* ============================================================
 * Signal Summary
 * ============================================================ */
.ceoj-signal-summary {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.ceoj-signal-heading {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
}
.ceoj-signal-body {
	line-height: 1.6;
}
.ceoj-signal-updated {
	font-size: 12px;
	opacity: 0.6;
}
.ceoj-signal-disclaimer {
	font-size: 12px;
	font-style: italic;
	padding-top: 8px;
	border-top: 1px solid rgba(0,0,0,0.08);
}

/* ============================================================
 * Alpha Score Breakdown
 * ============================================================ */
.ceoj-score-breakdown {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.ceoj-score-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ceoj-score-row-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}
.ceoj-score-row-label {
	font-weight: 600;
	font-size: 14px;
}
.ceoj-score-row-value {
	font-weight: 700;
	font-size: 14px;
}
.ceoj-score-bar-track {
	height: 8px;
	border-radius: 4px;
	overflow: hidden;
}
.ceoj-score-bar-fill {
	height: 100%;
	transition: width 0.5s ease;
}
.ceoj-score-explanation {
	font-size: 13px;
	opacity: 0.75;
	margin-top: 4px;
	line-height: 1.5;
}
.ceoj-score-composite {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding-top: 12px;
	border-top: 2px solid rgba(0,0,0,0.08);
	margin-top: 8px;
}
.ceoj-score-composite-label {
	font-weight: 700;
	font-size: 14px;
}
.ceoj-score-composite-value {
	font-weight: 800;
	font-size: 28px;
}

/* ============================================================
 * Transaction History Table
 * ============================================================ */
.ceoj-txn-wrapper {
	width: 100%;
}
.ceoj-txn-heading {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 700;
}
.ceoj-txn-table {
	width: 100%;
	border-collapse: collapse;
}
.ceoj-txn-table th,
.ceoj-txn-table td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid #E5E1D8;
}
.ceoj-txn-table thead th {
	font-weight: 700;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.ceoj-txn-table .ceoj-txn-num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

/* ============================================================
 * Executive Profile
 * ============================================================ */
.ceoj-exec-profile {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.ceoj-profile-section-heading {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
}
.ceoj-profile-section-body {
	line-height: 1.6;
}
.ceoj-profile-section-body p {
	margin: 0 0 12px;
}

/* ============================================================
 * Compensation Tiles
 * ============================================================ */
.ceoj-comp-heading {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 700;
}
.ceoj-comp-grid {
	display: grid;
}
.ceoj-comp-tile {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ceoj-comp-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
}
.ceoj-comp-value {
	font-size: 24px;
	font-weight: 700;
}
.ceoj-comp-status {
	font-size: 12px;
	font-style: italic;
	margin-top: 12px;
	opacity: 0.65;
}

/* ============================================================
 * Executive Card
 * ============================================================ */
.ceoj-exec-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	text-decoration: none;
	transition: all 0.2s ease;
}
.ceoj-exec-card:hover {
	transform: translateY(-2px);
}
.ceoj-exec-card-header {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}
.ceoj-exec-card-photo {
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: #F5F1EA;
}
.ceoj-exec-card-identity {
	flex: 1;
	min-width: 0;
}
.ceoj-exec-card-name {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 2px;
}
.ceoj-exec-card-role {
	font-size: 12px;
	opacity: 0.7;
	line-height: 1.3;
}
.ceoj-exec-card-ticker {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: #B8924A;
	margin-top: 4px;
}
.ceoj-exec-card-score {
	font-size: 24px;
	font-weight: 800;
	color: #1C2B52;
	line-height: 1;
}
.ceoj-exec-card-trade {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	padding-top: 10px;
	border-top: 1px solid rgba(0,0,0,0.08);
}
.ceoj-exec-card-trade-label {
	opacity: 0.6;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 600;
	font-size: 10px;
}
.ceoj-exec-card-trade-amount {
	font-weight: 700;
}
.ceoj-exec-card-trade-date {
	opacity: 0.6;
	margin-left: auto;
}

/* Tier border accent on the card */
.ceoj-exec-card.ceoj-tier-high-conviction { border-left: 4px solid #1F7A3D; }
.ceoj-exec-card.ceoj-tier-noteworthy      { border-left: 4px solid #2E5BC3; }
.ceoj-exec-card.ceoj-tier-moderate        { border-left: 4px solid #B8924A; }
.ceoj-exec-card.ceoj-tier-low-conviction  { border-left: 4px solid #B84A4A; }
.ceoj-exec-card.ceoj-tier-no-score        { border-left: 4px solid #8C8C8C; }

/* ============================================================
 * Related Signals Cards
 * ============================================================ */
.ceoj-related-heading {
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 700;
}
.ceoj-related-grid {
	display: grid;
	gap: 16px;
}
.ceoj-related-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ceoj-related-card-icon {
	font-size: 24px;
	margin-bottom: 4px;
}
.ceoj-related-card-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
}
.ceoj-related-card-body {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	opacity: 0.8;
	flex: 1;
}
.ceoj-related-card-link {
	margin-top: 8px;
	font-weight: 700;
	font-size: 13px;
	text-decoration: none;
	letter-spacing: 0.02em;
}
.ceoj-related-card-link:hover {
	text-decoration: underline;
}
