/* style/index.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #28a745;
  --accent-color: #ffc107;
  --dark-bg-color: #0a0a0a;
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --card-bg-color: #ffffff;
  --border-color: #e4e4e4;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

.page-index-body {
  background-color: var(--dark-bg-color);
  color: var(--light-text-color);
}

.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 header */
  background-color: var(--dark-bg-color);
  color: var(--light-text-color);
}

.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;
  font-weight: bold;
  color: var(--light-text-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index__hero-content p {
  font-size: 18px;
  color: #e0e0e0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.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: 30px;
  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, #003d80);
  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: #f1f3f5; /* Light background for contrast */
  color: var(--dark-text-color);
}

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

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

.page-index__game-leaderboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-index__game-card {
  background: var(--card-bg-color);
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow-color);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index__game-card-segment:not(:first-child)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background-color: var(--border-color);
}

.page-index__segment-1 {
  flex-shrink: 0;
  width: 120px;
  padding-left: 0;
  padding-right: 20px;
}

.page-index__rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35, #ff8c42); /* Default orange for 4+ */
  color: #ffffff;
  font-weight: bold;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 1;
  box-shadow: 0 2px 4px 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 badge */
}

.page-index__segment-2 {
  flex-grow: 1;
}

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

.page-index__game-name-link {
  color: var(--dark-text-color);
  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: var(--dark-text-color);
  font-weight: bold;
  text-align: center;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

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

.page-index__segment-3 {
  flex-shrink: 0;
  width: 180px;
}

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

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

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

.page-index__promotion-text {
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.page-index__promotion-link {
  color: #0066cc;
  text-decoration: none;
  font-weight: bold;
}

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

.page-index__hot-badge {
  background: #dc3545;
  color: #ffffff;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 3px;
  font-weight: bold;
  text-transform: uppercase;
}

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

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

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

.page-index__btn-download:hover {
  background: linear-gradient(135deg, #218838, #1e7e34);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index__btn-review {
  background: var(--primary-color);
  color: #ffffff;
}

.page-index__btn-review:hover {
  background: #0056b3;
  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: #f1f3f5; /* Light background for contrast */
  color: var(--dark-text-color);
}

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

.page-index__review-content-card {
  background: var(--card-bg-color); /* White background */
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow-color);
  padding: 40px;
}

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

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

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

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

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

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

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

.page-index__intro-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

.page-index__intro-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-index__feature-item {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__feature-icon {
  max-width: 100px;
  height: auto;
  margin-bottom: 15px;
}

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

.page-index__feature-item p {
  font-size: 15px;
  color: #c0c0c0;
  line-height: 1.6;
}

/* Core Game/Service Introduction Section */
.page-index__games-showcase-section {
  padding: 60px 20px;
  background: var(--card-bg-color); /* Light background */
  color: var(--dark-text-color);
  text-align: center;
}

.page-index__games-showcase-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__games-showcase-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--dark-text-color);
}

.page-index__games-showcase-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

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

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

.page-index__game-type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

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

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

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

.page-index__game-type-link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index__game-type-link:hover {
  background: #0056b3;
}

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

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

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

.page-index__promotions-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

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

.page-index__promotion-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-index__promotion-card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--light-text-color);
}

.page-index__promotion-card p {
  font-size: 15px;
  color: #c0c0c0;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__promotion-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index__promotion-button:hover {
  background: #218838;
}

/* Latest Blog Content Section */
.page-index__blog-section {
  padding: 60px 20px;
  background: var(--card-bg-color); /* Light background */
  color: var(--dark-text-color);
  text-align: center;
}

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

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

.page-index__blog-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

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

.page-index__blog-card {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.page-index__blog-image {
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 20px;
}

.page-index__blog-card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
  text-align: left;
}

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

.page-index__blog-card-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.page-index__blog-excerpt {
  font-size: 15px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: left;
  flex-grow: 1;
}

