/**
 * Notification Bar Styles
 * Mobile responsive notification bar with bell icon
 */

/* Main notification bar container */
.notification-bar {
	position: relative;
	display: inline-block;
}

/* Position variants - now just for dropdown positioning */
.notification-bar-top-left .notification-dropdown,
.notification-bar-bottom-left .notification-dropdown {
	left: 0;
}

.notification-bar-top-right .notification-dropdown,
.notification-bar-bottom-right .notification-dropdown {
	right: 0;
}

/* Bell icon container */
.notification-bell {
	position: relative;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	background: #21252a;
	border-radius: 8px;
	padding: 8px;
}

.notification-bell:hover {
	transform: scale(1.05);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
	background: #2a2f36;
}

.notification-bell svg {
	width: 24px;
	height: 24px;
	color: #c7b180;
	transition: color 0.3s ease;
}

.notification-bell:hover svg {
	color: #d4c4a0;
}

/* Notification count badge */
.notification-count {
	position: absolute;
	top: -5px;
	right: -5px;
	background: #c7b180;
	color: #21252a;
	border-radius: 50%;
	width: 20px;
	height: 20px;
	font-size: 12px;
	font-weight: 500;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	padding: 0 4px;
	box-sizing: border-box;
	border: 2px solid #21252a;
	animation: pulse 2s infinite;
}

.notification-count:empty {
	display: none;
}

@keyframes pulse {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.1);
	}
	100% {
		transform: scale(1);
	}
}

/* Dropdown container */
.notification-dropdown {
	position: absolute;
	width: 350px;
	max-height: 500px;
	background: #21252a;
	border-radius: 12px;
	box-shadow: 0 10px 30px #191d21;
	border: 1px solid #3d444b;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	overflow: hidden;
	z-index: 1000;
}

/* Position dropdown based on bell position */
.notification-bar-top-left .notification-dropdown,
.notification-bar-bottom-left .notification-dropdown {
	left: 0;
}

.notification-bar-top-right .notification-dropdown,
.notification-bar-bottom-right .notification-dropdown {
	right: 0;
}

.notification-bar-top-left .notification-dropdown,
.notification-bar-top-right .notification-dropdown {
	top: 40px;
}

.notification-bar-bottom-left .notification-dropdown,
.notification-bar-bottom-right .notification-dropdown {
	top: -500px; /* Show above the bell */
}

/* Show dropdown */
.notification-dropdown.show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Dropdown header */
.notification-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	border-bottom: 1px solid #3d444b;
	background: #2a2f36;
}

.notification-header h3 {
	margin: 0;
	font-size: 16px;
}

/* Notification actions */
.notification-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Shared button styles */
.notification-action-btn,
.notification-close {
	background: none;
	border: none;
	font-size: 14px;
	color: #bcbcbc;
	cursor: pointer;
	padding: 4px 8px;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.notification-action-btn:hover,
.notification-close:hover {
	background: #3d444b;
	color: #d4c4a0;
}

/* Notification list */
.notification-list {
	max-height: 400px;
	overflow-y: auto;
}

.notification-list::-webkit-scrollbar {
	width: 6px;
}

.notification-list::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.notification-list::-webkit-scrollbar-thumb {
	background: #c1c1c1;
	border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
	background: #a8a8a8;
}

/* Individual notification item */
.notification-item {
	padding: 17px 20px;
	border-bottom: 1px solid #3d444b;
	transition: background-color 0.2s ease;
	position: relative;
}

.notification-item:last-child {
	border-bottom: none;
}

.notification-item:hover {
	background-color: #2a2f36;
}

.notification-item.has-link {
	cursor: pointer;
}

/* Read/Unread states */
.notification-item.unread {
	background-color: rgba(199, 177, 128, 0.05);
	border-left: 3px solid #c7b180;
}

.notification-item.read {
	opacity: 1;
}
.notification-item.read .notification-title {
	color: #fff;
}

/* Unread indicator */
.notification-unread-indicator {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 8px;
	height: 8px;
	background: #c7b180;
	border-radius: 50%;
	animation: pulse 2s infinite;
}

/* Notification content */
.notification-content {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

/* Notification text */
.notification-text {
	flex: 1;
	min-width: 0;
}

.notification-title {
	font-size: 14px;
	font-weight: 600;
	color: #c7b180;
	margin: 0 0 4px 0;
	line-height: 1.4;
}

.notification-message {
	font-size: 13px;
	color: #a8a8a8;
	margin: 0;
	line-height: 1.4;
	word-wrap: break-word;
}

.notification-time {
	font-size: 11px;
	color: #888888;
	margin-top: 4px;
}

/* Loading state */
.notification-loading {
	padding: 20px;
	text-align: center;
	color: #a8a8a8;
	font-size: 14px;
}

/* Empty state */
.notification-empty {
	padding: 40px 20px;
	text-align: center;
	color: #a8a8a8;
}

.notification-empty svg {
	width: 48px;
	height: 48px;
	margin-bottom: 12px;
	opacity: 0.5;
	color: #888888;
}

.notification-empty p {
	margin: 0;
	font-size: 14px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
	.notification-bell {
		width: 45px;
		height: 45px;
	}

	.notification-bell svg {
		width: 22px;
		height: 22px;
	}

	.notification-dropdown {
		width: 300px;
		max-height: 400px;
	}

	.notification-bar-top-left .notification-dropdown,
	.notification-bar-top-right .notification-dropdown {
		top: 55px;
		transform: translate(-50%, 5px);
		left: auto;
		right: auto;
	}

	.notification-bar-bottom-left .notification-dropdown,
	.notification-bar-bottom-right .notification-dropdown {
		top: -400px; /* Show above the bell on mobile */
	}
}

@media (max-width: 480px) {
	.notification-dropdown {
		width: calc(100vw - 30px);
		max-width: 280px;
	}

	.notification-item {
		padding: 10px 16px;
	}

	.notification-header {
		padding: 12px 16px;
	}

	.notification-title {
		font-size: 13px;
	}

	.notification-message {
		font-size: 12px;
	}
}

/* Animation for new notifications */
@keyframes slideInRight {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

.notification-item.new {
	animation: slideInRight 0.3s ease;
}

/* Focus styles for accessibility */
.notification-bell:focus {
	outline: 2px solid #007cba;
	outline-offset: 2px;
}

.notification-close:focus {
	outline: 2px solid #007cba;
	outline-offset: 2px;
}

.notification-item:focus {
	outline: 2px solid #007cba;
	outline-offset: -2px;
}

@media (max-width: 330px) {
	.notification-bell {
		width: 35px;
		height: 35px;
		padding: 0;
	}
}
