/* style/index.css */

:root {
  --primary-color: #1A73E8;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --border-light: #e0e0e0;
  --gradient-gold-1: linear-gradient(135deg, #FFD700, #FFA500);
  --gradient-silver-2: linear-gradient(135deg, #C0C0C0, #A0A0A0);
  --gradient-bronze-3: linear-gradient(135deg, #CD7F32, #B87333);
  --gradient-orange-default: linear-gradient(135deg, #ff6b35, #ff8c42);
}

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

/* Ensure images are responsive by default */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-index__btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__btn-primary:hover {
  background: #155cb8;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-index__btn-secondary {
  background: var(--text-light);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-index__btn-secondary:hover {
  background: #f0f0f0;
  color: #155cb8;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* HERO Section */
.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 padding-top for fixed header */
  background: var(--primary-color);
  color: var(--text-light);
  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;
}

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

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

.page-index__hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--secondary-color); /* Gold color for heading */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-index__hero-content p {
  font-size: 20px;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-light);
}

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

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

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

.page-index__game-card {
  background: var(--text-light);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  align-items: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

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

.page-index__rank-1 {
  background: var(--gradient-gold-1);
}
.page-index__rank-2 {
  background: var(--gradient-silver-2);
}
.page-index__rank-3 {
  background: var(--gradient-bronze-3);
}

.page-index__game-icon {
  max-width: 80px; /* Reduced from 100px to fit better with smaller badge */
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  margin-top: 10px; /* Adjust for badge position */
}

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

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

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

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

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

.page-index__segment-3 {
  flex-shrink: 0;
  width: 180px;
  text-align: center;
  padding-left: 20px;
  padding-right: 20px;
}

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

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

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

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

.page-index__promotion-link {
  color: var(--primary-color);
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

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

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

.page-index__review-content-container {
  max-width: 1400px;
  margin: 0 auto;
}

.page-index__review-content-card {
  background: var(--text-light);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 40px;
}

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

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

.page-index__review-body {
  color: #333333;
  line-height: 1.7;
  font-size: 16px;
}

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

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

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

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

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

.page-index__introduction-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-index__introduction-text {
  font-size: 18px;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-index__feature-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

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

.page-index__feature-icon {
  width: 100px;
  height: auto;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

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

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

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

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

.page-index__core-games-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-index__core-games-description {
  font-size: 18px;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #555555;
}

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

.page-index__game-card-item {
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-index__game-card-item p {
  font-size: 15px;
  color: #666666;
  margin-bottom: 20px;
}

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

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

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

.page-index__promotions-description {
  font-size: 18px;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

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

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

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

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

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

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

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

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

.page-index__blog-description {
  font-size: 18px;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #555555;
}

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

.page-index__blog-card {
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: left;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.page-index__blog-content {
  padding: 25px;
}

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

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

.page-index__blog-content h3 a:hover {
  text-decoration: underline;
}

.page-index__blog-content p {
  font-size: 15px;
  color: #666666;
  margin-bottom: 15px;
}

.page-index__blog-date {
  font-size: 13px;
  color: #999999;
  display: block;
  margin-bottom: 15px;
}

.page-index__blog-readmore {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
}

.page-index__blog-readmore:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-content h1 {
    font-size: 40px;
  }
  .page-index__hero-content p {
    font-size: 18px;
  }
  .page-index__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-index__game-card {
    flex-wrap: wrap;
    justify-content: center;
    padding: 15px;
  }
  .page-index__game-card-segment {
    padding: 10px;
    border-left: none !important;
    width: 100%;
    align-items: center;
    text-align: center;
  }
  .page-index__game-card-segment:not(:first-child) {
    border-top: 1px solid var(--border-light);
    padding-top: 15px;
  }
  .page-index__segment-1 {
    width: 100%;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
  }
  .page-index__rank-badge {
    position: static;
    margin-right: 10px;
  }
  .page-index__game-icon {
    max-width: 80px;
  }
  .page-index__segment-2, .page-index__segment-3, .page-index__segment-4 {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
  .page-index__segment-4 {
    flex-direction: row;
    gap: 15px;
    margin-top: 15px;
  }
  .page-index__btn-download, .page-index__btn-review {
    flex: 1;
    font-size: 14px;
    padding: 10px 15px;
    white-space: normal;
    word-wrap: break-word;
  }
  .page-index__page-title, .page-index__review-content-card h2, .page-index__introduction-title, .page-index__core-games-title, .page-index__promotions-title, .page-index__blog-title {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 140px !important; /* Mobile padding-top */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__hero-image img {
    border-radius: 8px;
  }
  .page-index__hero-content h1 {
    font-size: 32px;
  }
  .page-index__hero-content p {
    font-size: 16px;
  }
  .page-index__cta-button {
    padding: 10px 25px;
    font-size: 15px;
  }
  .page-index__game-leaderboard-section,
  .page-index__review-content-section,
  .page-index__introduction-section,
  .page-index__core-games-section,
  .page-index__promotions-section,
  .page-index__blog-section {
    padding: 30px 15px;
  }
  .page-index__page-title, .page-index__review-content-card h2, .page-index__introduction-title, .page-index__core-games-title, .page-index__promotions-title, .page-index__blog-title {
    font-size: 26px;
  }
  .page-index__review-content-card {
    padding: 25px 20px;
  }
  .page-index__review-content-card h3 {
    font-size: 20px;
  }
  .page-index__review-body p {
    font-size: 15px;
  }
  .page-index__introduction-text, .page-index__core-games-description, .page-index__promotions-description, .page-index__blog-description {
    font-size: 16px;
  }
  .page-index__features-grid, .page-index__game-showcase, .page-index__promo-grid, .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__feature-item, .page-index__game-card-item, .page-index__promo-card, .page-index__blog-card {
    padding: 20px;
  }
  .page-index__feature-item h3, .page-index__game-card-item h3, .page-index__promo-card h3 {
    font-size: 20px;
  }
  .page-index__feature-item p, .page-index__game-card-item p, .page-index__promo-card p {
    font-size: 14px;
  }
  .page-index__blog-content h3 {
    font-size: 18px;
  }
  .page-index__blog-image {
    height: 180px;
  }
  
  /* Force all images and their containers to be responsive */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__hero-container,
  .page-index__game-leaderboard,
  .page-index__review-content-container,
  .page-index__review-content-card,
  .page-index__introduction-container,
  .page-index__features-grid,
  .page-index__game-showcase,
  .page-index__game-card-item,
  .page-index__promotions-container,
  .page-index__promo-grid,
  .page-index__promo-card,
  .page-index__blog-container,
  .page-index__blog-grid,
  .page-index__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__segment-4 {
    flex-direction: column;
    gap: 8px;
  }
  .page-index__btn-download, .page-index__btn-review {
    font-size: 12px;
    padding: 8px 12px;
    width: 100%;
    max-width: 100%;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .page-index__hero-content h1 {
    font-size: 28px;
  }
  .page-index__hero-content p {
    font-size: 15px;
  }
  .page-index__page-title, .page-index__review-content-card h2, .page-index__introduction-title, .page-index__core-games-title, .page-index__promotions-title, .page-index__blog-title {
    font-size: 24px;
  }
  .page-index__review-content-card h3, .page-index__feature-item h3, .page-index__game-card-item h3, .page-index__promo-card h3 {
    font-size: 18px;
  }
  .page-index__game-name {
    font-size: 20px;
  }
  .page-index__game-description {
    font-size: 13px;
  }
  .page-index__stars {
    font-size: 18px;
  }
  .page-index__rating-number {
    font-size: 16px;
  }
  .page-index__promotion-link {
    font-size: 13px;
  }
  .page-index__hero-image img {
    border-radius: 4px;
  }
}