/* Game encyclopedia single styles */

h2 {
	font-size: 20px!important;
}

div.promo-games-site h1 {
	line-height: 1;
}

div.main-wokspace {
	gap: 16px;
}

div.main-wokspace div.game-genere {
	position: static;
}

div[data-workspace-id="2"] {
	gap: 16px;
	flex-direction: row;
	flex-wrap: wrap;
}

div[data-workspace-id="3"] div.promo-game-left-side {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: calc(65% - 8px);
}

div[data-workspace-id="2"] div.promo-game-sidebar {
	max-width: calc(35% - 8px);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

div.promo-multimedia-section {
	display: flex;
	gap: 16px;
}

div.promo-multimedia-section div.promo-game-trailer {
	min-width: 33%;
}

div.promo-game-sidebar > div.section {
		display: flex;
		flex-direction: column;
		gap: 16px;
}

div.main-wokspace div.game-genere span {
	padding: 8px 15px;
	background: var(--theme-palette-color-18);
	border-radius: 8px;
	display: inline-block;
	backdrop-filter: blur(10px);
	border: 1px solid var(--theme-palette-color-6);
	opacity: 1;
	font-size: 12px;
	text-transform: uppercase;
	transition: all 0.12s;
	font-weight: 600;
}

div.promo-game-long-descritpion, div.promo-game-gallery, div.dlc-section, div.promo-game-trailer, div.similar-games-section, div.promo-game-sidebar {
	padding: 16px;
	background-color: var(--theme-palette-color-13);
	border-radius: 8px;
}

div[data-workspace-id="3"] {
	flex-direction: row;
}

div.promo-game-sidebar {
	width: 33%;
	max-height: calc(100vh - 112px);
	position: sticky;
	top: 96px;
}

div.promo-game-left-side {
	width: 66%;
}

div.promo-game-gallery > div.gallery {
	border-radius: 8px;
	overflow: hidden;
}

div#long-description img {
	border-radius: 8px;
	width: 100%;
}

div.promo-button-show-more {
	display: flex;
	flex-direction: column;
	margin-top: -16px;
	align-items: center;
}

div.promo-button-show-more:before {
	content: "";
	height: 16px;
	width: 100%;
	background: linear-gradient(0deg, var(--theme-palette-color-13) 20%, rgba(255, 255, 255, 0) 100%);
}

div.promo-button-show-more p, div.dlc-section button#load-more-dlc {
	margin-top: 0px;
	margin-bottom: 0px;
	padding: 16px 32px;
	background-color: var(--theme-palette-color-12);
	border-radius: 8px;
	text-transform: uppercase;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
	text-align: center;
	border: 2px solid var(--theme-palette-color-5);
	transition: all 0.12s;
	color: var(--theme-palette-color-15);
}

div.promo-button-show-more p:hover, div.dlc-section button#load-more-dlc:hover {
	transform: translatey(-4px);
}

div.promo-multimedia-section {
	transition: all 0.5s ease;
}

div.promo-multimedia-section > div {
	position: relative;
	border-radius: 24px;
	transition: all 0.5s ease;
}

div.promo-multimedia-section > div:hover > h2 {
	opacity: 0;
	pointer-events: none;
}

div.promo-multimedia-section > div > h2 {
	position: absolute;
	z-index: 10;
	backdrop-filter: blur(20px);
	color: var(--theme-palette-color-1);
	padding: 4px 16px;
	border-radius: 4px;
	overflow: hidden;
	top: 20px;
	left: 20px;
	background: var(--theme-palette-color-17);
	margin-bottom: 0px;
	font-size: 16px !important;
	font-weight: 100 !important;
	transition: all 0.2s;
}

/* Kontener galerii */
.promo-game-gallery {
	position: relative;
	display: flex;
	flex-direction: column;
}

.promo-game-gallery .gallery {
  display: flex;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* Płynne przewijanie na urządzeniach iOS */
  gap: 10px;
  position: relative;
  height: 100%;
}

.promo-game-gallery .gallery {
	/* Dla Firefoksa */
	scrollbar-width: none; 
	/* Dla IE i Edge */
	-ms-overflow-style: none; 
}

.promo-game-gallery .gallery::-webkit-scrollbar {
	display: none; /* Dla Chrome, Safari i Opera */
}

.promo-game-trailer, .promo-game-gallery {
  transition: min-width 0.3s;
}

div.promo-multimedia-section .promo-game-trailer.expanded {
  min-width: 100%;
}

.promo-multimedia-section.wrap .promo-game-gallery {
	width: 100%;
}

