/**
 * Bloque «Nube» — explorador de archivos de NextCloud (front-end).
 *
 * Estilo sobrio alineado con la marca (dorado #ba9e60 para acentos). Lista
 * navegable de carpetas/archivos con migas de pan. Sin dependencias de JS.
 */

.lht-nube {
	--lht-nube-border: #e3e3e0;
	--lht-nube-accent: #ba9e60;
	--lht-nube-ink: #2b2b2b;
	--lht-nube-muted: #6b6b6b;
	margin: 1.5rem 0;
	font-size: 1rem;
}

/* Botón «Volver» */
.lht-nube__back {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	margin-bottom: .9rem;
	padding: .5rem .95rem;
	font-size: 1em;
	font-weight: 600;
	line-height: 1.2;
	color: var(--lht-nube-ink);
	text-decoration: none;
	background: #faf7f0;
	border: 1px solid var(--lht-nube-border);
	border-radius: 999px;
	transition: background-color .12s ease, border-color .12s ease;
}

.lht-nube__back:hover,
.lht-nube__back:focus {
	background: #f3ead6;
	border-color: var(--lht-nube-accent);
	color: var(--lht-nube-ink);
}

.lht-nube__back-icon {
	width: 20px;
	height: 20px;
	font-size: 20px;
	line-height: 20px;
	color: var(--lht-nube-accent);
}

/* Migas de pan */
.lht-nube__breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .35em;
	margin-bottom: .9rem;
	padding-bottom: .6rem;
	border-bottom: 1px solid var(--lht-nube-border);
	font-size: .9em;
}

.lht-nube__crumb {
	color: var(--lht-nube-muted);
	text-decoration: none;
}

.lht-nube__crumb:not(.is-current):hover,
.lht-nube__crumb:not(.is-current):focus {
	color: var(--lht-nube-accent);
	text-decoration: underline;
}

.lht-nube__crumb.is-current {
	color: var(--lht-nube-ink);
	font-weight: 600;
}

.lht-nube__sep {
	color: #c7c7c4;
}

/* Listado */
.lht-nube__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid var(--lht-nube-border);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.lht-nube__item + .lht-nube__item {
	border-top: 1px solid var(--lht-nube-border);
}

.lht-nube__link {
	display: flex;
	align-items: center;
	gap: .8rem;
	padding: .7rem .95rem;
	color: var(--lht-nube-ink);
	text-decoration: none;
	transition: background-color .12s ease;
}

.lht-nube__link:hover,
.lht-nube__link:focus {
	background: #faf7f0;
}

.lht-nube__icon {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	font-size: 24px;
	line-height: 24px;
	color: var(--lht-nube-muted);
}

.lht-nube__item.is-dir .lht-nube__icon {
	color: var(--lht-nube-accent);
}

.lht-nube__name {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lht-nube__item.is-dir .lht-nube__name {
	font-weight: 600;
}

.lht-nube__meta {
	flex: 0 0 auto;
	color: var(--lht-nube-muted);
	font-size: .82em;
	font-variant-numeric: tabular-nums;
}

.lht-nube__empty {
	margin: 0;
	padding: 1.2rem;
	color: var(--lht-nube-muted);
	font-style: italic;
	border: 1px dashed var(--lht-nube-border);
	border-radius: 8px;
	text-align: center;
}

@media (max-width: 480px) {
	.lht-nube__meta {
		display: none;
	}
}
