/* ============================================================
	ATTENTIQ DASHBOARD HERO
	All colours use CSS variables from attentiq-admin.css
	============================================================ */

.attentiq-hero-wrap {
	margin-bottom: 0;
	padding: 0 2px;
}

.attentiq-hero-inner {
	background: var(--hero-bg);
	border-radius: 12px 12px 0 0;
	padding: 24px 28px;
	display: grid;
	grid-template-columns: 1fr 24px 300px;
	gap: 0;
	position: relative;
	overflow: hidden;
	border: 1px solid var(--hero-border);
	min-height: 260px;
	max-width: 1400px;
}

.attentiq-hero-inner::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient( ellipse at 100% -20%, rgba(147,205,32,0.10)  0%, transparent 50% ),
		radial-gradient( ellipse at 0%   120%, rgba(0,201,167,0.09)   0%, transparent 50% ),
		radial-gradient( ellipse at 55%   50%, rgba(108,99,255,0.06)  0%, transparent 65% );
	pointer-events: none;
	border-radius: inherit;
}

.attentiq-hero-vdivider {
	display: flex;
	justify-content: center;
	align-self: stretch;
}

.attentiq-hero-vdivider::after {
	content: '';
	width: 1px;
	background: var(--hero-border-mid);
	display: block;
	align-self: stretch;
}

.attentiq-hero-left,
.attentiq-hero-right {
	min-width: 0;
	overflow: hidden;
}

.attentiq-hero-left {
	display: flex;
	flex-direction: column;
	gap: 12px;
	position: relative;
}

.attentiq-wc-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.attentiq-wc-greeting { flex: 1; min-width: 0; }

.attentiq-wc-hello {
	font-size: 18px;
	font-weight: 700;
	color: var(--hero-text);
	line-height: 1.2;
	margin-bottom: 3px;
}

.attentiq-wc-sub {
	font-size: 12px;
	color: var(--hero-text-sub);
}

.attentiq-wc-live {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--hero-text-meta);
	background: var(--hero-surface);
	padding: 4px 10px;
	border-radius: 5px;
	white-space: nowrap;
	flex-shrink: 0;
	border: 1px solid var(--hero-border);
}

.attentiq-wc-live.is-live {
	color: var(--hero-mint);
	background: var(--hero-mint-bg);
	border-color: var(--hero-mint-border);
}

.attentiq-wc-live-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--hero-text-dim);
	flex-shrink: 0;
}

.attentiq-wc-live.is-live .attentiq-wc-live-dot {
	background: var(--hero-mint);
	animation: attentiq-pulse 2s ease-in-out infinite;
}

@keyframes attentiq-pulse {
	0%   { box-shadow: 0 0 0 0   rgba(0,201,167,0.7); }
	60%  { box-shadow: 0 0 0 6px rgba(0,201,167,0);   }
	100% { box-shadow: 0 0 0 0   rgba(0,201,167,0);   }
}

.attentiq-hero-divider {
	height: 1px;
	background: var(--hero-border-mid);
}

.attentiq-wc-highlights {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 8px;
}

.attentiq-wc-highlight-card {
	display: block;
	background: var(--hero-surface);
	border: 1px solid var(--hero-border);
	border-radius: 8px;
	padding: 10px 12px;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s;
	min-width: 0;
}

.attentiq-wc-highlight-card:hover {
	background: var(--hero-tip-bg);
	border-color: rgba(108,99,255,0.40);
	text-decoration: none;
}
.attentiq-wc-highlight-card.attentiq-wc-no-link:hover{
	background: var(--hero-surface);
	border: 1px solid var(--hero-border);
}

.attentiq-wc-highlight-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: flex;
	align-items: center;
	gap: 4px;
}

.attentiq-wc-highlight-label.is-score { color: var(--hero-purple); }
.attentiq-wc-highlight-label.is-views { color: var(--hero-mint); }
.attentiq-wc-highlight-label.is-rev   { color: var(--hero-purple); }

.attentiq-wc-highlight-title {
	font-size: 12px;
	font-weight: 600;
	color: var(--hero-text);
	line-height: 1.3;
	margin-bottom: 6px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
}

.attentiq-wc-highlight-meta {
	display: flex;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
}

.attentiq-wc-arrow {
	font-size: 12px;
	color: var(--hero-text-dim);
	margin-left: auto;
	transition: color 0.15s;
	white-space: nowrap;
}

.attentiq-wc-highlight-card:hover .attentiq-wc-arrow { color: var(--hero-text-strong); }

.attentiq-wc-time-pill,
.attentiq-wc-rev-pill,
.attentiq-wc-score-pill {
	font-size: 12px;
	font-weight: 700;
	color: var(--hero-purple);
	background: var(--hero-purple-bg);
	padding: 2px 7px;
	border-radius: 5px;
	border: 1px solid var(--hero-purple-border);
}

