/* ============================================
   TRIỂN LÃM ĐẠI HỘI TỈNH ĐOÀN ĐỒNG NAI
   Theme Style - Version 1.0
   ============================================ */

/* === VARIABLES === */
:root {
	--primary-red: #1961b9;
	--secondary-red: #14508f;
	--primary-yellow: #FFD700;
	--secondary-yellow: #FFC107;
	--dark-bg: #1a1a2e;
	--darker-bg: #16213e;
	--light-text: #ffffff;
	--gray-text: #b0b0b0;
	--accent-blue: #1961b9;
	--success-green: #28a745;
	--transition-speed: 0.3s;
}

/* === RESET & BASE === */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: Arial, 'Segoe UI', Tahoma, sans-serif;
	overflow: hidden;
}

/* === HEADER === */
#tour-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-red) 100%);
	box-shadow: 0 4px 20px rgba(25, 97, 185, 0.4);
	z-index: 1000;
	padding: 15px 30px;
	backdrop-filter: blur(10px);
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1600px;
	margin: 0 auto;
}

.logo-section {
	display: flex;
	align-items: center;
	gap: 15px;
}

.logo-icon {
	font-size: 40px;
	color: var(--primary-yellow);
	animation: pulse 2s ease-in-out infinite;
	text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
	display: flex;
	align-items: center;
}

.logo-icon img {
	height: 50px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
}

@keyframes pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.1); }
}

