/* Listing Manager — homepage styles
   Structurally follows the reference site's class names. */

.lm-container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 15px;
}

/* Slider */
.slider-section {
	padding: 20px 0;
}

.slider-content {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	padding-bottom: 8px;
}

.slider-app-wrapper {
	flex: 0 0 auto;
	width: 260px;
	text-decoration: none;
	color: inherit;
}

.single-slider-app-wrapper {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 6px rgba( 0, 0, 0, 0.1 );
	background: #fff;
}

.app-feature-img {
	width: 100%;
	height: 140px;
	background: #eee;
	overflow: hidden;
}

.app-feature-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.app-content {
	padding: 10px 12px;
}

.app-logo-name {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.app-logo img {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	object-fit: cover;
	flex-shrink: 0;
}

.slider-app-wrapper .app-name {
	font-size: 14px;
	font-weight: 600;
	margin: 0;
	color: #1a1a1a;
}

/* Editor's Choice + category rows share this card grid */
.editor-section,
.latest-game-section {
	padding: 24px 0;
}

.editor-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.editor-heading h2 {
	font-size: 19px;
	margin: 0;
}

.click-icon-home {
	color: #046ed0;
	text-decoration: none;
	font-size: 20px;
	line-height: 1;
}

.editor-app-display.grid-home {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
	gap: 10px;
}

.app-container.recommended-app-blocks {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.08 );
	text-decoration: none;
	color: inherit;
}

.app-container.recommended-app-blocks:hover {
	box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.12 );
}

.left-icon img {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	object-fit: cover;
	flex-shrink: 0;
}

.right-content {
	min-width: 0; /* allow text truncation inside a flex child */
}

.app-name-homepage {
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media ( max-width: 600px ) {
	/* Slider: 2-up, matching reference proportions */
	.slider-app-wrapper {
		width: 47%;
	}
	.app-feature-img {
		height: 110px;
	}

	/* Card grid: switch from horizontal (icon left, name right) to
	   stacked (icon top, name below, centered) -- this is what actually
	   lets 4 cards fit per row on a phone, matching the reference site's
	   mobile density. The desktop horizontal layout doesn't compress
	   this tightly no matter how small you shrink it. */
	.editor-app-display.grid-home {
		grid-template-columns: repeat( 4, 1fr );
		gap: 8px;
	}

	.app-container.recommended-app-blocks {
		flex-direction: column;
		text-align: center;
		padding: 8px 4px;
		gap: 6px;
	}

	.left-icon img {
		width: 44px;
		height: 44px;
	}

	.app-name-homepage {
		font-size: 11px;
		white-space: normal;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		line-height: 1.3;
	}

	.editor-heading h2 {
		font-size: 16px;
	}
}

/* GeneratePress's default mobile menu toggle is unstyled out of the box
   -- this gives it the same thin-line look as the reference site's
   hamburger icon instead of a plain grey box. */
@media ( max-width: 768px ) {
	.menu-toggle {
		background: transparent !important;
		border: none;
		padding: 8px;
	}
	.menu-toggle .gp-icon.icon-menu-bars svg {
		width: 22px;
		height: 22px;
		color: #046ed0;
	}
}

/* Categories index page (/categories/) */
.lm-page-title {
	font-size: 22px;
	margin: 0;
}

.lm-category-count {
	display: block;
	font-size: 12px;
	color: #6b6b6b;
	margin-top: 2px;
}

.lm-category-grid .app-container.recommended-app-blocks {
	padding: 14px 16px;
}

@media ( max-width: 600px ) {
	.lm-category-grid.editor-app-display.grid-home {
		grid-template-columns: repeat( 2, 1fr );
	}
	.lm-category-grid .app-container.recommended-app-blocks {
		padding: 12px 8px;
	}
}
