/* style/index.css */

.page-index {
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f8f9fa; /* Light grey background for overall page */
}

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

.page-index__highlight {
  color: #007BFF; /* Primary brand color for highlights */
}

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

.page-index__btn--primary {
  background-color: #007BFF; /* Primary brand color */
  color: #ffffff;
  border: 1px solid #007BFF;
}

.page-index__btn--primary:hover {
  background-color: #0056b3; /* Darker shade of primary */
  transform: translateY(-2px);
}

.page-index__btn--secondary {
  background-color: transparent;
  color: #007BFF; /* Primary brand color */
  border: 1px solid #007BFF;
}

.page-index__btn--secondary:hover {
  background-color: #e0f2ff; /* Lighter shade of primary background */
  color: #0056b3;
  transform: translateY(-2px);
}

.page-index__btn--small {
  padding: 8px 15px;
  font-size: 0.9em;
}

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

.page-index__btn--download {
  background-color: #343a40; /* Dark grey for app download buttons */
  color: #ffffff;
  border: 1px solid #343a40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.page-index__btn--download:hover {
  background-color: #1d2124;
  transform: translateY(-2px);
}

.page-index__download-icon {
  width: 20px;
  height: 20px;
  filter: invert(1); /* Ensure icons are white on dark background */
}

/* Hero Section */
.page-index__hero-section {
  background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%); /* Gradient with primary color */
  color: #ffffff;
  padding: 100px 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-index__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('[GALLERY:bg:abstract_pattern,geometric_lines,subtle_texture]') no-repeat center center/cover;
  opacity: 0.1;
  z-index: 0;
}

.page-index__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: #ffffff;
}

.page-index__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #e0f2ff;
}

.page-index__hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-index__hero-image-wrapper {
  display: none; /* Hidden on desktop, shown on larger screens if needed */
}

/* About Section */
.page-index__about-section,
.page-index__games-section,
.page-index__promotions-section,
.page-index__app-download-section,
.page-index__detail-pages-section,
.page-index__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #ffffff;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-index__about-section {
    background-color: #f8f9fa;
}

.page-index__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #212529;
  font-weight: 700;
}

.page-index__section-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #555;
}

.page-index__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-index__feature-item:hover {
  transform: translateY(-10px);
}

.page-index__feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  filter: drop-shadow(0 5px 5px rgba(0, 123, 255, 0.3));
}

.page-index__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #007BFF;
}

.page-index__feature-text {
  color: #666;
}

/* Games Section */
.page-index__games-section {
    background-color: #e9ecef;
}

.page-index__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index__game-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-index__game-card:hover {
  transform: translateY(-10px);
}

.page-index__game-image {
  width: 100%;
  max-width: 250px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__game-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #212529;
}

.page-index__game-text {
  color: #666;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Promotions Section */
.page-index__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index__promo-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-index__promo-card:hover {
  transform: translateY(-10px);
}

.page-index__promo-image {
  width: 100%;
  max-width: 250px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__promo-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #FFC107; /* Secondary brand color for promo titles */
}

.page-index__promo-text {
  color: #666;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-index__cta-center {
    margin-top: 50px;
}

/* App Download Section */
.page-index__app-download-section {
    background-color: #343a40; /* Dark background for app section */
    color: #ffffff;
    text-align: left;
}

.page-index__app-download-section .page-index__section-title {
    color: #ffffff;
}

.page-index__app-download-section .page-index__section-description {
    color: #e9ecef;
}

.page-index__app-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
}

.page-index__app-content {
  flex: 1;
  min-width: 300px;
}

.page-index__download-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-index__app-image-wrapper {
  flex: 1;
  min-width: 250px;
  text-align: center;
}

.page-index__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Detail Pages Section */
.page-index__detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index__detail-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  text-align: left;
}

.page-index__detail-card:hover {
  transform: translateY(-10px);
}

.page-index__detail-title {
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-index__detail-title a {
  color: #007BFF;
  text-decoration: none;
  font-weight: bold;
}

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

.page-index__detail-text {
  color: #666;
  margin-bottom: 20px;
}

/* Call to Action Section */
.page-index__cta-section {
  background: linear-gradient(45deg, #FFC107 0%, #ff9800 100%); /* Gradient with secondary color */
  color: #343a40;
  padding: 80px 0;
  margin-bottom: 0; /* No margin at the bottom */
  border-radius: 0;
}

.page-index__cta-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.page-index__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #343a40;
  font-weight: 700;
}

.page-index__cta-title .page-index__highlight {
  color: #007BFF; /* Primary color for contrast */
}

.page-index__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #555;
}

.page-index__cta-section .page-index__btn--primary {
  background-color: #007BFF;
  border-color: #007BFF;
  color: #ffffff;
}

.page-index__cta-section .page-index__btn--primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-index__hero-title {
    font-size: 2.8em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__cta-title {
    font-size: 2.5em;
  }
  .page-index__app-flex {
      flex-direction: column-reverse;
      text-align: center;
  }
  .page-index__download-buttons {
      justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__btn {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-index__features-grid,
  .page-index__game-categories,
  .page-index__promo-grid,
  .page-index__detail-grid {
    grid-template-columns: 1fr;
  }
  .page-index__cta-title {
    font-size: 2em;
  }
}

@media (max-width: 576px) {
  .page-index__hero-section,
  .page-index__about-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__app-download-section,
  .page-index__detail-pages-section,
  .page-index__cta-section {
    padding: 60px 0;
  }
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__section-title {
    font-size: 1.6em;
  }
  .page-index__cta-title {
    font-size: 1.8em;
  }
  .page-index__download-buttons {
      flex-direction: column;
      align-items: center;
  }
  .page-index__btn--download {
      width: 100%;
      max-width: 250px;
  }
}