/* ===================================================
   Atom Orbit Gallery for Elementor – Main Styles
   =================================================== */

.aog-container {
	position: relative;
	width: 100%;
	height: 650px;
	overflow: hidden;
	cursor: grab;
	font-family: 'Courier New', monospace;
	-webkit-user-select: none;
	user-select: none;
}

.aog-container:active {
	cursor: grabbing;
}

/* ── Canvas ──────────────────────────────────────── */
.aog-canvas {
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
}

/* ── UI Overlay ──────────────────────────────────── */
.aog-ui-overlay {
	position: absolute;
	bottom: 20px;
	left: 0;
	right: 0;
	z-index: 10;
	display: flex;
	justify-content: center;
	pointer-events: none;
}

.aog-hint {
	display: flex;
	align-items: center;
	gap: 8px;
	background: rgba(0, 0, 0, 0.45);
	border: 1px solid rgba(79, 195, 247, 0.3);
	border-radius: 30px;
	padding: 6px 16px;
	color: rgba(255, 255, 255, 0.65);
	font-size: 12px;
	letter-spacing: 0.05em;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: opacity 0.5s ease;
}

.aog-hint-icon {
	font-size: 14px;
	animation: aog-spin 4s linear infinite;
}

@keyframes aog-spin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

.aog-hint.aog-hint--hidden {
	opacity: 0;
}

/* ── Lightbox ────────────────────────────────────── */
.aog-lightbox {
	position: absolute;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.aog-lightbox.aog-lightbox--active {
	opacity: 1;
	pointer-events: all;
}

.aog-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 5, 15, 0.88);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	cursor: pointer;
}

.aog-lightbox-panel {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: min(90vw, 900px);
	max-height: 85vh;
	padding: 24px;
	animation: aog-panel-in 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes aog-panel-in {
	from {
		transform: scale(0.5) translateY(30px);
		opacity: 0;
	}
	to {
		transform: scale(1) translateY(0);
		opacity: 1;
	}
}

.aog-lightbox--closing .aog-lightbox-panel {
	animation: aog-panel-out 0.35s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes aog-panel-out {
	from {
		transform: scale(1) translateY(0);
		opacity: 1;
	}
	to {
		transform: scale(0.3) translateY(40px);
		opacity: 0;
	}
}

.aog-lightbox-img-wrap {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	box-shadow:
		0 0 0 1px rgba(79, 195, 247, 0.4),
		0 0 40px rgba(79, 195, 247, 0.2),
		0 20px 60px rgba(0, 0, 0, 0.8);
}

.aog-lightbox-img-wrap::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 8px;
	box-shadow: inset 0 0 60px rgba(79, 195, 247, 0.15);
	pointer-events: none;
	z-index: 1;
}

.aog-lightbox-img {
	display: block;
	max-width: min(80vw, 800px);
	max-height: 65vh;
	object-fit: contain;
	border-radius: 8px;
}

.aog-lightbox-caption {
	margin-top: 16px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
	letter-spacing: 0.1em;
	text-align: center;
	text-transform: uppercase;
	text-shadow: 0 0 20px rgba(79, 195, 247, 0.6);
}

.aog-lightbox-close {
	position: absolute;
	top: -12px;
	right: -12px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(79, 195, 247, 0.15);
	border: 1px solid rgba(79, 195, 247, 0.5);
	color: #4fc3f7;
	font-size: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, transform 0.2s;
	z-index: 3;
}

.aog-lightbox-close:hover {
	background: rgba(79, 195, 247, 0.3);
	transform: scale(1.1) rotate(90deg);
}

/* ── Explosion Canvas ────────────────────────────── */
.aog-explosion-canvas-wrap {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
}

.aog-explosion-canvas {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

/* ── Electron tooltip ────────────────────────────── */
.aog-electron-tooltip {
	position: absolute;
	z-index: 20;
	background: rgba(0, 5, 15, 0.85);
	border: 1px solid rgba(79, 195, 247, 0.5);
	border-radius: 6px;
	padding: 5px 10px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 11px;
	letter-spacing: 0.05em;
	pointer-events: none;
	transform: translate(-50%, -140%);
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.2s;
	backdrop-filter: blur(4px);
}

.aog-electron-tooltip.aog-electron-tooltip--visible {
	opacity: 1;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
	.aog-container {
		height: 400px;
		cursor: default;
	}

	.aog-lightbox-img {
		max-width: 92vw;
		max-height: 55vh;
	}

	.aog-hint {
		font-size: 10px;
		padding: 4px 12px;
	}
}

@media (max-width: 480px) {
	.aog-container {
		height: 320px;
	}
}

/* ── Loading state ───────────────────────────────── */
.aog-container.aog-loading::after {
	content: '⚛';
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 48px;
	color: rgba(79, 195, 247, 0.5);
	z-index: 5;
	animation: aog-spin 2s linear infinite;
}

/* ── Elementor editor placeholder ───────────────── */
.elementor-editor-active .aog-container {
	min-height: 200px;
}
