/* Changelog popup — fetches from UserJot widget API */

.changelog-trigger {
	position: relative;
	cursor: pointer;
}

.changelog-dot {
	position: absolute;
	top: 12px;
	right: -4px;
	width: 8px;
	height: 8px;
	background: #F44336;
	border-radius: 50%;
	display: none;
}
.affix .changelog-dot {
	top: 12px;
}

.changelog-popup {
	display: none;
	position: absolute;
	top: 46px;
	right: 0;
	width: 360px;
	max-height: 420px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 24px rgba(0,0,0,0.15);
	z-index: 9999;
	overflow: hidden;
	font-family: 'Montserrat', sans-serif;
}
.changelog-popup.open {
	display: block;
}

.changelog-header {
	padding: 16px 20px 12px;
	border-bottom: 1px solid #eee;
	font-size: 15px;
	font-weight: 700;
	color: #333;
}

.changelog-list {
	max-height: 300px;
	overflow-y: auto;
}

.changelog-item {
	padding: 14px 20px;
	border-bottom: 1px solid #f5f5f5;
	cursor: pointer;
	transition: background 0.15s;
}
.changelog-item:hover {
	background: #f8f9fa;
}
.changelog-item:last-child {
	border-bottom: none;
}

.changelog-item-date {
	font-size: 11px;
	color: #999;
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.changelog-item-title {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin-bottom: 4px;
	line-height: 1.3;
}

.changelog-item-preview {
	font-size: 13px;
	color: #666;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.changelog-tags {
	margin-top: 6px;
}

.changelog-tag {
	display: inline-block;
	font-size: 10px;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 3px;
	background: #e3f2fd;
	color: #2196F3;
	margin-right: 4px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.changelog-footer {
	padding: 12px 20px;
	border-top: 1px solid #eee;
	text-align: center;
}
.changelog-footer a {
	font-size: 13px;
	font-weight: 600;
	color: #2196F3;
	text-decoration: none;
}
.changelog-footer a:hover {
	text-decoration: underline;
}

.changelog-empty {
	padding: 40px 20px;
	text-align: center;
	color: #999;
	font-size: 14px;
}

.changelog-loading {
	padding: 40px 20px;
	text-align: center;
	color: #999;
	font-size: 14px;
}

/* Mobile: full-width popup below nav */
@media (max-width: 991px) {
	.changelog-popup {
		position: fixed;
		top: auto;
		left: 10px;
		right: 10px;
		bottom: 10px;
		width: auto;
		max-height: 70vh;
		border-radius: 12px;
	}
}
