/* style/index.css */

/* Variables from shared.css: --primary-color: #017439, --secondary-color: #FFFFFF, --header-offset */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-color: #C30808;
  --login-color: #C30808;
  --register-login-font-color: #FFFF00;
  --background-color: #FFFFFF; /* Default background for sections */
}

.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: var(--secondary-color); /* Matches body background from shared.css (white) */
}

/* --- 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); /* Ensures content is not hidden by fixed header */
  background-color: var(--primary-color); /* Dark background for hero */
  color: #ffffff; /* Light text for dark 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: 8px;
  overflow: hidden;
}

.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__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

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

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

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  color: var(--register-login-font-color); /* Custom font color */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 150px;
  text-align: center;
  box-sizing: border-box;
}

.page-index__cta-button--register {
  background: var(--register-color); /* Custom register color */
}

.page-index__cta-button--login {
  background: var(--login-color); /* Custom login color */
}

.page-index__cta-button--register:hover {
  background: #A80707; /* Darker shade for hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--login:hover {
  background: #A80707; /* Darker shade for hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


/* --- General Section Styles --- */
.page-index__section {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--background-color); /* Default light background */
  color: #333333;
}

.page-index__section.page-index__dark-section {
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-index__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-index__section-title--light {
  color: #ffffff;
}

.page-index__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-index__section-description--light {
  color: #f0f0f0;
}

.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Added for general container padding */
}

/* --- Intro Section (Module 1) --- */
.page-index__intro-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-index__intro-feature-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
  height: 100%; /* Ensure equal height */
  box-sizing: border-box;
}

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

.page-index__intro-feature-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__intro-feature-item p {
  color: #555555;
  font-size: 1em;
}

/* --- Quick Access Section (Module 2) --- */
.page-index__quick-access-section {
  padding: 80px 20px;
}

.page-index__quick-access-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-index__quick-access-btn {
  display: block;
  padding: 18px 25px;
  background-color: #ffffff;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.page-index__quick-access-btn:hover {
  background-color: #f0f0f0;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- Games Section (Module 3) --- */
.page-index__games-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-index__game-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.page-index__game-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-index__game-card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin: 20px 20px 10px 20px;
  font-weight: bold;
}

.page-index__game-card-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__game-card-title a:hover {
  color: #005C2E; /* Darker shade for hover */
}

.page-index__game-card p {
  color: #555555;
  padding: 0 20px 20px 20px;
  flex-grow: 1; /* Pushes button to bottom */
}

.page-index__game-card .page-index__btn-secondary {
  margin: 0 20px 20px 20px;
  align-self: flex-start; /* Aligns button to the left */
  padding: 10px 20px;
  font-size: 1em;
}

/* --- Promotions Section (Module 4) --- */
.page-index__promotions-section {
  padding: 80px 20px;
}

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

.page-index__promo-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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