/* ============================================================
   LIBERTATEM HUB — Page d'accueil post-connexion
   Utilise les variables déjà définies dans le thème :
   --lib-olive, --lib-cream, --lib-brown
   Fallbacks fournis au cas où le hub soit chargé hors thème.
   ============================================================ */

.lib-hub {
	--hub-olive: var(--lib-olive, #3a4e12);
	--hub-olive-light: var(--lib-olive-light, #8aae2e);
	--hub-cream: var(--lib-cream, #faf7f0);
	--hub-brown: var(--lib-brown, #6b4a2f);

	max-width: 960px;
	margin: 0 auto;
	padding: 2.5rem 1.25rem 3rem;
	font-family: inherit;
}

.lib-hub__header {
	text-align: center;
	margin-bottom: 2.5rem;
}

.lib-hub__greeting {
	font-size: 1rem;
	color: var(--hub-brown);
	margin: 0 0 0.25rem;
}

.lib-hub__title {
	font-size: 1.9rem;
	color: var(--hub-olive);
	margin: 0;
	font-weight: 700;
}

.lib-hub__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.25rem;
}

.lib-hub__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
	background: var(--hub-cream);
	border: 1px solid rgba(58, 78, 18, 0.15);
	border-radius: 14px;
	padding: 1.5rem;
	text-decoration: none;
	color: var(--hub-olive);
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.lib-hub__card:hover,
.lib-hub__card:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(58, 78, 18, 0.15);
	border-color: var(--hub-olive-light);
	outline: none;
}

.lib-hub__card-icon {
	font-size: 28px;
	width: 28px;
	height: 28px;
	color: var(--hub-olive-light);
}

.lib-hub__card-label {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--hub-olive);
}

.lib-hub__card-desc {
	font-size: 0.875rem;
	color: var(--hub-brown);
	line-height: 1.4;
}

.lib-hub__empty {
	text-align: center;
	color: var(--hub-brown);
	background: var(--hub-cream);
	border-radius: 12px;
	padding: 2rem;
}

.lib-hub__footer {
	text-align: center;
	margin-top: 2.5rem;
}

.lib-hub__logout {
	font-size: 0.85rem;
	color: var(--hub-brown);
	text-decoration: underline;
}

.lib-hub--guest {
	text-align: center;
	padding: 3rem 1rem;
}

.lib-hub__login-btn {
	display: inline-block;
	margin-top: 1rem;
	background: var(--hub-olive);
	color: #fff;
	padding: 0.75rem 1.75rem;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
}

.lib-hub__login-btn:hover {
	background: var(--hub-olive-light);
}

@media (max-width: 600px) {
	.lib-hub__grid {
		grid-template-columns: 1fr;
	}
}
