/* VoxOne Simulator Modal - Parent Window Styles */

body {
	font-family: system-ui, sans-serif;
	margin: 0;
	padding: 2rem;
	COMMANDO-background: #FFF !important;
}

#openSim {
	padding: 10px 18px;
	font-size: 16px;
	cursor: pointer;
	border: none;
	outline: none;
}

.modal {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 9999;
}

.modal.open {
	pointer-events: auto;
}

.backdrop {
    position: absolute;
    inset: 0;
    background-color: #f0d9a8;
	background-color: #b1935b;
    opacity: 0;
    transition: opacity 0.6s ease;
}


.backdrop {
	background-image: url("../imgs/background-23.png");
	background-color: transparent;
	background-repeat: repeat;
    Xbackground-size: 106px 90px;
	background-size: 148px 125px;
	background-position: top left;
}


.modal.open .backdrop {
    opacity: 1;
}

.modal-panel {
	position: absolute;
	top: 5%;
	left: 5%;
	right: 5%;
	bottom: 5%;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	max-width: 900px;
	margin: 0 auto;
	--header-height: 100px; /* Desktop */
	opacity: 0;
	transition: opacity 0.6s ease;
	box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.modal.open .modal-panel {
	opacity: 1;
}

.modal-header {
	position: relative;
	background: #fff;
	padding: 12px;
	flex-shrink: 0;
	z-index: 10;
	height: var(--header-height);
	box-sizing: border-box;
	background-color: #000000;
	cursor: pointer;
}

/* Logo background with fade transition - using ::before pseudo-element */
.modal-header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: url("../imgs/logo_simulator_v3.png");
	background-size: auto 78.3%;
	background-repeat: no-repeat;
	background-position: center calc(50% + 4px);
	opacity: 0;
	transition: opacity 0.6s ease-out;
	z-index: -1;
}

/* Logo show class - reveals the logo when top-area appears */
.modal-header.show-logo::before {
	opacity: 1;
}

/* Logo fade class - hides the logo when curtain closes at end */
.modal-header.fade-logo::before {
	opacity: 0;
}

/* Utility class to disable transition for instant reset */
.modal-header.no-transition::before {
	transition: none !important;
}

.close-btn {
	position: absolute;
	top: 14px;
	left: 16px;
	border: 0;
	background: #000;
	background-image: url('../imgs/X_off.png');
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	cursor: pointer;
	padding:0px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	margin-top: auto;
	margin-bottom: auto;
	width: 14px;
	height: 14px;
}


.close-btn:hover {
	background-image: url('../imgs/X_on.png');
}

.modal-content {
	position: relative;
	flex: 1;
	overflow: hidden;
}

iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	z-index: 1;
	overflow: hidden;
}

/* Hide webkit scrollbars */
iframe::-webkit-scrollbar {
	display: none;
}

.panel-overlay {
	position: absolute;
	inset: 0;
	background: #000000;
	color: #ffffff;
	font: 600 18px system-ui, sans-serif;
	z-index: 2;
	transition: transform 1.2s ease-in-out;
	transform: translateY(0);
}

.panel-overlay[hidden] {
	display: none;
}

/* Panel overlay content layout */
.panel-overlay-content {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
}

/* Tablet mode (550px - 768px) */
@media (min-width: 550px) and (max-width: 768px) {
	.modal-panel {
		--header-height: 110px;
	}
	
	.modal-header::before {
		background-position: center;
		background-size: auto 80%;
	}
}

/* Mobile mode (below 550px) */
@media (max-width: 549px) {
	.modal-panel {
		--header-height: 100px;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		border-radius: 0;
	}
	
	.modal-header::before {
		background-position: center;
		background-size: auto 65%;
	}
}

.panel-overlay.curtain-up {
	transform: translateY(-102%);
}

/* Mode indicator styles */
#modeIndicator {
	position: fixed;
	top: 10px;
	left: 10px;
	background: rgba(0,0,0,0.8);
	color: white;
	padding: 8px 16px;
	border-radius: 4px;
	font-family: monospace;
	font-size: 14px;
	z-index: 10000;
	font-weight: bold;
}

/* ========== ANIMATED LOADING CONTAINER ========== */
.loader {
	position: absolute;
	inset: 0;
	z-index: 99999;
	background-color: #000;
}

#animatedLoadingTBL, .animatedLoadingTBL {
	background-color: #000;	
	background-image: url(../imgs/gold-star-no-shadow.png);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 70px;
	border: none;
	width: 250px;
	height: 250px;
	position: absolute;
	top: calc(50% - var(--header-height, 100px) / 2);
	left: 50%;
	transform: translate(-50%, -50%);
}

#animatedLoadingTBL td, .animatedLoadingTBL td {
	vertical-align: middle;
	text-align: center;
}

/* ========== ANIMATED LOADING RING ========== */
.BA20_cssload-loader {
	width: 250px;
	height: 250px;
	margin: 0 auto;
	position: relative;
	box-sizing: border-box;
}

.star-ring {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 5px solid #c69a31;
	box-sizing: border-box;
	opacity: 0;
	transform: scale(0);
}

/* Animation only runs when modal is open */
.modal.open .star-ring {
	animation: cssload-gogoloader 3.5s infinite;
}

.modal.open .star-ring:nth-child(2) {
	animation-delay: 0.875s;
}

@keyframes cssload-gogoloader {
	0% {
		transform: scale(0);
		opacity: 0;
	}
	50% {
		opacity: 1;
	}
	100% {
		transform: scale(1);
		opacity: 0;
	}
}

