/**
 * Authyo Passwordless Login — Plugin Tour Styles
 * @since 1.0.8
 */

/* ========================================================================
   1. RESTART BUTTON
   ======================================================================== */

.authyo-pl-tour-restart-wrap {
	display: inline-block;
	margin-left: 12px;
	vertical-align: middle;
}

.authyo-pl-tour-restart-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 14px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.8;
	color: #2271b1;
	background: #f0f6fc;
	border: 1px solid #2271b1;
	border-radius: 4px;
	cursor: pointer;
	-webkit-transition: all 0.2s ease;
	transition: all 0.2s ease;
	vertical-align: middle;
}

.authyo-pl-tour-restart-btn:hover { background: #2271b1; color: #fff; }
.authyo-pl-tour-restart-btn:focus { outline: 2px solid #2271b1; outline-offset: 2px; }

.authyo-pl-tour-restart-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 16px;
}

/* ========================================================================
   2. OVERLAY
   ======================================================================== */

.authyo-pl-tour-overlay {
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	z-index: 99990;
	pointer-events: auto;
	background: rgba(0,0,0,0.45);
}

/* ========================================================================
   3. SPOTLIGHT
   ======================================================================== */

.authyo-pl-tour-spotlight {
	position: fixed;
	z-index: 99991;
	border-radius: 6px;
	pointer-events: none;
	box-shadow: 0 0 0 9999px rgba(0,0,0,0.45);
	-webkit-transition: top 0.3s ease, left 0.3s ease, width 0.3s ease, height 0.3s ease;
	transition: top 0.3s ease, left 0.3s ease, width 0.3s ease, height 0.3s ease;
}

/* ========================================================================
   4. TOOLTIP
   ======================================================================== */

.authyo-pl-tour-tooltip {
	position: fixed;
	z-index: 99992;
	width: 400px;
	max-width: calc(100vw - 40px);
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 8px 30px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	overflow: hidden;
	opacity: 0;
	-webkit-transform: translateY(8px);
	-ms-transform: translateY(8px);
	transform: translateY(8px);
	-webkit-transition: opacity 0.25s ease, -webkit-transform 0.25s ease;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.authyo-pl-tour-tooltip.authyo-pl-tour-visible {
	opacity: 1;
	-webkit-transform: translateY(0);
	-ms-transform: translateY(0);
	transform: translateY(0);
}

.authyo-pl-tour-progress { height: 3px; background: #e2e4e7; overflow: hidden; }
.authyo-pl-tour-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #2271b1, #135e96);
	-webkit-transition: width 0.35s ease;
	transition: width 0.35s ease;
	border-radius: 0 2px 2px 0;
}

.authyo-pl-tour-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px 0;
}

.authyo-pl-tour-step-counter {
	font-size: 12px;
	font-weight: 600;
	color: #2271b1;
	background: #f0f6fc;
	padding: 2px 10px;
	border-radius: 10px;
	letter-spacing: 0.3px;
	white-space: nowrap;
}

.authyo-pl-tour-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px; height: 28px;
	padding: 0; margin: 0;
	font-size: 18px; line-height: 1;
	color: #8c8f94;
	background: transparent;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	-webkit-transition: all 0.15s ease;
	transition: all 0.15s ease;
}

.authyo-pl-tour-close:hover { background: #f0f0f1; color: #1d2327; }
.authyo-pl-tour-close:focus { outline: 2px solid #2271b1; outline-offset: 1px; }

.authyo-pl-tour-body { padding: 14px 20px 8px; }

.authyo-pl-tour-title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 600;
	color: #1d2327;
	line-height: 1.4;
}

.authyo-pl-tour-content {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: #50575e;
}

.authyo-pl-tour-content strong { color: #1d2327; font-weight: 600; }

.authyo-pl-tour-content code {
	display: inline-block;
	padding: 1px 6px;
	font-size: 12px;
	font-family: Consolas, Monaco, monospace;
	background: #f0f6fc;
	border: 1px solid #c3c4c7;
	border-radius: 3px;
	color: #2271b1;
}

.authyo-pl-tour-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px 16px;
	gap: 8px;
}

.authyo-pl-tour-footer-left  { flex-shrink: 0; }
.authyo-pl-tour-footer-right { display: flex; align-items: center; gap: 8px; }

.authyo-pl-tour-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 7px 16px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	border-radius: 5px;
	border: none;
	cursor: pointer;
	white-space: nowrap;
	-webkit-transition: all 0.15s ease;
	transition: all 0.15s ease;
}

