/* Splash Screen */
#splash-screen {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
	z-index: 300000000000000000000;
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 1;
	transition: opacity 0.8s ease-out;
}

#splash-screen.hidden {
	opacity: 0;
	pointer-events: none;
}

.splash-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
	padding: 24px;
	max-width: 90vw;
}

.splash-poster {
	max-height: 55vh;
	max-width: 100%;
	border-radius: 4px;
	box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(232, 122, 30, 0.2);
	animation: posterFloat 3s ease-in-out infinite;
}

@keyframes posterFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

.splash-text {
	text-align: center;
	color: #ffffff;
}

.splash-title {
	font-family: "NHG-B", sans-serif;
	font-size: clamp(1.5rem, 4vw, 2.5rem);
	margin: 0 0 8px 0;
	letter-spacing: 2px;
	text-transform: uppercase;
	background: linear-gradient(90deg, #ffffff, #ffcc99);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.splash-subtitle {
	font-family: "NHG-R", sans-serif;
	font-size: clamp(0.85rem, 2vw, 1rem);
	color: rgba(255, 255, 255, 0.6);
	margin: 0 0 20px 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.ai-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	font-family: "NHG-R", sans-serif;
	font-size: 13px;
	letter-spacing: 0.5px;
	color: rgba(255, 255, 255, 0.5);
}

.ai-badge .sparkle {
	width: 16px;
	height: 16px;
	color: rgba(255, 255, 255, 0.5);
}

.splash-footer {
	position: absolute;
	bottom: 24px;
	left: 0;
	right: 0;
	text-align: center;
	font-family: "NHG-R", sans-serif;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.35);
	letter-spacing: 0.5px;
}

.splash-footer a {
	color: rgba(255, 255, 255, 0.5);
	text-decoration: none;
	transition: color 0.2s;
}

.splash-footer a:hover {
	color: rgba(255, 255, 255, 0.8);
}

.splash-enter-btn {
	font-family: "NHG-M", sans-serif;
	font-size: 1rem;
	padding: 16px 48px;
	background: linear-gradient(135deg, #E87A1E, #D06A15);
	color: #ffffff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 1px;
	box-shadow: 0 4px 20px rgba(232, 122, 30, 0.4);
	position: relative;
	overflow: hidden;
}

.splash-enter-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
	transition: left 0.5s ease;
}

.splash-enter-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 30px rgba(232, 122, 30, 0.5);
}

.splash-enter-btn:hover::before {
	left: 100%;
}

.splash-enter-btn:active {
	transform: translateY(0);
}

/* Popup System */
#popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(26, 26, 46, 0.9) 50%, rgba(22, 33, 62, 0.9) 100%);
	z-index: 999999999;
	display: none;
	justify-content: center;
	align-items: center;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}

#popup-overlay.active {
	display: flex;
	opacity: 1;
}

#popup-container {
	background: #ffffff;
	color: #333;
	border-radius: 8px;
	max-width: 320px;
	width: 90%;
	max-height: 80vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
	transform: scale(0.9);
	transition: transform 0.3s ease-in-out, max-width 0.3s ease-in-out;
}

#popup-container.centered #popup-content {
	text-align: center;
}

#popup-overlay.active #popup-container {
	transform: scale(1);
}

#popup-close {
	position: absolute;
	top: 10px;
	right: 10px;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #666;
	z-index: 1;
}

#popup-close:hover {
	color: #333;
}

#popup-content {
	padding: 24px;
	overflow-y: auto;
	flex: 1;
	position: relative;
}

#popup-footer {
	padding: 16px 24px;
	border-top: 1px solid #eee;
	display: flex;
	justify-content: center;
}

#popup-more-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(135deg, #E87A1E, #D06A15);
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: 4px;
	font-family: "NHG-M", sans-serif;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	box-shadow: 0 4px 20px rgba(232, 122, 30, 0.4);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

#popup-more-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
	transition: left 0.5s ease;
}

#popup-more-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 30px rgba(232, 122, 30, 0.5);
}

#popup-more-btn:hover::before {
	left: 100%;
}

#popup-more-btn svg {
	width: 18px;
	height: 18px;
}

/* Títol Exposició */
.expo-title {
	position: fixed;
	top: 20px;
	left: 20px;
	z-index: 999999998;
	display: flex;
	align-items: center;
	gap: 12px;
	pointer-events: none;
}

