/* list-games.css */

body {
  background-color: #f8f9fa;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 10px;
}

#page-title {
  word-spacing: 0px;
  text-align: justify;  
  color: #fff;
  line-height: 1.9;     
  font-size: 0px;      
  margin: 0 10px;  
  font-family: Arial, sans-serif;
}

.game-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* افتراضي: زوج فكل سطر */
  gap: 20px 30px;
  max-width: 800px;
  margin: 0px auto 0 auto;
  padding: 0 10px;
}

/* من الشاشات المتوسطة وفوق (تابلت أفقي أو لابتوب) → 3 بطاقات */
@media (min-width: 768px) {
  .game-list {
    grid-template-columns: repeat(4, 1fr);
    max-width: 800px; /* باش ياخذ مساحة أكبر */
  }
}
a.game-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
.game-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgb(0 0 0 / 0.1);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}

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

.game-image {
  width: 100%;
  height: 240px; 
  object-fit: cover;
}

.game-info {
  padding: 12px 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-title {
  font-weight: 700;
  font-size: 1rem; /* أصغر في الهاتف */
  margin-bottom: 6px;
  text-align: center;
  color: #222;
}

.game-platform {
  font-size: 0.85rem; /* أصغر في الهاتف */
  color: #555;
  margin-bottom: 12px;
  text-align: center;
}

.game-stats {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid #ddd;
  padding-top: 10px;
  font-size: 0.85rem; /* أصغر في الهاتف */
  color: #444;
}

.game-stats div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.game-stats img {
  width: 16px;
  height: 16px;
  filter: brightness(0.7);
  transition: filter 0.2s ease;
}

.game-stats div:hover img {
  filter: brightness(1);
}

/* 📱 التابلت والكمبيوتر */
@media (min-width: 768px) {
  .game-image {
    height: 240px; /* تكبر الصورة */
  }
  .game-title {
    font-size: 1.2rem;
  }
  .game-platform {
    font-size: 1rem;
  }
  .game-stats {
    font-size: 0.9rem;
  }
  .game-stats img {
    width: 18px;
    height: 18px;
  }
}


/*لا يكتب أي شيء تحت هذا السطر وسير تقود ونتا كاعد كتقلب في الكود ديالي */ 

.button {
  -webkit-tap-highlight-color: transparent; /* يمنع الوميض الأزرق */
  outline: none; /* يمنع الإطار الأزرق */
  user-select: none; /* يمنع تحديد النص باللمس */
  background-color: transparent; /* يضمن عدم تغيير الخلفية */
}

.button:focus,
button:active {
  outline: none;
  background-color: transparent;
}
/* 🌐 إعدادات عامة للصفحة */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
}


/* 🌟 ستايل الفوتر */
.site-footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
  margin-top: 15px;
  height: 120px; /* نفس القيمة ديال padding-bottom ف main */
}

/* 🌟 ستايل أيقونات الفوتر */
.footer-icons {
  margin-bottom: 10px;
}

.footer-icons a {
  margin: 0 10px;
  text-decoration: none;
}

.footer-icons img {
  width: 30px;
  height: auto;
  border: none;
  outline: none;
}

/* 🌟 روابط داخل الفوتر */
.site-footer p a {
  color: #4fc3f7;
  text-decoration: none;
}
