/* ============================= */
/* GAME SERVER GRID              */
/* ============================= */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.game-card-link {
  text-decoration: none;
  display: block;
  perspective: 1000px;
}

.pricing-card {
  background: #0a0a0a;
}

.game-overlay {
  display: none;
}


/* CARD BASE */

.game-card-img {
  position: relative;
  height: 420px;
  border-radius: 22px;
  overflow: hidden;
  background: #111;
  transition: all 0.4s ease;
  transform-style: preserve-3d;
}

/* IMAGE */

.game-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* OVERLAY */

.game-overlay {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 10%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.1) 90%
  );
  z-index: 1;
}

/* CONTENT */

.game-card-content {
  position: absolute;
  bottom: 30px;
  left: 30px;
  z-index: 3;
  color: #fff;
}

.game-card-content h3 {
  font-size: 28px;
  margin: 0;
  font-weight: 700;
}

.game-card-content span {
  font-size: 14px;
  opacity: 0.85;
}

/* PRICE PILL */

.game-price-pill {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff7300;
  color: #fff;
  padding: 8px 22px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  z-index: 3;
  box-shadow: 0 0 20px rgba(255, 115, 0, 0.6);
  transition: all 0.3s ease;
}

/* HOVER EFFECT */

.game-card-img:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(255, 115, 0, 0.35);
}

.game-card-img:hover img {
  transform: scale(1.08);
}

.game-card-img:hover .game-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 15%,
    rgba(0, 0, 0, 0.7) 50%,
    rgba(0, 0, 0, 0.4) 85%
  );
}

.game-card-img:hover .game-price-pill {
  box-shadow: 0 0 30px rgba(255, 115, 0, 0.9);
}

/* ANIMAZIONE ENTRATA */

.game-card-img{
  opacity: 1;
  transform: translateY(0);
}

.game-card-img.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .game-card-img {
    height: 360px;
  }

  .game-card-content h3 {
    font-size: 22px;
  }
}