/* Browse All — grid + category filters (switchsrom-style) */

.ogh-browse-page #secondary,
.ogh-browse-page .widget-area {
	display: none !important;
}

.ogh-browse-page #primary,
.ogh-browse-page .content-area,
.ogh-browse-page .site-content,
.ogh-browse-page #content .ast-container {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
}

.ogh-browse-page .entry-header,
.ogh-browse-page .ast-archive-description,
.ogh-browse-page .page-header {
	display: none !important;
}

.ogh-browse {
	max-width: 1180px;
	margin: 0 auto;
	padding: 28px 20px 56px;
	background: #fff;
	color: #202124;
}

.ogh-browse-head {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 10px 14px;
	margin-bottom: 18px;
}

.ogh-browse-title {
	margin: 0;
	font-size: clamp(1.6rem, 3vw, 2rem);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.ogh-browse-count {
	margin: 0;
	font-size: 0.95rem;
	color: #80868b;
}

.ogh-browse-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	padding-bottom: 14px;
	margin-bottom: 22px;
	border-bottom: 1px solid #e8eaed;
}

.ogh-filter {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 2px;
	text-decoration: none;
	color: #3c4043;
	font-size: 0.92rem;
	font-weight: 500;
	border-bottom: 2px solid transparent;
}

.ogh-filter span {
	display: inline-block;
	padding: 1px 7px;
	border-radius: 999px;
	background: #f1f3f4;
	color: #80868b;
	font-size: 0.78rem;
	font-weight: 500;
}

.ogh-filter:hover {
	color: #1a73e8;
}

.ogh-filter.is-active {
	color: #1a73e8;
	border-bottom-color: #1a73e8;
}

.ogh-filter.is-active span {
	background: #e8f0fe;
	color: #1a73e8;
}

.ogh-browse-grid {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
	gap: 22px 18px !important;
	width: 100%;
}

/* Kill Astra blog card leftovers if any leak through */
.ogh-browse-page .ast-row,
.ogh-browse-page .ast-article-post,
.ogh-browse-page article.post:not(.ogh-card-game) {
	/* our template shouldn't output these */
}

.ogh-browse-page .site-content .ast-container {
	max-width: 1180px !important;
	padding-left: 20px !important;
	padding-right: 20px !important;
}

.ogh-card-game {
	margin: 0;
	min-width: 0;
}

.ogh-card-game__media {
	position: relative;
	display: block;
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 2 / 3;
	background: #f1f3f4;
	text-decoration: none;
}

.ogh-card-game__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.2s ease;
}

.ogh-card-game:hover .ogh-card-game__media img {
	transform: scale(1.03);
}

.ogh-card-game__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(145deg, #e8f0fe, #f1f3f4);
}

.ogh-card-game__badge {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 1;
	padding: 3px 7px;
	border-radius: 4px;
	background: #e53935;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
}

.ogh-card-game__title {
	margin: 10px 0 4px;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.35;
}

.ogh-card-game__title a {
	color: #1a73e8;
	text-decoration: none;
}

.ogh-card-game__title a:hover {
	text-decoration: underline;
}

.ogh-card-game__meta {
	margin: 0;
	font-size: 0.8rem;
	color: #80868b;
	line-height: 1.35;
}

.ogh-card-game__meta a {
	color: #1a73e8;
	text-decoration: none;
}

.ogh-card-game__dot {
	margin: 0 4px;
	color: #bdc1c6;
}

.ogh-browse-empty {
	grid-column: 1 / -1;
	color: #5f6368;
}

.ogh-browse-page .navigation.pagination,
.ogh-browse-page .nav-links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 36px;
}

.ogh-browse-page .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border-radius: 8px;
	background: #f1f3f4;
	color: #3c4043;
	text-decoration: none;
	font-size: 0.9rem;
}

.ogh-browse-page .page-numbers.current,
.ogh-browse-page .page-numbers:hover {
	background: #1a73e8;
	color: #fff;
}

@media (max-width: 1100px) {
	.ogh-browse-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 800px) {
	.ogh-browse-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 560px) {
	.ogh-browse-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 16px 12px !important;
	}
}
