/* POP360 Header User Widget Styles */

.pop360-header-user {
	display: inline-flex;
	align-items: center;
}

/* Niet ingelogd */
.pop360-header-user__logged-out {
	display: flex;
	align-items: center;
}

.pop360-header-user__link {
	text-decoration: none;
	transition: color 0.2s ease;
	font-weight: 500;
}

.pop360-header-user__separator {
	user-select: none;
}

/* Ingelogd */
.pop360-header-user__logged-in {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
}

.pop360-header-user__welcome {
	font-size: 14px;
	white-space: nowrap;
}

.pop360-header-user__welcome strong {
	font-weight: 600;
}

.pop360-header-user__trigger {
	display: flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	border-radius: 50px;
	transition: background-color 0.2s ease;
}

.pop360-header-user__trigger:hover {
	background-color: rgba(0, 0, 0, 0.05);
}

.pop360-header-user__avatar {
	object-fit: cover;
	display: block;
}

.pop360-header-user__name {
	font-weight: 500;
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pop360-header-user__arrow {
	transition: transform 0.2s ease;
	opacity: 0.6;
}

.pop360-header-user__trigger[aria-expanded="true"] .pop360-header-user__arrow {
	transform: rotate(180deg);
}

/* Dropdown */
.pop360-header-user__dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 180px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	z-index: 9999;
}

.pop360-header-user__dropdown.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.pop360-header-user__dropdown-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	text-decoration: none;
	transition: background-color 0.2s ease;
	font-weight: 500;
}

.pop360-header-user__dropdown-link svg {
	opacity: 0.7;
	flex-shrink: 0;
}

.pop360-header-user__dropdown-link--logout {
	border-top: 1px solid #e0e0e0;
}

/* ================================
   Notification Bell
   ================================ */
.pop360-notification-bell {
	position: relative;
	display: flex;
	align-items: center;
}

.pop360-notification-bell__trigger {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
	border-radius: 50%;
	transition: background-color 0.2s ease;
	color: #333;
}

.pop360-notification-bell__trigger:hover {
	background-color: rgba(0, 0, 0, 0.05);
}

.pop360-notification-bell__icon {
	display: block;
}

.pop360-notification-bell__badge {
	position: absolute;
	top: 0;
	right: 0;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	background: #dc2626;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	border-radius: 9px;
	pointer-events: none;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Bell dropdown */
.pop360-notification-bell__dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: 360px;
	max-height: 480px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	z-index: 10000;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.pop360-notification-bell__dropdown.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.pop360-notification-bell__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	border-bottom: 1px solid #f0f0f0;
	flex-shrink: 0;
}

.pop360-notification-bell__header-title {
	font-weight: 700;
	font-size: 15px;
	color: #111;
	font-family: var(--pop360-font);
}

.pop360-notification-bell__mark-all-read {
	background: none;
	border: none;
	color: var(--pop360-primary);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 4px;
	transition: background-color 0.15s ease;
	font-family: var(--pop360-font);
}

.pop360-notification-bell__mark-all-read:hover {
	background-color: rgba(59, 59, 224, 0.08);
}

.pop360-notification-bell__list {
	overflow-y: auto;
	flex: 1;
}

/* Category headers */
.pop360-notification-bell__category-title {
	padding: 8px 16px 4px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #9ca3af;
	font-family: var(--pop360-font);
}

/* Notification items */
.pop360-notification-bell__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 16px;
	cursor: pointer;
	transition: background-color 0.15s ease;
	text-decoration: none;
	color: inherit;
	border: none;
	background: none;
	width: 100%;
	text-align: left;
}

.pop360-notification-bell__item:hover {
	background-color: #f8f9fa;
}

.pop360-notification-bell__item-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #fff;
}

.pop360-notification-bell__item-icon--berichten {
	background: linear-gradient(135deg, var(--pop360-primary), #5b5bf0);
}

.pop360-notification-bell__item-icon--betalingen {
	background: linear-gradient(135deg, #059669, #10b981);
}

.pop360-notification-bell__item-icon--updates {
	background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.pop360-notification-bell__item-content {
	flex: 1;
	min-width: 0;
}

.pop360-notification-bell__item-title {
	font-weight: 600;
	font-size: 13px;
	color: #111;
	margin: 0 0 2px;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-family: var(--pop360-font);
}

.pop360-notification-bell__item-text {
	font-size: 12px;
	color: #6b7280;
	margin: 0;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-family: var(--pop360-font);
}

.pop360-notification-bell__item-time {
	font-size: 11px;
	color: #9ca3af;
	margin-top: 4px;
	font-family: var(--pop360-font);
}

/* Empty state */
.pop360-notification-bell__empty {
	padding: 32px 16px;
	text-align: center;
	color: #9ca3af;
	font-size: 13px;
	font-family: var(--pop360-font);
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Loading state */
.pop360-notification-bell__loading {
	padding: 24px 16px;
	text-align: center;
	color: #9ca3af;
	font-size: 13px;
	font-family: var(--pop360-font);
}

/* Responsive: Tablet */
@media (max-width: 1024px) {
	.pop360-header-user__name {
		display: none;
	}

	.pop360-notification-bell__dropdown {
		width: 320px;
		right: -20px;
	}
}

/* Responsive: Mobile */
@media (max-width: 767px) {
	.pop360-header-user__name,
	.pop360-header-user__welcome {
		display: none;
	}

	.pop360-notification-bell__dropdown {
		position: fixed;
		top: auto;
		right: 10px;
		left: 10px;
		width: auto;
		max-height: 70vh;
		bottom: 60px;
	}

	.pop360-header-user__dropdown {
		min-width: 160px;
	}

	.pop360-header-user__dropdown-link {
		padding: 14px 16px;
	}
}
