/* style/games.css */
.page-games {
  font-family: 'Arial', sans-serif;
  color: #e5dfd3; /* Light text for dark background */
  background-color: #1A202C; /* Main dark background */
  line-height: 1.6;
}

.page-games-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-games-btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.page-games-btn-primary {
  background-color: #FFD700; /* Accent color */
  color: #1A202C; /* Dark text for accent background */
  border: 2px solid #FFD700;
}

.page-games-btn-primary:hover {
  background-color: #e5c400;
  border-color: #e5c400;
}

.page-games-btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
  margin-left: 15px;
}

.page-games-btn-secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

.page-games-btn-outline {
  background-color: transparent;
  color: #FFD700;
  border: 1px solid #FFD700;
  margin-right: 10px;
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-games-btn-outline:hover {
  background-color: #FFD700;
  color: #1A202C;
}

.page-games-btn-large {
  padding: 15px 35px;
  font-size: 1.1em;
}

.page-games-hero {
  background: linear-gradient(135deg, #1A202C, #2c3a50);
  padding: 100px 0;
  text-align: center;
  color: #e5dfd3;
  position: relative;
  overflow: hidden;
}

.page-games-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('[GALLERY:hero:abstract_patterns,gaming_elements,dark_gold,xin88]') no-repeat center center/cover;
  opacity: 0.1;
  z-index: 0;
}

.page-games-hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700;
  position: relative;
  z-index: 1;
}

.page-games-hero-description {
  font-size: 1.3em;
  max-width: 800px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 1;
}

.page-games-hero-actions {
  position: relative;
  z-index: 1;
}

.page-games-section {
  padding: 60px 0;
}

.page-games-section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
}

.page-games-section-subtitle {
  font-size: 1.2em;
  color: #ccc;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.page-games-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-games-category-card {
  background-color: #2D3748; /* Slightly lighter dark for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-games-category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-games-category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid #FFD700;
}

.page-games-card-title {
  font-size: 1.8em;
  color: #FFD700;
  padding: 20px 20px 10px;
}

.page-games-card-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-games-card-title a:hover {
  text-decoration: underline;
}

.page-games-card-description {
  color: #ccc;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-games-category-card .page-games-btn {
  margin: 0 10px 20px 20px;
}

.page-games-why-choose {
  background-color: #1A202C;
  padding-bottom: 80px;
}

.page-games-why-choose-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-games-why-choose-text {
  flex: 1;
  min-width: 300px;
  color: #e5dfd3;
}

.page-games-why-choose-text h3 {
  color: #FFD700;
  font-size: 1.8em;
  margin-bottom: 15px;
}

.page-games-why-choose-text ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-games-why-choose-text ul li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23FFD700" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat left center;
  background-size: 18px;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-games-why-choose-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-games-responsive-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-games-cta {
  background-color: #2D3748;
  text-align: center;
  padding: 80px 0;
}

.page-games-cta-title {
  font-size: 3em;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-games-cta-description {
  font-size: 1.4em;
  color: #ccc;
  max-width: 900px;
  margin: 0 auto 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-games-hero-title {
    font-size: 2.5em;
  }

  .page-games-hero-description {
    font-size: 1.1em;
  }

  .page-games-hero-actions .page-games-btn {
    margin: 10px 0;
    width: 100%;
  }

  .page-games-hero-actions .page-games-btn-secondary {
    margin-left: 0;
  }

  .page-games-section-title {
    font-size: 2em;
  }

  .page-games-section-subtitle {
    font-size: 1em;
  }

  .page-games-category-grid {
    grid-template-columns: 1fr;
  }

  .page-games-why-choose-content {
    flex-direction: column;
  }

  .page-games-cta-title {
    font-size: 2.2em;
  }

  .page-games-cta-description {
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-games-hero {
    padding: 60px 0;
  }

  .page-games-hero-title {
    font-size: 2em;
  }

  .page-games-hero-description {
    font-size: 0.9em;
  }

  .page-games-section {
    padding: 40px 0;
  }

  .page-games-section-title {
    font-size: 1.8em;
  }

  .page-games-category-card .page-games-btn {
    width: calc(100% - 40px);
    margin-left: 20px;
    margin-right: 0;
  }

  .page-games-btn-outline {
    margin-bottom: 10px;
  }
}