/* ============================================================
   HTML Sitemap — /css/sitemap.css
   ============================================================ */

.ht-sitemap {
	max-width: 100%;
}

/* ── Stats Bar ── */
.ht-sitemap-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 36px;
	padding: 20px 24px;
	background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
	border-radius: 12px;
	border: 1px solid rgba(0,0,0,0.05);
}
.ht-sitemap-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	min-width: 80px;
}
.ht-stat-num {
	font-size: 1.75em;
	font-weight: 700;
	color: var(--ht-accent, #3498db);
	line-height: 1.2;
}
.ht-stat-label {
	font-size: 0.82em;
	color: #777;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-top: 2px;
}

/* ── Section ── */
.ht-sitemap-section {
	margin-bottom: 40px;
}
.ht-sitemap-heading {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 1.3em;
	font-weight: 700;
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--ht-accent, #3498db);
	color: #222;
}
.ht-sitemap-heading svg {
	color: var(--ht-accent, #3498db);
	flex-shrink: 0;
}

/* ── Grid Layout ── */
.ht-sitemap-grid {
	display: grid;
	gap: 12px;
}
.ht-sitemap-grid-3 {
	grid-template-columns: repeat(3, 1fr);
}
.ht-sitemap-grid-4 {
	grid-template-columns: repeat(4, 1fr);
}

/* ── Generic Card ── */
.ht-sitemap-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: #fff;
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: 8px;
	text-decoration: none !important;
	color: #333;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.ht-sitemap-card:hover {
	border-color: var(--ht-accent, #3498db);
	box-shadow: 0 4px 12px rgba(52,152,219,0.10);
	transform: translateY(-2px);
	color: var(--ht-accent, #3498db);
}
.ht-sitemap-card-title {
	font-weight: 500;
	font-size: 0.92em;
}

/* ── Provider Card ── */
.ht-sitemap-provider-card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: 8px;
	text-decoration: none !important;
	color: #333;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.ht-sitemap-provider-card:hover {
	border-color: var(--ht-accent, #3498db);
	box-shadow: 0 4px 12px rgba(52,152,219,0.10);
	transform: translateY(-2px);
}
.ht-sitemap-provider-logo {
	width: 28px;
	height: 28px;
	object-fit: contain;
	border-radius: 4px;
	flex-shrink: 0;
}
.ht-sitemap-provider-name {
	flex: 1;
	font-weight: 500;
	font-size: 0.9em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ── Count Badge ── */
.ht-sitemap-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 22px;
	padding: 0 7px;
	background: #f0f4f8;
	color: #666;
	font-size: 0.78em;
	font-weight: 600;
	border-radius: 20px;
	flex-shrink: 0;
}

/* ── Alphabetical Navigation ── */
.ht-sitemap-alpha-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 20px;
	padding: 12px 16px;
	background: #f8fafc;
	border-radius: 8px;
}
.ht-sitemap-alpha-nav a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	background: #fff;
	border: 1px solid rgba(0,0,0,0.08);
	font-weight: 600;
	font-size: 0.85em;
	color: #555;
	text-decoration: none !important;
	transition: all 0.2s;
}
.ht-sitemap-alpha-nav a:hover {
	background: var(--ht-accent, #3498db);
	color: #fff;
	border-color: var(--ht-accent, #3498db);
}

/* ── Alpha Groups ── */
.ht-sitemap-alpha-groups {
	columns: 3;
	column-gap: 24px;
}
.ht-sitemap-alpha-group {
	break-inside: avoid;
	margin-bottom: 20px;
}
.ht-sitemap-letter {
	font-size: 1.1em;
	font-weight: 700;
	color: var(--ht-accent, #3498db);
	margin: 0 0 8px;
	padding-bottom: 4px;
	border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* ── List ── */
.ht-sitemap-list {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
}
.ht-sitemap-list li {
	padding: 0;
	margin: 0;
	line-height: 1.6;
}
.ht-sitemap-list li a {
	display: inline-block;
	font-size: 0.9em;
	color: #444;
	text-decoration: none;
	padding: 2px 0;
	border-bottom: 1px solid transparent;
	transition: color 0.2s, border-color 0.2s;
}
.ht-sitemap-list li a:hover {
	color: var(--ht-accent, #3498db);
	border-bottom-color: var(--ht-accent, #3498db);
}

/* ── Collapsible (details/summary) ── */
.ht-sitemap-details {
	margin-bottom: 8px;
	border: 1px solid rgba(0,0,0,0.06);
	border-radius: 8px;
	overflow: hidden;
}
.ht-sitemap-details[open] {
	border-color: rgba(0,0,0,0.10);
}
.ht-sitemap-summary {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	font-weight: 600;
	font-size: 0.95em;
	cursor: pointer;
	background: #fafbfc;
	transition: background 0.2s;
	list-style: none;
}
.ht-sitemap-summary::-webkit-details-marker {
	display: none;
}
.ht-sitemap-summary::before {
	content: '›';
	display: inline-block;
	font-size: 1.3em;
	font-weight: 700;
	color: var(--ht-accent, #3498db);
	transition: transform 0.2s;
	width: 12px;
	text-align: center;
}
.ht-sitemap-details[open] > .ht-sitemap-summary::before {
	transform: rotate(90deg);
}
.ht-sitemap-summary:hover {
	background: #f0f4f8;
}
.ht-sitemap-details .ht-sitemap-list {
	padding: 8px 16px 12px 36px;
}

/* ── Timestamp ── */
.ht-sitemap-updated {
	margin-top: 40px;
	padding-top: 16px;
	border-top: 1px solid rgba(0,0,0,0.06);
	font-size: 0.82em;
	color: #999;
	text-align: center;
}

/* ── Responsive ── */
@media (max-width: 992px) {
	.ht-sitemap-grid-4 {
		grid-template-columns: repeat(3, 1fr);
	}
	.ht-sitemap-alpha-groups {
		columns: 2;
	}
}
@media (max-width: 768px) {
	.ht-sitemap-grid-3,
	.ht-sitemap-grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}
	.ht-sitemap-stats {
		gap: 8px;
		padding: 16px;
	}
	.ht-stat-num {
		font-size: 1.4em;
	}
}
@media (max-width: 480px) {
	.ht-sitemap-grid-3,
	.ht-sitemap-grid-4 {
		grid-template-columns: 1fr;
	}
	.ht-sitemap-alpha-groups {
		columns: 1;
	}
	.ht-sitemap-stats {
		flex-direction: row;
		justify-content: space-around;
	}
}
