/* style/index.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #1A1A1A;
  --text-light: #f0f0f0;
  --text-dark: #333333;
  --gradient-gold: linear-gradient(135deg, #FFD700, #FFA500);
  --gradient-silver: linear-gradient(135deg, #C0C0C0, #A0A0A0);
  --gradient-bronze: linear-gradient(135deg, #CD7F32, #B87333);
  --gradient-orange: linear-gradient(135deg, #ff6b35, #ff8c42);
}

.page-index {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--secondary-color); /* Inherited from shared.css, which is dark */
}

.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(--secondary-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;
  overflow: hidden;
  border-radius: 8px;
}

.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-light);
}

.page-index__hero-title {
  font-size: 48px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index__hero-title .highlight {
  color: #ffffff;
}

.page-index__hero-description {
  font-size: 20px;
  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: var(--gradient-gold);
  color: #ffffff;
  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: linear-gradient(135deg, #FFA500, #FFD700);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-index__game-leaderboard-section {
  padding: 60px 20px;
  background: #f1f3f5; /* Light background for leaderboard */
  color: var(--text-dark);
}

.page-index__page-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-dark);
  text-align: center;
  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: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  align-items: center;
  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;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

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

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

.page-index__rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-orange);
  color: #ffffff;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-index__rank-1 {
  background: var(--gradient-gold);
}

.page-index__rank-2 {
  background: var(--gradient-silver);
}

.page-index__rank-3 {
  background: var(--gradient-bronze);
}

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

.page-index__segment-2 {
  flex: 1;
  padding-left: 20px;
  padding-right: 20px;
}

.page-index__game-name {
  font-size: 24px;
  font-weight: bold;
  color: #000000;
  text-align: center;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.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;
  margin: 0;
  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 {
  flex-shrink: 0;
  width: 180px;
  padding-left: 20px;
  padding-right: 20px;
}

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

.page-index__stars {
  color: #FFD700;
  margin-right: 5px;
  font-weight: bold;
}

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

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

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

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

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

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

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

.page-index__btn-review {
  background: #6c757d;
}

.page-index__btn-download:hover {
  background: linear-gradient(135deg, #ff8c42, #ff6b35);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

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

/* Brand review content section */
.page-index__review-content-section {
  padding: 40px 20px;
  background: #f1f3f5; /* Light background */
  color: var(--text-dark);
}

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

.page-index__review-content-card {
  background: #ffffff; /* White background */
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Shadow */
  padding: 40px;
}

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

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

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

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

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

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

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

.page-index__dark-bg {
  background: var(--secondary-color);
  color: var(--text-light);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-index__section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: inherit;
}

.page-index__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

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

.page-index__intro-card {
  background: #ffffff;
  color: var(--text-dark);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__intro-icon {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  display: inline-block;
}

.page-index__intro-subtitle {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-index__intro-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
}

/* Core Games/Services Section */
.page-index__games-section {
  padding: 60px 20px;
  background: var(--secondary-color); /* Dark background */
  color: var(--text-light);
}

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

.page-index__game-card-item {
  display: block;
  background: #333333;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-index__game-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  padding: 15px 20px 5px;
}

.page-index__game-text {
  font-size: 15px;
  color: #cccccc;
  padding: 0 20px 20px;
  line-height: 1.5;
}

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

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

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

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

.page-index__promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

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

.page-index__promo-text {
  font-size: 15px;
  color: var(--text-dark);
  padding: 0 20px 20px;
  line-height: 1.5;
}

.page-index__promo-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--gradient-orange);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 20px;
  transition: background 0.3s ease;
}

.page-index__promo-button:hover {
  background: linear-gradient(135deg, #ff8c42, #ff6b35);
}

/* Latest Blog Content Section */
.page-index__blog-section {
  padding: 60px 20px;
  background: var(--secondary-color); /* Dark background */
  color: var(--text-light);
}

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

.page-index__blog-card {
  background: #333333;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-index__blog-card-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  padding: 15px 20px 5px;
}

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

.page-index__blog-card-title a:hover {
  text-decoration: underline;
}

.page-index__blog-excerpt {
  font-size: 15px;
  color: #cccccc;
  padding: 0 20px 15px;
  line-height: 1.5;
}

.page-index__blog-read-more {
  display: inline-block;
  padding: 8px 15px;
  background: var(--gradient-orange);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  margin: 0 20px 20px;
  transition: background 0.3s ease;
}

.page-index__blog-read-more:hover {
  background: linear-gradient(135deg, #ff8c42, #ff6b35);
}

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

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

.page-index__view-all-button:hover {
  background: #f0c000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 40px;
  }

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

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

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

  .page-index__game-card-segment {
    width: 100%;
    padding: 10px 0;
    border-left: none !important;
  }

  .page-index__game-card-segment:not(:first-child) {
    border-top: 1px solid #e4e4e4;
  }

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

  .page-index__rank-badge {
    position: static;
  }

  .page-index__game-icon {
    margin-top: 0;
  }

  .page-index__segment-2,
  .page-index__segment-3,
  .page-index__segment-4 {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .page-index__segment-2 h3,
  .page-index__segment-2 p {
    text-align: left;
  }

  .page-index__segment-3 {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .page-index__promotion-text {
    justify-content: flex-end;
  }

  .page-index__segment-4 {
    flex-direction: row;
    justify-content: space-around;
    gap: 15px;
  }
  
  .page-index__btn-download, .page-index__btn-review {
    width: auto;
    flex: 1;
    min-width: 120px;
  }

  .page-index__intro-icon {
    width: 100px;
  }

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

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 160px !important; /* Mobile: Adjust for mobile fixed header */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-index__hero-title {
    font-size: 32px;
  }

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

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

  .page-index__game-leaderboard-section,
  .page-index__review-content-section,
  .page-index__intro-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__blog-section {
    padding: 30px 15px;
  }

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

  .page-index__review-content-card,
  .page-index__light-bg,
  .page-index__dark-bg {
    padding: 25px 20px;
  }

  .page-index__review-title {
    font-size: 24px;
  }

  .page-index__review-subtitle {
    font-size: 18px;
  }

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

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

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

  .page-index__intro-icon {
    width: 80px;
  }

  .page-index__intro-subtitle {
    font-size: 20px;
  }

  .page-index__game-title,
  .page-index__promo-title,
  .page-index__blog-card-title {
    font-size: 18px;
  }

  .page-index__game-text,
  .page-index__promo-text,
  .page-index__blog-excerpt {
    font-size: 14px;
  }

  .page-index__promo-button,
  .page-index__blog-read-more {
    font-size: 14px;
    padding: 8px 18px;
  }

  .page-index__view-all-button {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index__hero-image img {
    border-radius: 4px !important;
  }

  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__review-content-card,
  .page-index__intro-card,
  .page-index__game-card-item,
  .page-index__promo-card,
  .page-index__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .page-index__game-card {
    padding: 10px;
  }

  .page-index__segment-4 {
    padding: 0;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .page-index__btn-download, .page-index__btn-review {
    font-size: 12px;
    padding: 8px 10px;
    min-width: unset;
    width: calc(50% - 4px);
  }

  .page-index__segment-1 {
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-index__game-icon {
    max-width: 60px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 28px;
  }
  .page-index__cta-button {
    font-size: 14px;
    padding: 10px 25px;
  }
  .page-index__page-title {
    font-size: 22px;
  }
  .page-index__game-name {
    font-size: 20px;
  }
  .page-index__intro-grid,
  .page-index__games-grid,
  .page-index__promo-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
  }
  .page-index__btn-download, .page-index__btn-review {
    width: 100%;
  }
}