/* style/index.css */

/* Custom properties for colors from instructions */
:root {
  --primary-color: #017439; /* Main color */
  --secondary-color: #FFFFFF; /* Auxiliary color */
  --register-button-bg: #C30808;
  --login-button-bg: #C30808;
  --button-text-color: #FFFF00; /* For register/login buttons */
  --page-background: #FFFFFF; /* This is for elements, not body. Body is #121212 */
  --dark-text-color: #333333;
  --light-text-color: #ffffff;
  --border-color: #e0e0e0;
}

/* Base styles for the page content, considering dark body background */
.page-index {
  background-color: transparent; /* Body background is handled by shared.css #121212 */
  color: var(--light-text-color); /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Space above footer */
}

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  color: var(--light-text-color); /* Default to light for dark sections, overridden for light sections */
}

.page-index__section-description {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 40px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #cccccc; /* Slightly lighter for descriptions */
}

/* Universal image responsiveness */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px; /* Consistent styling */
  object-fit: cover;
}

/* Universal video responsiveness */
.page-index video,
.page-index__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* --- Module 0: Video Area (Topmost) --- */
.page-index__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #1a1a1a; /* Slightly lighter dark background for this section */
}

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

.page-index__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

.page-index__video-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-index__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-index__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from blocking click */
}

.page-index__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-index__video-link:hover .page-index__video-overlay {
  opacity: 1;
}

.page-index__video-click-hint {
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
  padding: 12px 25px;
  background: rgba(1, 116, 57, 0.8); /* Primary color with transparency */
  border-radius: 30px;
  white-space: nowrap;
  letter-spacing: 1px;
}

.page-index__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-index__play-now-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--primary-color); /* Main color */
  color: var(--button-text-color); /* Specific button text color */
  text-decoration: none;
  border-radius: 50px; /* More rounded */
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.page-index__play-now-button:hover {
  background: #005f2f; /* Darker shade of primary color */
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-index__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


/* --- Module 1: H1 Title + Activity Promotion Buttons --- */
.page-index__hero-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--primary-color); /* Use primary color for hero background */
  color: var(--light-text-color);
}

.page-index__hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-index__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 25px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  color: var(--light-text-color);
}

.page-index__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  line-height: 1.7;
  color: #e0e0e0;
}

.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 180px;
  text-align: center;
  letter-spacing: 0.5px;
}

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

.page-index__cta-button--register:hover {
  background: #a30606; /* Darker red */
  border-color: #a30606;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-index__cta-button--login:hover {
  background: #a30606; /* Darker red */
  border-color: #a30606;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --- Module: Key Features/Games Showcase --- */
.page-index__features-section {
    padding: 80px 20px;
    background-color: #121212; /* Dark background from body */
    color: var(--light-text-color);
}

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

.page-index__features-section .page-index__section-title {
  color: var(--light-text-color);
}
.page-index__features-section .page-index__section-description {
  color: #cccccc;
}

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

.page-index__feature-item {
    background-color: #1a1a1a; /* Slightly lighter dark card background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-index__feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.page-index__feature-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
}