.expo-title-text {
	font-family: "NHG-B", sans-serif;
	font-size: 18px;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 3px;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.expo-title-badge {
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 8px 16px;
	border-radius: 4px;
}

.expo-title-accent {
	width: 3px;
	height: 24px;
	background: linear-gradient(180deg, #E87A1E, #D06A15);
	border-radius: 2px;
	box-shadow: 0 0 10px rgba(232, 122, 30, 0.5);
}

/* Thumbnail Navigation System */
#thumbs-btn {
	position: fixed;
	bottom: 24px;
	left: var(--btn-center, 50%);
	transform: translateX(-50%);
	z-index: 999999999;
	background: linear-gradient(135deg, #E87A1E, #D06A15);
	border: none;
	border-radius: 4px;
	padding: 12px 24px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-family: "NHG-M", sans-serif;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 1px;
	box-shadow: 0 4px 20px rgba(232, 122, 30, 0.4);
	transition: all 0.3s ease;
	overflow: hidden;
}

#thumbs-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
	transition: left 0.5s ease;
}

#thumbs-btn:hover {
	transform: translateX(-50%) translateY(-2px);
	box-shadow: 0 8px 30px rgba(232, 122, 30, 0.5);
}

#thumbs-btn:hover::before {
	left: 100%;
}

#thumbs-btn:active {
	transform: translateX(-50%) translateY(0);
}

#thumbs-btn svg {
	width: 20px;
	height: 20px;
}

#thumbs-modal {
	position: fixed;
	inset: 0;
	z-index: 9999999999;
	background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(26, 26, 46, 0.95) 50%, rgba(22, 33, 62, 0.95) 100%);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

#thumbs-modal.open {
	opacity: 1;
	visibility: visible;
}

#thumbs-modal-close {
	position: absolute;
	top: 20px;
	right: 24px;
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.7);
	font-size: 32px;
	cursor: pointer;
	padding: 8px;
	line-height: 1;
	transition: color 0.2s ease;
}

#thumbs-modal-close:hover {
	color: #fff;
}

#thumbs-modal-title {
	font-family: "NHG-B", sans-serif;
	font-size: 24px;
	color: #fff;
	margin-bottom: 32px;
	text-transform: uppercase;
	letter-spacing: 2px;
}

#thumbs-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	padding: 0 24px;
	max-width: 850px;
}

.thumb-item {
	cursor: pointer;
	transition: all 0.3s ease;
	-webkit-tap-highlight-color: transparent;
}

.thumb-item:hover {
	transform: translateY(-4px);
}

.thumb-item:active {
	transform: translateY(0);
}

.thumb-img-wrapper {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	border: 3px solid rgba(255, 255, 255, 0.15);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease;
}

.thumb-img-wrapper::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
	transition: left 0.5s ease;
	z-index: 2;
	pointer-events: none;
}

.thumb-item:hover .thumb-img-wrapper::before {
	left: 100%;
}

.thumb-item:hover .thumb-img-wrapper {
	border-color: rgba(232, 122, 30, 0.6);
	box-shadow: 0 8px 30px rgba(232, 122, 30, 0.3);
}

.thumb-item.active .thumb-img-wrapper {
	border-color: #E87A1E;
	box-shadow: 0 0 0 3px #E87A1E, 0 8px 30px rgba(232, 122, 30, 0.4);
}

.thumb-img {
	width: 100%;
	aspect-ratio: 16/10;
	object-fit: cover;
	display: block;
}

.thumb-label {
	text-align: center;
	font-family: "NHG-R", sans-serif;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.6);
	margin-top: 10px;
	transition: color 0.2s ease;
	text-transform: capitalize;
}

.thumb-item:hover .thumb-label {
	color: rgba(255, 255, 255, 0.9);
}

.thumb-item.active .thumb-label {
	color: #fff;
	font-family: "NHG-B", sans-serif;
}

/* krpano container per posicionar el botó */
#krpano-container {
	position: relative;
}

/* Mobile */
@media (max-width: 600px) {
	#thumbs-btn {
		bottom: 20px;
		padding: 10px 20px;
		font-size: 13px;
	}
	#thumbs-btn svg {
		width: 18px;
		height: 18px;
	}
	#thumbs-modal-title {
		font-size: 18px;
		margin-bottom: 24px;
	}
	#thumbs-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
		padding: 0 16px;
	}
	.thumb-img {
		border-width: 2px;
	}
	.thumb-label {
		font-size: 11px;
		margin-top: 8px;
	}
	#thumbs-modal-close {
		top: 16px;
		right: 16px;
		font-size: 28px;
	}
}
