/* SkyPrime draggable preview modal */

.single-services-item[data-skyprime-url],
.single-services-item[data-skyprime-external],
.single-services-item[data-skyprime-fallback] {
	cursor: pointer;
	position: relative;
}
.single-services-item[data-skyprime-url]:hover,
.single-services-item[data-skyprime-external]:hover,
.single-services-item[data-skyprime-fallback]:hover {
	box-shadow: 0 14px 40px rgba(0,0,0,0.10);
	transform: translateY(-2px);
}
.single-services-item .skyprime-card-hint {
	position: absolute;
	top: 16px;
	right: 16px;
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #df1f7e;
	background: rgba(223, 31, 126, 0.08);
	border: 1px solid rgba(223, 31, 126, 0.25);
	padding: 4px 10px;
	border-radius: 999px;
	font-weight: 700;
	pointer-events: none;
}

#skyprime-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 15, 30, 0.55);
	backdrop-filter: blur(2px);
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	animation: skyfade 0.18s ease-out;
}
#skyprime-modal-overlay.open { display: flex; }
@keyframes skyfade { from { opacity: 0; } to { opacity: 1; } }

#skyprime-modal {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 30px 80px rgba(0,0,0,0.35);
	width: 88vw;
	height: 84vh;
	max-width: 1400px;
	min-width: 320px;
	min-height: 240px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: absolute;
	left: 6vw;
	top: 8vh;
	transition: box-shadow 0.2s;
}
#skyprime-modal.dragging {
	box-shadow: 0 36px 80px rgba(0,0,0,0.55);
	transition: none;
	user-select: none;
}
#skyprime-modal.maximized {
	width: 100vw !important;
	height: 100vh !important;
	left: 0 !important;
	top: 0 !important;
	border-radius: 0;
}

.skyprime-modal-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	background: linear-gradient(180deg, #292a3e 0%, #1c1d2e 100%);
	color: #fff;
	cursor: move;
	user-select: none;
	border-bottom: 1px solid #1a1a2a;
}
.skyprime-modal-header .modal-title {
	font-weight: 700;
	font-size: 15px;
	flex: 0 0 auto;
	max-width: 30%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.skyprime-modal-header .modal-url {
	flex: 1 1 auto;
	font-size: 12px;
	color: rgba(255,255,255,0.55);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.skyprime-modal-header .modal-traffic {
	display: flex;
	gap: 6px;
	margin-right: 8px;
}
.skyprime-modal-header .modal-traffic span {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	display: inline-block;
}
.skyprime-modal-header .modal-traffic .t-close { background: #ff5f57; }
.skyprime-modal-header .modal-traffic .t-min   { background: #febc2e; }
.skyprime-modal-header .modal-traffic .t-max   { background: #28c840; }
.skyprime-modal-header .modal-btn {
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.1);
	color: rgba(255,255,255,0.85);
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: 0.15s;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.skyprime-modal-header .modal-btn:hover { background: rgba(255,255,255,0.16); color: #fff; }
.skyprime-modal-header .modal-btn.danger:hover { background: #c62828; border-color: #c62828; }

.skyprime-modal-body {
	flex: 1 1 auto;
	background: #f6f7fa;
	position: relative;
	overflow: hidden;
}
.skyprime-modal-body iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	background: #fff;
}
.skyprime-modal-loader {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #666;
	font-size: 14px;
	gap: 12px;
	background: #f6f7fa;
}
.skyprime-modal-loader .spinner {
	width: 36px; height: 36px;
	border: 3px solid #ddd;
	border-top-color: #df1f7e;
	border-radius: 50%;
	animation: skyspin 0.9s linear infinite;
}
@keyframes skyspin { to { transform: rotate(360deg); } }

.skyprime-modal-fallback {
	padding: 40px 28px;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: #fff;
}
.skyprime-modal-fallback h3 {
	font-size: 24px;
	margin-bottom: 10px;
	color: #1c1d2e;
}
.skyprime-modal-fallback p {
	color: #555;
	font-size: 15px;
	max-width: 520px;
	margin: 0 auto 22px;
}
.skyprime-modal-fallback .fallback-cta {
	display: inline-flex;
	gap: 10px;
}
.skyprime-modal-fallback .btn-primary,
.skyprime-modal-fallback .btn-secondary {
	display: inline-block;
	padding: 12px 22px;
	border-radius: 6px;
	font-weight: 600;
	text-decoration: none;
	transition: 0.2s;
	font-size: 14px;
}
.skyprime-modal-fallback .btn-primary {
	background: #df1f7e;
	color: #fff;
}
.skyprime-modal-fallback .btn-primary:hover { background: #b3155e; color: #fff; }
.skyprime-modal-fallback .btn-secondary {
	background: #f0f0f0;
	color: #333;
}
.skyprime-modal-fallback .btn-secondary:hover { background: #e0e0e0; }

@media (max-width: 768px) {
	#skyprime-modal {
		width: 100vw !important;
		height: 100vh !important;
		left: 0 !important;
		top: 0 !important;
		border-radius: 0;
	}
	.skyprime-modal-header .modal-title { max-width: 50%; }
	.skyprime-modal-header .modal-url { display: none; }
}