.authyo-pl-tour-btn:focus { outline: 2px solid #2271b1; outline-offset: 2px; }

.authyo-pl-tour-btn-skip,
.authyo-pl-tour-btn-prev {
	color: #50575e;
	background: transparent;
	border: 1px solid #c3c4c7;
}

.authyo-pl-tour-btn-skip:hover,
.authyo-pl-tour-btn-prev:hover { background: #f0f0f1; color: #1d2327; border-color: #8c8f94; }

.authyo-pl-tour-btn-next   { color: #fff; background: #2271b1; }
.authyo-pl-tour-btn-next:hover   { background: #135e96; }

.authyo-pl-tour-btn-start  { color: #fff; background: #2271b1; padding: 9px 24px; font-size: 14px; }
.authyo-pl-tour-btn-start:hover  { background: #135e96; }

.authyo-pl-tour-btn-finish { color: #fff; background: #00a32a; }
.authyo-pl-tour-btn-finish:hover { background: #008a20; }

/* ========================================================================
   5. ARROW
   ======================================================================== */

.authyo-pl-tour-arrow {
	position: absolute;
	width: 14px; height: 14px;
	background: #fff;
	-webkit-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
	box-shadow: -2px -2px 4px rgba(0,0,0,0.04);
}

.authyo-pl-tour-tooltip[data-position="bottom"] .authyo-pl-tour-arrow { top: -7px; left: 30px; }
.authyo-pl-tour-tooltip[data-position="top"]    .authyo-pl-tour-arrow { bottom: -7px; left: 30px; box-shadow: 2px 2px 4px rgba(0,0,0,0.04); }
.authyo-pl-tour-tooltip[data-position="left"]   .authyo-pl-tour-arrow { right: -7px; top: 24px; box-shadow: 2px -2px 4px rgba(0,0,0,0.04); }
.authyo-pl-tour-tooltip[data-position="right"]  .authyo-pl-tour-arrow { left: -7px;  top: 24px; box-shadow: -2px 2px 4px rgba(0,0,0,0.04); }
.authyo-pl-tour-tooltip[data-position="center"] .authyo-pl-tour-arrow { display: none; }

/* ========================================================================
   6. CENTERED MODAL
   ======================================================================== */

.authyo-pl-tour-tooltip[data-position="center"] { text-align: center; }
.authyo-pl-tour-tooltip[data-position="center"] .authyo-pl-tour-body   { padding: 20px 24px 12px; }
.authyo-pl-tour-tooltip[data-position="center"] .authyo-pl-tour-title  { font-size: 18px; }
.authyo-pl-tour-tooltip[data-position="center"] .authyo-pl-tour-footer { justify-content: center; }
.authyo-pl-tour-tooltip[data-position="center"] .authyo-pl-tour-footer-left { display: none; }

/* ========================================================================
   7. HIGHLIGHTED TARGET + BLINK
   ======================================================================== */

.authyo-pl-tour-target-highlight {
	position: relative;
	z-index: 99991 !important;
	outline: 2px solid #2271b1;
	outline-offset: 4px;
	border-radius: 6px;
}

.authyo-pl-tour-target-highlight.authyo-pl-tour-blink {
	-webkit-animation: authyo-pl-tour-blink 0.56s step-end 3;
	animation: authyo-pl-tour-blink 0.56s step-end 3;
}

@-webkit-keyframes authyo-pl-tour-blink {
	0%, 100% { outline-color: #2271b1; }
	50%       { outline-color: transparent; }
}
@keyframes authyo-pl-tour-blink {
	0%, 100% { outline-color: #2271b1; }
	50%       { outline-color: transparent; }
}

/* ========================================================================
   8. RESPONSIVE
   ======================================================================== */

@media screen and (max-width: 960px) {
	.authyo-pl-tour-tooltip { width: 360px; }
}

@media screen and (max-width: 600px) {
	.authyo-pl-tour-tooltip {
		width: calc(100vw - 24px);
		max-width: none;
		left: 12px !important;
		right: 12px !important;
	}
	.authyo-pl-tour-tooltip .authyo-pl-tour-arrow { display: none; }
	.authyo-pl-tour-title   { font-size: 15px; }
	.authyo-pl-tour-content { font-size: 13px; }
	.authyo-pl-tour-btn     { padding: 6px 12px; font-size: 12px; }
	.authyo-pl-tour-restart-btn { margin-left: 0; margin-top: 8px; display: flex; }
}

/* ========================================================================
   9. REDUCED MOTION
   ======================================================================== */

@media (prefers-reduced-motion: reduce) {
	.authyo-pl-tour-tooltip,
	.authyo-pl-tour-spotlight,
	.authyo-pl-tour-progress-bar {
		-webkit-transition: none !important;
		transition: none !important;
	}
	.authyo-pl-tour-target-highlight.authyo-pl-tour-blink {
		-webkit-animation: none !important;
		animation: none !important;
	}
}

/* ========================================================================
   10. RTL
   ======================================================================== */

html[dir="rtl"] .authyo-pl-tour-restart-wrap { margin-left: 0; margin-right: 12px; }

html[dir="rtl"] .authyo-pl-tour-tooltip[data-position="bottom"] .authyo-pl-tour-arrow,
html[dir="rtl"] .authyo-pl-tour-tooltip[data-position="top"]    .authyo-pl-tour-arrow { left: auto; right: 30px; }

html[dir="rtl"] .authyo-pl-tour-footer { flex-direction: row-reverse; }
