/* style/index.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #FFA500;
  --dark-blue: #000080;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --background-grey: #f1f3f5;
  --border-light: #e4e4e4;
}

/* Fixed header spacing */
.page-index__hero-section {
  padding-top: 180px; /* Desktop padding */
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 140px; /* Mobile padding */
  }
}

.page-index {
  color: var(--text-color-light);
  background-color: var(--dark-bg-1); /* Assuming --dark-bg-1 is dark from shared.css */
}

/* 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-bottom: 60px;
  background: linear-gradient(135deg, var(--dark-blue), #000066); /* Dark blue gradient for hero background */
  color: var(--text-color-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;
  padding: 0 20px;
}

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

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

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

.page-index__cta-button:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive HERO */
@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: 16px 40px;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-bottom: 40px;
  }
  .page-index__hero-content h1 {
    font-size: 32px;
  }
  .page-index__hero-content p {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-index__cta-button {
    padding: 14px 35px;
    font-size: 16px;
  }
  .page-index__hero-image {
    margin-bottom: 20px;
  }
}

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

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

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

.page-index__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px 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;
  height: 100%;
  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;
  border-left: none;
  position: relative;
}

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

.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__game-icon {
  max-width: 100px;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  margin-top: 15px;
}

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

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

.page-index__game-name-link {
  color: var(--dark-blue);
  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: var(--text-color-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;
  max-width: 180px;
}

.page-index__game-rating {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  color: var(--text-color-dark);
}

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

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

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

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

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

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

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

.page-index__cta-button {
  display: block;
  width: 100%;
  padding: 12px 15px;
  background: linear-gradient(135deg, #667eea, #764ba2); /* Purple gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  border: none;
}

.page-index__cta-button:hover {
  background: linear-gradient(135deg, #764ba2, #667eea);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

.page-index__btn-review {
  background: linear-gradient(135deg, #ff6b35, #ff8c42); /* Orange gradient */
}

.page-index__btn-review:hover {
  background: linear-gradient(135deg, #ff8c42, #ff6b35);
}

/* Responsive Leaderboard */
@media (max-width: 1024px) {
  .page-index__game-card {
    flex-wrap: wrap;
    justify-content: center;
    padding: 15px;
  }
  .page-index__game-card-segment {
    padding: 10px 15px;
    border-left: none;
  }
  .page-index__game-card-segment:not(:first-child) {
    border-top: 1px solid var(--border-light);
    padding-top: 15px;
  }
  .page-index__segment-1, .page-index__segment-3, .page-index__segment-4 {
    min-width: unset;
    max-width: 100%;
    width: 100%;
  }
  .page-index__segment-2 {
    flex: none;
    width: 100%;
    order: -1;
  }
  .page-index__game-icon {
    margin-top: 0;
  }
  .page-index__rank-badge {
    top: 5px;
    left: 5px;
  }
  .page-index__game-name {
    font-size: 22px;
  }
  .page-index__page-title {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .page-index__game-leaderboard-section {
    padding: 40px 15px;
  }
  .page-index__page-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-index__game-card {
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
  }
  .page-index__game-card-segment {
    padding: 10px 0;
    text-align: center;
  }
  .page-index__game-card-segment:not(:first-child) {
    border-left: none;
    border-top: 1px solid var(--border-light);
    padding-top: 15px;
  }
  .page-index__segment-1 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    margin-bottom: 10px;
  }
  .page-index__rank-badge {
    position: static;
    margin-right: 10px;
  }
  .page-index__game-icon {
    max-width: 80px;
  }
  .page-index__game-name {
    font-size: 20px;
  }
  .page-index__game-description {
    font-size: 13px;
  }
  .page-index__game-rating {
    justify-content: center;
  }
  .page-index__promotion-text {
    justify-content: center;
  }
  .page-index__segment-4 {
    max-width: 100%;
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
  .page-index__btn-download,
  .page-index__btn-review {
    max-width: 100%;
    width: 100%;
    font-size: 13px;
    padding: 10px 12px;
    white-space: normal;
    word-wrap: break-word;
    min-width: auto;
  }
}

/* Brand Review Content Section */
.page-index__review-content-section {
  padding: 60px 20px;
  background: var(--background-grey);
  color: var(--text-color-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.1);
  padding: 40px;
}

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

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

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

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

/* Responsive Review Content */
@media (max-width: 768px) {
  .page-index__review-content-section {
    padding: 30px 15px;
  }
  .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;
  }
}

/* Introduction Section */
.page-index__introduction-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--dark-blue), #000066); /* Dark blue gradient */
  color: var(--text-color-light);
  text-align: center;
}

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

.page-index__introduction-section h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 25px;
  color: var(--primary-color);
}

.page-index__introduction-section p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Responsive Introduction */
@media (max-width: 768px) {
  .page-index__introduction-section {
    padding: 40px 15px;
  }
  .page-index__introduction-section h2 {
    font-size: 28px;
  }
  .page-index__introduction-section p {
    font-size: 16px;
  }
}

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

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

.page-index__core-games-section h2 {
  font-size: 36px;
  font-weight: bold;
  color: var(--dark-blue);
  text-align: center;
  margin-bottom: 40px;
}

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

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

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

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

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

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

.page-index__game-type-button {
  display: inline-block;
  padding: 10px 25px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-color-dark);
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-index__game-type-button:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  transform: translateY(-2px);
}

/* Responsive Core Games */
@media (max-width: 768px) {
  .page-index__core-games-section {
    padding: 40px 15px;
  }
  .page-index__core-games-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-index__game-type-card h3 {
    font-size: 20px;
  }
  .page-index__game-type-image {
    height: 180px;
  }
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--dark-blue), #000066); /* Dark blue gradient */
  color: var(--text-color-light);
  text-align: center;
}

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

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

.page-index__promotions-intro {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

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

.page-index__promotion-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-color-dark);
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-index__promotion-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

/* Responsive Promotions */
@media (max-width: 768px) {
  .page-index__promotions-section {
    padding: 40px 15px;
  }
  .page-index__promotions-section h2 {
    font-size: 28px;
  }
  .page-index__promotions-intro {
    font-size: 16px;
  }
  .page-index__promotion-card h3 {
    font-size: 20px;
  }
  .page-index__promotion-image {
    height: 180px;
  }
}

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

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

.page-index__blog-section h2 {
  font-size: 36px;
  font-weight: bold;
  color: var(--dark-blue);
  text-align: center;
  margin-bottom: 25px;
}

.page-index__blog-intro {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 40px;
  text-align: center;
  max-width: 800px;
  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: var(--background-grey);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index__blog-card h3 {
  font-size: 22px;
  font-weight: bold;
  color: var(--dark-blue);
  padding: 15px 20px 0;
  margin-bottom: 10px;
}

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

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

.page-index__blog-summary {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-color-dark);
  padding: 0 20px;
  margin-bottom: 15px;
}

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

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

.page-index__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--dark-blue);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-index__view-all-button:hover {
  background: #000055;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive Blog */
@media (max-width: 768px) {
  .page-index__blog-section {
    padding: 40px 15px;
  }
  .page-index__blog-section h2 {
    font-size: 28px;
  }
  .page-index__blog-intro {
    font-size: 16px;
  }
  .page-index__blog-image {
    height: 180px;
  }
  .page-index__blog-card h3 {
    font-size: 20px;
  }
  .page-index__view-all-button {
    font-size: 16px;
    padding: 10px 25px;
  }
}