/* style/index.css */
:root {
  --primary-color: #007BFF;
  --secondary-color: #FFC107;
  --dark-background: #0a0a0a;
  --light-text: #ffffff;
  --dark-text: #333333;
  --card-background: #ffffff;
  --border-color: #e0e0e0;
}

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

/* Fixed navigation bar spacing */
.page-index__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 180px; /* Desktop: Adjust for fixed nav bar */
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: var(--light-text);
}

.page-index__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-index__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-index__hero-content h1 {
  font-size: 42px;
  margin-bottom: 20px;
  color: var(--light-text);
  font-weight: bold;
}

.page-index__hero-content p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.page-index__cta-button:hover {
  background: linear-gradient(135deg, #0056b3, var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

/* Game Leaderboard Section */
.page-index__game-leaderboard-section {
  padding: 60px 20px;
  background: #f1f3ff; /* Light background for leaderboard cards */
  color: var(--dark-text);
  text-align: center;
}

.page-index__page-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--dark-text);
  margin-bottom: 40px;
}

.page-index__game-leaderboard {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-index__game-card {
  background: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  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.15);
}

.page-index__game-card-segment {
  padding: 0 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.page-index__game-card-segment:not(:first-child) {
  border-left: 1px solid var(--border-color);
}

.page-index__segment-1 {
  min-width: 120px;
  max-width: 150px;
  padding-left: 0;
  position: relative;
}

.page-index__rank-badge {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35, #ff8c42); /* Default orange */
  color: #ffffff;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-index__rank-1 {
  background: linear-gradient(135deg, #FFD700, #FFA500); /* Gold */
}

.page-index__rank-2 {
  background: linear-gradient(135deg, #C0C0C0, #A0A0A0); /* Silver */
}

.page-index__rank-3 {
  background: linear-gradient(135deg, #CD7F32, #B87333); /* Bronze */
}

.page-index__game-icon {
  max-width: 100px;
  height: auto;
  display: block;
  border-radius: 4px;
  margin-top: 10px; /* Space for rank badge */
}

.page-index__segment-2 {
  flex: 1;
  min-width: 250px;
}

.page-index__game-name {
  font-size: 24px;
  font-weight: bold;
  color: #000000;
  margin-bottom: 8px;
  text-align: center;
  text-transform: uppercase;
}

.page-index__game-name-link {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.page-index__game-name-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-index__game-description {
  font-size: 14px;
  color: #000000;
  font-weight: bold;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.page-index__game-description a {
  color: #0066cc;
  font-weight: bold;
  text-decoration: none;
}

.page-index__game-description a:hover {
  color: #004499;
  text-decoration: underline;
}

.page-index__segment-3 {
  min-width: 180px;
}

.page-index__game-rating {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.page-index__stars {
  color: var(--secondary-color);
  font-size: 18px;
  margin-right: 5px;
  font-weight: bold;
}

.page-index__rating-number {
  font-size: 18px;
  font-weight: bold;
  color: var(--dark-text);
}

.page-index__promotion-text {
  font-size: 14px;
  color: #0066cc;
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-index__promotion-link {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__promotion-link:hover {
  color: #004499;
  text-decoration: underline;
}

.page-index__hot-badge {
  background: #ff4d4d;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
}

.page-index__segment-4 {
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-index__btn-download, .page-index__btn-review {
  display: block;
  width: 100%;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
}

.page-index__btn-download {
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  color: #ffffff;
}

.page-index__btn-download:hover {
  background: linear-gradient(135deg, #0056b3, var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index__btn-review {
  background: #f0f0f0;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.page-index__btn-review:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Brand Review Content Section */
.page-index__review-content-section {
  padding: 40px 20px;
  background: #f1f3ff; /* Consistent with leaderboard background */
  color: var(--dark-text);
}

.page-index__review-content-container {
  max-width: 1400px; /* Wider for better readability */
  margin: 0 auto;
}

.page-index__review-content-card {
  background: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 40px;
}

.page-index__review-content-card h2 {
  font-size: 28px;
  font-weight: bold;
  color: var(--dark-text);
  margin-bottom: 24px;
  text-align: center;
}

.page-index__review-content-card h3 {
  font-size: 20px;
  font-weight: bold;
  color: var(--dark-text);
  margin-top: 24px;
  margin-bottom: 12px;
}

.page-index__review-body {
  color: var(--dark-text);
  line-height: 1.7;
}

.page-index__review-body p {
  margin-bottom: 16px;
  font-size: 16px;
}

/* Introduction Section */
.page-index__introduction-section {
  padding: 60px 20px;
  background: var(--dark-background);
  color: var(--light-text);
  text-align: center;
}

.page-index__introduction-section h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--light-text);
}

.page-index__introduction-section p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 30px;
}

.page-index__intro-features {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.page-index__feature-item {
  flex: 1 1 300px;
  max-width: 350px;
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index__feature-icon {
  max-width: 120px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 4px;
}

.page-index__feature-item h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-index__feature-item p {
  font-size: 16px;
  color: #e0e0e0;
}

/* Core Games Section */
.page-index__core-games-section {
  padding: 60px 20px;
  background: #f1f3ff; /* Light background */
  color: var(--dark-text);
  text-align: center;
}

.page-index__core-games-section h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--dark-text);
}

.page-index__core-games-section p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.page-index__game-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

.page-index__game-type-card {
  background: var(--card-background);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.page-index__game-type-image {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 20px;
}

.page-index__game-type-card h3 {
  font-size: 22px;
  font-weight: bold;
  color: var(--dark-text);
  margin-bottom: 10px;
}

.page-index__game-type-card p {
  font-size: 15px;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-index__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background: #f0f0f0;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-index__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.page-index__center-text {
  text-align: center;
  font-size: 18px;
  margin-top: 30px;
  color: var(--dark-text);
}

.page-index__center-text a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

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

/* Promotions Section */
.page-index__promotions-section {
  padding: 60px 20px;
  background: var(--dark-background);
  color: var(--light-text);
  text-align: center;
}

.page-index__promotions-section h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--light-text);
}

.page-index__promotions-section p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.page-index__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

.page-index__promo-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 20px;
}

.page-index__promo-card h3 {
  font-size: 22px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-index__promo-card p {
  font-size: 15px;
  color: #e0e0e0;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-index__btn-primary {
  display: inline-block;
  padding: 10px 25px;
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
}

.page-index__btn-primary:hover {
  background: linear-gradient(135deg, #0056b3, var(--primary-color));
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Latest Blog Section */
.page-index__latest-blog-section {
  padding: 60px 20px;
  background: #f1f3ff; /* Light background */
  color: var(--dark-text);
  text-align: center;
}

.page-index__latest-blog-section h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--dark-text);
}

.page-index__latest-blog-section p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.page-index__blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

.page-index__blog-card {
  background: var(--card-background);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.page-index__blog-image {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 15px;
}

.page-index__blog-card h3 {
  font-size: 20px;
  font-weight: bold;
  color: var(--dark-text);
  margin-bottom: 10px;
}

.page-index__blog-card h3 a {
  color: var(--dark-text);
  text-decoration: none;
}

.page-index__blog-card h3 a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-index__blog-card p {
  font-size: 15px;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.page-index__blog-date {
  font-size: 13px;
  color: #888888;
}

/* General container for content */
.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-content h1 {
    font-size: 36px;
  }
  .page-index__hero-content p {
    font-size: 16px;
  }
  .page-index__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-index__page-title {
    font-size: 32px;
  }
  .page-index__game-card {
    flex-wrap: wrap;
    justify-content: center;
    padding: 15px;
  }
  .page-index__game-card-segment {
    border-left: none !important;
    padding: 10px 0;
    width: 100%;
  }
  .page-index__segment-1, .page-index__segment-3, .page-index__segment-4 {
    min-width: unset;
    max-width: 100%;
  }
  .page-index__segment-2 {
    min-width: unset;
    flex: none;
  }
  .page-index__game-name {
    font-size: 20px;
  }
  .page-index__game-description {
    font-size: 13px;
  }
  .page-index__btn-download, .page-index__btn-review {
    font-size: 14px;
    padding: 10px 15px;
  }
  .page-index__intro-features {
    gap: 20px;
  }
  .page-index__feature-item {
    flex: 1 1 280px;
  }
  .page-index__game-types-grid, .page-index__promo-grid, .page-index__blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 140px !important; /* Mobile: Adjust for fixed nav bar */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__hero-content h1 {
    font-size: 28px;
  }
  .page-index__hero-content p {
    font-size: 15px;
  }
  .page-index__cta-button {
    padding: 10px 25px;
    font-size: 15px;
  }
  .page-index__page-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-index__game-leaderboard-section {
    padding: 30px 15px;
  }
  .page-index__game-card {
    padding: 10px;
  }
  .page-index__game-card-segment {
    padding: 8px 0;
  }
  .page-index__segment-1 {
    width: 100%;
    order: 1;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    padding-left: 0;
  }
  .page-index__rank-badge {
    position: static;
    margin-right: 10px;
  }
  .page-index__game-icon {
    max-width: 80px;
  }
  .page-index__segment-2 {
    width: 100%;
    order: 2;
  }
  .page-index__game-name {
    font-size: 18px;
  }
  .page-index__game-description {
    font-size: 12px;
  }
  .page-index__segment-3 {
    width: 100%;
    order: 3;
    flex-direction: row;
    gap: 15px;
  }
  .page-index__game-rating {
    margin-bottom: 0;
  }
  .page-index__promotion-text {
    font-size: 13px;
  }
  .page-index__segment-4 {
    width: 100%;
    order: 4;
    flex-direction: row; /* Buttons side-by-side on mobile */
    gap: 10px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .page-index__btn-download, .page-index__btn-review {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 12px !important;
    padding: 8px 12px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    min-width: auto !important;
  }
  .page-index__review-content-section {
    padding: 20px 15px;
  }
  .page-index__review-content-card {
    padding: 24px 20px;
  }
  .page-index__review-content-card h2 {
    font-size: 24px;
  }
  .page-index__review-content-card h3 {
    font-size: 18px;
  }
  .page-index__review-body p {
    font-size: 15px;
  }
  .page-index__introduction-section, .page-index__core-games-section, .page-index__promotions-section, .page-index__latest-blog-section {
    padding: 30px 15px;
  }
  .page-index__introduction-section h2, .page-index__core-games-section h2, .page-index__promotions-section h2, .page-index__latest-blog-section h2 {
    font-size: 26px;
  }
  .page-index__intro-features {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__feature-item {
    max-width: 100%;
    padding: 20px;
  }
  .page-index__game-types-grid, .page-index__promo-grid, .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__container {
    padding: 0 15px;
  }
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section, .page-index__card, .page-index__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}