/**
 * Platform Frame Styles.
 */

.platform-frame {
	position: relative;
	width: 100%;
	height: 800px;
	background: #FFFFFF;
	border-radius: 12px;
	border: 1px solid #E5E7EB;
	overflow: hidden;
}

.platform-frame__iframe {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

.platform-frame__loading {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10;
	background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
	background-size: 1200px 100%;
	animation: platform-shimmer 1.4s ease-in-out infinite;
}

@keyframes platform-shimmer {
	0%   { background-position: -600px 0; }
	100% { background-position:  600px 0; }
}

.platform-frame__error {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	text-align: center;
	padding: 48px;
}

.platform-frame__error svg {
	margin-bottom: 24px;
}

.platform-frame__error h3 {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
	font-size: 20px;
	font-weight: 600;
	color: #1A1A1A;
	margin: 0 0 8px 0;
}

.platform-frame__error p {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
	font-size: 14px;
	color: #6A6A6A;
	margin: 0 0 24px 0;
}

.platform-frame__retry-button {
	padding: 12px 24px;
	background: #5F5BF3;
	color: #FFFFFF;
	border: none;
	border-radius: 8px;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s ease;
}

.platform-frame__retry-button:hover {
	background: #4B47D9;
}

/* Full-bleed variant — edge-to-edge, no chrome */
.platform-frame--full-bleed {
	height: 100%;
	border: none;
	border-radius: 0;
	background: transparent;
}

/* Responsive Design */
@media (max-width: 782px) {
	.platform-frame {
		height: 600px;
	}

	.platform-frame--full-bleed {
		height: 100%;
	}
}
