/* ================================================
   CATALOG PAGE — Specific Styles
   ================================================ */

/* ---- CATALOG HERO (desktop) ---- */
.catalog-hero {
  background: var(--black);
  padding: 60px 0;
  position: relative;
  min-height: 1235px;
  overflow: hidden;
}

/* Absolutely positioned game image grid — centered for any screen width */
.game-grid {
  position: absolute;
  width: 1080px;
  left: 50%;
  transform: translateX(-50%);
  top: 60px;
  height: 1115px;
}

.game-item {
  position: absolute;
  border-radius: 30px;
  overflow: hidden;
  display: block;
}

.game-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  display: block;
  transition: transform 0.3s ease;
}

.game-item:hover img {
  transform: scale(1.04);
}

/* Grid positions (within 1080px container, matching Figma) */
.game-item--1 { left: 368px; top: 4px;    width: 348px; height: 354px; } /* center-top    */
.game-item--2 { left: 0;     top: 378px;  width: 348px; height: 354px; } /* left-middle   */
.game-item--3 { left: 367px; top: 378px;  width: 348px; height: 354px; } /* center-middle */
.game-item--4 { left: 734px; top: 378px;  width: 348px; height: 354px; } /* right-middle  */
.game-item--5 { left: 0;     top: 757px;  width: 348px; height: 354px; } /* left-bottom   */
.game-item--6 { left: 734px; top: 757px;  width: 348px; height: 354px; } /* right-bottom  */

/* Text content row (sits above game grid via z-index) */
.catalog-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.catalog-left-col,
.catalog-heading,
.catalog-desc,
.catalog-btn {
  pointer-events: auto;
}

.catalog-left-col {
  width: 347px;
  display: flex;
  flex-direction: column;
  gap: 50px;
  flex-shrink: 0;
  align-items: flex-start;
}

.catalog-heading {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 60px;
  line-height: 60px;
  letter-spacing: -1.2px;
  color: var(--white);
}

.catalog-desc {
  width: 348px;
  font-family: 'Manrope', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.48px;
  color: var(--white);
  flex-shrink: 0;
}

/* Mobile game grid — hidden on desktop */
.game-grid-mobile {
  display: none;
}

/* ================================================
   CATALOG — RESPONSIVE MOBILE (<= 768px)
   ================================================ */
@media (max-width: 768px) {

  .catalog-hero {
    padding: 40px 0;
    min-height: auto;
    position: static;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  /* Hide desktop absolute grid */
  .game-grid {
    display: none;
  }

  /* Flatten catalog-content into a column:
     heading → desc → button order (Figma mobile order) */
  .catalog-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 0 20px;
    margin: 0;
  }

  /* Make the left-col transparent so its children
     become direct flex children and can be reordered */
  .catalog-left-col {
    display: contents;
  }

  .catalog-heading {
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.56px;
    text-align: center;
    width: 100%;
    order: 1;
  }

  .catalog-desc {
    width: 100%;
    order: 2;
    line-height: normal;
  }

  .catalog-btn {
    order: 3;
    align-self: center;
  }

  /* Mobile: 2-column grid, full-width, no padding — edge to edge */
  .game-grid-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin: 0px 20px;
 
  
  }

  .game-item-mobile {
    width: 40%;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    overflow: hidden;
    display: block;
    flex-shrink: 0;
  }

  .game-item-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
    transition: transform 0.3s ease;
  }

  .game-item-mobile:hover img {
    transform: scale(1.04);
  }
}
