
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #09090d;
  color: white;
  font-family: Arial, sans-serif;
}

/* Navigatiebalk */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 5%;
  background: #111116;
  border-bottom: 1px solid #292932;
}

/* Logo */
.logo {
  font-size: 27px;
  font-weight: 900;
  text-decoration: none;
  color: white;
}

.logo span {
  color: #e50914;
}

/* Zoekbalk */
#search {
  width: 250px;
  padding: 12px 15px;
  border-radius: 7px;
  border: 1px solid #393942;
  background: #202026;
  color: white;
  outline: none;
}

#search:focus {
  border-color: #e50914;
}

/* Gameoverzicht */
main {
  padding: 35px 5%;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 22px;
}

/* Gamecovers met dikke rode rand */
.game-card {
  display: block;
  overflow: hidden;
  border: 6px solid #e50914;
  border-radius: 12px;
  background: #191920;
  text-decoration: none;
  color: white;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

/* Rode neon-glow bij hover */
.game-card:hover {
  transform: scale(1.05);
  border-color: #ff3030;
  box-shadow:
    0 0 15px rgba(229, 9, 20, 0.9),
    0 0 35px rgba(229, 9, 20, 0.6),
    0 0 55px rgba(229, 9, 20, 0.3);
}

/* Staande gamecovers */
.game-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

/* Geen tekst onder de covers */
.game-name {
  display: none;
}

/* Mobiele weergave */
@media (max-width: 600px) {
  .navbar {
    flex-wrap: wrap;
  }

  .logo {
    font-size: 22px;
  }

  #search {
    width: 100%;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
