/**
 * Societăți Științifice — Frontend Styles (supplement)
 * Reuses dpe-* classes from module-programe-educationale.css for layout
 * (landing grid, category nav, sidebar, pagination).
 * This file adds LinkedIn-style list items and specific overrides.
 */

/* ==========================================================================
   CATEGORY NAV EMOJI
   ========================================================================== */

.dpe-category-nav__emoji {
	font-size: 20px;
	line-height: 1;
	flex-shrink: 0;
}

/* ==========================================================================
   SIDEBAR CHECKBOX COUNTER
   ========================================================================== */

.dpe-archive__checkbox-count {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 50%;
	background: #f0f2f5;
	color: #788291;
	font-size: 11px;
	font-weight: 600;
}

/* ==========================================================================
   LINKEDIN-STYLE LIST
   ========================================================================== */

.dss-list {
	display: flex;
	flex-direction: column;
}

.dss-list__loading,
.dss-list__empty,
.dss-list__error {
	text-align: center;
	padding: 60px 20px;
	color: #788291;
	font-size: 15px;
}

/* ==========================================================================
   LIST ITEM
   ========================================================================== */

.dss-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	margin-bottom: 10px;
	background: #fff;
	border: 1px solid #f0f2f5;
	border-radius: 12px;
	position: relative;
	transition: box-shadow 0.2s, border-color 0.2s;
}

.dss-item:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	border-color: #e2e8f0;
}

.dss-item:last-child {
	margin-bottom: 0;
}

/* Logo */
.dss-item__logo {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
}

.dss-item__logo-img {
	width: 56px;
	height: 56px;
	border-radius: 10px;
	object-fit: contain;
	background: #f8fafc;
	border: 1px solid #f0f2f5;
}

.dss-item__logo-circle {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dss-item__logo-circle span {
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Info block */
.dss-item__info {
	flex: 1;
	min-width: 0;
}

.dss-item__header {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 4px;
}

.dss-item__name {
	font-size: 15px;
	font-weight: 600;
	color: #1f222b;
	margin: 0;
	line-height: 1.4;
}

.dss-item__acronym {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 4px;
	background: #f0f2f5;
	color: #788291;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.3px;
}

/* Meta row */
.dss-item__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.dss-item__period {
	font-size: 13px;
	color: #788291;
}

/* Professor role row */
.dss-item__prof-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #f0f2f5;
}

.dss-item__prof-photo {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 2px solid #1d7bff;
	object-fit: cover;
	flex-shrink: 0;
}

.dss-item__prof-name {
	font-size: 12px;
	font-weight: 600;
	color: #1f222b;
	margin-right: 4px;
}

/* Website link */
.dss-item__website {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: rgba(124, 58, 237, 0.06);
	color: #7c3aed;
	font-size: 14px;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.dss-item__website:hover {
	background: rgba(124, 58, 237, 0.12);
	color: #5b21b6;
	text-decoration: none;
}

/* ==========================================================================
   BADGES
   ========================================================================== */

.dss-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.dss-badge--international {
	background: rgba(124, 58, 237, 0.1);
	color: #7c3aed;
}

.dss-badge--national {
	background: rgba(29, 123, 255, 0.1);
	color: #1d7bff;
}

.dss-badge--academie {
	background: rgba(217, 119, 6, 0.1);
	color: #d97706;
}

.dss-badge--founder {
	background: rgba(249, 115, 22, 0.1);
	color: #f97316;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 600px) {
	.dss-item {
		gap: 12px;
		padding: 14px 0;
	}

	.dss-item__logo {
		width: 44px;
		height: 44px;
	}

	.dss-item__logo-img {
		width: 44px;
		height: 44px;
	}

	.dss-item__logo-circle {
		width: 44px;
		height: 44px;
	}

	.dss-item__logo-circle span {
		font-size: 13px;
	}

	.dss-item__name {
		font-size: 14px;
	}

	.dss-item__website {
		width: 28px;
		height: 28px;
		font-size: 12px;
	}
}
