/* style/index.css */

:root {
  --primary-color: #0A192F;
  --secondary-color: #FFD700;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --background-light: #f1f3f5;
  --border-light: #e4e4e4;
}

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

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

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

.page-index__dark-section .page-index__section-title {
  color: var(--text-color-light);
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* HERO 主图区域样式 */
.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(--primary-color); /* Dark background for hero */
}

.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%;
  color: var(--text-color-light);
}

.page-index__hero-content h1 {
  font-size: 48px;
  color: var(--text-color-light);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index__hero-content p {
  font-size: 20px;
  color: var(--text-color-light);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* 模块 1: 游戏排行榜样式 */
.page-index__game-leaderboard-section {
  padding: 60px 0;
  background-color: var(--background-light);
}

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

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

.page-index__game-card {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  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;
}

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

.page-index__segment-1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  max-width: 150px;
  padding-left: 0;
}

.page-index__rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.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 4+ */
}

.page-index__game-icon {
  max-width: 100px;
  height: auto;
  display: block;
  object-fit: contain;
}

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

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

.page-index__game-name-link {
  color: inherit;
  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;
  line-height: 1.4;
}

.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: 150px;
  text-align: center;
}

.page-index__game-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: #FFD700; /* Yellow stars */
}

.page-index__stars {
  font-size: 18px;
  margin-right: 5px;
  font-weight: bold;
}

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

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

.page-index__promotion-link {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-index__promotion-link:hover {
  color: var(--primary-color);
}

.page-index__hot-badge {
  background: #ff4d4f;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.page-index__segment-4 {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
  max-width: 200px;
  text-align: center;
}

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

.page-index__btn-download {
  background: var(--primary-color);
  color: var(--text-color-light);
}

.page-index__btn-download:hover {
  background: #071221;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-index__btn-review:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* 模块 1.5: 品牌评测内容正文 */
.page-index__review-content-section {
  padding: 40px 0;
  background: var(--background-light);
}

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

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

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

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

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

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

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

/* 模块 2: Trang chủ giới thiệu */
.page-index__introduction-section {
  padding: 60px 0;
  background-color: var(--primary-color);
}

.page-index__introduction-section .page-index__section-title {
  color: var(--text-color-light);
}

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

.page-index__intro-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-index__intro-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}

.page-index__intro-icon {
  max-width: 80px;
  height: auto;
  margin-bottom: 20px;
  filter: brightness(1.2); /* Slight brightness for better visibility on dark bg */
}

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

.page-index__intro-item p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-color-light);
}

/* 模块 3: Core game/service types */
.page-index__game-types-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: var(--text-color-dark);
}

.page-index__game-types-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.page-index__tab-button {
  background: var(--background-light);
  color: var(--primary-color);
  border: 1px solid var(--border-light);
  padding: 12px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-index__tab-button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
}

.page-index__tab-button.active {
  background: var(--primary-color);
  color: var(--text-color-light);
  border-color: var(--primary-color);
}

.page-index__game-types-content {
  margin-top: 30px;
}

.page-index__tab-content {
  display: none;
  animation: fadeIn 0.5s ease-in-out forwards;
}

.page-index__tab-content.active {
  display: block;
}

.page-index__tab-content h3 {
  font-size: 28px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-index__tab-content-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  align-items: center;
}

.page-index__tab-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-index__tab-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-color-dark);
}

.page-index__learn-more-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.page-index__learn-more-button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

/* 模块 4: Ưu đãi hoạt động */
.page-index__promotions-section {
  padding: 60px 0;
  background-color: var(--primary-color);
}

.page-index__promotions-section .page-index__section-title {
  color: var(--text-color-light);
}

.page-index__promotions-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);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  color: var(--text-color-light);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-index__promotion-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}

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

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

.page-index__promotion-card p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-index__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
}

/* 模块 5: Latest blog content */
.page-index__blog-section {
  padding: 60px 0;
  background-color: var(--background-light);
}

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

.page-index__blog-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: var(--text-color-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}