/* Carousel Styles */
.carousel-container {
  width: 100%;
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
  background-color: #1a202c;
}

.slider-items {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  min-height: 21.875rem;
  position: relative;
}

.slider-items .item {
  padding: 0 0.625rem;
  transition: all 0.5s ease-in-out;
  flex-shrink: 0;
}

.dots {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.dots .dot {
  cursor: pointer;
  width: 0.6rem;
  height: 0.6rem;
  margin: 0 0.2rem;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.dots .dot:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.dots .dot[current] {
  cursor: initial;
  width: 0.9rem;
  height: 0.9rem;
  background-color: #3182ce;
}

/* Game Item Styles (for Carousel) */
.game-item {
  position: relative;
  text-align: center;
  color: white;
  cursor: pointer;
  width: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
}

.game-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.3);
}

.game-item .item-overlay {
  display: flex;
  align-items: flex-end;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s, visibility 0.2s;
  border-radius: 0.75rem;
}

.game-item:hover .item-overlay {
  visibility: visible;
  opacity: 1;
}

.game-item .item-name {
  padding: 0.75rem;
  margin: 0;
  font-weight: bold;
  font-size: 1rem;
  color: white;
  text-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.8);
}

/* Home Sections (Game Rows) */
.home-sections {
  padding: 1.25rem;
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  box-sizing: border-box;
}

@media (max-width: 62rem) {
  .home-sections {
    grid-template-columns: 1fr;
    padding: 0.9375rem;
    gap: 0.9375rem;
  }
}

.section-container {
  background-color: #1e293b;
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.section-title {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.9375rem;
  margin-top: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.games-row-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
}

.games-row-wrapper::before,
.games-row-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2.5rem;
  pointer-events: none;
  z-index: 5;
}

.games-row-wrapper::before {
  left: 0;
  background: linear-gradient(to left, transparent, #1e293b);
  display: none;
}

.games-row-wrapper.scrolled-left::before {
  display: block;
}

.games-row-wrapper::after {
  right: 0;
  background: linear-gradient(to right, transparent, #1e293b);
}

.games-row {
  display: flex;
  gap: 0.625rem;
  overflow-x: auto;
  padding-bottom: 0.3125rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
}

.games-row::-webkit-scrollbar {
  display: none;
}

.games-row-item {
  flex: 0 0 8.125rem;
  aspect-ratio: 1/1;
  cursor: pointer;
  border-radius: 0.625rem;
  overflow: hidden;
  transition: transform 0.2s;
  position: relative;
}

.games-row-item:hover {
  transform: scale(1.05);
}

.games-row-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--boxShadowHover);
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 0.625rem;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
}

.games-row-item-name {
  padding: 0.5rem;
  margin: 0;
  font-weight: bold;
  font-size: 0.85rem;
  color: white;
  text-align: left;
  width: 100%;
  text-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.8);
}

.games-row-item:hover .games-row-item-overlay {
  opacity: 1;
}

.games-row-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.625rem;
}

.scroll-section {
  padding: .2rem;
  border-radius: .5rem;
  position: absolute;
  width: 3rem;
  top: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.scroll-section.left {
  left: 0;
  background: linear-gradient(to left, transparent, #1e293b);
}

.scroll-section.right {
  right: 0;
  background: linear-gradient(to right, transparent, #1e293b);
}

.scroll-section .arrow {
  width: 100%;
  display: flex;
  align-items: center;
  pointer-events: auto;
  cursor: pointer;
}

.scroll-section.left .arrow {
  justify-content: flex-start;
}

.scroll-section.right .arrow {
  justify-content: flex-end;
}

.scroll-section .arrow i {
  font-size: 2rem;
  color: var(--lightColor);
  filter: drop-shadow(0.1875rem 0.3125rem 0.125rem rgb(0 0 0 / 0.4));
  transition: color 0.2s;
}

.scroll-section .arrow:hover i {
  color: var(--lightColorDark);
}

/* Responsive adjustments for Home Components */
@media (max-width: 76.875rem) {
  .sliderItems {
    min-height: 17.5rem;
  }
}

@media (max-width: 62rem) {
  .sliderItems {
    min-height: 13.75rem;
  }

  .games-row-item {
    flex: 0 0 7.5rem;
  }
}

@media (max-width: 33.75rem) {
  .slider-items {
    min-height: 11.25rem;
  }

  .games-row-item {
    flex: 0 0 6.25rem;
  }

  .section-container {
    padding: 0.75rem;
  }

  .section-title {
    font-size: 0.95rem;
  }
}

/* Games List Container */
.games-list-container {
  padding: 1.25rem 1.25rem;
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  box-sizing: border-box;
}

.games-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 75rem) {
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 62rem) {
  .games-list-container {
    padding: 0.9375rem;
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 48rem) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 36rem) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }
}

/* Game Card */
.game-card {
  cursor: pointer;
  background: var(--greyBackgroundLight);
  box-shadow: var(--boxShadow) 0 0.25rem 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s;
}

.game-card:hover {
  box-shadow: var(--boxShadowHover) 0 0.25rem 1rem;
}

.game-card .game-img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.game-card-header {
  padding: 0.5rem;
  height: 3.2rem;
}

.game-title {
  font-size: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--lightColor);
  font-weight: bold;
  margin: 0;
  line-height: 1.2;
}

.game-card-content {
  padding: 0.5rem;
  height: max-content;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  height: 2.3rem;
  overflow-y: auto;
  scrollbar-color: var(--tertiaryColor) var(--greyBackgroundLight);
}

.category-chips::-webkit-scrollbar {
  width: 0.25rem;
}

.category-chips::-webkit-scrollbar-thumb {
  background-color: var(--tertiaryColor);
  border-radius: 0.25rem;
}

.category-chip {
  height: max-content;
  border: 0.0625rem solid var(--tertiaryColor);
  background-color: transparent;
  color: var(--lightColor);
  margin: 0 0.25rem 0.25rem 0;
  border-radius: 1rem;
  padding: 0.25rem 0.375rem;
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}

.category-chip:hover {
  opacity: 0.8;
}

.category-chip img {
  width: 1.125rem;
  height: 1.125rem;
}

/* Pagination */
.pagination-container {
  margin-top: 2rem;
  width: 100%;
}

.pagination {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;
}

.pagination .pages,
.pagination .arrows {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.2rem;
}

.pag-btn {
  background: transparent;
  border: 0.0625rem solid var(--primaryColor);
  color: var(--lightColor);
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  font-weight: 500;
  font-size: 1rem;
}

.pag-btn:hover,
.pag-btn.selected {
  background: var(--primaryColor);
  color: var(--lightColor);
}

.pag-btn i {
  width: 1.2rem;
  height: 1.2rem;
}

@media (max-width: 62rem) {
  .pagination-container {
    margin-top: 1.5rem;
  }
}

@media (max-width: 36rem) {
  .pag-btn {
    padding: 0.375rem 0.625rem;
    min-width: 2.1875rem;
    font-size: 0.9rem;
  }
}