/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #111;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
header {
  text-align: center;
  padding: 20px;
  background: #000;
}
header h1 {
  font-size: 1.8rem;
}
nav {
  margin-top: 10px;
}
nav a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
}
nav a.active {
  color: red;
  font-weight: bold;
}

/* Container grid */
.games-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* always 3 per row on desktop */
  gap: 1.5rem;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

/* Game Card */
.game-card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  text-align: center;
  transition: transform 0.2s;
  min-height: 360px;
}

.game-card:hover {
  transform: translateY(-5px);
}

/* Image */
.game-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* Title */
.game-card h2 {
  font-size: 1.3rem;
  margin: 8px 0;
  color: #fff;
}

/* Text */
.game-card p {
  font-size: 0.95rem;
  color: #bbb;
}

/* Expiry text */
.game-card .expires {
  font-weight: bold;
  color: #e74c3c;
  margin: 8px 0;
}

/* Button */
.game-card .btn {
  display: inline-block;
  padding: 10px 18px;
  background: #e50914;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.game-card .btn:hover {
  background: #ff1e2d;
}

/* ✅ Responsive */
@media (max-width: 992px) {
  .games-container {
    grid-template-columns: repeat(2, 1fr); /* 2 per row for tablets */
  }
}

@media (max-width: 600px) {
  .games-container {
    grid-template-columns: 1fr; /* 1 per row for mobile */
  }
}

/* Coming Soon Card */
.game-card.soon {
  opacity: 0.7;
  filter: grayscale(70%);
  position: relative;
}

.game-card.soon .btn {
  background: gray;
  cursor: not-allowed;
}

.game-card.soon::after {
  content: "Coming Soon";
  position: absolute;
  top: 10px;
  right: 10px;
  background: orange;
  color: black;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 4px;
}

/* Badge (platform label) */
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: bold;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Badge colors */
.badge.epic {
  background: #171a21; /* Epic blue */
}

.badge.steam {
  background: #0078f2; /* Steam dark */
}

.badge.indiegala{
  background: #e50914;
}

/* Make card relative so badge stays inside */
.game-card {
  position: relative;
}

/* Footer always bottom */
footer {
  text-align: center;
  padding: 15px;
  background: #000;
  margin-top: auto;
}
.info {
  color: oklch(65.716% 0.23032 19.593);
  text-decoration: none;
  font-weight: bold;
}

.info:hover {
  text-decoration: underline;
}
.social-icons a {
    margin: 0 8px;
    display: inline-block;
  }
  .social-icons img {
    width: 28px;
    height: 28px;
    
    transition: 0.3s;
  }
  .social-icons img:hover {
    filter: none; /* show original colors on hover */
    transform: scale(1.1);
  }