/**
 * Peek Pro — shared lock overlay styling.
 *
 * Any plugin that wraps a gated feature's markup in:
 *
 *   .peekpro-lock-wrap                (position: relative)
 *     .peekpro-lock-content           (the real content — blurred here)
 *     .peekpro-lock                   (printed by peekpro_render_lock_overlay()
 *                                       or built by window.PeekPro.buildOverlay())
 *       .peekpro-lock-inner
 *         .peekpro-lock-message
 *         .peekpro-lock-buttons
 *           .peekpro-get-premium-btn (x2 — "About Premium" + "Buy Premium",
 *                                      identical look, different link/text)
 *
 * ...gets this styling automatically, since this stylesheet is
 * enqueued on every front-end page by Peek Pro itself. No other
 * plugin needs to ship its own copy of these rules.
 *
 * Kept deliberately generic/compact (no fixed widths, flexible
 * padding) so it drops cleanly into very different containers — a
 * dropdown account panel, a notification list, a sticky TOC widget —
 * without per-context overrides. A calling plugin can still layer its
 * own more-specific selectors on top if a particular spot needs to
 * differ (see e.g. Sticky Table of Contents' own note about wrapping
 * .peekpro-lock-wrap into its flex layout).
 */

.peekpro-lock-wrap {
	position: relative;
}

.peekpro-lock-content {
	filter: blur(3px);
	pointer-events: none;
	user-select: none;
}

.peekpro-lock {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: rgba(255,255,255,.85);
	border-radius: inherit;
	padding: 16px;
	z-index: 5;
	box-sizing: border-box;
}

.peekpro-lock-inner {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	background: #ffffff;
	border-radius: 10px;
	padding: 8px;
	box-sizing: border-box;
	max-width: 260px;
	box-shadow: 0 2px 10px rgba(0,0,0,.18);
}

/* .peekpro-lock centers the card above via align-items:center over the
   full height of .peekpro-lock-wrap. In the Membership plugin's Menu
   Panel specifically, that pane is tall/scrollable, so the "full
   height" middle sits well below what's actually visible on first
   open. Shifting the card up nudges it back toward the visible area.
   Scoped to .wlm-account-panel (My Membership's Menu Panel wrapper —
   see includes/account-ui.php in that plugin) on purpose, so this does
   NOT affect the Notifications panel (.wlm-notif-panel, same plugin)
   or Sticky Table of Contents' own panel/drawer, which both reuse this
   same .peekpro-lock-inner class but were never too-far-down to begin
   with.
   80%/0% here are just a static fallback (same pattern as
   .peekpro-lock's rgba(255,255,255,.85) below) — the real,
   admin-adjustable values (Peek Pro -> Settings -> "Menu Panel
   Vertical/Horizontal Position") are generated as a single combined
   !important translate() rule in peekpro_enqueue_assets()
   (peek-pro.php) and always win over this. */
.wlm-account-panel .peekpro-lock-inner {
	transform: translate(0%, -80%);
}

/* Table of Contents equivalent of the rule above — Sticky Table of
   Contents' own panel (.stoc-panel, desktop) and drawer
   (.stoc-mob-drawer, mobile) — see public/js/sticky-toc.js in that
   plugin. Defaults to no shift (0%, 0%) since the TOC box wasn't
   too-far-down the way the Menu Panel was; this rule exists so admins
   have somewhere to nudge it from if their own layout needs it (Peek
   Pro -> Settings -> "Table of Contents Vertical/Horizontal
   Position"), generated the same admin-adjustable way as the Menu
   Panel rule above. */
.stoc-panel .peekpro-lock-inner,
.stoc-mob-drawer .peekpro-lock-inner {
	transform: translate(0%, 0%);
}

.peekpro-lock-message {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: #000000;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.peekpro-lock-message a {
	color: #0730ff;
	text-decoration: underline;
	cursor: pointer;
}

.peekpro-get-premium-btn {
	display: inline-block;
	width: auto;
	background: #fff551;
	color: #333333;
	border: none;
	border-radius: 6px;
	padding: 10px 22px;
	font-weight: 700;
	font-size: 14px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}
.peekpro-get-premium-btn:hover {
	opacity: .88;
}

/* Wraps the "About Premium" + "Buy Premium" buttons (both share the
   identical .peekpro-get-premium-btn class/look above — this only
   adds the gap between them, stacked). align-items: stretch (rather
   than center) makes both buttons match the width of whichever one's
   text is naturally wider, so "About Premium" and "Buy Premium" are
   always the same left-to-right size regardless of their label. */
.peekpro-lock-buttons {
	display: inline-flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
}

/* "Premium members only" fallback notice — no content behind it to
   blur/peek at. See peekpro_render_hidden_notice(). */
.peekpro-bare-notice {
	text-align: center;
	padding: 18px 8px;
}
.peekpro-bare-notice .peekpro-lock-buttons {
	margin-top: 4px;
}

/* Dark-mode support. Sites that toggle a dark-mode attribute on
   <html> or <body> under a different name/value than these two can
   add their own override targeting .peekpro-lock — this rule is
   intentionally not !important so a later, more-specific site rule
   can win without a specificity fight. Only the translucent film
   (.peekpro-lock) itself darkens; .peekpro-lock-inner and its text
   stay white/black in both modes since it's a standalone white card
   floating on top of the film, not a see-through part of it. */
[data-wlcustom-dm="dark"] .peekpro-lock,
html[data-sdm="dark"] .peekpro-lock,
.dark-mode .peekpro-lock {
	background: rgba(20,20,20,.85);
}
