/**
 * Danz Studio — notifications bell + dropdown.
 */

#wp-admin-bar-danz-bell .ab-item { padding: 0 10px !important; }
.danz-bell {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.danz-bell__icon {
	font-size: 16px;
	line-height: 1;
	display: inline-block;
}
.danz-bell__badge {
	position: absolute;
	top: -2px;
	right: -6px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: #dc2626;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
	box-sizing: border-box;
}

.danz-bell-dropdown {
	position: fixed;
	top: 40px;
	right: 8px;
	width: min( 380px, calc( 100vw - 16px ) );
	max-height: 70vh;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	box-shadow: 0 12px 40px rgba( 15, 23, 42, 0.22 );
	z-index: 100000;
	display: flex;
	flex-direction: column;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #111827;
}
.danz-bell-dropdown[hidden] { display: none !important; }

.danz-bell-dropdown__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	border-bottom: 1px solid #e5e7eb;
	font-size: 13px;
}
.danz-bell-dropdown__mark-all {
	background: transparent;
	border: 0;
	cursor: pointer;
	color: #2563eb;
	font-size: 12px;
	padding: 2px 6px;
}
.danz-bell-dropdown__mark-all:hover { text-decoration: underline; }

.danz-bell-dropdown__list {
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	flex: 1 1 auto;
	min-height: 80px;
}
.danz-bell-item {
	border-bottom: 1px solid #f3f4f6;
}
.danz-bell-item:last-child { border-bottom: 0; }
.danz-bell-item.is-unread { background: #eff6ff; }
.danz-bell-item__link {
	display: block;
	padding: 10px 14px;
	text-decoration: none;
	color: inherit;
}
.danz-bell-item__link:hover { background: #f9fafb; }
.danz-bell-item__title {
	display: block;
	font-weight: 600;
	font-size: 13px;
	line-height: 1.3;
	margin-bottom: 2px;
}
.danz-bell-item__body {
	display: block;
	font-size: 12px;
	color: #4b5563;
	line-height: 1.4;
	margin-bottom: 4px;
}
.danz-bell-item__meta {
	display: block;
	font-size: 11px;
	color: #9ca3af;
}

.danz-bell-dropdown__empty,
.danz-bell-dropdown__loading,
.danz-bell-dropdown__error {
	padding: 24px 14px;
	text-align: center;
	font-size: 13px;
	color: #6b7280;
}
.danz-bell-dropdown__error { color: #b91c1c; }

.danz-bell-dropdown__footer {
	padding: 8px 14px;
	border-top: 1px solid #e5e7eb;
	text-align: center;
	font-size: 12px;
}
.danz-bell-dropdown__footer a {
	color: #2563eb;
	text-decoration: none;
}
.danz-bell-dropdown__footer a:hover { text-decoration: underline; }

@media ( prefers-color-scheme: dark ) {
	.danz-bell-dropdown {
		background: #1f2937;
		color: #e5e7eb;
		border-color: #374151;
	}
	.danz-bell-dropdown__header,
	.danz-bell-dropdown__footer {
		border-color: #374151;
	}
	.danz-bell-item { border-color: #374151; }
	.danz-bell-item.is-unread { background: #1e293b; }
	.danz-bell-item__body { color: #9ca3af; }
	.danz-bell-item__meta { color: #6b7280; }
	.danz-bell-item__link:hover { background: #273243; }
}
