/**
 * UniteElements "What's New" Slide-Out Drawer & Header Bell Stylesheet
 *
 * Implements AppSumo-style layout, animated header bell with radar pulse,
 * frosted glassmorphism, gated member locks, and responsive mobile styling.
 *
 * @package UniteElements_Core
 * @author Jyotirmay Ray <https://jyotirmayray.in/>
 */

/* ==========================================================================
   1. Header Bell Icon & Animations
   ========================================================================== */
.ue-notif-bell-btn {
	position: relative;
	overflow: visible;
}

.ue-notif-bell-btn .ue-bell-svg {
	width: 19px;
	height: 19px;
	stroke: currentColor;
	fill: none;
	transition: transform 0.25s ease;
	transform-origin: top center;
}

.ue-notif-bell-btn:hover .ue-bell-svg,
.ue-notif-bell-btn.has-unread:hover .ue-bell-svg {
	animation: ueBellChime 0.8s ease;
}

@keyframes ueBellChime {
	0%   { transform: rotate(0); }
	15%  { transform: rotate(14deg); }
	30%  { transform: rotate(-14deg); }
	45%  { transform: rotate(10deg); }
	60%  { transform: rotate(-8deg); }
	75%  { transform: rotate(4deg); }
	100% { transform: rotate(0); }
}

/* Pulsing radar dot on bell icon */
.ue-bell-pulse {
	position: absolute;
	top: 7px;
	right: 7px;
	width: 8px;
	height: 8px;
	background: #EF4444;
	border-radius: 50%;
	border: 1.5px solid #FFFFFF;
	box-shadow: 0 0 0 rgba(239, 68, 68, 0.4);
	animation: ueRadarPulse 2s infinite;
	pointer-events: none;
}

@keyframes ueRadarPulse {
	0% {
		box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
	}
	70% {
		box-shadow: 0 0 0 7px rgba(239, 68, 68, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
	}
}

.ue-bell-count {
	position: absolute;
	top: -2px;
	right: -2px;
	background: #EF4444;
	color: #FFFFFF;
	font-size: 9.5px;
	font-weight: 800;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid #FFFFFF;
	box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
	pointer-events: none;
}

/* ==========================================================================
   2. Slide-Out Drawer & Overlay
   ========================================================================== */
.ue-notifications-drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: 440px;
	max-width: 100vw;
	height: 100vh;
	background: #FFFFFF;
	z-index: 999999;
	box-shadow: -10px 0 40px rgba(15, 23, 42, 0.15);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.ue-notifications-drawer.is-active {
	transform: translateX(0);
}

/* Overlay */
#ue-notifications-drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 999998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

#ue-notifications-drawer-overlay.is-active {
	opacity: 1;
	visibility: visible;
}

/* ==========================================================================
   3. Drawer Header
   ========================================================================== */
.ue-notif-drawer-header {
	padding: 20px 22px 16px;
	border-bottom: 1px solid #F1F5F9;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #FFFFFF;
	flex-shrink: 0;
}

.ue-notif-header-title-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ue-notif-header-icon-box {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.2) 100%);
	color: #2563EB;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ue-notif-drawer-title {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
	color: #0F172A;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.ue-notif-subtitle {
	font-size: 12px;
	color: #64748B;
	font-weight: 500;
	display: block;
	margin-top: 2px;
}

.ue-notif-header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ue-notif-mark-all-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	border: 1px solid #E2E8F0;
	background: #F8FAFC;
	color: #475569;
	font-size: 11.5px;
	font-weight: 600;
	padding: 5px 10px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s;
}

.ue-notif-mark-all-btn:hover {
	background: #F1F5F9;
	color: #1E293B;
	border-color: #CBD5E1;
}

.ue-notif-close-btn {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	border: none;
	background: transparent;
	color: #64748B;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.ue-notif-close-btn:hover {
	background: #F1F5F9;
	color: #0F172A;
}

/* ==========================================================================
   4. Filter Pills Bar
   ========================================================================== */
.ue-notif-filter-bar {
	display: flex;
	gap: 8px;
	padding: 12px 22px;
	background: #F8FAFC;
	border-bottom: 1px solid #E2E8F0;
	overflow-x: auto;
	scrollbar-width: none;
	flex-shrink: 0;
}

.ue-notif-filter-bar::-webkit-scrollbar {
	display: none;
}

.ue-notif-filter-pill {
	border: 1px solid #E2E8F0;
	background: #FFFFFF;
	color: #64748B;
	font-size: 12px;
	font-weight: 700;
	padding: 6px 13px;
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s;
}

