/* =============================================================================
   Guided Walkthrough / Tooltip Tour — WeAreInvictus210
   ============================================================================= */

/* ── Overlay with spotlight cutout ─────────────────────────────────────────── */
.inv-tour-overlay {
	position: fixed;
	inset: 0;
	z-index: 10010;
	background: rgba(0, 0, 0, 0.7);
	transition: clip-path 0.3s ease;
	pointer-events: auto;
}

/* ── Tooltip ──────────────────────────────────────────────────────────────── */
.inv-tour-tooltip {
	position: fixed;
	z-index: 10011;
	background: #111827;
	border: 1px solid rgba(245, 158, 11, 0.15);
	border-radius: 12px;
	padding: 20px;
	max-width: 320px;
	width: max-content;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(245, 158, 11, 0.08);
	animation: invTourFadeIn 0.25s ease-out;
	pointer-events: auto;
}

@keyframes invTourFadeIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ── Arrow ────────────────────────────────────────────────────────────────── */
.inv-tour-tooltip__arrow {
	position: absolute;
	width: 12px;
	height: 12px;
	background: #111827;
	border: 1px solid rgba(245, 158, 11, 0.15);
	transform: rotate(45deg);
}

/* Arrow positions */
.inv-tour-tooltip[data-pos="bottom"] .inv-tour-tooltip__arrow {
	top: -7px;
	left: 50%;
	margin-left: -6px;
	border-right: none;
	border-bottom: none;
}
.inv-tour-tooltip[data-pos="top"] .inv-tour-tooltip__arrow {
	bottom: -7px;
	left: 50%;
	margin-left: -6px;
	border-left: none;
	border-top: none;
}
.inv-tour-tooltip[data-pos="left"] .inv-tour-tooltip__arrow {
	right: -7px;
	top: 50%;
	margin-top: -6px;
	border-left: none;
	border-bottom: none;
}
.inv-tour-tooltip[data-pos="right"] .inv-tour-tooltip__arrow {
	left: -7px;
	top: 50%;
	margin-top: -6px;
	border-right: none;
	border-top: none;
}

/* ── Step counter ─────────────────────────────────────────────────────────── */
.inv-tour-tooltip__step {
	font-family: 'Inter', sans-serif;
	font-size: 0.7rem;
	color: #f59e0b;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 6px;
}

/* ── Title ────────────────────────────────────────────────────────────────── */
.inv-tour-tooltip__title {
	font-family: 'Rajdhani', sans-serif;
	font-weight: 700;
	font-size: 1.1rem;
	color: #fff;
	margin: 0 0 6px;
	line-height: 1.2;
}

/* ── Text ─────────────────────────────────────────────────────────────────── */
.inv-tour-tooltip__text {
	font-family: 'Inter', sans-serif;
	font-size: 0.8rem;
	color: #c8cce8;
	line-height: 1.5;
	margin: 0 0 16px;
}

/* ── Actions row ──────────────────────────────────────────────────────────── */
.inv-tour-tooltip__actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

.inv-tour-tooltip__btn {
	font-family: 'Inter', sans-serif;
	font-size: 0.78rem;
	font-weight: 600;
	padding: 6px 16px;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
	border: none;
	line-height: 1.4;
}

.inv-tour-tooltip__btn--skip {
	background: transparent;
	color: #6b7280;
}
.inv-tour-tooltip__btn--skip:hover {
	color: #9ca3af;
}

.inv-tour-tooltip__btn--next {
	background: #f59e0b;
	color: #000;
}
.inv-tour-tooltip__btn--next:hover {
	background: #d97706;
}

/* ── Floating help (?) button ─────────────────────────────────────────────── */
.inv-tour-help-btn {
	position: fixed;
	bottom: 90px;
	right: 30px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: transparent;
	border: 2px solid rgba(245, 158, 11, 0.5);
	color: #f59e0b;
	font-family: 'Rajdhani', sans-serif;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	z-index: 9990;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.15s ease, background 0.15s ease;
	line-height: 1;
}
.inv-tour-help-btn:hover {
	border-color: #f59e0b;
	background: rgba(245, 158, 11, 0.1);
}

/* Hide help button when tour is active */
.inv-tour-active .inv-tour-help-btn {
	display: none;
}

/* Push header below overlay so spotlight targets are not covered */
.inv-tour-active #invictus-site-header {
	z-index: 1 !important;
}

/* Lift chat bubble above overlay so spotlight can highlight it */
.inv-tour-active #inv-chat-bubble {
	z-index: 10012 !important;
}

/* ── Mobile adjustments ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
	.inv-tour-tooltip {
		max-width: calc(100vw - 32px);
		left: 16px !important;
		right: 16px !important;
		width: auto;
	}
	.inv-tour-tooltip__arrow {
		display: none;
	}
	.inv-tour-help-btn {
		bottom: 84px;
		right: 20px;
		width: 32px;
		height: 32px;
		font-size: 0.9rem;
	}
}
