/* style/index.css */

:root {
  --primary-color: #0A2463;
  --secondary-color: #E3B505;
  --text-dark: #333333;
  --text-light: #ffffff;
  --gray-bg: #f1f3f5;
  --border-light: #e4e4e4;
  --hot-badge-bg: #ff4d4f;
  --rank-1-gradient: linear-gradient(135deg, #FFD700, #FFA500);
  --rank-2-gradient: linear-gradient(135deg, #C0C0C0, #A0A0A0);
  --rank-3-gradient: linear-gradient(135deg, #CD7F32, #B87333);
  --rank-default-gradient: linear-gradient(135deg, #ff6b35, #ff8c42);
}

/* Base styles for the main content area */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default to light text for potentially dark shared body bg */
  background-color: var(--dark-bg-1); /* Inherit from shared.css, assuming dark */
}

/* 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: Adjust for fixed header */
  background-color: var(--primary-color);
  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;
  z-index: 1;
}

.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%;
  max-width: 800px;
}

.page-index__hero-title {
  font-size: 48px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

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

.page-index__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 10px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  border: none;
}

.page-index__cta-button:hover {
  background: #f0c929; /* Slightly darker secondary color */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Game Leaderboard Section */
.page-index__game-leaderboard-section {
  padding: 60px 20px;
  background: var(--gray-bg);
  color: var(--text-dark);
}

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

.page-index__game-leaderboard {
  max-width: 1400px; /* Wider than 1200px for better readability */
  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.08);
  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 8px 25px 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;
  position: relative;
}

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

.page-index__segment-1 {
  min-width: 120px;
  max-width: 150px;
  padding-left: 0;
}

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

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

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

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

.page-index__game-icon {
  max-width: 90px;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 10px;
}

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

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

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

.page-index__game-name-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-index__game-description {
  font-size: 15px;
  color: var(--text-dark);
  font-weight: bold;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.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: 10px;
}

.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: #0066cc;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
}

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

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

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

.page-index__cta-button {
  display: block;
  width: 100%;
  padding: 12px 15px;
  background: var(--primary-color);
  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 4px 10px rgba(0, 0, 0, 0.1);
  border: none;
}

.page-index__cta-button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.page-index__btn-review {
  background: #6c757d; /* A neutral color for secondary action */
}

.page-index__btn-review:hover {
  background: #5a6268;
  color: #ffffff;
}

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

.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.08);
  padding: 40px;
}

