/* شريط أوقات الصلاة العمودي */

.spt-strip {
	--spt-bg: #0f766e;
	--spt-text: #ffffff;
	--spt-accent: #fbbf24;
	--spt-width: 178px;
	--spt-vertical: 50%;

	position: fixed;
	top: var(--spt-vertical);
	transform: translateY(-50%);
	z-index: 900;
	width: var(--spt-width);
	direction: rtl;
	font-family: inherit;
	line-height: 1.6;
}

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

/* محاذاة أعلى الصفحة — يضبط السكربت قيمة top بمحاذاة بنر المناسبات. */
.spt-align-top {
	top: 0;
	transform: none;
}

/*
 * التثبيت في أعلى الصفحة: الشريط يبقى بجانب البنر ويمرّ مع المحتوى
 * عند التمرير، بخلاف الوضع الذي يتبع الشاشة.
 */
.spt-strip.spt-pin-page {
	position: absolute;
}

/* وضع مضغوط للشاشات الضيقة: زر يُفتح بالنقر بدل الشريط الكامل. */
.spt-strip.is-compact {
	position: fixed !important;
	top: auto !important;
	bottom: 24px;
	transform: none;
	width: auto;
}

.spt-strip.is-compact .spt-toggle {
	display: inline-flex;
}

.spt-strip.is-compact .spt-panel {
	display: none;
	width: 190px;
	margin-bottom: 8px;
}

.spt-strip.is-compact.is-open .spt-panel {
	display: block;
}

.spt-side-left {
	left: 14px;
}

.spt-side-right {
	right: 14px;
}

/* اللوحة */

.spt-panel {
	background: var(--spt-bg);
	color: var(--spt-text);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 18px 40px -20px rgba(15, 23, 42, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.14);
}

.spt-head {
	padding: 12px 12px 10px;
	text-align: center;
	background: rgba(0, 0, 0, 0.14);
}

.spt-city {
	font-size: 0.78rem;
	font-weight: 700;
	opacity: 0.75;
	letter-spacing: 0.02em;
}

.spt-hijri {
	margin-top: 2px;
	font-size: 0.8rem;
	font-weight: 700;
}

.spt-solar {
	margin-top: 2px;
	font-size: 0.72rem;
	opacity: 0.72;
}

.spt-seasons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 10px;
	padding: 7px 12px;
	font-size: 0.72rem;
	opacity: 0.78;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.spt-eid-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	padding: 7px 12px;
	background: var(--spt-accent);
	color: #1f2937;
	text-align: center;
}

.spt-eid-name {
	font-size: 0.9rem;
	font-weight: 800;
}

.spt-eid-note {
	font-size: 0.7rem;
	opacity: 0.82;
}

.spt-row-eid {
	background: rgba(251, 191, 36, 0.16);
	border-inline-start: 3px solid var(--spt-accent);
	font-weight: 700;
}

.spt-row-eid .spt-name,
.spt-row-eid .spt-time {
	color: var(--spt-accent);
	opacity: 1;
}

.spt-clock {
	margin-top: 4px;
	font-size: 1.06rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: var(--spt-accent);
}

/* القائمة */

.spt-list {
	margin: 0;
	padding: 6px 0;
	list-style: none;
}

.spt-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0;
	padding: 7px 13px;
	font-size: 0.88rem;
	border-inline-start: 3px solid transparent;
	transition: background 0.25s ease, border-color 0.25s ease;
}

.spt-row .spt-name {
	font-weight: 600;
	opacity: 0.92;
}

.spt-row .spt-time {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	opacity: 0.95;
}

.spt-row.is-current {
	background: rgba(255, 255, 255, 0.14);
	border-inline-start-color: var(--spt-accent);
}

.spt-row.is-current .spt-name,
.spt-row.is-current .spt-time {
	color: var(--spt-accent);
	opacity: 1;
}

.spt-row-sunrise {
	font-size: 0.8rem;
	opacity: 0.72;
}

/* شريط الحالة */

.spt-status {
	padding: 10px 12px 12px;
	text-align: center;
	background: rgba(0, 0, 0, 0.2);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	min-height: 62px;
}

.spt-status-label {
	font-size: 0.75rem;
	opacity: 0.8;
}

.spt-status-value {
	font-size: 1.1rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
	color: var(--spt-accent);
}

.spt-strip[data-phase="active"] .spt-status {
	background: var(--spt-accent);
}

.spt-strip[data-phase="active"] .spt-status-value {
	color: #1f2937;
	font-size: 0.95rem;
	line-height: 1.5;
	letter-spacing: 0;
}

.spt-strip[data-phase="iqama"] .spt-status {
	background: rgba(251, 191, 36, 0.18);
}

/* زر الطي — يظهر في الجوال فقط */

.spt-toggle {
	display: none;
	align-items: center;
	gap: 7px;
	padding: 8px 12px;
	border: 0;
	border-radius: 999px;
	background: var(--spt-bg);
	color: var(--spt-text);
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 10px 26px -14px rgba(15, 23, 42, 0.8);
	white-space: nowrap;
}

.spt-toggle-text {
	font-variant-numeric: tabular-nums;
}

/* الجوال */

@media (max-width: 782px) {
	.spt-strip {
		--spt-width: auto;
		top: auto;
		bottom: 84px;
		transform: none;
		max-width: calc(100vw - 24px);
	}

	.spt-mobile-hidden {
		display: none;
	}

	.spt-mobile-collapsed .spt-toggle {
		display: inline-flex;
	}

	.spt-mobile-collapsed .spt-panel {
		display: none;
		width: 190px;
		margin-bottom: 8px;
	}

	.spt-mobile-collapsed.is-open .spt-panel {
		display: block;
	}

	.spt-mobile-full .spt-panel {
		width: 168px;
	}

	.spt-side-left {
		left: 12px;
	}

	.spt-side-right {
		right: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.spt-row {
		transition: none;
	}
}

/* الطباعة */

@media print {
	.spt-strip {
		display: none;
	}
}
