/* Страница «Версии портала» (versions.php). Тёмная тема портала - класс .theme-dark на <html> */

/* Карточки с текущими версиями */
.ver-card-active { box-shadow: 0 0 0 2px rgba(13,110,253,.55); }
.ver-card-active .card-body { cursor: default; }

/* Фильтр по разделам */
.ver-filter .nav-link { padding: .35rem .8rem; font-size: 14px; }
.ver-filter-count { display: inline-block; min-width: 20px; margin-left: 4px; padding: 0 6px; border-radius: 10px; background: rgba(0,0,0,.08); font-size: 12px; text-align: center; }
.ver-filter .nav-link.active .ver-filter-count { background: rgba(255,255,255,.28); }

/* Лента версий */
.ver-timeline { position: relative; margin: 0; padding: 0; }
.ver-item { position: relative; padding: 0 0 16px 46px; }
.ver-item::before { content: ''; position: absolute; left: 15px; top: 34px; bottom: 0; width: 2px; background: rgba(0,0,0,.1); }
.ver-item:last-child { padding-bottom: 0; }
.ver-item:last-child::before { display: none; }
.ver-dot { position: absolute; left: 0; top: 10px; width: 32px; height: 32px; border-radius: 50%; background: #0d6efd; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; }

/* Метки версии и раздела */
.ver-version-badge { font-size: 14px; font-weight: 600; padding: .4em .7em; }
.ver-scope-badge { background: #e7f1ff; color: #0d6efd; font-weight: 500; font-size: 13px; padding: .45em .7em; }
.ver-scope-badge i { vertical-align: -1px; }

/* Список изменений */
.ver-list { padding-left: 20px; }
.ver-list li { margin-bottom: 4px; font-size: 14px; }
.ver-list li:last-child { margin-bottom: 0; }

.ver-empty-icon { font-size: 48px; opacity: .4; display: block; margin-bottom: 6px; }

/* Тёмная тема */
html.theme-dark .ver-item::before { background: rgba(255,255,255,.14); }
html.theme-dark .ver-filter-count { background: rgba(255,255,255,.12); }
html.theme-dark .ver-scope-badge { background: #1d3557; color: #9ec1ff; }

@media (max-width: 575px) {
	.ver-item { padding-left: 40px; }
}
