/**
 * Pearls of Wisdom Lite — Widget Styles
 *
 * CSS-first sticky note treatments tuned for tintable Post-it style notes.
 *
 * @package PearlsOfWisdomLite
 */

.pow-note {
	--pow-paper-color: #fef08a;
	--pow-shadow-color: rgba(0, 0, 0, 0.22);
	position: relative;
	display: inline-block;
	width: 340px;
	max-width: none;
	min-height: 160px;
	padding: 24px 24px 20px;
	background-color: var(--pow-paper-color);
	border-radius: 2px;
	box-sizing: border-box;
	font-family: 'Patrick Hand', 'Segoe UI', 'Helvetica Neue', sans-serif;
	line-height: 1.6;
	transform: rotate(-2deg);
	box-shadow: 4px 4px 8px var(--pow-shadow-color);
	transition: box-shadow 0.2s ease;
	word-wrap: break-word;
	overflow-wrap: break-word;
	overflow: visible;
	background-image:
		repeating-linear-gradient(
			-45deg,
			transparent 0px,
			transparent 3px,
			rgba(0, 0, 0, 0.012) 3px,
			rgba(0, 0, 0, 0.012) 4px
		),
		repeating-linear-gradient(
			45deg,
			transparent 0px,
			transparent 5px,
			rgba(0, 0, 0, 0.008) 5px,
			rgba(0, 0, 0, 0.008) 6px
		);
}

.pow-note:hover {
	box-shadow: 6px 8px 16px rgba(0, 0, 0, 0.30);
}

.pow-note::before,
.pow-note::after {
	content: '';
	position: absolute;
	pointer-events: none;
	z-index: 0;
}

.pow-note__content {
	position: relative;
	z-index: 2;
}

.pow-note__title {
	margin: 0 0 10px;
	font-size: 1.05em;
	font-weight: 700;
	color: #1a1a1a;
	text-align: center;
	line-height: 1.3;
}

.pow-note__title--separator {
	padding-bottom: 8px;
	border-bottom: 2px solid rgba(0, 0, 0, 0.12);
}

.pow-note__body {
	font-size: 0.95em;
	color: #333;
}

.pow-note__body p {
	margin: 0;
}

.pow-note__citation {
	margin: 12px 0 0;
	font-size: 0.78em;
	text-align: right;
}

.pow-note__citation a {
	color: #0073aa;
	text-decoration: underline;
}

.pow-note__citation a:hover {
	text-decoration: none;
}

/* Bottom Curl ----------------------------------------------------------- */
.pow-note--bottom-curl,
.pow-note--soft-edge-lift,
.pow-note--ripple,
.pow-note--edge,
.pow-note--curl,
.pow-note--peel,
.pow-note--corner-curl,
.pow-note--folded-corner,
.pow-note--taped,
.pow-note--pinned {
	background-image:
		linear-gradient(to bottom, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 18%),
		repeating-linear-gradient(
			-45deg,
			transparent 0px,
			transparent 3px,
			rgba(0, 0, 0, 0.012) 3px,
			rgba(0, 0, 0, 0.012) 4px
		),
		repeating-linear-gradient(
			45deg,
			transparent 0px,
			transparent 5px,
			rgba(0, 0, 0, 0.008) 5px,
			rgba(0, 0, 0, 0.008) 6px
		);
}

.pow-note--bottom-curl,
.pow-note--ripple,
.pow-note--edge,
.pow-note--curl,
.pow-note--peel {
	box-shadow: 3px 5px 12px rgba(0, 0, 0, 0.18), 0 10px 20px rgba(0, 0, 0, 0.12);
}

.pow-note--bottom-curl::before,
.pow-note--ripple::before,
.pow-note--edge::before,
.pow-note--curl::before,
.pow-note--peel::before {
	left: 12px;
	right: 12px;
	bottom: 9px;
	height: 18px;
	border-radius: 50%;
	box-shadow: 0 14px 12px rgba(0, 0, 0, 0.24);
	z-index: 1;
}

.pow-note--bottom-curl::after,
.pow-note--ripple::after,
.pow-note--edge::after,
.pow-note--curl::after,
.pow-note--peel::after {
	left: 9px;
	right: 9px;
	bottom: 2px;
	height: 16px;
	border-radius: 50%;
	box-shadow: 0 12px 8px rgba(0, 0, 0, 0.18);
	transform: skewX(-1deg);
	z-index: 1;
}

/* Soft Edge Lift -------------------------------------------------------- */
.pow-note--soft-edge-lift,
.pow-note--ripple,
.pow-note--edge,
.pow-note--curl {
	border-radius: 3px 3px 6px 7px / 2px 2px 8px 9px;
	box-shadow: 3px 4px 10px rgba(0, 0, 0, 0.16), 0 10px 16px rgba(0, 0, 0, 0.10);
}

.pow-note--soft-edge-lift::before,
.pow-note--ripple::before,
.pow-note--edge::before,
.pow-note--curl::before {
	left: 8px;
	right: 10px;
	bottom: -3px;
	height: 14px;
	background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.10) 48%, rgba(0, 0, 0, 0) 78%);
	border-radius: 48% 52% 60% 40% / 60% 55% 45% 40%;
	transform: scaleX(1.01);
	z-index: 1;
}

