/* Genel Ayarlar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #111;
  color: #eee;
  line-height: 1.6;
  animation: fadeIn 1s ease-in;
}

/* Fade-in animasyonu */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header */
header {
  text-align: center;
  padding: 20px;
  background: #000000d8;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 {
  color: #fff;
  font-size: 26px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Navbar */
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

nav a {
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  background: linear-gradient(135deg, #ff3c3c, #ff8c00);
  color: #fff;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

nav a:hover {
  background: linear-gradient(135deg, #ff8c00, #ff3c3c);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.7);
}

/* İçerik */
.content {
  max-width: 1000px;
  margin: 30px auto;
  padding: 20px;
  background: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  animation: fadeIn 1.2s ease-in;
}

.content h2, 
.content h3 {
  color: #ff8c00;
  margin-bottom: 10px;
}

.content p {
  margin-bottom: 15px;
}


/* Oyun Kartları */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}


/* Kartların eşit yükseklikte olması için flex yapısı */
.game-card {
  background: #222;
  border-radius: 15px;
  text-align: center;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* içeriği eşit dağıtır */
  height: 100%;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.game-card img {
  width: 100%;
  height: 233px; /* tüm resimler aynı yükseklik */
  object-fit: cover; /* resimleri kırpmadan ölçekler */
  border-radius: 10px;
  margin-bottom: 15px;
  transition: transform 0.4s ease;
}

.game-card a {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  background: linear-gradient(135deg, #ff3c3c, #ff8c00);
  padding: 10px 18px;
  border-radius: 20px;
  transition: all 0.3s ease;
  margin-top: auto; /* buton hep altta kalır */
}

.game-card img {
  width: 100%;
  aspect-ratio: 3 / 4; /* en-boy oranı (genişlik / yükseklik) */
  object-fit: cover;   /* resimleri kırpmadan ortalar */
  border-radius: 10px;
  margin-bottom: 15px;
  transition: transform 0.4s ease;
}



/* Hover Neon Efekt */
.game-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 0 20px #ff3c3c, 0 0 40px #ff8c00;
}

.game-card:hover img {
  transform: scale(1.1);
}

.game-card a:hover {
  background: linear-gradient(135deg, #ff8c00, #ff3c3c);
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #000;
  margin-top: 30px;
  border-top: 2px solid #ff3c3c;
}

footer p {
  margin-bottom: 10px;
  color: #bbb;
}

footer a {
  margin: 0 10px;
  text-decoration: none;
  color: #ff8c00;
  transition: 0.3s;
}

footer a:hover {
  color: #ff3c3c;
}

/* Mobil Uyum */
@media (max-width: 768px) {
  header h1 {
    font-size: 20px;
  }

  nav {
    flex-direction: column;
    gap: 10px;
  }

  nav a {
    width: 100%;
    text-align: center;
  }

  .content {
    margin: 15px;
    padding: 15px;
  }
}

