/**
 *
 * @package phpBB Extension - Changelog
 * @copyright (c) 2026 Fred Rimbert
 * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
 *
 */

.cl-panel {
	margin: 10px 0;
	border: 1px solid #c8d6e5;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	color: #1f2d3d;
	font-size: 13px;
	line-height: 1.55;
}

.cl-panel-head {
	padding: 12px 16px;
	background: linear-gradient(180deg, #123a63 0%, #0c2a4a 100%);
	color: #fff;
	font-weight: bold;
	font-size: 14px;
}

.cl-panel-head .icon {
	margin-right: 6px;
	opacity: .9;
}

.cl-panel-body {
	padding: 14px 16px 16px;
}

.cl-version {
	margin: 0 0 14px;
}

.cl-version:last-child {
	margin-bottom: 0;
}

.cl-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 4px 0;
	cursor: pointer;
	list-style: none;
}

.cl-head::-webkit-details-marker {
	display: none;
}

.cl-head::marker {
	content: "";
}

.cl-dot {
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	border: 4px solid #cfe0f1;
	border-radius: 50%;
	background: #0f5a9c;
	box-sizing: content-box;
}

.cl-num {
	font-size: 16px;
	font-weight: bold;
	color: #1f2d3d;
}

.cl-latest {
	padding: 2px 9px;
	border-radius: 10px;
	background: #0f5a9c;
	color: #fff;
	font-size: 10px;
	font-weight: bold;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.cl-date {
	color: #6b7a8c;
	font-size: 12px;
}

.cl-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-left: auto;
}

.cl-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 4px 2px 8px;
	border-radius: 10px;
	font-size: 10px;
	font-weight: bold;
	letter-spacing: .05em;
	text-transform: uppercase;
	white-space: nowrap;
}

.cl-count {
	margin-left: 6px;
	padding: 0 6px;
	border-radius: 8px;
	background: rgba(0, 0, 0, .08);
	letter-spacing: 0;
}

.cl-chevron::before {
	display: inline-block;
	content: "\f107";
	font-family: FontAwesome;
	color: #6b7a8c;
	font-size: 14px;
	transition: transform .15s;
}

.cl-version:not([open]) .cl-chevron::before {
	transform: rotate(-90deg);
}

.cl-cat,
.cl-text {
	margin: 8px 0 0 28px;
	padding: 10px 14px;
	border: 1px solid #d7e1ec;
	border-radius: 8px;
	background: #f6f9fc;
}

.cl-cat {
	border-left-width: 4px;
}

.cl-text {
	background: transparent;
	border-color: transparent;
	padding: 4px 14px;
}

.cl-pill {
	display: inline-flex;
	align-items: center;
	margin-bottom: 4px;
	padding: 2px 9px;
	border-radius: 10px;
	font-size: 10px;
	font-weight: bold;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.cl-ico::before {
	margin-right: 5px;
	font-family: FontAwesome;
	font-weight: normal;
}

.cl-cat ul,
.cl-cat ol {
	margin: 2px 0 0 18px;
	padding: 0;
}

.cl-cat li {
	margin: 4px 0;
}

.cl-added .cl-ico::before { content: "\f067"; }
.cl-changed .cl-ico::before { content: "\f021"; }
.cl-fixed .cl-ico::before { content: "\f0ad"; }
.cl-removed .cl-ico::before { content: "\f068"; }
.cl-security .cl-ico::before { content: "\f132"; }

.cl-badge.cl-added, .cl-added .cl-pill { background: #e3f3e6; color: #2e7d32; }
.cl-badge.cl-changed, .cl-changed .cl-pill { background: #e2edf8; color: #1565c0; }
.cl-badge.cl-fixed, .cl-fixed .cl-pill { background: #efe5f6; color: #7b1fa2; }
.cl-badge.cl-removed, .cl-removed .cl-pill { background: #fbe5e5; color: #c62828; }
.cl-badge.cl-security, .cl-security .cl-pill { background: #fff0df; color: #e65100; }

.cl-cat.cl-added { border-left-color: #2e7d32; }
.cl-cat.cl-changed { border-left-color: #1565c0; }
.cl-cat.cl-fixed { border-left-color: #7b1fa2; }
.cl-cat.cl-removed { border-left-color: #c62828; }
.cl-cat.cl-security { border-left-color: #e65100; }

.cl-added li::marker { color: #2e7d32; }
.cl-changed li::marker { color: #1565c0; }
.cl-fixed li::marker { color: #7b1fa2; }
.cl-removed li::marker { color: #c62828; }
.cl-security li::marker { color: #e65100; }

.cl-foot {
	margin: 14px 0 0 28px;
}

.cl-read {
	font-weight: bold;
}
