/* style/index.css */

:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #00CED1; /* Turquoise */
  --dark-background: #1a1a2e;
  --light-text: #ffffff;
  --dark-text: #333333;
  --gray-light: #f1f3f5;
  --gray-border: #e4e4e4;
  --error-color: #dc3545;
}

/* Base styles for the page content, considering dark body background */
.page-index {
  color: var(--light-text); /* Default text color for dark body background */
  background-color: var(--dark-background); /* Ensure consistent background */
}

/* HERO Main Image Area */
.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: var(--dark-background); /* Ensure background is dark */
  color: var(--light-text);
  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;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

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

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

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

.page-index__highlight-text {
  color: var(--primary-color);
  font-weight: bold;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(135deg, var(--primary-color), #FFA500); /* Gold to Orange */
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-index__cta-button:hover {
  background: linear-gradient(135deg, #FFA500, #FF8C00); /* Slightly darker orange */
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

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

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

.page-index__leaderboard-intro {
  font-size: 18px;
  color: #555555;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.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: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--gray-border);
}

.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;
  position: relative;
  height: 100%; /* Ensure segments take full height for borders */
  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: 15%;
  bottom: 15%;
  width: 1px;
  background-color: var(--gray-border);
}

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

.page-index__rank-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: bold;
  font-size: 16px;
  position: absolute;
  top: -10px;
  left: -10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #ff6b35, #ff8c42); /* Default orange for 4+ */
}

.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: 90px;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-index__segment-2 {
  flex-grow: 1;
  min-width: 200px;
}

.page-index__game-name {
  font-size: 24px;
  font-weight: bold;
  color: #000000;
  margin-bottom: 8px;
  text-align: center;
  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;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin: 0;
}

.page-index__game-description a {
  color: #0066cc;
  font-weight: bold;
  text-decoration: none;
}

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

.page-index__bold-text {
  font-weight: bold;
}

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

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

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

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

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

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

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

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

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

.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-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-index__btn-download {
  background: linear-gradient(135deg, #28a745, #218838); /* Green gradient */
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

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

.page-index__btn-review {
  background: linear-gradient(135deg, #007bff, #0056b3); /* Blue gradient */
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.page-index__btn-review:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
}

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

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

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

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

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

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

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

.page-index__review-body a {
  color: #0066cc;
  text-decoration: none;
  font-weight: bold;
}

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

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

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

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

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

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

.page-index__feature-item {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-index__feature-icon {
  max-width: 100px; /* Increased icon size */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index__feature-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color); /* Turquoise for feature titles */
  margin-bottom: 10px;
}

.page-index__feature-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--light-text);
}

/* Core Game/Service Introduction */
.page-index__games-intro-section {
  padding: 60px 20px;
  background: var(--gray-light);
  color: var(--dark-text);
  text-align: center;
}

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

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

.page-index__games-intro-description {
  font-size: 18px;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__game-type-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--gray-border);
}

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

.page-index__game-type-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.page-index__game-type-text {
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
}

.page-index__game-type-text a {
  color: #0066cc;
  text-decoration: none;
  font-weight: bold;
}

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

.page-index__game-type-button {
  display: inline-block;
  padding: 10px 25px;
  background: linear-gradient(135deg, var(--secondary-color), #00A8A8); /* Turquoise gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 206, 209, 0.3);
}

.page-index__game-type-button:hover {
  background: linear-gradient(135deg, #00A8A8, #008C8C);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 206, 209, 0.4);
}

.page-index__game-tips {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-top: 40px;
  text-align: left;
  border: 1px solid var(--gray-border);
}

.page-index__game-tips h3 {
  font-size: 24px;
  font-weight: bold;
  color: var(--dark-text);
  margin-bottom: 20px;
  text-align: center;
}

.page-index__game-tips ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.page-index__game-tips li {
  margin-bottom: 10px;
  font-size: 16px;
  color: #555555;
  position: relative;
  padding-left: 25px;
  line-height: 1.6;
}

.page-index__game-tips li::before {
  content: '★';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-size: 18px;
  line-height: 1.6;
}

.page-index__game-tips p {
  font-size: 16px;
  color: #555555;
  line-height: 1.6;
}

.page-index__game-tips p a {
  color: #0066cc;
  text-decoration: none;
  font-weight: bold;
}

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

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

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

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

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

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

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

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

.page-index__promo-image {
  max-width: 120px; /* Larger promo images */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__promo-card-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--light-text);
  margin-bottom: 20px;
}

.page-index__promo-card-text a {
  color: #00CED1;
  text-decoration: none;
  font-weight: bold;
}

.page-index__promo-card-text a:hover {
  text-decoration: underline;
  color: #00A8A8;
}

.page-index__promo-card-button {
  display: inline-block;
  padding: 10px 25px;
  background: linear-gradient(135deg, var(--primary-color), #FFA500);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.page-index__promo-card-button:hover {
  background: linear-gradient(135deg, #FFA500, #FF8C00);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

.page-index__view-all-promos {
  margin-top: 50px;
}

/* Latest Blog Content */
.page-index__blog-section {
  padding: 60px 20px;
  background: var(--gray-light);
  color: var(--dark-text);
  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(--dark-text);
  margin-bottom: 20px;
}

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

.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: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--gray-border);
  overflow: hidden;
}

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

.page-index__blog-image {
  width: 100%;
  height: 200px; /* Fixed height for blog images */
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

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

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

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

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

.page-index__blog-summary {
  font-size: 15px;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 15px;
  display: block;
}

.page-index__blog-date {
  font-size: 14px;
  color: #888888;
}

.page-index__view-all-blogs {
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: 40px;
  }
  .page-index__hero-description {
    font-size: 18px;
  }
  .page-index__leaderboard-title,
  .page-index__review-main-title,
  .page-index__intro-title,
  .page-index__games-intro-title,
  .page-index__promotions-title,
  .page-index__blog-title {
    font-size: 30px;
  }
  .page-index__game-card {
    flex-wrap: wrap;
    justify-content: center;
  }
  .page-index__game-card-segment {
    width: 100%;
    padding: 10px 0;
    border-left: none !important;
  }
  .page-index__game-card-segment:not(:first-child)::before {
    display: none;
  }
  .page-index__segment-1 {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding-top: 0;
  }
  .page-index__rank-badge {
    position: static;
    margin-right: 10px;
    top: auto;
    left: auto;
  }
  .page-index__game-icon {
    margin-top: 0;
  }
  .page-index__segment-2 {
    order: -1;
    margin-bottom: 15px;
  }
  .page-index__segment-3,
  .page-index__segment-4 {
    width: 100%;
    margin-top: 15px;
  }
  .page-index__game-name {
    font-size: 22px;
  }
  .page-index__game-description {
    font-size: 13px;
  }
  .page-index__game-rating {
    font-size: 16px;
  }
  .page-index__hot-badge {
    font-size: 11px;
  }
  .page-index__btn-download, .page-index__btn-review {
    font-size: 15px;
    padding: 10px 15px;
  }
  .page-index__feature-item,
  .page-index__game-type-card,
  .page-index__promo-card,
  .page-index__blog-card {
    padding: 25px;
  }
  .page-index__blog-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 160px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-index__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .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-intro-section,
  .page-index__promotions-section,
  .page-index__blog-section {
    padding: 40px 15px;
  }
  .page-index__leaderboard-title,
  .page-index__review-main-title,
  .page-index__intro-title,
  .page-index__games-intro-title,
  .page-index__promotions-title,
  .page-index__blog-title {
    font-size: 28px;
  }
  .page-index__leaderboard-intro,
  .page-index__intro-description,
  .page-index__games-intro-description,
  .page-index__promotions-description,
  .page-index__blog-description {
    font-size: 16px;
  }
  .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__game-name {
    font-size: 20px;
  }
  .page-index__game-description {
    font-size: 12px;
  }
  .page-index__segment-4 {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 10px;
    padding-right: 10px;
  }
  .page-index__btn-download,
  .page-index__btn-review {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 12px !important;
    padding: 8px 12px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    min-width: auto !important;
  }
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__game-leaderboard-section,
  .page-index__review-content-section,
  .page-index__intro-section,
  .page-index__games-intro-section,
  .page-index__promotions-section,
  .page-index__blog-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__feature-icon {
    max-width: 80px;
  }
  .page-index__promo-image {
    max-width: 100px;
  }
  .page-index__blog-image {
    height: 150px;
  }
}