/* Games Page Styles */
.game-entry {
  display: flex;
  background-color: rgba(20, 20, 20, 0.9);
  margin: 1vw 27vw;
  padding: 1vw;
  border-radius: 0.5vw;
  backdrop-filter: blur(5px);
  margin-bottom: 1vw;
  position: relative;
}

.game-entry:hover {
  background-color: rgba(20, 20, 20, 1);
}

.game-entry img {
  width: 80px;
  height: 120px;
  object-fit: cover;
  border-radius: 0.5vw;
  margin-right: 0.5vw;
}

.game-details {
  flex: 1;
  color: #ddd;
}

.game-details h2 {
  font-size: 1.2vw;
  margin-top: 0;
  margin-bottom: 0.5em;
  color: white;
  display: flex;
  align-items: center;
}

.game-details h2 .platform {
  margin-left: 0.5em;
  display: inline-block;
  position: relative; /* Needed for the tooltip */
  vertical-align: middle;
}

.platform-icon {
  transition: transform 0.3s ease;
  cursor: help;
  display: inline-block;
}

.platform-icon:hover {
  transform: scale(1.2); /* Slight scaling on hover */
}

.platform {
  position: relative;
  display: inline-block;
}

.platform::after {
  content: attr(data-platform); /* Use the custom data attribute to show the platform name */
  position: absolute;
  background-color: rgba(0, 0, 0, 1);
  color: #fff;
  padding: 0.1em 0.4em;
  border-radius: 0.3em;
  top: 110%; /* Below the icon */
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.7em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.platform:hover::after {
  opacity: 1; /* Show the tooltip when the parent span is hovered */
}

.platform-icon::after {
  content: attr(alt); /* Display the platform name */
  position: absolute;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.1em 0.3em;
  border-radius: 0.3em;
  top: 110%; /* Position it slightly below the icon */
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.8em;
  opacity: 0; /* Initially hidden */
  pointer-events: none; /* Prevent it from interfering with cursor */
  transition: opacity 0.2s ease;
  z-index: 10;
}

.platform-icon:hover::after {
  opacity: 1; /* Show tooltip on hover */
}

.game-details p {
  font-size: 1vw;
  line-height: 1.3;
  margin: 0.5em 0;
}

.game-details p strong {
  color: #ffd900;
}

.genre-tag {
  display: inline-block;
  background-color: grey;
  color: white;
  padding: 0.2em 0.5em;
  margin-right: 0.3em;
  border-radius: 0.3em;
  font-size: 0.8em;
}


.status-label {
  position: absolute;
  top: 0.5vw;
  right: 0.5vw;
  background-color: #333;
  color: white;
  padding: 0.3vw 0.6vw;
  border-radius: 0.3vw;
  text-transform: uppercase;
  font-size: 0.8vw;
}
.status-label-inline {
  margin-left: 0.5em;
  font-size: 0.8em;
  opacity: 0.6;
}


.status-label.finished { background-color: #28a745; }
.status-label.playing { background-color: #ff8100; }
.status-label.on-hold { background-color: #f0ad4e; }
.status-label.planning-to-play { background-color: #888; }
