/* style/index.css */
:root {
  --primary-color: #0A192F;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-grey: #f1f3f5;
  --border-light: #e4e4e4;
  --success-color: #28a745;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
}

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

/* Fixed navigation bar spacing */
.page-index__hero-section {
  padding-top: 180px; /* Desktop: Adjust based on fixed header height */
  padding-bottom: 60px;
}

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

/* HERO Section */
.page-index__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a2a47 100%); /* Dark gradient background */
  color: var(--text-light);
}

.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;
  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-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color);
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-index__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-index__hero-description a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-index__hero-description a:hover {
  text-decoration: underline;
}

.page-index__hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  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);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.page-index__cta-button--primary {
  background: linear-gradient(135deg, var(--secondary-color), #e6b800);
  color: var(--primary-color);
}

.page-index__cta-button--primary:hover {
  background: linear-gradient(135deg, #e6b800, #cc9900);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-index__cta-button--secondary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--secondary-color);
}

.page-index__cta-button--secondary:hover {
  background: #1a2a47;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-index__cta-button--small {
  padding: 10px 25px;
  font-size: 16px;
  border-radius: 6px;
}

.page-index__cta-button--text {
  background: none;
  color: var(--primary-color);
  box-shadow: none;
  padding: 0;
  font-size: 16px;
  font-weight: bold;
  text-decoration: underline;
  display: inline-block;
  margin-top: 15px;
}

.page-index__cta-button--text:hover {
  color: #0056b3;
  text-decoration: none;
  transform: none;
  box-shadow: none;
}

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

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

.page-index__game-leaderboard {
  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);
  display: flex;
  align-items: center;
  padding: 20px;
  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 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  height: 100%;
  box-sizing: border-box;
  position: relative;
}

.page-index__game-card-segment:not(:first-child)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background-color: var(--border-light);
}

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

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

.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: 100px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

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

.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: #0066cc;
  text-decoration: underline;
}

.page-index__game-description {
  font-size: 14px;
  color: var(--text-dark);
  font-weight: bold;
  text-align: center;
  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;
  max-width: 200px;
  text-align: center;
  padding-right: 20px;
}

.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(--primary-color);
}

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

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

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

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

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

.page-index__btn-download,
.page-index__btn-review {
  width: 100%;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  border: none;
}

.page-index__btn-download {
  background: linear-gradient(135deg, var(--secondary-color), #e6b800);
  color: var(--primary-color);
}

.page-index__btn-download:hover {
  background: linear-gradient(135deg, #e6b800, #cc9900);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-index__btn-review {
  background: var(--primary-color);
  color: var(--text-light);
  border: 1px solid var(--secondary-color);
}

.page-index__btn-review:hover {
  background: #1a2a47;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-index__review-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.3;
}

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

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

.page-index__review-body h3 {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.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 Section */
.page-index__intro-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #1a2a47 0%, var(--primary-color) 100%);
  color: var(--text-light);
}

.page-index__intro-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-index__intro-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-index__intro-content p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-index__intro-content a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

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

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

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

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

.page-index__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-index__feature-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 0;
}

/* Core Games/Services Introduction Section */
.page-index__games-services-section {
  padding: 60px 0;
  background: var(--background-grey);
  color: var(--text-dark);
}

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

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

.page-index__game-card-large {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-index__game-card-content {
  padding: 25px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-index__game-card-content p {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a2a47 100%);
  color: var(--text-light);
}

.page-index__promotions-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-index__promotions-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;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-index__promo-card-content {
  padding: 25px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__promo-card-content h3 {
  font-size: 22px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-index__promo-card-content p {
  font-size: 16px;
  color: #e0e0e0;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

.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: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-index__blog-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-index__blog-card-content {
  padding: 25px;
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

.page-index__blog-link:hover {
  color: #0066cc;
  text-decoration: underline;
}

.page-index__blog-card-content p {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__view-all-news {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 42px;
  }
  .page-index__hero-description {
    font-size: 18px;
  }
  .page-index__page-title,
  .page-index__intro-title,
  .page-index__games-services-title,
  .page-index__promotions-title,
  .page-index__blog-title {
    font-size: 32px;
  }
  .page-index__review-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 140px !important; /* Mobile: Adjust based on fixed header height */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__hero-title {
    font-size: 32px;
  }
  .page-index__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-index__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__cta-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-index__page-title,
  .page-index__intro-title,
  .page-index__games-services-title,
  .page-index__promotions-title,
  .page-index__blog-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-index__review-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .page-index__review-content-card {
    padding: 25px 20px;
  }
  .page-index__review-body h3 {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .page-index__review-body p {
    font-size: 15px;
  }

  .page-index__game-leaderboard-section,
  .page-index__intro-section,
  .page-index__games-services-section,
  .page-index__promotions-section,
  .page-index__blog-section {
    padding: 40px 0;
  }
  .page-index__container {
    padding: 0 15px;
  }

  .page-index__game-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    gap: 15px;
  }

  .page-index__game-card-segment {
    padding: 0;
    width: 100%;
  }
  .page-index__game-card-segment:not(:first-child)::before {
    display: none;
  }
  .page-index__segment-1 {
    min-width: unset;
    max-width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
  }
  .page-index__rank-badge {
    position: static;
    width: 30px;
    height: 30px;
    font-size: 16px;
    box-shadow: none;
  }
  .page-index__game-icon {
    max-width: 80px;
    margin-top: 0;
  }
  .page-index__segment-2 {
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
    align-items: flex-start;
    text-align: left;
  }
  .page-index__game-name {
    font-size: 20px;
    text-align: left;
  }
  .page-index__game-description {
    font-size: 13px;
    text-align: left;
  }
  .page-index__segment-3 {
    min-width: unset;
    max-width: 100%;
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
    align-items: flex-start;
    text-align: left;
  }
  .page-index__game-rating {
    justify-content: flex-start;
    margin-bottom: 5px;
  }
  .page-index__promotion-text {
    justify-content: flex-start;
  }
  .page-index__segment-4 {
    min-width: unset;
    max-width: 100%;
    padding-top: 15px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  .page-index__btn-download,
  .page-index__btn-review {
    font-size: 13px;
    padding: 10px 15px;
    width: calc(50% - 5px);
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
  }

  .page-index__intro-features,
  .page-index__games-grid,
  .page-index__promotions-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-index__feature-item {
    padding: 25px;
  }
  .page-index__feature-icon {
    width: 60px;
    height: 60px;
  }
  .page-index__feature-item h3 {
    font-size: 20px;
  }
  .page-index__feature-item p {
    font-size: 15px;
  }

  .page-index__game-card-image {
    height: 180px;
  }
  .page-index__game-card-content h3 {
    font-size: 20px;
  }
  .page-index__game-card-content p {
    font-size: 15px;
  }

  .page-index__promo-card-image {
    height: 160px;
  }
  .page-index__promo-card-content h3 {
    font-size: 20px;
  }
  .page-index__promo-card-content p {
    font-size: 15px;
  }

  .page-index__blog-card-image {
    height: 180px;
  }
  .page-index__blog-card-content h3 {
    font-size: 20px;
  }
  .page-index__blog-card-content p {
    font-size: 15px;
  }
  .page-index__cta-button--text {
    font-size: 15px;
  }

  /* Ensure all images are 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__review-content-container,
  .page-index__review-content-card,
  .page-index__intro-features,
  .page-index__feature-item,
  .page-index__games-grid,
  .page-index__game-card-large,
  .page-index__promotions-grid,
  .page-index__promo-card,
  .page-index__blog-grid,
  .page-index__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}