.page-index__blog-readmore {
  display: inline-block;
  padding: 8px 15px;
  background: var(--secondary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start; /* Align to left */
}

.page-index__blog-readmore:hover {
  background: #218838;
}

.page-index__view-all-posts {
  margin-top: 40px;
  text-align: center;
}

.page-index__view-all-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index__view-all-button:hover {
  background: #0056b3;
}

/* Color contrast classes */
.page-index__dark-bg {
  background: var(--dark-bg-color);
  color: var(--light-text-color);
}

.page-index__light-bg {
  background: var(--card-bg-color);
  color: var(--dark-text-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-content h1 {
    font-size: 36px;
  }
  .page-index__hero-content p {
    font-size: 16px;
  }
  .page-index__page-title,
  .page-index__intro-title,
  .page-index__games-showcase-title,
  .page-index__promotions-title,
  .page-index__blog-title {
    font-size: 28px;
  }
  .page-index__intro-description,
  .page-index__games-showcase-description,
  .page-index__promotions-description,
  .page-index__blog-description {
    font-size: 16px;
  }
  .page-index__game-card {
    flex-wrap: wrap;
    justify-content: center;
    padding: 15px;
  }
  .page-index__game-card-segment {
    width: 100%;
    padding: 10px 0;
    border-left: none !important;
  }
  .page-index__game-card-segment::before {
    display: none;
  }
  .page-index__segment-1 {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
  }
  .page-index__rank-badge {
    position: static;
    margin-bottom: 0;
  }
  .page-index__game-icon {
    margin-top: 0;
  }
  .page-index__segment-2 {
    order: 1;
  }
  .page-index__segment-3 {
    order: 2;
    width: 100%;
  }
  .page-index__segment-4 {
    order: 3;
    width: 100%;
    flex-direction: row;
    gap: 10px;
  }
  .page-index__btn-download,
  .page-index__btn-review {
    flex: 1;
    font-size: 14px;
    padding: 10px 10px;
  }
  .page-index__review-content-card h2 {
    font-size: 26px;
  }
  .page-index__review-content-card h3 {
    font-size: 19px;
  }
  .page-index__game-type-card,
  .page-index__promotion-card,
  .page-index__blog-card {
    padding: 20px;
  }
  .page-index__game-type-name,
  .page-index__promotion-card-title,
  .page-index__blog-card-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index__hero-section,
  .page-index__game-leaderboard-section,
  .page-index__review-content-section,
  .page-index__intro-section,
  .page-index__games-showcase-section,
  .page-index__promotions-section,
  .page-index__blog-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-index__hero-section {
    padding-top: 160px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
  }
  
  .page-index__hero-content h1 {
    font-size: 28px;
  }
  .page-index__hero-content p {
    font-size: 15px;
  }
  .page-index__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-index__page-title,
  .page-index__intro-title,
  .page-index__games-showcase-title,
  .page-index__promotions-title,
  .page-index__blog-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .page-index__intro-description,
  .page-index__games-showcase-description,
  .page-index__promotions-description,
  .page-index__blog-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-index__game-card {
    padding: 10px;
  }
  .page-index__segment-1 {
    gap: 10px;
  }
  .page-index__rank-badge {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .page-index__game-icon {
    max-width: 80px;
  }
  .page-index__game-name {
    font-size: 20px;
  }
  .page-index__game-description {
    font-size: 13px;
  }
  .page-index__stars {
    font-size: 16px;
  }
  .page-index__rating-number {
    font-size: 14px;
  }
  .page-index__promotion-text {
    font-size: 13px;
  }
  .page-index__segment-4 {
    flex-direction: column;
    gap: 8px;
  }
  .page-index__btn-download,
  .page-index__btn-review {
    padding: 8px 10px;
    font-size: 12px;
    width: 100% !important;
    max-width: 100% !important;
  }
  .page-index__review-content-card {
    padding: 25px 20px;
  }
  .page-index__review-content-card h2 {
    font-size: 22px;
  }
  .page-index__review-content-card h3 {
    font-size: 17px;
  }
  .page-index__review-body p {
    font-size: 14px;
  }
  .page-index__feature-item,
  .page-index__game-type-card,
  .page-index__promotion-card,
  .page-index__blog-card {
    padding: 15px;
  }
  .page-index__feature-title,
  .page-index__game-type-name,
  .page-index__promotion-card-title,
  .page-index__blog-card-title {
    font-size: 18px;
  }
  .page-index__feature-item p,
  .page-index__game-type-card p,
  .page-index__promotion-card p,
  .page-index__blog-excerpt {
    font-size: 14px;
  }
  .page-index__game-type-image,
  .page-index__promotion-image,
  .page-index__blog-image {
    height: 150px;
  }
  .page-index__blog-readmore,
  .page-index__game-type-link,
  .page-index__promotion-button {
    font-size: 13px;
    padding: 8px 12px;
  }
  .page-index__view-all-button {
    font-size: 14px;
    padding: 10px 20px;
  }
}