.page-index__review-title {
  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(--primary-color);
  margin-top: 28px;
  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 Intro Section */
.page-index__intro-section {
  padding: 60px 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

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

.page-index__text-block {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.page-index__feature-card img {
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-index__feature-card p {
  font-size: 16px;
  color: var(--text-light);
}

/* Core Game/Service Intro Section */
.page-index__games-section {
  padding: 60px 20px;
  background: var(--gray-bg);
  color: var(--text-dark);
}

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

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

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

.page-index__game-type-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__game-type-card h3 {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-index__game-type-card p {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.page-index__game-type-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease, color 0.3s ease;
}

.page-index__game-type-button:hover {
  background: #f0c929;
  color: var(--primary-color);
}

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

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

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

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

.page-index__promo-card img {
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

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

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

.page-index__promo-button:hover {
  background: #f0c929;
  color: var(--primary-color);
}

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

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

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

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

.page-index__blog-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

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

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

.page-index__blog-card p {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.page-index__blog-date {
  font-size: 13px;
  color: #6c757d;
  display: block;
}

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

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

.page-index__view-all-button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 40px;
  }
  .page-index__hero-description {
    font-size: 18px;
  }
  .page-index__cta-button {
    padding: 15px 35px;
    font-size: 18px;
  }
  .page-index__page-title {
    font-size: 32px;
  }
  .page-index__game-card {
    flex-wrap: wrap;
    padding: 15px;
  }
  .page-index__game-card-segment {
    width: 100%;
    border-left: none !important;
    padding: 10px 0;
  }
  .page-index__game-card-segment:not(:first-child) {
    border-top: 1px solid var(--border-light);
  }
  .page-index__segment-1 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-width: auto;
  }
  .page-index__rank-badge {
    position: static;
    margin-right: 10px;
    width: 28px;
    height: 28px;
    font-size: 15px;
  }
  .page-index__game-icon {
    max-width: 80px;
    margin-top: 0;
  }
  .page-index__segment-2, .page-index__segment-3, .page-index__segment-4 {
    min-width: auto;
  }
  .page-index__segment-4 {
    flex-direction: row;
    gap: 10px;
    padding-left: 0;
    padding-right: 0;
  }
  .page-index__cta-button {
    font-size: 14px;
    padding: 10px 10px;
    white-space: normal;
    word-wrap: break-word;
  }
  .page-index__review-title, .page-index__section-title {
    font-size: 28px;
  }
  .page-index__review-content-card h3 {
    font-size: 20px;
  }
  .page-index__feature-card img, .page-index__promo-card img {
    max-width: 120px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 140px !important; /* Mobile: Adjust for 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__page-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .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__game-card {
    flex-direction: column;
    align-items: stretch;
    padding: 15px 10px;
  }
  .page-index__game-card-segment {
    width: 100%;
    padding: 10px 0;
    text-align: center;
  }
  .page-index__game-card-segment:not(:first-child) {
    border-top: 1px solid var(--border-light);
  }
  .page-index__segment-1 {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
  }
  .page-index__rank-badge {
    position: static;
    margin-right: 0;
    width: 25px;
    height: 25px;
    font-size: 14px;
  }
  .page-index__game-icon {
    max-width: 70px;
    margin-top: 0;
  }
  .page-index__game-name {
    font-size: 20px;
  }
  .page-index__game-description {
    font-size: 13px;
  }
  .page-index__stars, .page-index__rating-number {
    font-size: 16px;
  }
  .page-index__promotion-link, .page-index__hot-badge {
    font-size: 11px;
  }
  .page-index__segment-4 {
    flex-direction: column;
    gap: 8px;
    padding-left: 0;
    padding-right: 0;
  }
  .page-index__cta-button {
    font-size: 13px;
    padding: 10px 10px;
    max-width: 100% !important;
    width: 100% !important;
    min-width: auto;
  }
  .page-index__review-content-card {
    padding: 25px 20px;
  }
  .page-index__review-title {
    font-size: 24px;
  }
  .page-index__review-content-card h3 {
    font-size: 18px;
  }
  .page-index__review-body p {
    font-size: 15px;
  }
  .page-index__section-title {
    font-size: 24px;
  }
  .page-index__text-block {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-index__feature-card img, .page-index__promo-card img {
    max-width: 100px;
  }
  .page-index__feature-card h3, .page-index__promo-card h3, .page-index__game-type-card h3 {
    font-size: 20px;
  }
  .page-index__feature-card p, .page-index__promo-card p, .page-index__game-type-card p {
    font-size: 14px;
  }
  .page-index__game-type-button, .page-index__promo-button {
    font-size: 14px;
    padding: 10px 20px;
  }
  .page-index__blog-card h3 {
    font-size: 18px;
  }
  .page-index__blog-card p {
    font-size: 14px;
  }
  .page-index__view-all-button {
    font-size: 16px;
    padding: 12px 25px;
  }
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section, .page-index__card, .page-index__container, .page-index__review-content-container, .page-index__game-leaderboard {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 28px;
  }
  .page-index__page-title {
    font-size: 24px;
  }
  .page-index__review-title {
    font-size: 20px;
  }
  .page-index__section-title {
    font-size: 20px;
  }
  .page-index__game-name {
    font-size: 18px;
  }
  .page-index__game-description {
    font-size: 12px;
  }
  .page-index__cta-button {
    font-size: 12px;
    padding: 8px 15px;
  }
  .page-index__segment-4 {
    gap: 6px;
  }
  .page-index__cta-button {
    font-size: 12px;
    padding: 8px 10px;
  }
  .page-index__feature-card, .page-index__promo-card, .page-index__game-type-card, .page-index__blog-card {
    padding: 20px 15px;
  }
}