/*

Custom style

You can override the default class or style here

This file will not be overwritten by the updater

*/

/* Fix spacing for similar games section on game pages */
.section-similar {
	margin-top: 40px;
}

.section-similar .section-title {
	margin-top: 0;
}

/* ========================================
   HEADER REDESIGN - Full Width Layout
   ======================================== */

.header-layout {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 12px 0;
	width: 100%;
}

.header-logo {
	flex-shrink: 0;
}

.header-logo .site-logo {
	max-height: 80px;
	height: auto;
	width: auto;
}

.header-right {
	flex-shrink: 0;
}

.header-right .search-bar {
	margin: 0;
}

.header-right .search-bar input.search {
	min-width: 300px;
}

/* Responsive header */
@media screen and (max-width: 1199px) {
	.header-logo .site-logo {
		max-height: 70px;
	}

	.header-right .search-bar input.search {
		min-width: 260px;
	}
}

@media screen and (max-width: 991px) {
	.header-logo .site-logo {
		max-height: 60px;
	}

	.header-right .search-bar input.search {
		min-width: 220px;
	}
}

@media screen and (max-width: 767px) {
	.header-layout {
		gap: 12px;
	}

	.header-logo .site-logo {
		max-height: 50px;
	}

	.header-right .search-bar input.search {
		min-width: 180px;
		max-width: 180px;
	}
}

@media screen and (max-width: 480px) {
	.header-logo .site-logo {
		max-height: 45px;
	}

	.header-right .search-bar input.search {
		min-width: 140px;
		max-width: 140px;
	}
}

/* ========================================
   SIDEBAR COLLAPSE BUTTON
   ======================================== */

.sidebar-collapse-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
	border: none;
	border-radius: 25px;
	padding: 12px 20px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
}

.sidebar-collapse-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(255, 140, 66, 0.5);
}

.sidebar-collapse-btn i {
	font-size: 18px;
	transition: transform 0.3s ease;
}

.sidebar-collapse-btn span {
	transition: opacity 0.3s ease;
}

/* Collapsed state */
.sidebar-nav.collapsed {
	width: 70px !important;
}

.sidebar-nav.collapsed .sidebar-nav__header {
	padding: 20px 10px 15px;
}

.sidebar-nav.collapsed .sidebar-collapse-btn {
	padding: 12px;
	border-radius: 50%;
	width: 50px;
	height: 50px;
}

.sidebar-nav.collapsed .sidebar-collapse-btn span {
	display: none;
}

.sidebar-nav.collapsed .sidebar-collapse-btn i {
	transform: rotate(180deg);
}

.sidebar-nav.collapsed .sidebar-nav__list a {
	justify-content: center;
	padding: 12px 0;
}

.sidebar-nav.collapsed .sidebar-nav__list a span,
.sidebar-nav.collapsed .sidebar-nav__list a img + * {
	display: none;
}

.sidebar-nav.collapsed .sidebar-nav__list a i,
.sidebar-nav.collapsed .sidebar-nav__list a img {
	margin-right: 0;
}

/* Responsive collapse behavior */
@media screen and (max-width: 991px) {
	.sidebar-nav.collapsed {
		display: none;
	}
}

/* ========================================
   STICKY BOTTOM BANNER
   ======================================== */

.sticky-bottom-banner {
	position: fixed;
	z-index: 999;
	left: 50%;
	transform: translateX(-50%);
	max-width: 1050px;
	width: 100%;
	text-align: center;
	padding: 5px 0;
	bottom: 0;
	background-image: url(https://submit.lv/wp-content/uploads/2023/09/ad_loader.svg);
	background-size: 160px;
	background-repeat: no-repeat;
	background-position: center;
	background-color: var(--color-bg-elevated);
	border-top: 1px solid var(--color-border);
	transition: bottom 0.3s ease 0s;
	height: 90px;
	max-height: 90px;
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}

.banner-content-wrapper {
	display: inline-block;
	width: 100%;
	max-width: 1050px;
	height: 90px;
	max-height: 90px;
}

.banner-close-btn {
	position: absolute;
	z-index: 2147483647;
	cursor: pointer;
	background: var(--color-primary);
	width: 30px;
	height: 30px;
	border-radius: 50%;
	right: 3px;
	top: 0;
	transform: translateY(-50%);
	display: flex;
	justify-content: center;
	align-items: center;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(255, 140, 66, 0.5);
}

.banner-close-btn:hover {
	background: var(--color-primary-hover);
	transform: translateY(-50%) scale(1.1);
	box-shadow: 0 6px 16px rgba(255, 140, 66, 0.6);
}

/* Hide on very small mobile screens */
@media screen and (max-width: 360px) {
	.sticky-bottom-banner {
		display: none;
	}
}

/* New/Popular pages: use 9 cards per row on desktop */
@media screen and (min-width: 992px) {
	.page-new-games .grid-layout-2.row > .item-grid,
	.page-popular-games .grid-layout-2.row > .item-grid {
		flex: 0 0 calc(100% / 9);
		max-width: calc(100% / 9);
	}
}

/* Load More button: match sidebar collapse button style */
.b-load-more-wrapper {
	margin-bottom: 30px;
}

.btn-load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
	border: none;
	border-radius: 25px;
	padding: 12px 20px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
}

.btn-load-more:hover {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(255, 140, 66, 0.5);
}

.btn-load-more:disabled,
.btn-load-more.disabled {
	opacity: 0.75;
	cursor: not-allowed;
	transform: none;
	box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
}