.ue-notif-filter-pill:hover {
	border-color: #CBD5E1;
	color: #0F172A;
}

.ue-notif-filter-pill.is-active {
	background: #2563EB;
	border-color: #2563EB;
	color: #FFFFFF;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* ==========================================================================
   5. Scrollable Feed Body & AppSumo-Style Cards
   ========================================================================== */
.ue-notif-drawer-body {
	flex: 1;
	overflow-y: auto;
	padding: 20px 22px;
	background: #F8FAFC;
	overscroll-behavior: contain;
}

.ue-notif-card {
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 18px;
	padding: 20px;
	margin-bottom: 18px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
	position: relative;
	overflow: hidden;
}

.ue-notif-card:hover {
	box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.08);
	border-color: #CBD5E1;
}

.ue-notif-card.is-unread::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 4px;
	background: #2563EB;
}

/* Card Top Row: Date & Badges */
.ue-notif-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	flex-wrap: wrap;
	gap: 8px;
}

.ue-notif-card-date {
	font-size: 12px;
	color: #94A3B8;
	font-weight: 600;
}

.ue-notif-card-tags {
	display: flex;
	align-items: center;
	gap: 6px;
}

/* AppSumo-style "NEW & IMPROVED!" Vibrant Badges */
.ue-notif-badge {
	font-size: 10.5px;
	font-weight: 800;
	padding: 3px 8px;
	border-radius: 6px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	line-height: 1;
}

.ue-notif-badge--emerald {
	background: #DCFCE7;
	color: #15803D;
	border: 1px solid #BBF7D0;
}

.ue-notif-badge--blue {
	background: #DBEAFE;
	color: #1D4ED8;
	border: 1px solid #BFDBFE;
}

.ue-notif-badge--purple {
	background: #F3E8FF;
	color: #7E22CE;
	border: 1px solid #E9D5FF;
}

.ue-notif-badge--amber {
	background: #FEF3C7;
	color: #B45309;
	border: 1px solid #FDE68A;
}

.ue-notif-badge--rose {
	background: #FFE4E6;
	color: #BE123C;
	border: 1px solid #FECDD3;
}

.ue-notif-ver-pill {
	font-size: 10.5px;
	font-weight: 700;
	padding: 3px 7px;
	border-radius: 6px;
	background: #F1F5F9;
	color: #475569;
	font-family: monospace;
}

