/* style/index.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #DC143C; /* Crimson */
  --dark-background: #121212;
  --light-text: #ffffff;
  --dark-text: #333333;
  --card-background: #ffffff;
  --border-color: #e0e0e0;
  --hover-color: #ffc107;
}

.page-index {
  color: var(--light-text); /* Default text color for dark body background */
  background-color: var(--dark-background);
  padding-bottom: 50px;
}

/* Fixed navigation bar clearance */
.page-index__hero-section {
  padding-top: 180px; /* Adjust for fixed header height */
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a); /* Dark gradient background for contrast */
  overflow: hidden;
}

.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;
  padding: 0 20px;
}

.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: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-index__hero-title {
  font-size: 48px;
  font-weight: bold;
  color: var(--primary-color); /* Gold color for title */
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 20px;
  color: var(--light-text);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-index__cta-button--primary {
  background: linear-gradient(135deg, var(--primary-color), #ffc107);
  color: #000000; /* Dark text for gold background */
  border: none;
}

.page-index__cta-button--primary:hover {
  background: linear-gradient(135deg, #ffc107, var(--primary-color));
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-index__cta-button--secondary {
  background: linear-gradient(135deg, var(--secondary-color), #d00000);
  color: var(--light-text);
  border: none;
}

.page-index__cta-button--secondary:hover {
  background: linear-gradient(135deg, #d00000, var(--secondary-color));
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Game Leaderboard Section */
.page-index__game-leaderboard-section {
  background: var(--dark-background);
  padding: 60px 20px;
  color: var(--light-text);
}

.page-index__page-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-index__game-card {
  background: #222222; /* Slightly lighter dark background for cards */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 20px;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-index__game-card-segment:not(:first-child) {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__segment-1 {
  flex-basis: 150px;
  min-width: 150px;
  padding-left: 0;
  border-left: none;
  flex-direction: row;
  gap: 15px;
}

.page-index__segment-2 {
  flex: 2;
  text-align: center;
}

.page-index__segment-3 {
  flex-basis: 180px;
  min-width: 180px;
  text-align: center;
}

.page-index__segment-4 {
  flex-basis: 220px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 0;
}

.page-index__rank-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: bold;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.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__rank-badge:not(.page-index__rank-1):not(.page-index__rank-2):not(.page-index__rank-3) {
  background: linear-gradient(135deg, #ff6b35, #ff8c42); /* Orange for others */
}

.page-index__game-icon {
  max-width: 80px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-index__game-name {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color); /* Gold color for game name */
  margin-bottom: 8px;
  text-align: center;
  text-transform: uppercase;
}

.page-index__game-name-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.page-index__game-description a {
  color: #0099ff; /* Blue for links in description */
  font-weight: bold;
  text-decoration: none;
}

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

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

.page-index__stars {
  color: var(--primary-color); /* Gold stars */
  font-size: 18px;
  font-weight: bold;
}

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

.page-index__promotion-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-index__promotion-link {
  color: #0099ff;
  font-size: 14px;
  text-decoration: none;
  font-weight: bold;
}

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

.page-index__hot-badge {
  background: var(--secondary-color);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.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 10px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-index__btn-download {
  background: linear-gradient(135deg, #4CAF50, #66BB6A); /* Green for download/main action */
  color: #ffffff;
}

.page-index__btn-download:hover {
  background: linear-gradient(135deg, #66BB6A, #4CAF50);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.page-index__btn-review {
  background: linear-gradient(135deg, #2196F3, #42A5F5); /* Blue for review/secondary action */
  color: #ffffff;
}

.page-index__btn-review:hover {
  background: linear-gradient(135deg, #42A5F5, #2196F3);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* Brand Review Content Section */
.page-index__review-content-section {
  padding: 60px 20px;
  background: var(--dark-background);
  color: var(--light-text);
}

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

.page-index__review-content-card {
  background: #222222; /* Dark background for card */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__review-content-card h2 {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 24px;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.page-index__review-content-card h3 {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-top: 28px;
  margin-bottom: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.page-index__review-body {
  color: #cccccc; /* Lighter text for readability on dark background */
  line-height: 1.7;
  font-size: 16px;
}

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

.page-index__review-body strong {
  color: var(--light-text);
}

/* General Section Styles */
.page-index__section {
  padding: 60px 20px;
  background-color: var(--dark-background);
  color: var(--light-text);
}

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

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Intro Section */
.page-index__intro-section .page-index__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-index__intro-section .page-index__image-box {
  flex: 1;
  min-width: 400px;
}

.page-index__intro-section .page-index__content-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-index__intro-section .page-index__text-content {
  flex: 1.5;
  font-size: 18px;
  line-height: 1.7;
  color: #cccccc;
}

.page-index__intro-section .page-index__text-content p {
  margin-bottom: 20px;
}

.page-index__intro-section .page-index__text-content strong {
  color: var(--light-text);
}

/* Games Section */
.page-index__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-index__game-card-item {
  background: #222222;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__game-card-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-index__game-thumbnail {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-index__game-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-index__game-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__game-title a:hover {
  color: var(--hover-color);
  text-decoration: underline;
}

.page-index__game-card-item .page-index__game-description {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__cta-button--small {
  padding: 10px 25px;
  font-size: 15px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--secondary-color), #d00000);
  color: var(--light-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--small:hover {
  background: linear-gradient(135deg, #d00000, var(--secondary-color));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Promotions Section */
.page-index__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index__promo-card {
  background: #222222;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-index__promo-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.page-index__promo-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__promo-title a:hover {
  color: var(--hover-color);
  text-decoration: underline;
}

.page-index__promo-description {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__promo-description strong {
  color: var(--light-text);
}

.page-index__all-promotions-link {
  text-align: center;
  margin-top: 40px;
}

/* Blog Section */
.page-index__blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-index__blog-card {
  background: #222222;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-index__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__blog-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-index__blog-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-index__blog-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-index__blog-excerpt {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-index__blog-date {
  font-size: 14px;
  color: #999999;
  display: block;
  margin-top: auto;
}

.page-index__all-news-link {
  text-align: center;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-section {
    padding-top: 140px;
    padding-bottom: 50px;
  }

  .page-index__hero-title {
    font-size: 40px;
  }

  .page-index__hero-description {
    font-size: 18px;
  }

  .page-index__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

  .page-index__page-title {
    font-size: 30px;
  }

  .page-index__game-card {
    flex-wrap: wrap;
    padding: 15px;
  }

  .page-index__game-card-segment {
    padding: 10px;
    border-left: none !important;
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .page-index__game-card-segment:not(:first-child) {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .page-index__segment-1 {
    flex-direction: row;
    gap: 10px;
    width: 100%;
    justify-content: flex-start;
    padding-top: 0;
  }

  .page-index__rank-badge {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .page-index__game-icon {
    max-width: 70px;
  }

  .page-index__segment-2 {
    order: -1;
    text-align: left;
    align-items: flex-start;
    padding-bottom: 0;
  }

  .page-index__game-name {
    font-size: 20px;
    text-align: left;
    width: 100%;
  }

  .page-index__game-description {
    font-size: 13px;
    text-align: left;
    width: 100%;
    margin-top: 5px;
  }

  .page-index__segment-3 {
    flex-direction: row;
    justify-content: flex-start;
    gap: 15px;
    padding-bottom: 0;
    width: 100%;
  }

  .page-index__segment-4 {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 0;
    width: 100%;
    justify-content: center;
  }

  .page-index__btn-download, .page-index__btn-review {
    flex: 1;
    min-width: 140px;
    font-size: 14px;
    padding: 10px 15px;
    white-space: normal;
    word-wrap: break-word;
  }

  .page-index__review-content-card h2 {
    font-size: 28px;
  }

  .page-index__review-content-card h3 {
    font-size: 20px;
  }

  .page-index__review-body {
    font-size: 15px;
  }

  .page-index__intro-section .page-index__content-wrapper {
    flex-direction: column;
  }

  .page-index__intro-section .page-index__image-box {
    min-width: unset;
    width: 100%;
  }

  .page-index__intro-section .page-index__text-content {
    font-size: 16px;
  }

  .page-index__section-title {
    font-size: 30px;
  }

  .page-index__game-thumbnail, .page-index__promo-image {
    max-width: 250px;
  }

  .page-index__game-title, .page-index__promo-title {
    font-size: 20px;
  }

  .page-index__blog-image {
    height: 180px;
  }

  .page-index__blog-title {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 140px;
    padding-bottom: 40px;
  }

  .page-index__hero-title {
    font-size: 32px;
  }

  .page-index__hero-description {
    font-size: 16px;
  }

  .page-index__cta-button {
    padding: 10px 25px;
    font-size: 15px;
  }

  .page-index__page-title {
    font-size: 26px;
  }

  .page-index__game-leaderboard-section,
  .page-index__review-content-section,
  .page-index__section {
    padding: 40px 15px;
  }

  .page-index__game-card {
    padding: 10px;
  }

  .page-index__segment-1 {
    padding-left: 10px;
    justify-content: center;
  }

  .page-index__game-icon {
    max-width: 60px;
  }

  .page-index__game-name {
    font-size: 18px;
  }

  .page-index__game-description {
    font-size: 12px;
  }

  .page-index__segment-4 {
    padding-left: 10px;
    padding-right: 10px;
  }

  .page-index__btn-download,
  .page-index__btn-review {
    font-size: 12px;
    padding: 8px 12px;
    min-width: unset;
  }

  .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: 14px;
  }

  .page-index__intro-section .page-index__text-content {
    font-size: 15px;
  }

  .page-index__section-title {
    font-size: 26px;
  }

  .page-index__games-grid,
  .page-index__promotions-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-index__game-thumbnail, .page-index__promo-image {
    max-width: 100%;
  }

  .page-index__game-title, .page-index__promo-title {
    font-size: 20px;
  }

  .page-index__blog-image {
    height: 160px;
  }

  .page-index__blog-title {
    font-size: 18px;
  }

  .page-index__blog-excerpt {
    font-size: 14px;
  }
}