/* LinguaLink Popup - WebGTR Theme-Matched Styles (Dark Default + Light Mode Support) */

.llp-root {
	--llp-accent: #D655A5;
	position: fixed;
	z-index: 999999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	font-family: var(--font-body, 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif);
	font-size: 15px;
	line-height: 1.65;
}

.llp-root.llp-in {
	opacity: 1;
	visibility: visible;
}

.llp-box {
	position: relative;
	overflow: hidden;
	background: var(--bg-card-solid, #090e1c);
	color: var(--text-accent, #ffffff);
	border: 1px solid var(--line-strong, rgba(255, 255, 255, 0.18));
	border-radius: 16px;
	box-shadow: var(--shadow-card, 0 20px 45px -15px rgba(0, 0, 0, 0.75), inset 0 1px 1px 0 rgba(255, 255, 255, 0.1));
	padding: 34px 30px 30px;
	max-width: 520px;
	box-sizing: border-box;
}

.llp-box::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--webgtr-linear, linear-gradient(91deg, #FF9C8D 4.64%, #D655A5 52.82%, #6053CB 100%));
}

html[data-theme="light"] .llp-box,
body.light-theme .llp-box {
	background: var(--bg-card-solid, #ffffff);
	color: var(--text-accent, #0F172A);
	border-color: var(--line-strong, rgba(15, 23, 42, 0.14));
	box-shadow: var(--shadow-card, 0 20px 45px -15px rgba(15, 23, 42, 0.18));
}

.llp-msg {
	margin: 0 0 24px;
	padding-inline-end: 36px;
	font-size: 15px;
	line-height: 1.65;
	color: var(--text-second, #C7C7C7);
}

html[data-theme="light"] .llp-msg,
body.light-theme .llp-msg {
	color: var(--text-second, #475569);
}

.llp-msg.llp-title {
	margin-bottom: 20px;
	font-family: var(--font-display, 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--text-accent, #ffffff);
}

html[data-theme="light"] .llp-msg.llp-title,
body.light-theme .llp-msg.llp-title {
	color: var(--text-accent, #0F172A);
}

.llp-x {
	position: absolute;
	top: 16px;
	inset-inline-end: 16px;
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	font-size: 22px;
	line-height: 1;
	color: var(--text-muted, #8E9DB8);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.2s ease;
}

html[data-theme="light"] .llp-x,
body.light-theme .llp-x {
	background: rgba(15, 23, 42, 0.04);
	border-color: var(--line, rgba(15, 23, 42, 0.1));
}

.llp-x:hover {
	color: var(--primary-coral, #FF9C8D);
	border-color: var(--primary-coral, #FF9C8D);
	background: rgba(255, 156, 141, 0.1);
}

.llp-actions,
.llp-list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.llp-btn {
	flex: 1 1 160px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 20px;
	font-family: var(--font-body, 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	box-sizing: border-box;
}

.llp-yes,
.llp-lang {
	color: #ffffff;
	background: var(--webgtr-linear, linear-gradient(91deg, #FF9C8D 4.64%, #D655A5 52.82%, #6053CB 100%));
	border: none;
	box-shadow: var(--shadow-btn, 0 10px 30px -5px rgba(214, 85, 165, 0.45)), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.llp-yes:hover,
.llp-lang:hover {
	color: #ffffff;
	background: var(--webgtr-linear-hover, linear-gradient(91deg, #ffaca0 4.64%, #e26bb5 52.82%, #7063dc 100%));
	transform: translateY(-2px);
	box-shadow: 0 15px 35px -5px rgba(214, 85, 165, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.llp-yes:active,
.llp-lang:active {
	transform: translateY(0);
}

.llp-no,
.llp-lang.llp-cur {
	color: var(--text-accent, #ffffff);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--line-strong, rgba(255, 255, 255, 0.18));
	box-shadow: none;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

html[data-theme="light"] .llp-no,
body.light-theme .llp-no,
html[data-theme="light"] .llp-lang.llp-cur,
body.light-theme .llp-lang.llp-cur {
	background: rgba(15, 23, 42, 0.04);
	color: var(--text-accent, #0F172A);
	border-color: rgba(15, 23, 42, 0.18);
}

.llp-no:hover,
.llp-lang.llp-cur:hover {
	color: var(--primary-coral, #FF9C8D);
	background: rgba(255, 255, 255, 0.09);
	border-color: var(--primary-coral, #FF9C8D);
	transform: translateY(-2px);
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .llp-no:hover,
body.light-theme .llp-no:hover,
html[data-theme="light"] .llp-lang.llp-cur:hover,
body.light-theme .llp-lang.llp-cur:hover {
	background: rgba(15, 23, 42, 0.08);
}

.llp-lang.llp-cur {
	opacity: 0.85;
}

.llp-btn:focus-visible,
.llp-x:focus-visible {
	outline: 2px solid var(--primary-coral, #FF9C8D);
	outline-offset: 2px;
}

.llp-flag {
	font-size: 1.15em;
	line-height: 1;
}

img.llp-flag {
	height: auto;
	border-radius: 3px;
}

/* Centered modal */
.llp-center {
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	pointer-events: none;
}

.llp-center .llp-box {
	pointer-events: auto;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	transform: translateY(14px) scale(0.97);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.llp-center.llp-in .llp-box {
	transform: translateY(0) scale(1);
}

.llp-center.llp-dim {
	background: rgba(4, 5, 14, 0.78);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	pointer-events: auto;
}

html[data-theme="light"] .llp-center.llp-dim,
body.light-theme .llp-center.llp-dim {
	background: rgba(15, 23, 42, 0.55);
}

body.llp-scroll-lock {
	overflow: hidden;
}

/* Bottom-right card */
.llp-bottom-right {
	right: 20px;
	bottom: 20px;
	left: auto;
	transform: translateY(16px);
}

.llp-bottom-right.llp-in {
	transform: translateY(0);
}

[dir=rtl] .llp-bottom-right,
.rtl .llp-bottom-right {
	left: 20px;
	right: auto;
}

.llp-bottom-right .llp-box {
	width: 400px;
	max-width: calc(100vw - 40px);
	padding: 28px 24px 24px;
}

/* Bars */
.llp-bottom-bar,
.llp-top-bar {
	left: 0;
	right: 0;
}

.llp-bottom-bar {
	bottom: 0;
	transform: translateY(100%);
}

.llp-top-bar {
	top: 0;
	transform: translateY(-100%);
}

.llp-bottom-bar.llp-in,
.llp-top-bar.llp-in {
	transform: translateY(0);
}

.llp-bottom-bar .llp-box,
.llp-top-bar .llp-box {
	max-width: none;
	border-radius: 0;
	border-left: none;
	border-right: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 22px;
	padding: 16px 56px 16px 24px;
}

.llp-bottom-bar .llp-box {
	border-bottom: none;
}

.llp-top-bar .llp-box {
	border-top: none;
}

.llp-bottom-bar .llp-msg,
.llp-top-bar .llp-msg {
	margin: 0;
	padding: 0;
}

.llp-bottom-bar .llp-btn,
.llp-top-bar .llp-btn {
	flex: 0 1 auto;
	padding: 10px 18px;
}

.llp-bottom-bar .llp-x,
.llp-top-bar .llp-x {
	top: 50%;
	transform: translateY(-50%);
}

@media (prefers-reduced-motion: reduce) {
	.llp-root,
	.llp-box,
	.llp-btn,
	.llp-x {
		transition: none !important;
	}
}

@media (max-width: 480px) {
	.llp-box {
		padding: 28px 20px 24px;
	}

	.llp-actions,
	.llp-list {
		flex-direction: column;
	}

	.llp-btn {
		flex: 1 1 100%;
		justify-content: center;
	}

	.llp-bottom-bar .llp-box,
	.llp-top-bar .llp-box {
		padding: 16px 48px 16px 18px;
	}
}
