/* style/index.css */

/* Base Styles & Global Resets (scoped to page-index) */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

.page-index h1, .page-index h2, .page-index h3, .page-index h4, .page-index h5, .page-index h6 {
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-index a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index a:hover {
  color: #EA7C07; /* Login color for hover for better visibility */
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(135deg, #EA7C07, #FF9800); /* Login color gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-index__cta-button:hover {
  background: linear-gradient(135deg, #FF9800, #EA7C07);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Sections General */
.page-index__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast with body */
  color: #ffffff;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #0a0a0a; /* Match body for hero background */
}

.page-index__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-index__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

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

.page-index__main-title {
  font-size: 48px;
  color: #FFFFFF;
  margin-bottom: 25px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.page-index__intro-description {
  font-size: 20px;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px auto;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

/* Game Leaderboard Section */
.page-index__game-leaderboard-section {
  padding: 50px 20px;
  background-color: #0a0a0a; /* Match body for leaderboard background */
  color: #ffffff;
}

.page-index__leaderboard-title {
  font-size: 36px;
  text-align: center;
  margin-bottom: 40px;
  color: #FFFFFF;
}

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

.page-index__game-card {
  background: rgba(255, 255, 255, 0.05); /* Semi-transparent white for dark background */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 20px;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-index__game-card-segment {
  padding: 0 20px;
  position: relative;
}

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

.page-index__segment-1 {
  flex-basis: 150px;
  flex-shrink: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-left: 0;
}

.page-index__rank-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-index__rank-1 {
  background: linear-gradient(135deg, #FFD700, #FFA500);
}

.page-index__rank-2 {
  background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
}

.page-index__rank-3 {
  background: linear-gradient(135deg, #CD7F32, #B87333);
}

.page-index__rank-badge:not(.page-index__rank-1):not(.page-index__rank-2):not(.page-index__rank-3) {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
}

.page-index__game-icon {
  max-width: 80px;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

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

.page-index__game-name {
  font-size: 22px;
  font-weight: bold;
  color: #FFFFFF;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.page-index__game-name-link {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.page-index__game-name-link:hover {
  color: #26A9E0;
  text-decoration: underline;
}

.page-index__game-description {
  font-size: 14px;
  color: #f0f0f0;
  font-weight: bold;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.page-index__game-description a {
  color: #26A9E0;
  font-weight: bold;
}

.page-index__game-description a:hover {
  color: #EA7C07;
}

.page-index__segment-3 {
  flex-basis: 180px;
  flex-shrink: 0;
  text-align: center;
}

.page-index__game-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  color: #FFD700;
}

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

.page-index__rating-number {
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
}

.page-index__promotion-text {
  font-size: 14px;
  color: #26A9E0;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-index__promotion-link {
  color: #26A9E0;
  margin-right: 5px;
}

.page-index__promotion-link:hover {
  color: #EA7C07;
}

.page-index__hot-badge {
  background: linear-gradient(135deg, #FF4500, #FF6347);
  color: #ffffff;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
}

.page-index__segment-4 {
  flex-basis: 250px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  padding-right: 0;
}

.page-index__btn-download, .page-index__btn-review {
  width: 100%;
  padding: 12px 15px;
  font-size: 16px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-index__btn-download {
  background: linear-gradient(135deg, #26A9E0, #007bff); /* Primary blue */
}

.page-index__btn-download:hover {
  background: linear-gradient(135deg, #007bff, #26A9E0);
}

.page-index__btn-review {
  background: linear-gradient(135deg, #6c757d, #5a6268); /* Secondary grey */
}

.page-index__btn-review:hover {
  background: linear-gradient(135deg, #5a6268, #6c757d);
}

/* Brand Review Content Section */
.page-index__review-content-section {
  padding: 40px 20px;
  background: #0a0a0a;
  color: #ffffff;
}

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

.page-index__review-content-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-index__review-content-card h3 {
  font-size: 24px;
  font-weight: bold;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
}

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

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

/* Homepage Introduction Section */
.page-index__intro-section {
  padding: 60px 20px;
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-index__intro-heading {
  font-size: 36px;
  margin-bottom: 25px;
  color: #FFFFFF;
}

.page-index__intro-text {
  font-size: 18px;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.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.05);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-index__feature-item img {
  
  
  margin-bottom: 15px;
  object-fit: contain;
  filter: brightness(1.2); /* Slightly brighten icons for visibility */
}

.page-index__feature-item h3 {
  font-size: 20px;
  color: #26A9E0;
  margin-bottom: 10px;
}

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

/* Core Games/Services Section */
.page-index__games-services-section {
  padding: 60px 20px;
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-index__games-services-heading {
  font-size: 36px;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-index__games-services-intro {
  font-size: 18px;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.page-index__game-category-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__game-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-index__game-category-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  margin-bottom: 15px;
}

.page-index__game-category-card h3 {
  font-size: 22px;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-index__game-category-card h3 a {
  color: #26A9E0;
}

.page-index__game-category-card h3 a:hover {
  color: #EA7C07;
}

.page-index__game-category-card p {
  font-size: 15px;
  color: #cccccc;
  padding: 0 15px;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 60px 20px;
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-index__promotions-heading {
  font-size: 36px;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-index__promotions-intro {
  font-size: 18px;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

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

.page-index__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-index__promotion-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  margin-bottom: 15px;
}

.page-index__promotion-card h3 {
  font-size: 22px;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__promotion-card p {
  font-size: 15px;
  color: #cccccc;
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-index__btn-promo {
  padding: 10px 25px;
  font-size: 16px;
  border-radius: 6px;
  background: linear-gradient(135deg, #26A9E0, #007bff); /* Primary blue */
}

.page-index__btn-promo:hover {
  background: linear-gradient(135deg, #007bff, #26A9E0);
}

/* Blog Section */
.page-index__blog-section {
  padding: 60px 20px;
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-index__blog-heading {
  font-size: 36px;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-index__blog-intro {
  font-size: 18px;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.page-index__blog-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-index__blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  margin-bottom: 15px;
}

.page-index__blog-card h3 {
  font-size: 22px;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__blog-card h3 a {
  color: #26A9E0;
}

.page-index__blog-card h3 a:hover {
  color: #EA7C07;
}

.page-index__blog-card p {
  font-size: 15px;
  color: #cccccc;
  padding: 0 15px;
  margin-bottom: 15px;
}

.page-index__blog-date {
  font-size: 13px;
  color: #888888;
  padding: 0 15px;
  display: block;
}

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

.page-index__view-all-button {
  padding: 12px 30px;
  font-size: 17px;
  background: linear-gradient(135deg, #26A9E0, #007bff); /* Primary blue */
}

.page-index__view-all-button:hover {
  background: linear-gradient(135deg, #007bff, #26A9E0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: 40px;
  }
  .page-index__intro-description {
    font-size: 18px;
  }
  .page-index__leaderboard-title, .page-index__review-content-card h2, .page-index__intro-heading, .page-index__games-services-heading, .page-index__promotions-heading, .page-index__blog-heading {
    font-size: 32px;
  }
  .page-index__game-card {
    flex-wrap: wrap;
  }
  .page-index__game-card-segment {
    padding: 10px 15px;
    flex-basis: auto !important; /* Allow segments to wrap */
    width: 100%;
  }
  .page-index__game-card-segment:not(:first-child)::before {
    display: none; /* Remove vertical line on mobile */
  }
  .page-index__segment-1, .page-index__segment-4 {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__segment-1 {
    flex-direction: row;
    justify-content: center;
    gap: 15px;
  }
  .page-index__rank-badge {
    margin-bottom: 0;
  }
  .page-index__game-icon {
    max-width: 60px;
    height: 60px;
  }
  .page-index__segment-2, .page-index__segment-3, .page-index__segment-4 {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .page-index__game-name {
    font-size: 20px;
  }
  .page-index__game-description {
    font-size: 13px;
  }
  .page-index__btn-download, .page-index__btn-review {
    font-size: 15px;
    padding: 10px 15px;
    max-width: 80%; /* Limit width for small screens */
    width: auto; /* Allow content to dictate width */
  }
  .page-index__game-categories, .page-index__promotion-grid, .page-index__blog-grid, .page-index__intro-features {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-index__intro-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-index__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

  .page-index__leaderboard-title, .page-index__review-content-card h2, .page-index__intro-heading, .page-index__games-services-heading, .page-index__promotions-heading, .page-index__blog-heading {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-index__game-card {
    padding: 15px;
  }
  .page-index__segment-1 {
    flex-direction: column;
    gap: 5px;
  }
  .page-index__rank-badge {
    width: 25px;
    height: 25px;
    font-size: 14px;
  }
  .page-index__game-icon {
    max-width: 50px;
    height: 50px;
  }
  .page-index__game-name {
    font-size: 18px;
  }
  .page-index__game-description {
    font-size: 12px;
  }
  .page-index__btn-download, .page-index__btn-review {
    font-size: 12px !important;
    padding: 8px 12px !important;
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-index__segment-4 {
    padding-left: 10px;
    padding-right: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-index__review-content-card {
    padding: 25px 20px;
  }
  .page-index__review-content-card h2 {
    font-size: 26px;
  }
  .page-index__review-content-card h3 {
    font-size: 20px;
  }
  .page-index__review-body p {
    font-size: 15px;
  }
  
  .page-index__intro-text, .page-index__games-services-intro, .page-index__promotions-intro, .page-index__blog-intro {
    font-size: 16px;
  }
  .page-index__feature-item h3, .page-index__game-category-card h3, .page-index__promotion-card h3, .page-index__blog-card h3 {
    font-size: 20px;
  }
  .page-index__feature-item p, .page-index__game-category-card p, .page-index__promotion-card p, .page-index__blog-card p {
    font-size: 14px;
  }

  /* Mobile image and container adaptations */
  .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__intro-container, .page-index__games-services-container, .page-index__promotions-container, .page-index__blog-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-index__main-title {
    font-size: 28px;
  }
  .page-index__cta-button {
    padding: 10px 25px;
    font-size: 15px;
  }
  .page-index__leaderboard-title, .page-index__review-content-card h2, .page-index__intro-heading, .page-index__games-services-heading, .page-index__promotions-heading, .page-index__blog-heading {
    font-size: 24px;
  }
  .page-index__game-card-segment {
    padding: 10px;
  }
  .page-index__game-name {
    font-size: 16px;
  }
  .page-index__game-description {
    font-size: 11px;
  }
  .page-index__btn-download, .page-index__btn-review {
    font-size: 11px !important;
    padding: 7px 10px !important;
  }
  .page-index__review-content-card h3 {
    font-size: 18px;
  }
  .page-index__feature-item h3, .page-index__game-category-card h3, .page-index__promotion-card h3, .page-index__blog-card h3 {
    font-size: 18px;
  }
}