.promo-multimedia-section.wrap {
	flex-wrap: wrap;
}

/* Każdy element galerii */
.promo-game-gallery .gallery a {
  scroll-snap-align: start;
  aspect-ratio: 16/9;
  min-width: calc(33% - 32px);
  user-select: none;
  -webkit-user-drag: none;
}

.promo-game-gallery .gallery a img {
	height: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
	user-select: none;
  -webkit-user-drag: none;
}



/* Przyciski nawigacyjne */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(10px);
  opacity: 1;
  transition: all 0.2s!important;
}

.promo-game-gallery:hover .arrow {
	background: rgba(0, 0, 0, 0.7);
}

/* Pozycjonowanie przycisków */
.arrow-left {
  left: 16px;
  border-radius: 0 8px 8px 0;
}

.arrow-right {
  right: 16px;
  border-radius: 8px 0 0 8px;
}

.arrow.hidden {
	opacity: 0;
	pointer-events: none; /* Zapobiega interakcji, gdy przycisk jest niewidoczny */
}


@media only screen and (max-width: 1000px) {
	div[data-workspace-id="2"] div.promo-game-left-side, div[data-workspace-id="2"] div.promo-game-sidebar {
		max-width: 100%;
	}

	div.promo-multimedia-section {
		flex-wrap: wrap;
	}

	div.promo-multimedia-section > div.promo-game-gallery, div.promo-multimedia-section  > div.promo-game-trailer {
		min-width: 100%;
	}

	.promo-game-gallery .gallery a {
		min-width: 50%;
	}
}

@media only screen and (max-width: 600px) {
	div.promo-multimedia-section {
		flex-direction: column;
	}

	.promo-game-gallery .gallery a {
		min-width: 100%;
	}
}


div.promo-game-requirements {
	display: flex;
	gap: 16px;
	column-gap: 32px;
	padding: 16px;
	border-radius: 8px;
	background: var(--theme-palette-color-13);
	flex-wrap: wrap;
}
div.promo-game-requirements h2.game-system-requirements-heading {
	width: 100%;	
}

div.promo-game-requirements > div {
	width: calc(50% - 16px);
}

div.promo-game-requirements > div:last-child {
	flex-grow: 1;
}

div.promo-game-requirements > div {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

div.promo-game-requirements div.requirements-title {
	font-size: 18px;
	font-weight: 600;
}

div.promo-game-requirements div.requirements div.name {
	font-size: 12px;
	color: var(--theme-palette-color-1);
}


@media only screen and (max-width: 600px) {
	div.promo-game-requirements {
		flex-direction: column;
	}
	div.promo-game-requirements > div {
		width: 100%;
	}
}

div.dlc-section {
	display: flex;
	flex-direction: column;
	gap: 16px;
	position: relative;
}

div.dlc-section * {
	transition: all 0.12s;
}

div.dlc-section h2 {
	margin-bottom: 0;
}

div.dlc-section div.ct-dynamic-filter {
	display: flex;
	gap: 8px;
	justify-content: flex-start;
	margin-bottom: 0px;
}

div.dlc-section div.ct-dynamic-filter a {
	background: var(--theme-palette-color-12);
	color: var(--theme-palette-color-15);
	border-radius: 8px;
	padding: 8px 15px;
	font-weight: 500;
	font-size: 12px;
	text-transform: uppercase;
	border: 1px solid var(--theme-palette-color-6);
}

div.dlc-section div.ct-dynamic-filter a.active, div.dlc-section div.ct-dynamic-filter a:hover {
    background: var(--theme-palette-color-6);
}

div#dlc-section.promo-post-list {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

div#dlc-section.promo-post-list article {
	background-color: var(--theme-palette-color-12);
	width: calc((100% - 64px) / 5);
}

div#dlc-section.promo-post-list article a.ct-media-container, div#parent-game.promo-post-list article a.ct-media-container {
	aspect-ratio: 2 / 3;
}

div.promo-game-sidebar div#parent-game.promo-post-list article {
	width: 100%;
}

@media only screen and (max-width: 1000px) {
	div#dlc-section.promo-post-list article {
		width: calc((100% - 16px) / 2);
	}
}

div#parent-game.promo-post-list article {
	flex-direction: row;
	align-items: center;
}

div#parent-game.promo-post-list article a.ct-media-container {
	max-width: 33%;
	margin-bottom: 0!important;
}

div#parent-game.promo-post-list article p.entry-title {
	width: calc(100% - 33%);
	padding: 16px;
	margin-bottom: 0!important;
}
