/* IZ Globe Section — frontend
   ------------------------------------------------------------------ */

.izg {
	--izg-accent: #22c55e;
	--izg-text: #1c1c1e;
	--izg-muted: #6b7280;
	--izg-bg: #f5f5f5;
	--izg-orbit: 46;
	--izg-avatar: 11;
	--izg-radius: 0;
	--izg-btn: #29418E;
	--izg-btn-text: #ffffff;
	--izg-font: 'Marcellus', 'Amiri', serif;
	--izg-title-size: 55px;
	--izg-title-weight: 400;
	--izg-pad-y: clamp(48px, 7vw, 104px);
	--izg-pad-x: clamp(20px, 5vw, 72px);
	--izg-card: #ffffff;
	--izg-line: rgba(0, 0, 0, .08);
	--izg-shadow: 0 6px 18px rgba(17, 17, 17, .10), 0 1px 3px rgba(17, 17, 17, .06);

	position: relative;
	box-sizing: border-box;
	background: var(--izg-bg);
	color: var(--izg-text);
	border-radius: calc(var(--izg-radius) * 1px);
	padding: var(--izg-pad-y) var(--izg-pad-x);
	overflow: hidden;
	isolation: isolate;
	font-family: var(--izg-font);
	text-align: start;
	-webkit-font-smoothing: antialiased;
}

.izg *,
.izg *::before,
.izg *::after {
	box-sizing: border-box;
}

.izg--dark {
	--izg-text: #f4f4f5;
	--izg-muted: #a1a1aa;
	--izg-card: #1b1b1f;
	--izg-line: rgba(255, 255, 255, .12);
	--izg-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}

/* Layout ------------------------------------------------------------ */

.izg__inner {
	position: relative;
	z-index: 1;
	max-width: 1280px;
	margin-inline: auto;
	display: grid;
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.izg--split .izg__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

.izg--center .izg__inner {
	justify-items: center;
	text-align: center;
}

.izg__content {
	min-width: 0;
}

/* Type -------------------------------------------------------------- */

.izg__eyebrow {
	display: inline-block;
	margin-bottom: 14px;
	font-size: clamp(11px, 1.4vw, 13px);
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--izg-muted);
}

.izg__title {
	margin: 0;
	font-size: min(var(--izg-title-size), 9vw);
	line-height: 1.24;
	font-weight: var(--izg-title-weight);
	letter-spacing: -.01em;
	color: var(--izg-text);
	text-wrap: balance;
}

.izg__title-part,
.izg__count {
	display: inline;
}

.izg__count {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.izg__subtitle {
	margin: 18px 0 0;
	max-width: 52ch;
	font-size: clamp(15px, 1.6vw, 18px);
	line-height: 1.65;
	color: var(--izg-muted);
}

.izg--center .izg__subtitle {
	margin-inline: auto;
}

/* Buttons ----------------------------------------------------------- */

.izg__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: clamp(24px, 3vw, 36px);
}

.izg--center .izg__actions {
	justify-content: center;
}

.izg__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 26px;
	border-radius: 999px;
	font-size: clamp(14px, 1.4vw, 16px);
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	border: 1px solid transparent;
	transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
	will-change: transform;
}

.izg__btn:hover {
	transform: translateY(-2px);
}

.izg__btn:focus-visible {
	outline: 2px solid var(--izg-accent);
	outline-offset: 3px;
}

.izg__btn--solid {
	background: var(--izg-btn);
	color: var(--izg-btn-text);
}

.izg__btn--solid:hover {
	background: color-mix(in srgb, var(--izg-btn) 86%, #000);
}

.izg__btn--ghost {
	background: transparent;
	color: var(--izg-btn);
	border-color: color-mix(in srgb, var(--izg-btn) 32%, transparent);
}

.izg--dark .izg__btn--ghost {
	color: var(--izg-text);
	border-color: var(--izg-line);
}

.izg__btn--ghost:hover {
	border-color: var(--izg-btn);
	background: color-mix(in srgb, var(--izg-btn) 6%, transparent);
}

.izg__btn:focus-visible {
	outline-color: var(--izg-btn);
}

.izg__btn-sub {
	font-style: normal;
	opacity: .55;
	font-size: .92em;
	margin-inline-start: 2px;
}

.izg__icon {
	width: 1.15em;
	height: 1.15em;
	flex: none;
}

/* Stage ------------------------------------------------------------- */

.izg__stage {
	position: relative;
	width: 100%;
	max-width: 640px;
	margin-inline: auto;
	aspect-ratio: 1 / 1;
	overflow: visible;
}

.izg__globe {
	position: absolute;
	inset: 12%;
	border-radius: 50%;
}

.izg--light .izg__globe.is-glow {
	background: radial-gradient(circle at 50% 45%, #fff 0%, rgba(255, 255, 255, .85) 46%, rgba(255, 255, 255, 0) 72%);
	box-shadow: 0 30px 70px -30px rgba(17, 17, 17, .18);
}

.izg--dark .izg__globe.is-glow {
	background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .03) 50%, rgba(255, 255, 255, 0) 72%);
}

