/* NPN Elegant Notification - Soft Modern Theme */

#npn-en-container {
	position: fixed;
	z-index: 99999;
	pointer-events: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 380px;
	width: calc(100% - 32px);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	box-sizing: border-box;
}

/* Positions */
#npn-en-container.npn-en-pos-top-right {
	top: 24px;
	right: 16px;
	align-items: flex-end;
}

#npn-en-container.npn-en-pos-top-left {
	top: 24px;
	left: 16px;
	align-items: flex-start;
}

#npn-en-container.npn-en-pos-bottom-right {
	bottom: 24px;
	right: 16px;
	align-items: flex-end;
}

#npn-en-container.npn-en-pos-bottom-left {
	bottom: 24px;
	left: 16px;
	align-items: flex-start;
}

/* Notification Card */
.npn-en-toast {
	pointer-events: auto;
	position: relative;
	display: flex;
	gap: 14px;
	padding: 16px 18px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow:
		0 4px 6px -1px rgba(0, 0, 0, 0.05),
		0 10px 25px -5px rgba(0, 0, 0, 0.08),
		0 0 0 1px rgba(0, 0, 0, 0.04);
	max-width: 100%;
	overflow: hidden;
	transform: translateY(-20px) scale(0.96);
	opacity: 0;
	transition:
		transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
		opacity 0.35s ease,
		box-shadow 0.3s ease;
	will-change: transform, opacity;
}

.npn-en-toast.npn-en-show {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.npn-en-toast.npn-en-hide {
	transform: translateY(-12px) scale(0.95);
	opacity: 0;
	pointer-events: none;
}

/* Soft Theme Colors */
.npn-en-theme-lavender .npn-en-toast {
	border-left: 4px solid #c4b5fd;
	background: linear-gradient(135deg, rgba(245, 243, 255, 0.95), rgba(255, 255, 255, 0.92));
}

.npn-en-theme-lavender .npn-en-badge {
	background: linear-gradient(135deg, #a78bfa, #c4b5fd);
	color: #fff;
}

.npn-en-theme-lavender .npn-en-title a {
	color: #5b21b6;
}

.npn-en-theme-mint .npn-en-toast {
	border-left: 4px solid #6ee7b7;
	background: linear-gradient(135deg, rgba(236, 253, 245, 0.95), rgba(255, 255, 255, 0.92));
}

.npn-en-theme-mint .npn-en-badge {
	background: linear-gradient(135deg, #34d399, #6ee7b7);
	color: #064e3b;
}

.npn-en-theme-mint .npn-en-title a {
	color: #065f46;
}

.npn-en-theme-peach .npn-en-toast {
	border-left: 4px solid #fdba74;
	background: linear-gradient(135deg, rgba(255, 247, 237, 0.95), rgba(255, 255, 255, 0.92));
}

.npn-en-theme-peach .npn-en-badge {
	background: linear-gradient(135deg, #fb923c, #fdba74);
	color: #fff;
}

.npn-en-theme-peach .npn-en-title a {
	color: #9a3412;
}

.npn-en-theme-sky .npn-en-toast {
	border-left: 4px solid #7dd3fc;
	background: linear-gradient(135deg, rgba(240, 249, 255, 0.95), rgba(255, 255, 255, 0.92));
}

.npn-en-theme-sky .npn-en-badge {
	background: linear-gradient(135deg, #38bdf8, #7dd3fc);
	color: #0c4a6e;
}

.npn-en-theme-sky .npn-en-title a {
	color: #075985;
}

.npn-en-theme-rose .npn-en-toast {
	border-left: 4px solid #fda4af;
	background: linear-gradient(135deg, rgba(255, 241, 242, 0.95), rgba(255, 255, 255, 0.92));
}

.npn-en-theme-rose .npn-en-badge {
	background: linear-gradient(135deg, #fb7185, #fda4af);
	color: #fff;
}

.npn-en-theme-rose .npn-en-title a {
	color: #9f1239;
}

/* Thumbnail */
.npn-en-thumb {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 12px;
	overflow: hidden;
	background: #f1f5f9;
}

.npn-en-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Content */
.npn-en-content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.npn-en-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 3px 8px;
	border-radius: 999px;
	width: fit-content;
	text-transform: uppercase;
}

.npn-en-badge svg {
	width: 12px;
	height: 12px;
}

.npn-en-title {
	margin: 0;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.35;
}

.npn-en-title a {
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.npn-en-title a:hover {
	opacity: 0.8;
	text-decoration: underline;
}

.npn-en-excerpt {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: #64748b;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.npn-en-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 2px;
}

.npn-en-readmore {
	font-size: 12.5px;
	font-weight: 500;
	color: #64748b;
	text-decoration: none;
	transition: color 0.2s ease;
}

.npn-en-readmore:hover {
	color: #334155;
}

/* Close button */
.npn-en-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 24px;
	height: 24px;
	border: none;
	background: transparent;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #94a3b8;
	transition: background 0.2s ease, color 0.2s ease;
	padding: 0;
}

.npn-en-close:hover {
	background: rgba(0, 0, 0, 0.06);
	color: #475569;
}

.npn-en-close svg {
	width: 14px;
	height: 14px;
}

/* Progress bar */
.npn-en-progress {
	position: absolute;
	bottom: 0;
	left: 0;
	height: 3px;
	border-radius: 0 0 0 16px;
	width: 100%;
	transform-origin: left;
	animation: npn-en-progress linear forwards;
}

.npn-en-theme-lavender .npn-en-progress { background: #a78bfa; }
.npn-en-theme-mint .npn-en-progress { background: #34d399; }
.npn-en-theme-peach .npn-en-progress { background: #fb923c; }
.npn-en-theme-sky .npn-en-progress { background: #38bdf8; }
.npn-en-theme-rose .npn-en-progress { background: #fb7185; }

@keyframes npn-en-progress {
	from { transform: scaleX(1); }
	to { transform: scaleX(0); }
}

/* Responsive */
@media (max-width: 480px) {
	#npn-en-container {
		max-width: calc(100% - 24px);
		width: calc(100% - 24px);
	}

	#npn-en-container.npn-en-pos-top-right,
	#npn-en-container.npn-en-pos-top-left {
		top: 12px;
		left: 12px;
		right: 12px;
		align-items: stretch;
	}

	#npn-en-container.npn-en-pos-bottom-right,
	#npn-en-container.npn-en-pos-bottom-left {
		bottom: 12px;
		left: 12px;
		right: 12px;
		align-items: stretch;
	}

	.npn-en-toast {
		padding: 14px;
	}

	.npn-en-thumb {
		width: 48px;
		height: 48px;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.npn-en-toast {
		transition: opacity 0.2s ease;
		transform: none;
	}

	.npn-en-toast.npn-en-show {
		transform: none;
	}

	.npn-en-progress {
		animation: none;
		display: none;
	}
}
