/* style/index.css */

:root {
  --page-index-primary-color: #1A1A2E;
  --page-index-secondary-color: #E94560;
  --page-index-text-light: #FFFFFF;
  --page-index-text-dark: #1A1A2E;
  --page-index-bg-dark: #1A1A2E;
  --page-index-bg-light: #F0F2F5;
  --page-index-border-color: #33334F;
}

.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-index-text-light);
  background-color: var(--page-index-bg-dark);
}

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

.page-index-section-title {
  font-size: 2.5em;
  color: var(--page-index-text-light);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index-section-subtitle {
  font-size: 1.2em;
  color: var(--page-index-text-light);
  text-align: center;
  margin-bottom: 40px;
  opacity: 0.8;
}

.page-index-highlight {
  color: var(--page-index-secondary-color);
}

.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.3s ease;
  text-align: center;
}

.page-index-btn-primary {
  background-color: var(--page-index-secondary-color);
  color: var(--page-index-text-dark); /* Ensure contrast */
  border: 2px solid var(--page-index-secondary-color);
}

.page-index-btn-primary:hover {
  background-color: #CC3D53; /* Slightly darker red */
  transform: translateY(-2px);
}

.page-index-btn-secondary {
  background-color: transparent;
  color: var(--page-index-text-light);
  border: 2px solid var(--page-index-text-light);
}

.page-index-btn-secondary:hover {
  background-color: var(--page-index-text-light);
  color: var(--page-index-primary-color); /* Ensure contrast */
  transform: translateY(-2px);
}

.page-index-btn-small {
  padding: 8px 18px;
  font-size: 0.9em;
}

.page-index-cta-center {
  text-align: center;
  margin-top: 40px;
}

.page-index-text-content {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--page-index-text-light);
  opacity: 0.9;
}

.page-index-sub-title {
  font-size: 1.8em;
  color: var(--page-index-secondary-color);
  margin-top: 40px;
  margin-bottom: 15px;
  border-left: 4px solid var(--page-index-secondary-color);
  padding-left: 15px;
}

/* Hero Section */
.page-index-hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--page-index-primary-color) 0%, #301934 100%); /* Darker gradient */
  padding: 80px 20px;
  min-height: 600px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-index-hero-content {
  max-width: 900px;
  z-index: 1;
}

.page-index-hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: var(--page-index-text-light);
}

.page-index-hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: var(--page-index-text-light);
  opacity: 0.9;
}

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

.page-index-hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.2;
}

.page-index-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* About Section */
.page-index-about-section {
  background-color: #282844; /* Slightly lighter dark background */
  padding: 80px 0;
}

/* Featured Games Section */
.page-index-featured-games-section {
  background-color: var(--page-index-bg-dark);
  padding: 80px 0;
}

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

.page-index-game-card {
  background-color: #282844;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-index-game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index-game-title {
  font-size: 1.5em;
  color: var(--page-index-text-light);
  margin-bottom: 10px;
}

.page-index-game-description {
  font-size: 1em;
  color: var(--page-index-text-light);
  opacity: 0.8;
  padding: 0 15px;
  margin-bottom: 20px;
}

/* Promotions Section */
.page-index-promotions-section {
  background-color: #282844;
  padding: 80px 0;
}

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

.page-index-promotion-card {
  background-color: var(--page-index-primary-color);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-index-promotion-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index-promotion-title {
  font-size: 1.4em;
  color: var(--page-index-text-light);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index-promotion-description {
  font-size: 1em;
  color: var(--page-index-text-light);
  opacity: 0.8;
  padding: 0 15px;
  margin-bottom: 20px;
}

/* App Download Section */
.page-index-app-download-section {
  background-color: var(--page-index-bg-dark);
  padding: 80px 0;
}

.page-index-app-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
}

.page-index-app-text-content {
  flex: 1;
}

.page-index-app-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-index-app-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-index-app-benefits {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-index-app-benefits li {
  font-size: 1.1em;
  color: var(--page-index-text-light);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.page-index-icon-check {
  color: var(--page-index-secondary-color);
  margin-right: 10px;
  font-size: 1.2em;
}

/* Deep Content Section */
.page-index-deep-content-section {
  background-color: #282844;
  padding: 80px 0;
}

/* Detail Pages List Section */
.page-index-detail-pages-section {
  background-color: var(--page-index-bg-dark);
  padding: 80px 0;
}

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

.page-index-detail-card {
  background-color: #282844;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-index-detail-title {
  font-size: 1.4em;
  color: var(--page-index-secondary-color);
  margin-bottom: 10px;
}

.page-index-detail-title a {
  color: var(--page-index-secondary-color);
  text-decoration: none;
}

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

.page-index-detail-description {
  font-size: 0.95em;
  color: var(--page-index-text-light);
  opacity: 0.8;
  margin-bottom: 20px;
}

/* CTA Banner */
.page-index-cta-banner {
  background: linear-gradient(90deg, var(--page-index-secondary-color), #FF6B81); /* Red gradient */
  padding: 60px 20px;
  text-align: center;
  color: var(--page-index-text-dark); /* Dark text on light background */
}

.page-index-cta-banner-title {
  font-size: 2.8em;
  margin-bottom: 15px;
  font-weight: bold;
  color: var(--page-index-text-dark);
}

.page-index-cta-banner-subtitle {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: var(--page-index-text-dark);
  opacity: 0.9;
}

.page-index-cta-banner .page-index-btn-primary {
  background-color: var(--page-index-primary-color);
  color: var(--page-index-text-light);
  border-color: var(--page-index-primary-color);
}

.page-index-cta-banner .page-index-btn-primary:hover {
  background-color: #33334F;
  border-color: #33334F;
}

.page-index-cta-banner .page-index-btn-secondary {
  background-color: transparent;
  color: var(--page-index-text-dark);
  border-color: var(--page-index-text-dark);
}

.page-index-cta-banner .page-index-btn-secondary:hover {
  background-color: var(--page-index-text-dark);
  color: var(--page-index-secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-hero-title {
    font-size: 3em;
  }
  .page-index-section-title {
    font-size: 2em;
  }
  .page-index-app-content {
    flex-direction: column;
  }
  .page-index-app-image-wrapper {
    order: -1;
    margin-bottom: 30px;
  }
  .page-index-hero-image-wrapper {
    opacity: 0.1;
  }
}

@media (max-width: 768px) {
  .page-index-hero-title {
    font-size: 2.5em;
  }
  .page-index-hero-description {
    font-size: 1.1em;
  }
  .page-index-section-title {
    font-size: 1.8em;
  }
  .page-index-section-subtitle {
    font-size: 1em;
  }
  .page-index-game-grid, .page-index-promotion-grid, .page-index-detail-grid {
    grid-template-columns: 1fr;
  }
  .page-index-hero-cta-group {
    flex-direction: column;
  }
  .page-index-cta-banner-title {
    font-size: 2em;
  }
  .page-index-cta-banner-subtitle {
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-index-hero-title {
    font-size: 2em;
  }
  .page-index-hero-description {
    font-size: 1em;
  }
  .page-index-btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-index-section-title {
    font-size: 1.5em;
  }
  .page-index-sub-title {
    font-size: 1.5em;
  }
  .page-index-cta-banner-title {
    font-size: 1.8em;
  }
}