/* =================================================================
   Library Widget — Publicații / cărți
   ================================================================= */

.library-section {
	padding: 3.5rem 0;
}

.library-heading {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 2.5rem;
}

.library-eyebrow {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.8rem;
	font-weight: 600;
	color: #1f5489;
	margin-bottom: 0.65rem;
}

.library-title {
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(1.6rem, 2.5vw, 2.25rem);
	color: #163d63;
	margin: 0 0 0.75rem 0;
}

.library-intro {
	color: #6c757d;
	font-size: 1rem;
	margin: 0;
}

/* ── Grid ── */
.library-grid {
	max-width: 1140px;
	margin: 0 auto;
}

/* ── Card ── */
.library-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 0.75rem;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.library-card:hover,
.library-card:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
	border-color: rgba(31, 84, 137, 0.2);
	text-decoration: none;
	color: inherit;
}

/* ── Cover ── */
.library-card__cover {
	aspect-ratio: 3 / 4;
	background: #f5f5f5;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.library-card__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.library-card:hover .library-card__cover img {
	transform: scale(1.03);
}

.library-card__cover--placeholder {
	background: linear-gradient(135deg, #f0f0f0 0%, #e5e5e5 100%);
	color: rgba(0, 0, 0, 0.25);
	font-size: 2.2rem;
}

/* ── Body ── */
.library-card__body {
	flex: 1;
	padding: 0.9rem 1rem 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.library-card__title {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
	margin: 0;
	color: #163d63;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.library-card__meta {
	font-size: 0.78rem;
	color: #888;
	margin-top: auto;
}

/* ── Footer ── */
.library-footer {
	text-align: center;
	margin-top: 2rem;
}

.library-see-all {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 1.4rem;
	background: transparent;
	border: 1.5px solid #1f5489;
	color: #1f5489;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.library-see-all:hover,
.library-see-all:focus {
	background: #1f5489;
	color: #ffffff;
	text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 575.98px) {
	.library-section {
		padding: 2.5rem 0;
	}
}
