/**
 * Authyo EVF — Plugin Tour Styles
 * @since 1.0.1
 */

/* Restart button */
.authyo-tour-restart-wrap { display: inline-block; margin-left: 12px; vertical-align: middle; }
.authyo-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; transition: all 0.2s ease; vertical-align: middle;
}
.authyo-tour-restart-btn:hover { background: #2271b1; color: #fff; }
.authyo-tour-restart-btn:focus { outline: 2px solid #2271b1; outline-offset: 2px; }
.authyo-tour-restart-btn .dashicons { font-size: 16px; width: 16px; height: 16px; line-height: 16px; }

/* Nav lifted above overlay */
.authyo-tour-nav-lifted { position: relative !important; z-index: 99991 !important; }

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

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

/* Tooltip */
.authyo-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,.18), 0 2px 8px rgba(0,0,0,.08);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	overflow: hidden; opacity: 0; transform: translateY(8px);
	transition: opacity .25s ease, transform .25s ease;
}
.authyo-tour-tooltip.authyo-tour-visible { opacity: 1; transform: translateY(0); }

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

/* Header */
.authyo-tour-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 0; }
.authyo-tour-step-counter { font-size: 12px; font-weight: 600; color: #2271b1; background: #f0f6fc; padding: 2px 10px; border-radius: 10px; white-space: nowrap; }
.authyo-tour-close { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; font-size: 18px; color: #8c8f94; background: transparent; border: none; border-radius: 50%; cursor: pointer; transition: all .15s ease; }
.authyo-tour-close:hover { background: #f0f0f1; color: #1d2327; }

/* Body */
.authyo-tour-body { padding: 14px 20px 8px; }
.authyo-tour-title { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: #1d2327; line-height: 1.4; }
.authyo-tour-content { margin: 0; font-size: 13.5px; line-height: 1.6; color: #50575e; }
.authyo-tour-content strong { color: #1d2327; font-weight: 600; }
.authyo-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; }

/* Footer */
.authyo-tour-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px 16px; gap: 8px; }
.authyo-tour-footer-left { flex-shrink: 0; }
.authyo-tour-footer-right { display: flex; align-items: center; gap: 8px; }

.authyo-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; transition: all .15s ease; }
.authyo-tour-btn:focus { outline: 2px solid #2271b1; outline-offset: 2px; }
.authyo-tour-btn-skip, .authyo-tour-btn-prev { color: #50575e; background: transparent; border: 1px solid #c3c4c7; }
.authyo-tour-btn-skip:hover, .authyo-tour-btn-prev:hover { background: #f0f0f1; color: #1d2327; border-color: #8c8f94; }
.authyo-tour-btn-next { color: #fff; background: #2271b1; }
.authyo-tour-btn-next:hover { background: #135e96; }
.authyo-tour-btn-start { color: #fff; background: #2271b1; padding: 9px 24px; font-size: 14px; }
.authyo-tour-btn-start:hover { background: #135e96; }
.authyo-tour-btn-finish { color: #fff; background: #00a32a; }
.authyo-tour-btn-finish:hover { background: #008a20; }

/* Arrow */
.authyo-tour-arrow { position: absolute; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); box-shadow: -2px -2px 4px rgba(0,0,0,.04); }
.authyo-tour-tooltip[data-position="bottom"] .authyo-tour-arrow { top: -7px; left: 50%; transform: translateX(-50%) rotate(45deg); }
.authyo-tour-tooltip[data-position="top"]    .authyo-tour-arrow { bottom: -7px; left: 50%; transform: translateX(-50%) rotate(45deg); box-shadow: 2px 2px 4px rgba(0,0,0,.04); }
.authyo-tour-tooltip[data-position="left"]   .authyo-tour-arrow { right: -7px; top: 50%; transform: translateY(-50%) rotate(45deg); box-shadow: 2px -2px 4px rgba(0,0,0,.04); }
.authyo-tour-tooltip[data-position="right"]  .authyo-tour-arrow { left: -7px; top: 50%; transform: translateY(-50%) rotate(45deg); box-shadow: -2px 2px 4px rgba(0,0,0,.04); }
.authyo-tour-tooltip[data-position="center"] .authyo-tour-arrow { display: none; }

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

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

/* Responsive */
@media screen and (max-width: 960px) { .authyo-tour-tooltip { width: 360px; } }
@media screen and (max-width: 600px) {
	.authyo-tour-tooltip { width: calc(100vw - 24px); max-width: none; left: 12px !important; right: 12px !important; }
	.authyo-tour-tooltip .authyo-tour-arrow { display: none; }
	.authyo-tour-title { font-size: 15px; }
	.authyo-tour-content { font-size: 13px; }
	.authyo-tour-btn { padding: 6px 12px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .authyo-tour-tooltip, .authyo-tour-spotlight, .authyo-tour-progress-bar { transition: none !important; } }
