
/* =========================================================
 * IPOGMPHub — Current GMP Component
 * Premium UI / component-only stylesheet
 * ========================================================= */

.ipogmphub-gmp-section {
	padding: 26px 30px 20px;
	background: linear-gradient(135deg, #ffffff 0%, #fbfdff 58%, #f5fbf7 100%);
	border-color: #dce7f3;
	box-shadow: 0 12px 34px rgba(35, 75, 125, .065);
}

/* ---------- Header ---------- */

.ipogmphub-gmp-heading-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
}

.ipogmphub-gmp-heading-copy {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.ipogmphub-gmp-icon {
	width: 52px;
	height: 52px;
	flex: 0 0 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eaf8f0;
	border: 1px solid #d0eddd;
	border-radius: 15px;
	color: #10934a;
}

.ipogmphub-gmp-icon svg {
	width: 27px;
	height: 27px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ipogmphub-gmp-section .ipogmphub-eyebrow {
	margin: 0 0 2px;
	color: #087d42;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .09em;
	line-height: 1.25;
	text-transform: uppercase;
}

.ipogmphub-gmp-section .ipogmphub-component-title {
	margin: 0;
	color: #10213d;
	font-size: clamp(25px, 2.2vw, 31px);
	font-weight: 850;
	letter-spacing: -.025em;
	line-height: 1.08;
}

.ipogmphub-updated {
	margin-top: 5px;
	color: #647892;
	font-size: 12px;
	line-height: 1.35;
}

.ipogmphub-live-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	padding: 9px 14px;
	background: #eaf8ef;
	border: 1px solid #d1ecdc;
	border-radius: 999px;
	color: #087d42;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
}

.ipogmphub-live-dot {
	width: 8px;
	height: 8px;
	flex: 0 0 8px;
	border-radius: 50%;
	background: #12964d;
	box-shadow: 0 0 0 4px rgba(18, 150, 77, .09);
}

/* ---------- Main dashboard ---------- */

.ipogmphub-gmp-dashboard {
	display: grid;
	grid-template-columns: minmax(190px, 1.05fr) minmax(205px, 1.08fr) minmax(225px, 1.18fr);
	align-items: stretch;
	border: 1px solid #dfe8f2;
	border-radius: 18px;
	background: rgba(255,255,255,.84);
	overflow: hidden;
}

/* Current GMP */

.ipogmphub-gmp-value-card {
	min-width: 0;
	padding: 21px 22px;
	background: linear-gradient(135deg, #ffffff 0%, #fafffc 100%);
}

.ipogmphub-gmp-card-label {
	display: block;
	margin-bottom: 5px;
	color: #667993;
	font-size: 12px;
	font-weight: 750;
	line-height: 1.25;
}

.ipogmphub-gmp-value {
	color: #0d9449;
	font-size: clamp(43px, 4.2vw, 55px);
	font-weight: 900;
	letter-spacing: -.045em;
	line-height: .98;
	white-space: nowrap;
}

.ipogmphub-gmp-change {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 8px;
	font-size: 14px;
	font-weight: 850;
	line-height: 1.2;
	white-space: nowrap;
}

.ipogmphub-gmp-change-positive { color: #10934a; }
.ipogmphub-gmp-change-negative { color: #c63e3e; }
.ipogmphub-gmp-change-neutral { color: #65758c; }

/* ---------- Estimated price + gain ---------- */

.ipogmphub-gmp-estimate-panel {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	min-width: 0;
	padding: 10px;
	border-left: 1px solid #dfe8f2;
	border-right: 1px solid #dfe8f2;
	background: #fbfdff;
}

.ipogmphub-gmp-metric {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	min-height: 88px;
	padding: 12px 11px;
	background: #ffffff;
	border: 1px solid #dfe8f2;
	border-radius: 13px;
	overflow: hidden;
}

.ipogmphub-gmp-metric span {
	display: block;
	margin-bottom: 7px;
	color: #61738d;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.25;
}

.ipogmphub-gmp-metric strong {
	display: block;
	min-width: 0;
	color: #10213d;
	font-size: 20px;
	font-weight: 900;
	letter-spacing: -.035em;
	line-height: 1.05;
	white-space: nowrap;
}

.ipogmphub-gmp-metric .ipogmphub-gmp-gain {
	color: #0d9449;
}

.ipogmphub-gmp-metric::after {
	display: none !important;
	content: none !important;
}

/* ---------- Trend ---------- */

.ipogmphub-gmp-trend-card {
	display: flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
	margin: 10px;
	padding: 15px 16px;
	border: 1px solid #d2ecdc;
	border-radius: 14px;
	background: #effaf3;
}

.ipogmphub-gmp-trend-negative {
	border-color: #efd5d5;
	background: #fff5f5;
}

.ipogmphub-gmp-trend-neutral {
	border-color: #dfe6ee;
	background: #f7f9fc;
}

.ipogmphub-trend-icon {
	width: 39px;
	height: 39px;
	flex: 0 0 39px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #10934a;
}

.ipogmphub-gmp-trend-negative .ipogmphub-trend-icon {
	color: #c63e3e;
}

.ipogmphub-gmp-trend-neutral .ipogmphub-trend-icon {
	color: #687990;
}

.ipogmphub-trend-icon svg {
	width: 27px;
	height: 27px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ipogmphub-gmp-trend-card strong {
	display: block;
	color: #087d42;
	font-size: 13px;
	font-weight: 850;
	line-height: 1.3;
}

.ipogmphub-gmp-trend-negative strong {
	color: #b63c3c;
}

.ipogmphub-gmp-trend-neutral strong {
	color: #55667d;
}

.ipogmphub-gmp-trend-card span {
	display: block;
	margin-top: 3px;
	color: #687990;
	font-size: 11px;
	line-height: 1.38;
}

/* ---------- Disclaimer ---------- */

.ipogmphub-gmp-disclaimer {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 14px;
	padding-top: 13px;
	border-top: 1px solid #e1e9f2;
	color: #718199;
	font-size: 11px;
	line-height: 1.5;
}

.ipogmphub-info-icon {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #aebbd0;
	border-radius: 50%;
	color: #718199;
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
}

/* ---------- Tablet ---------- */

@media (max-width: 980px) {
	.ipogmphub-gmp-dashboard {
		grid-template-columns: 1fr 1fr;
	}

	.ipogmphub-gmp-trend-card {
		grid-column: 1 / -1;
		margin: 10px;
	}

	.ipogmphub-gmp-estimate-panel {
		border-right: 0;
	}
}

/* ---------- Mobile ---------- */

@media (max-width: 680px) {
	.ipogmphub-gmp-section {
		padding: 22px 14px 18px;
	}

	.ipogmphub-gmp-heading-row {
		align-items: flex-start;
		gap: 12px;
		margin-bottom: 17px;
	}

	.ipogmphub-gmp-heading-copy {
		gap: 10px;
	}

	.ipogmphub-gmp-icon {
		width: 45px;
		height: 45px;
		flex-basis: 45px;
		border-radius: 13px;
	}

	.ipogmphub-gmp-icon svg {
		width: 24px;
		height: 24px;
	}

	.ipogmphub-gmp-section .ipogmphub-eyebrow {
		font-size: 10px;
	}

	.ipogmphub-gmp-section .ipogmphub-component-title {
		font-size: 23px;
	}

	.ipogmphub-updated {
		font-size: 11px;
	}

	.ipogmphub-live-badge {
		padding: 8px 11px;
		font-size: 10px;
	}

	.ipogmphub-gmp-dashboard {
		grid-template-columns: 1fr;
		border-radius: 15px;
	}

	.ipogmphub-gmp-value-card {
		padding: 20px 18px;
	}

	.ipogmphub-gmp-value {
		font-size: 43px;
	}

	.ipogmphub-gmp-estimate-panel {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 9px;
		border-top: 1px solid #dfe8f2;
		border-right: 0;
		border-left: 0;
		border-bottom: 1px solid #dfe8f2;
	}

	.ipogmphub-gmp-metric {
		min-height: 86px;
		padding: 12px 11px;
	}

	.ipogmphub-gmp-metric strong {
		font-size: 20px;
	}

	.ipogmphub-gmp-trend-card {
		grid-column: auto;
		margin: 11px;
	}

	.ipogmphub-gmp-disclaimer {
		margin-left: 1px;
		margin-right: 1px;
	}
}

/* ---------- Small mobile ---------- */

@media (max-width: 430px) {
	.ipogmphub-gmp-section {
		padding-left: 10px;
		padding-right: 10px;
	}

	.ipogmphub-gmp-heading-row {
		padding: 0 5px;
	}

	.ipogmphub-live-badge {
		display: none;
	}

	.ipogmphub-gmp-value-card {
		padding: 18px 16px;
	}

	.ipogmphub-gmp-value {
		font-size: 41px;
	}

	.ipogmphub-gmp-estimate-panel {
		gap: 7px;
		padding: 8px;
	}

	.ipogmphub-gmp-metric {
		min-height: 82px;
		padding: 11px 10px;
	}

	.ipogmphub-gmp-metric span {
		font-size: 10px;
	}

	.ipogmphub-gmp-metric strong {
		font-size: 18px;
	}

	.ipogmphub-gmp-trend-card {
		margin: 10px;
		padding: 14px;
	}
}

/* =========================================================
 * v1.3.1 — Desktop GMP metric alignment
 * ========================================================= */
@media (min-width: 981px) {
	.ipogmphub-gmp-estimate-panel {
		min-width: 205px;
	}

	.ipogmphub-gmp-metric {
		padding-left: 10px;
		padding-right: 10px;
	}

	.ipogmphub-gmp-metric span {
		font-size: 10px;
	}

	.ipogmphub-gmp-metric strong {
		font-size: 19px;
		letter-spacing: -.035em;
	}

	.ipogmphub-gmp-trend-card {
		margin: 9px;
		padding: 14px 13px;
	}

	.ipogmphub-gmp-trend-card strong {
		font-size: 12px;
	}
}

@media (min-width: 981px) and (max-width: 1100px) {
	.ipogmphub-gmp-dashboard {
		grid-template-columns: minmax(175px, 1fr) minmax(200px, 1.08fr) minmax(205px, 1.12fr);
	}

	.ipogmphub-gmp-metric strong {
		font-size: 18px;
	}
}

/* =========================================================
 * v1.3.2 — GMP desktop visual polish
 * ========================================================= */
@media (min-width: 981px) {
	/* More balanced proportions: hero GMP, two compact metrics,
	   and a wider trend message. */
	.ipogmphub-gmp-dashboard {
		grid-template-columns: minmax(190px, 1.02fr) minmax(205px, 1.08fr) minmax(235px, 1.22fr);
	}

	.ipogmphub-gmp-value-card {
		padding: 20px 21px;
	}

	.ipogmphub-gmp-card-label {
		margin-bottom: 6px;
		font-size: 11px;
	}

	.ipogmphub-gmp-value {
		font-size: 50px;
		letter-spacing: -.04em;
	}

	.ipogmphub-gmp-change {
		margin-top: 7px;
		font-size: 13px;
	}

	.ipogmphub-gmp-estimate-panel {
		gap: 9px;
		padding: 10px;
	}

	.ipogmphub-gmp-metric {
		min-height: 90px;
		padding: 13px 11px;
	}

	.ipogmphub-gmp-metric span {
		margin-bottom: 6px;
		font-size: 10px;
		line-height: 1.22;
	}

	.ipogmphub-gmp-metric strong {
		font-size: 19px;
		line-height: 1.08;
	}

	.ipogmphub-gmp-trend-card {
		margin: 10px;
		padding: 15px 16px;
		gap: 12px;
	}

	.ipogmphub-trend-icon {
		width: 40px;
		height: 40px;
		flex-basis: 40px;
	}

	.ipogmphub-gmp-trend-card strong {
		font-size: 13px;
		line-height: 1.28;
	}

	.ipogmphub-gmp-trend-card span {
		margin-top: 4px;
		font-size: 11px;
		line-height: 1.4;
	}
}

/* Medium desktop / laptop */
@media (min-width: 981px) and (max-width: 1100px) {
	.ipogmphub-gmp-dashboard {
		grid-template-columns: minmax(175px, 1fr) minmax(195px, 1.08fr) minmax(215px, 1.15fr);
	}

	.ipogmphub-gmp-value {
		font-size: 47px;
	}

	.ipogmphub-gmp-metric strong {
		font-size: 18px;
	}

	.ipogmphub-gmp-trend-card {
		padding-left: 12px;
		padding-right: 12px;
	}
}

/* =========================================================
 * v1.3.3 — GMP semantic colors + narrower trend panel
 * ========================================================= */

/* Negative current GMP */
.ipogmphub-gmp-value-negative {
	color: #d83b3b;
}

.ipogmphub-gmp-gain-negative {
	color: #d83b3b !important;
}

/* Keep positive gain visually positive */
.ipogmphub-gmp-gain {
	color: #10934a;
}

/* Desktop: give the trend card less width and more room
   to the two numeric metrics. */
@media (min-width: 981px) {
	.ipogmphub-gmp-dashboard {
		grid-template-columns:
			minmax(190px, 1.10fr)
			minmax(215px, 1.25fr)
			minmax(205px, .92fr);
	}

	.ipogmphub-gmp-estimate-panel {
		min-width: 0;
	}

	.ipogmphub-gmp-trend-card {
		margin: 10px 10px 10px 9px;
		padding: 14px 12px;
		gap: 9px;
	}

	.ipogmphub-trend-icon {
		width: 36px;
		height: 36px;
		flex-basis: 36px;
	}

	.ipogmphub-gmp-trend-card strong {
		font-size: 12px;
	}

	.ipogmphub-gmp-trend-card span {
		font-size: 10.5px;
	}
}

/* Medium desktop */
@media (min-width: 981px) and (max-width: 1100px) {
	.ipogmphub-gmp-dashboard {
		grid-template-columns:
			minmax(175px, 1.05fr)
			minmax(200px, 1.20fr)
			minmax(195px, .92fr);
	}

	.ipogmphub-gmp-trend-card {
		padding-left: 10px;
		padding-right: 10px;
	}
}

/* Mobile: retain the approved stacked layout. */
@media (max-width: 680px) {
	.ipogmphub-gmp-value-negative {
		color: #d83b3b;
	}

	.ipogmphub-gmp-gain-negative {
		color: #d83b3b !important;
	}
}