.attentiq-wc-views-pill,
.attentiq-wc-scroll-pill {
	font-size: 12px;
	font-weight: 700;
	color: var(--hero-mint);
	background: var(--hero-mint-bg);
	padding: 2px 7px;
	border-radius: 5px;
	border: 1px solid var(--hero-mint-border);
}

.attentiq-wc-views-sub {
	font-size: 12px;
	color: var(--hero-text-dim);
}

.attentiq-wc-no-data {
	cursor: default !important;
	pointer-events: none;
}

.attentiq-wc-bottom {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin-top: auto;
}

.attentiq-wc-today-summary {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 12px;
	color: var(--hero-text-meta);
}

.attentiq-wc-today-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--hero-text-dim);
	flex-shrink: 0;
}

.attentiq-wc-tip,
.attentiq-wc-todo {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12px;
	line-height: 1.5;
	padding: 8px 11px;
	border-radius: 5px;
}

.attentiq-wc-tip {
	background: var(--hero-tip-bg);
	border: 1px solid var(--hero-tip-border);
	color: var(--hero-text-muted);
}

.attentiq-wc-todo {
	background: var(--hero-todo-bg);
	border: 1px solid var(--hero-todo-border);
	color: var(--hero-text-muted);
}

.attentiq-wc-tip-icon,
.attentiq-wc-todo-icon {
	flex-shrink: 0;
	font-size: 14px;
	line-height: 1.5;
}

.attentiq-hero-right {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 0;
	position: relative;
	min-width: 0;
	overflow: hidden;
}

.attentiq-hero-right .attentiq-hero-divider { margin: 12px 0 10px; }

.attentiq-hero-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.attentiq-hero-stat {
	background: var(--hero-surface);
	border: 1px solid var(--hero-border);
	border-radius: 8px;
	padding: 10px 13px;
	min-width: 0;
	position: relative;
	box-sizing: border-box;
}

/* Neutralise the global .attentiq-direct-wrap min-width so the 4th
   stat box stays the same width as the others in the 1fr 1fr grid. */
.attentiq-hero-stats .attentiq-direct-wrap {
	min-width: 0;
}

.attentiq-hero-stat-value {
	font-size: 20px;
	font-weight: 700;
	color: var(--hero-text);
	line-height: 1.1;
	margin-bottom: 2px;
}
.attentiq-hero-stat-value a {
	color:#fff;
}

.attentiq-hero-stat-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--hero-text-label);
	line-height: 1.2;
}

.attentiq-hero-stat-sub {
	font-size: 12px;
	color: var(--hero-text-dim);
	margin-top: 1px;
}

.attentiq-hero-slots-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--hero-text-dim);
	margin-bottom: 8px;
}

.attentiq-hero-slots {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.attentiq-hero-slot-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 4px;
}

.attentiq-hero-slot-name {
	font-size: 12px;
	font-weight: 600;
	color: var(--hero-text-slot);
	display: flex;
	align-items: center;
	gap: 5px;
}

.attentiq-hero-best-badge {
	font-size: 12px;
	font-weight: 700;
	background: var(--hero-mint-bg);
	color: var(--hero-mint);
	padding: 1px 6px;
	border-radius: 5px;
	border: 1px solid var(--hero-mint-border);
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.attentiq-hero-slot-score {
	font-size: 12px;
	font-weight: 700;
}

.attentiq-hero-slot-track {
	height: 5px;
	background: rgba(255,255,255,0.16);
	border-radius: 3px;
	overflow: hidden;
}

.attentiq-hero-slot-fill {
	height: 100%;
	border-radius: 3px;
	transition: width 0.6s ease;
}

/* ── Responsive ───────────────────────────────────────────── */
@media ( max-width: 1350px ) {
	.attentiq-hero-inner {
		grid-template-columns: 1fr !important;
		grid-template-rows: auto auto auto !important;
	}
	.attentiq-hero-left     { grid-column: 1; grid-row: 1; }
	.attentiq-hero-vdivider {
		grid-column: 1; grid-row: 2;
		width: auto; height: 1px; margin: 16px 0;
	}
	.attentiq-hero-vdivider::after { width: 100%; height: 1px; }
	.attentiq-hero-right    { grid-column: 1; grid-row: 3; }
}

@media ( max-width: 1380px ) {
	.attentiq-hero-inner    { padding: 18px 16px; }
	.attentiq-wc-highlights { grid-template-columns: 1fr 1fr; }
	.attentiq-hero-stats    { grid-template-columns: 1fr 1fr; }
}

@media ( max-width: 782px ) {
	.attentiq-wc-highlights { grid-template-columns: 1fr; }
	.attentiq-wc-top        { flex-direction: column; gap: 8px; }
	.attentiq-wc-live       { align-self: flex-start; }
}