.izg__canvas {
	display: block;
	width: 100%;
	height: 100%;
}

/* Pins -------------------------------------------------------------- */

.izg__orbit {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.izg__pin {
	--s: 11;
	--o: 1;
	--b: 0px;
	--d: 0s;

	position: absolute;
	width: clamp(24px, calc(var(--s) * 1%), 78px);
	aspect-ratio: 1 / 1;
	container-type: inline-size;
	transform: translate(-50%, -50%);
	opacity: var(--o);
	pointer-events: auto;
	text-decoration: none;
	color: inherit;
}

.izg__pin-in {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	overflow: hidden;
	background: var(--izg-card);
	box-shadow: var(--izg-shadow);
	filter: blur(var(--b));
	transition: transform .25s cubic-bezier(.2, .8, .3, 1), box-shadow .25s ease;
}

.izg--float .izg__pin-in {
	animation: izg-float 6.5s ease-in-out infinite;
	animation-delay: var(--d);
}

a.izg__pin:hover .izg__pin-in,
a.izg__pin:focus-visible .izg__pin-in {
	transform: scale(1.12);
	filter: blur(0);
	box-shadow: 0 12px 28px rgba(17, 17, 17, .18);
}

.izg__avatar {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 50%;
}

.izg__flag {
	font-size: 20px; /* fallback للمتصفحات القديمة */
	font-size: 56cqw;
	line-height: 1;
	filter: saturate(1.05);
}

/* Tooltip */

.izg__tip {
	position: absolute;
	inset-inline-start: 50%;
	bottom: calc(100% + 8px);
	transform: translateX(-50%) translateY(4px);
	padding: 5px 10px;
	border-radius: 8px;
	background: var(--izg-text);
	color: var(--izg-bg);
	font-size: 12px;
	line-height: 1.3;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease, transform .2s ease;
	pointer-events: none;
	z-index: 3;
}

.izg__pin:hover .izg__tip,
.izg__pin:focus-visible .izg__tip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

@keyframes izg-float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-7px); }
}

/* Small screens ----------------------------------------------------- */

@media (max-width: 899px) {
	.izg__stage {
		max-width: 460px;
		margin-top: 8px;
	}

	.izg__pin {
		width: clamp(26px, calc(var(--s) * 1.05%), 56px);
	}
}

@media (max-width: 480px) {
	.izg {
		padding-inline: 18px;
	}

	.izg__actions .izg__btn {
		flex: 1 1 auto;
		justify-content: center;
	}

	.izg__tip {
		display: none;
	}
}

/* A11y -------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.izg--float .izg__pin-in {
		animation: none;
	}

	.izg__btn,
	.izg__pin-in {
		transition: none;
	}
}

/* الاتجاه واللغة ----------------------------------------------------- */

/* النسخة العربية: النص يمين والكرة شمال (ترتيب DOM + dir="rtl") */
/* النسخة الإنجليزية: النص شمال والكرة يمين (dir="ltr") */

.izg__content {
	text-align: start;
}

.izg--center .izg__content,
.izg--center .izg__actions {
	text-align: center;
}

.izg--ar .izg__title {
	line-height: 1.5;
	letter-spacing: 0;
}

.izg--ar .izg__subtitle {
	line-height: 1.85;
}

/* شاشات متوسطة: نصغّر العنوان عشان ميتكسرش كتير في نص العرض */
@media (min-width: 900px) and (max-width: 1199px) {
	.izg--split .izg__title {
		font-size: min(var(--izg-title-size), 4.6vw);
	}
}

@media (max-width: 899px) {
	.izg__title {
		font-size: min(var(--izg-title-size), 8.2vw);
	}
}