.pow-note--soft-edge-lift::after,
.pow-note--ripple::after,
.pow-note--edge::after,
.pow-note--curl::after {
	left: 0;
	right: 0;
	bottom: 0;
	height: 8px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.18));
	border-radius: 0 0 46% 42% / 0 0 100% 100%;
	z-index: 1;
}

/* Folded Corner --------------------------------------------------------- */
.pow-note--folded-corner,
.pow-note--corner-curl {
	padding-bottom: 36px;
	box-shadow: 3px 5px 12px rgba(0, 0, 0, 0.18), 0 9px 18px rgba(0, 0, 0, 0.12);
}

.pow-note--folded-corner::before,
.pow-note--corner-curl::before {
	right: -1px;
	bottom: -1px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 0 34px 34px;
	border-color: transparent transparent rgba(255, 255, 255, 0.58) transparent;
	filter: drop-shadow(-2px -2px 2px rgba(0, 0, 0, 0.10));
	z-index: 3;
}

.pow-note--folded-corner::after,
.pow-note--corner-curl::after {
	right: 0;
	bottom: 0;
	width: 26px;
	height: 22px;
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0));
	border-bottom-right-radius: 2px;
	clip-path: polygon(100% 0, 0 100%, 100% 100%);
	z-index: 2;
}

/* Taped ---------------------------------------------------------------- */
.pow-note--taped {
	margin-top: 14px;
	box-shadow: 3px 5px 12px rgba(0, 0, 0, 0.17), 0 10px 18px rgba(0, 0, 0, 0.10);
}

.pow-note--taped::before,
.pow-note--taped::after {
	width: 42px;
	height: 16px;
	top: -10px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0.56), rgba(240, 236, 214, 0.38));
	border: 1px solid rgba(180, 170, 140, 0.25);
	box-shadow: 0 2px 3px rgba(0, 0, 0, 0.10);
	z-index: 3;
}

.pow-note--taped::before {
	left: 18px;
	transform: rotate(-10deg);
}

.pow-note--taped::after {
	right: 18px;
	transform: rotate(9deg);
}

/* Pinned --------------------------------------------------------------- */
.pow-note--pinned {
	margin-top: 18px;
	box-shadow: 3px 5px 12px rgba(0, 0, 0, 0.18), 0 12px 20px rgba(0, 0, 0, 0.12);
}

.pow-note--pinned::before {
	top: -14px;
	left: 50%;
	width: 20px;
	height: 20px;
	margin-left: -10px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #ffffff 0 14%, #d74f4f 16%, #b82f2f 62%, #6d1717 100%);
	box-shadow: 0 2px 0 rgba(255, 255, 255, 0.30) inset, 0 3px 5px rgba(0, 0, 0, 0.22);
	z-index: 4;
}

.pow-note--pinned::after {
	top: 2px;
	left: 50%;
	width: 2px;
	height: 16px;
	margin-left: -1px;
	background: linear-gradient(to bottom, rgba(70, 70, 70, 0.95), rgba(170, 170, 170, 0.75));
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
	z-index: 3;
}

@media (max-width: 480px) {
	.pow-note {
		max-width: 100%;
		transform: rotate(0deg);
	}
}

.pow-note--ratio-1-1,
.pow-note--ratio-3-4,
.pow-note--ratio-4-3 {
	min-height: auto !important;
}

.pow-note--ratio-1-1 {
	aspect-ratio: 1 / 1;
}

.pow-note--ratio-3-4 {
	aspect-ratio: 3 / 4;
}

.pow-note--ratio-4-3 {
	aspect-ratio: 4 / 3;
}

/* Social sharing -------------------------------------------------------- */
.pow-share {
	position: relative;
	z-index: 20;
	margin-top: 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	text-align: center;
}

.pow-share__toggle,
.pow-share__option {
	appearance: none;
	border: 1px solid rgba(0, 0, 0, 0.16);
	background: #fff;
	color: #222;
	cursor: pointer;
	font: inherit;
}

.pow-share__toggle {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 40px;
	padding: 8px 14px;
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
	font-size: 14px;
	font-weight: 600;
}

.pow-share__toggle:hover,
.pow-share__toggle:focus-visible,
.pow-share__option:hover,
.pow-share__option:focus-visible {
	border-color: rgba(0, 0, 0, 0.35);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
	outline: none;
}

.pow-share__menu {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	transform: translateX(-50%);
	display: grid;
	gap: 6px;
	min-width: 180px;
	padding: 8px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.pow-share__menu[hidden] {
	display: none;
}

.pow-share__option {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 9px 11px;
	border-color: transparent;
	border-radius: 8px;
	text-align: left;
}

.pow-share__option span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	font-weight: 700;
}

.pow-share__status {
	min-height: 1.4em;
	margin-top: 6px;
	font-size: 12px;
	color: #444;
}

@media (max-width: 480px) {
	.pow-share__menu {
		min-width: 168px;
	}
}

/* Preserve the production free-form note treatment inside Elementor. */
.elementor-widget-pearls-of-wisdom,
.elementor-widget-pearls-of-wisdom > .elementor-widget-container {
	overflow: visible !important;
}

.elementor-widget-pearls-of-wisdom .pow-note {
	overflow: visible;
}

.elementor-widget-pearls-of-wisdom .pow-note:hover {
	box-shadow: 6px 8px 16px rgba(0, 0, 0, 0.30);
}
