/* style/index.css */

/* Custom properties for colors from the prompt */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-bg: #C30808; /* Register button background */
  --login-button-bg: #C30808; /* Login button background */
  --register-login-text: #FFFFFF; /* Adjusted for contrast, originally #FFFF00 */
  --body-bg: var(--accent-color, #FFFFFF); /* Default to white if --accent-color is not defined in shared */
  --text-color-dark-bg: #FFFFFF;
  --text-color-light-bg: #333333;
}

/* General Page Styling */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-light-bg); /* Default text color for light backgrounds */
  background-color: var(--body-bg);
}

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

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

.page-index__section-title--light {
  color: var(--text-color-dark-bg);
}

/* 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); /* Ensure header offset */
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(1, 116, 57, 0.7) 50%, rgba(255, 255, 255, 0.1) 100%);
  overflow: hidden; /* Prevent content overflow */
}

.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;
  position: relative;
  z-index: 1; /* Ensure image is behind text if text overlays */
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
  margin-top: -80px; /* Overlap with image slightly */
  color: var(--text-color-dark-bg);
}

.page-index__hero-title {
  font-size: 48px;
  color: var(--text-color-dark-bg);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 20px;
  color: var(--text-color-dark-bg);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 500px; /* Limit button group width */
  margin: 0 auto;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 180px; /* Ensure minimum width for buttons */
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text break */
}

.page-index__cta-button--register {
  background: var(--register-button-bg);
  color: var(--register-login-text); /* Adjusted for contrast */
  border: 2px solid var(--register-button-bg);
}

.page-index__cta-button--register:hover {
  background: #a30707; /* Slightly darker red */
  border-color: #a30707;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--login {
  background: var(--login-button-bg);
  color: var(--register-login-text); /* Adjusted for contrast */
  border: 2px solid var(--login-button-bg);
}

.page-index__cta-button--login:hover {
  background: #a30707; /* Slightly darker red */
  border-color: #a30707;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Module 1: Intro Section */
.page-index__intro-section {
  padding: 80px 0;
  background-color: var(--body-bg);
}

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

.page-index__intro-item {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: var(--text-color-light-bg);
}

.page-index__intro-subtitle {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Module 2: Quick Access */
.page-index__quick-access-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark background */
  color: var(--text-color-dark-bg);
}

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

.page-index__quick-access-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: var(--text-color-dark-bg);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-index__quick-access-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.page-index__quick-access-item img {
  width: 100%;
   /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-index__quick-access-title {
  font-size: 22px;
  color: var(--text-color-dark-bg);
  margin-bottom: 10px;
}

.page-index__quick-access-item p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

/* Module 3: Core Games */
.page-index__games-section {
  padding: 80px 0;
  background-color: var(--body-bg);
}

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

.page-index__game-card {
  background: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
  color: var(--text-color-light-bg);
}

.page-index__game-card:hover {
  transform: translateY(-8px);
}