.header-title h1 {
	font-size: clamp(14px, 2.5vw, 24px);
	font-weight: 800;
	color: var(--light-text);
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
	line-height: 1.2;
	max-height: 2.4em;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.header-title p {
	font-size: 14px;
	color: var(--primary-yellow);
	margin: 0;
	font-weight: 600;
}

.header-controls {
	display: flex;
	gap: 10px;
}

.control-btn {
	background: rgba(255, 255, 255, 0.15);
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 12px;
	padding: 12px 18px;
	color: var(--light-text);
	cursor: pointer;
	transition: all var(--transition-speed);
	font-size: 18px;
	backdrop-filter: blur(5px);
	position: relative;
	overflow: hidden;
}

.control-btn::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

.control-btn:hover::before {
	width: 300px;
	height: 300px;
}

.control-btn:hover {
	background: rgba(255, 255, 255, 0.25);
	border-color: var(--primary-yellow);
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.control-btn:active {
	transform: translateY(0);
}

.control-btn .icon {
	position: relative;
	z-index: 1;
}

.control-btn.active {
	background: var(--primary-yellow);
	color: var(--primary-red);
	border-color: var(--primary-yellow);
}

/* === NAVIGATION MENU === */
.nav-menu {
	position: fixed;
	top: 80px;
	right: -420px;
	width: 400px;
	height: calc(100vh - 80px);
	background: #ffffff;
	box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
	z-index: 999;
	transition: right 0.3s ease;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

.nav-menu.active {
	right: 0;
}

.nav-menu::-webkit-scrollbar {
	width: 3px;
}

.nav-menu::-webkit-scrollbar-track {
	background: #f5f5f5;
}

.nav-menu::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 3px;
}

.nav-menu::-webkit-scrollbar-thumb:hover {
	background: #999;
}

.nav-header {
	display: none;
}

.nav-header h2 {
	color: var(--light-text);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.close-btn {
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 6px;
	color: var(--light-text);
	cursor: pointer;
	padding: 6px 10px;
	font-size: 18px;
	transition: all 0.2s ease;
}

.close-btn:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: scale(1.05);
}

.nav-content {
	padding: 0;
	flex: 1;
	overflow-y: auto;
}

.nav-item {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 16px 20px;
	border-bottom: 1px solid #f0f0f0;
	border-left: 4px solid transparent;
	cursor: pointer;
	transition: all 0.2s ease;
	background: #ffffff;
}

.nav-item:hover {
	background: #f8f9fa;
	border-left-color: var(--primary-red);
	padding-left: 24px;
}

.nav-item.active {
	background: #fff5f5;
	border-left-color: var(--primary-red);
}

.nav-number {
	font-size: 20px;
	font-weight: 700;
	color: var(--primary-red);
	min-width: 35px;
	text-align: center;
}

.nav-info h3 {
	color: #333;
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 3px;
	line-height: 1.3;
}

.nav-info p {
	color: #666;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
}

/* === SCENE INFO === */
.scene-info {
	position: fixed;
	bottom: 25px;
	left: 25px;
	background: rgba(255, 255, 255, 0.98);
	padding: 16px 22px;
	border-radius: 12px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(237, 28, 36, 0.1);
	z-index: 1;
	backdrop-filter: blur(10px);
	border-left: 4px solid var(--primary-red);
	max-width: 400px;
	text-align: left;
	opacity: 0;
	animation: slideUpLeft 0.4s ease-out forwards;
	animation-delay: 0.2s;
	transition: all 0.3s ease;
}

.scene-info:hover {
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(237, 28, 36, 0.2);
	transform: translateY(-2px);
}

@keyframes slideUpLeft {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.scene-title {
	font-size: 17px;
	font-weight: 700;
	color: var(--primary-red);
	margin-bottom: 6px;
	letter-spacing: 0.3px;
	line-height: 1.3;
	display: flex;
	align-items: center;
	gap: 8px;
}

.scene-title::before {
	content: '📍';
	font-size: 16px;
}

.scene-desc {
	font-size: 13px;
	color: #555;
	font-weight: 400;
	line-height: 1.5;
}

/* === LOADING SCREEN === */
.loading-screen {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 50%, var(--accent-blue) 100%);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.5s ease-out;
}

.loading-screen.hidden {
	opacity: 0;
	pointer-events: none;
}

.loading-content {
	text-align: center;
	padding: 40px;
}

.loading-logo {
	font-size: 100px;
	color: var(--primary-yellow);
	margin-bottom: 30px;
	animation: glow 1.5s ease-in-out infinite;
	text-shadow: 0 0 40px rgba(255, 215, 0, 1), 0 0 60px rgba(255, 215, 0, 0.8), 0 0 80px rgba(255, 215, 0, 0.6);
	display: flex;
	justify-content: center;
	align-items: center;
}

.loading-logo img {
	height: 120px;
	width: auto;
	max-width: 300px;
	object-fit: contain;
	filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
}

@keyframes glow {
	0%, 100% { 
		text-shadow: 0 0 40px rgba(255, 215, 0, 1), 0 0 60px rgba(255, 215, 0, 0.8), 0 0 80px rgba(255, 215, 0, 0.6);
	}
	50% { 
		text-shadow: 0 0 60px rgba(255, 215, 0, 1), 0 0 90px rgba(255, 215, 0, 1), 0 0 120px rgba(255, 215, 0, 0.8);
	}
}

@keyframes rotate {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.loading-content h2 {
	font-size: 32px;
	font-weight: 800;
	color: var(--light-text);
	margin-bottom: 30px;
	text-transform: uppercase;
	letter-spacing: 2px;
	background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
	background-size: 200% auto;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: gradient 3s ease infinite;
}

@keyframes gradient {
	0%, 100% { background-position: 0% center; }
	50% { background-position: 100% center; }
}

.loading-bar {
	width: 300px;
	height: 8px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	overflow: hidden;
	margin: 0 auto 20px;
	box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.loading-progress {
	height: 100%;
	background: linear-gradient(90deg, var(--primary-yellow), var(--primary-red));
	border-radius: 10px;
	animation: loading 3s ease-in-out infinite;
	box-shadow: 0 0 15px var(--primary-yellow);
}

@keyframes loading {
	0% { width: 0%; }
	50% { width: 70%; }
	100% { width: 100%; }
}

.loading-content p {
	color: var(--gray-text);
	font-size: 16px;
	font-weight: 600;
	animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

/* === HOTSPOT CUSTOM STYLES === */
.hotspot-custom {
	position: absolute;
	width: 60px;
	height: 60px;
	margin-left: -30px;
	margin-top: -30px;
	cursor: pointer;
	transition: all var(--transition-speed);
}

.hotspot-custom::before {
	content: '◉';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 40px;
	color: var(--primary-yellow);
	text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
	animation: pulse-hotspot 2s ease-in-out infinite;
}

@keyframes pulse-hotspot {
	0%, 100% { 
		transform: translate(-50%, -50%) scale(1);
		opacity: 1;
	}
	50% { 
		transform: translate(-50%, -50%) scale(1.3);
		opacity: 0.7;
	}
}

.hotspot-custom:hover::before {
	color: var(--primary-red);
	text-shadow: 0 0 30px rgba(237, 28, 36, 0.9);
	transform: translate(-50%, -50%) scale(1.5);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
	#tour-header {
		padding: 12px 15px;
	}

	.header-title h1 {
		font-size: 18px;
	}

	.header-title p {
		font-size: 12px;
	}

	.control-btn {
		padding: 10px 14px;
		font-size: 16px;
	}

	.nav-menu {
		width: 320px;
		right: -340px;
		top: 70px;
		height: calc(100vh - 70px);
	}

	.nav-item {
		padding: 14px;
	}

	.nav-number {
		font-size: 24px;
		min-width: 40px;
	}

	.nav-info h3 {
		font-size: 14px;
	}

	.nav-info p {
		font-size: 12px;
	}

	.scene-info {
		bottom: 20px;
		padding: 15px 25px;
		max-width: 90%;
	}

	.scene-title {
		font-size: 18px;
	}

	.scene-desc {
		font-size: 12px;
	}

	.loading-content h2 {
		font-size: 24px;
	}

	.loading-logo {
		font-size: 70px;
	}

	.loading-bar {
		width: 200px;
	}
    #fullscreenBtn {
		display: none;
	}
}

@media (max-width: 480px) {
	.logo-icon img {
		height: 60px;
	}

	.header-title h1 {
		font-size: 12px;
	}

	.header-title p {
		display: none;
	}

	.control-btn {
		padding: 6px 10px;
		font-size: 12px;
	}
	
	.control-btn .icon {
		font-size: 14px;
	}

	#fullscreenBtn {
		display: none;
	}

	.nav-menu {
		width: 280px;
		right: -300px;
	}

	.scene-info {
		bottom: 12px;
		left: 12px;
		right: 12px;
		max-width: none;
		padding: 12px 16px;
		border-radius: 10px;
		z-index: 2;
	}

	.scene-info:hover {
		transform: none;
	}

	@keyframes slideUpLeft {
		from {
			opacity: 0;
			transform: translateY(15px);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}

	.scene-title {
		font-size: 14px;
		margin-bottom: 4px;
	}

	.scene-title::before {
		font-size: 14px;
	}

	.scene-desc {
		font-size: 11px;
		line-height: 1.4;
	}
}

/* === PRINT STYLES === */
@media print {
	#tour-header,
	.nav-menu,
	.scene-info,
	.loading-screen {
		display: none !important;
	}
}

/* === ACCESSIBILITY === */
.control-btn:focus,
.close-btn:focus,
.nav-item:focus {
	outline: 3px solid var(--primary-yellow);
	outline-offset: 2px;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes slideInLeft {
	from {
		transform: translateX(-100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes slideInRight {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

/* === UTILITIES === */
.hidden {
	display: none !important;
}

.fade-in {
	animation: fadeIn 0.5s ease-in;
}

.slide-in-left {
	animation: slideInLeft 0.5s ease-out;
}

.slide-in-right {
	animation: slideInRight 0.5s ease-out;
}