/* Card Banner Graphic */
.ue-notif-card-banner {
	width: 100%;
	height: 160px;
	border-radius: 12px;
	margin-bottom: 14px;
	overflow: hidden;
	background: linear-gradient(135deg, #10B981 0%, #059669 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #FFFFFF;
	position: relative;
}

.ue-notif-card-banner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ue-notif-banner-badge-box {
	background: #FFFFFF;
	color: #0F172A;
	border-radius: 999px;
	padding: 8px 18px;
	font-weight: 900;
	font-size: 16px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	display: flex;
	align-items: center;
	gap: 8px;
	letter-spacing: -0.01em;
}

/* Card Headline */
.ue-notif-card-title {
	margin: 0 0 8px;
	font-size: 16.5px;
	font-weight: 800;
	color: #0F172A;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

/* Social Proof Banner */
.ue-notif-social-proof {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #FFF7ED;
	border: 1px solid #FFEDD5;
	color: #C2410C;
	font-size: 11.5px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 8px;
	margin-bottom: 12px;
}

/* Card Excerpt */
.ue-notif-card-excerpt {
	font-size: 13.5px;
	color: #475569;
	line-height: 1.55;
	margin: 0 0 14px;
}

/* Bullet list (AppSumo style) */
.ue-notif-bullet-list {
	list-style: none;
	padding: 0;
	margin: 0 0 14px;
}

.ue-notif-bullet-list li {
	position: relative;
	padding-left: 18px;
	font-size: 13px;
	color: #334155;
	line-height: 1.55;
	margin-bottom: 8px;
}

.ue-notif-bullet-list li::before {
	content: '•';
	position: absolute;
	left: 4px;
	top: -1px;
	color: #2563EB;
	font-size: 16px;
	font-weight: 900;
}

.ue-notif-bullet-list li strong {
	color: #0F172A;
	font-weight: 700;
}

.ue-notif-p {
	font-size: 13px;
	color: #475569;
	line-height: 1.55;
	margin: 0 0 8px;
}

/* ==========================================================================
   6. Linked WooCommerce Product Snippet Card
   ========================================================================== */
.ue-notif-product-box {
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 12px;
	padding: 12px 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 12px 0 16px;
}

.ue-notif-prod-info {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ue-notif-prod-thumb {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	object-fit: cover;
	background: #E2E8F0;
	flex-shrink: 0;
}

.ue-notif-prod-title {
	font-size: 13px;
	font-weight: 700;
	color: #0F172A;
	text-decoration: none;
	line-height: 1.3;
	display: block;
}

.ue-notif-prod-title:hover {
	color: #2563EB;
}

.ue-notif-prod-price {
	font-size: 12px;
	color: #10B981;
	font-weight: 800;
	margin-top: 2px;
}

.ue-notif-owner-tag {
	font-size: 11px;
	font-weight: 700;
	color: #059669;
	background: #DCFCE7;
	padding: 3px 8px;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

/* CTA Button */
.ue-notif-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	padding: 10px 16px;
	background: #2563EB;
	color: #FFFFFF !important;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s, transform 0.15s;
	border: none;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.ue-notif-cta-btn:hover {
	background: #1D4ED8;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ==========================================================================
   7. Gated Members-Only Frosted Barrier (Teaser for Guests)
   ========================================================================== */
.ue-notif-gated-barrier {
	position: relative;
	margin-top: 10px;
	padding: 24px 18px 20px;
	background: linear-gradient(180deg, rgba(248, 250, 252, 0.65) 0%, #FFFFFF 100%);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(226, 232, 240, 0.9);
	border-radius: 14px;
	text-align: center;
	box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.06);
}

.ue-notif-lock-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #F3E8FF;
	color: #7C3AED;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
}

.ue-notif-gate-title {
	font-size: 14px;
	font-weight: 800;
	color: #0F172A;
	margin: 0 0 6px;
}

.ue-notif-gate-desc {
	font-size: 12.5px;
	color: #64748B;
	margin: 0 0 16px;
	line-height: 1.45;
}

.ue-notif-gate-buttons {
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
}

.ue-notif-gate-btn-login {
	padding: 8px 18px;
	background: #2563EB;
	color: #FFFFFF !important;
	border-radius: 8px;
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s;
}

.ue-notif-gate-btn-login:hover {
	background: #1D4ED8;
}

.ue-notif-gate-btn-register {
	padding: 8px 18px;
	background: #FFFFFF;
	color: #334155 !important;
	border: 1px solid #CBD5E1;
	border-radius: 8px;
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.2s;
}

.ue-notif-gate-btn-register:hover {
	background: #F8FAFC;
	border-color: #94A3B8;
}

/* ==========================================================================
   8. Skeletons & Empty State
   ========================================================================== */
.ue-notif-skeleton-feed {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ue-notif-skeleton-card {
	height: 180px;
	border-radius: 16px;
	background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
	background-size: 200% 100%;
	animation: ueShimmer 1.5s infinite;
}

@keyframes ueShimmer {
	0%   { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.ue-notif-empty-state {
	text-align: center;
	padding: 60px 20px;
	color: #64748B;
}

.ue-notif-empty-icon {
	font-size: 40px;
	margin-bottom: 12px;
}

.ue-notif-empty-title {
	font-size: 16px;
	font-weight: 800;
	color: #0F172A;
	margin: 0 0 6px;
}

.ue-notif-empty-desc {
	font-size: 13px;
	color: #94A3B8;
	margin: 0;
	line-height: 1.5;
}

/* ==========================================================================
   9. Drawer Footer Trust Bar
   ========================================================================== */
.ue-notif-drawer-footer {
	padding: 14px 22px;
	border-top: 1px solid #F1F5F9;
	background: #FFFFFF;
	flex-shrink: 0;
}

.ue-notif-footer-trust {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 11px;
	color: #64748B;
	font-weight: 500;
}

/* ==========================================================================
   10. Mobile Responsive (<640px)
   ========================================================================== */
@media (max-width: 640px) {
	.ue-notifications-drawer {
		width: 100vw;
	}

	.ue-notif-drawer-header {
		padding: 16px 18px 14px;
	}

	.ue-notif-drawer-body {
		padding: 16px 18px;
	}

	.ue-notif-filter-bar {
		padding: 10px 18px;
	}

	.ue-notif-card {
		padding: 16px;
		border-radius: 16px;
	}

	.ue-notif-card-title {
		font-size: 15px;
	}
}