/* Stop animation when curtain rises */
.panel-overlay.curtain-up .star-ring {
	animation: none;
	opacity: 0;
	transition: opacity 0.3s ease-out;
}

/* ========== LOADING STATUS MESSAGE ========== */
.loading-status {
	position: absolute;
	top: calc(50% + 130px);
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
	color: #c69a31;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0.5px;
	white-space: nowrap;
	z-index: 100000;
}

/* Hide loading status when curtain rises */
.panel-overlay.curtain-up .loading-status {
	opacity: 0;
	transition: opacity 0.3s ease-out;
}

/* ============================================
   Desktop: Increase star and rings by 25%
   ============================================ */
@media (min-width: 769px) {
	#animatedLoadingTBL, .animatedLoadingTBL {
		width: 313px;
		height: 313px;
		background-size: 88px;
	}
	.BA20_cssload-loader {
		width: 313px;
		height: 313px;
	}
	.loading-status {
		top: calc(50% + 162px);
	}
}

/* ========== GLOW BUTTON STYLES ========== */
/* CSS variables for button dimensions */
:root {
	--btn-width: 370px;
	--btn-height: 140px;
	--btn-inner-width: 364px;
	--btn-inner-height: 134px;
	/* Glow extends 5px beyond button (2px border + 3px glow) */
	--glow-width: 380px;
	--glow-height: 150px;
}

/* Base button style from btn_02.php */
.sim_btn_02 {
	width: var(--btn-inner-width);
	height: var(--btn-inner-height);
	border-radius: 75px;
	background-image: url('../imgs/seeItLive_btn_02.png');
	background-size: 99%;
	background-position: center;
	background-repeat: no-repeat;
	background-color: #000;
	cursor: pointer;
	transition: all 0.3s ease;
	border: 1px solid #555;
	box-sizing: border-box;
}

.sim_btn_02:hover {
	border: 2px solid #FFFFFF;
	box-sizing: border-box;
}

/* Glow button wrapper */
.glow-btn-wrapper {
	position: relative;
	width: var(--btn-width);
	height: var(--btn-height);
	margin: 0 auto;
}

/* Animated border for button - base styles */
.animated-border-btn {
	height: var(--btn-height);
	width: var(--btn-width);
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	overflow: hidden;
	z-index: 0;
	border-radius: 75px;
}

.animated-border-btn-glow {
	height: var(--glow-height);
	width: var(--glow-width);
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	overflow: hidden;
	z-index: 0;
	border-radius: 75px;
	filter: blur(20px);
}

/* Rotate animation for glow effect */
@keyframes rotate {
	100% {
		transform: translate(-50%, -50%) rotate(1turn);
	}
}

/* Hover effect - hide glow on hover */
.glow-btn-clickable:hover ~ .glow-btn-wrapper .animated-border-btn-glow,
.glow-btn-wrapper:hover .animated-border-btn-glow {
	opacity: 0;
	transition: opacity 0.3s ease;
}

/* Tablet responsive sizing (550px - 768px) */
@media (min-width: 550px) and (max-width: 768px) {
	:root {
		--btn-width: 320px;
		--btn-height: 121px;
		--btn-inner-width: 314px;
		--btn-inner-height: 115px;
		--glow-width: 330px;
		--glow-height: 131px;
	}
	
	.glow-btn-wrapper {
		width: 320px !important;
		height: 121px !important;
	}
	
	.animated-border-btn {
		width: 320px !important;
		height: 121px !important;
	}
	
	.animated-border-btn-glow {
		width: 330px !important;
		height: 131px !important;
	}
	
	.sim_btn_02 {
		width: 314px !important;
		height: 115px !important;
	}
	
	.glow-btn-clickable {
		width: 320px !important;
		height: 121px !important;
	}
	
	.glow-btn-text {
		font-size: 20px;
	}
}

/* Mobile responsive sizing (below 550px) */
@media (max-width: 549px) {
	:root {
		--btn-width: 280px;
		--btn-height: 106px;
		--btn-inner-width: 274px;
		--btn-inner-height: 100px;
		--glow-width: 290px;
		--glow-height: 116px;
	}
	
	.glow-btn-wrapper {
		width: 280px !important;
		height: 106px !important;
	}
	
	.animated-border-btn {
		width: 280px !important;
		height: 106px !important;
	}
	
	.animated-border-btn-glow {
		width: 290px !important;
		height: 116px !important;
	}
	
	.sim_btn_02 {
		width: 274px !important;
		height: 100px !important;
	}
	
	.glow-btn-clickable {
		width: 280px !important;
		height: 106px !important;
	}
	
	.glow-btn-text {
		font-size: 18px;
	}
}

/* ========== GLOW BUTTON TEXT STYLES ========== */
.glow-btn-text {
	text-align: center;
	color: #FFF;
	font-size: 24px;
	font-weight: 300;
}

.voxy-note-brand {
	font-weight: 700;
	background: linear-gradient(to bottom, #c4972c, #f2e2ad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ========== RESTART LINK STYLES ========== */
.restart-link {
	text-align: center;
	margin-top: 30px;
}

.restart-icon {
	width: 32px;
	height: 32px;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.3s ease;
}

.restart-icon:hover {
	opacity: 1;
}

/* Custom tooltip for modal header */
.header-tooltip {
	position: absolute;
	background-color: transparent;
	color: #999999;
	padding: 0;
	border: none;
	border-radius: 0;
	font-family: system-ui, sans-serif;
	font-size: 13px;
	pointer-events: none;
	z-index: 10001;
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.15s ease;
	top: 8px;
	right: 16px;
}

.header-tooltip.visible {
	opacity: 1;
}
