/* Directory (config/directory.php). Follows the Explore v2 layout (explore2.css): jump chips, one row per
   group, a sideways row of cards with the shared .btn-cirle arrows. The section sits outside .top, so the
   card styles are its own. */

/* Same width as the Local section above it. */
.container .directory {
	width: 90%;
	margin: auto;
	padding-bottom: 32px;
	color: #fff;
}

/* Group buttons */
.directory-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 6px 0 18px;
}
.directory-chip {
	min-height: 40px;
	padding: 0 16px;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.06);
	color: #e8ecef;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.directory-chip:hover {
	border-color: #0ab39f;
	background: rgba(10, 179, 159, 0.14);
}
.directory-chip.is-on {
	background: #0ab39f;
	border-color: #0ab39f;
	color: #04201c;
	font-weight: 600;
}
.directory-chip:focus-visible,
.directory-more:focus-visible,
.directory-back:focus-visible,
.directory-card:focus-visible {
	outline: 2px solid #3fd6c1;
	outline-offset: 2px;
}

/* Rows */
.directory-row {
	margin-bottom: 8px;
}
.directory-row-head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin: 14px 0 8px;
}
.directory-row-title {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: #fff;
}
.directory-more {
	min-height: 44px;
	padding: 0 4px;
	border: 0;
	background: transparent;
	color: #0ab39f;
	font-size: 14px;
	cursor: pointer;
}
.directory-more:hover {
	color: #3fd6c1;
}
.directory-carousel {
	display: flex;
	gap: 12px;
	padding: 8px 2px 12px;
	overflow-x: auto;
	scrollbar-width: none;
}
.directory-carousel::-webkit-scrollbar {
	display: none;
}
.carousel-wrapper .directory-carousel .directory-card {
	margin: 0;
}
.directory-carousel-wrapper .btn-left,
.directory-carousel-wrapper .btn-right {
	top: calc(50% - 15px);
}

/* Cards */
.directory-card {
	flex: 0 0 200px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 8px;
	background: #1b2027;
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: #fff;
	text-decoration: none;
	transition: transform 200ms ease-in-out, box-shadow 200ms ease-in-out, border-color 200ms ease;
}
.directory-card:hover,
.directory-card:focus {
	color: #fff;
	text-decoration: none;
	border-color: rgba(10, 179, 159, 0.6);
}
@media (hover: hover) and (pointer: fine) {
	.directory-card:hover {
		transform: scale(1.04);
		box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
	}
}
@media (prefers-reduced-motion: reduce) {
	.directory-card {
		transition: none;
	}
	.directory-card:hover {
		transform: none;
	}
}
.directory-card-art {
	display: grid;
	place-items: center;
	height: 92px;
	background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.12) 0%, rgba(0, 0, 0, 0.25) 100%);
}
.directory-card-art img {
	max-width: 70%;
	max-height: 60px;
	object-fit: contain;
}
.directory-card-letter {
	font-size: 34px;
	font-weight: 700;
	line-height: 1;
	color: rgba(255, 255, 255, 0.92);
}
.directory-card-copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 9px 12px 11px;
	min-width: 0;
}
.directory-card-name {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.01em;
}
.directory-card-domain {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: #9aa4ae;
	font-size: 12px;
}
.directory-card-domain svg,
.directory-card-domain i {
	margin-left: 3px;
	font-size: 10px;
	opacity: 0.7;
}

/* Loading and messages */
.directory-skeleton-row {
	margin: 14px 0 22px;
}
.directory-skeleton-title {
	width: 180px;
	height: 18px;
	margin-bottom: 12px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.08);
}
.directory-skeleton-cards {
	display: flex;
	gap: 12px;
	overflow: hidden;
}
.directory-skeleton-cards span {
	flex: 0 0 200px;
	height: 150px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.06);
	animation: directory-pulse 1.4s ease-in-out infinite;
}
@keyframes directory-pulse {
	50% { opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
	.directory-skeleton-cards span { animation: none; }
}
.directory-note {
	color: #c9d0d6;
	font-size: 14px;
}
.directory-disclaimer {
	margin: 18px 0 0;
	color: #7d8790;
	font-size: 12px;
}

/* Group page (Show more): below the header (z 9999), like the Explore v2 category page */
.directory-page {
	position: fixed;
	inset: 0;
	z-index: 990;
	overflow-y: auto;
	padding-top: 90px;
	background: #0d0f12;
	color: #fff;
}
/* The carousel arrows and card menus underneath sit at z-index 999; hide them while the page covers them. */
body.directory-page-open .btn-cirle,
body.directory-page-open .option {
	visibility: hidden;
}
.directory-page-inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px 32px 64px;
	box-sizing: border-box;
}
.directory-crumbs {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #9aa4ae;
	font-size: 15px;
}
.directory-back {
	min-height: 44px;
	padding: 0 4px;
	border: 0;
	background: transparent;
	color: #0ab39f;
	font-size: 15px;
	cursor: pointer;
}
.directory-page-head {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 6px 0 14px;
}
.directory-page-title {
	margin: 0;
	font-size: 32px;
	font-weight: 700;
	color: #fff;
}
.directory-page-count {
	color: #9aa4ae;
	font-size: 14px;
}
.directory-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}
.directory-grid .directory-card {
	min-width: 0;
}

/* Phones */
@media (max-width: 576px) {
	.directory-chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
		scrollbar-width: none;
	}
	.directory-chips::-webkit-scrollbar {
		display: none;
	}
	.directory-row-title {
		font-size: 18px;
	}
	.directory-card {
		flex-basis: 150px;
	}
	.directory-card-art {
		height: 72px;
	}
	.directory-card-letter {
		font-size: 28px;
	}
	.directory-page {
		padding-top: 70px;
	}
	.directory-page-inner {
		padding: 12px 16px 48px;
	}
	.directory-page-title {
		font-size: 24px;
	}
	.directory-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
}
