/* style/index.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-bg: #C30808;
  --login-button-bg: #C30808;
  --button-text-color: #FFFF00;
  --body-bg: #121212;
  --text-light: #ffffff;
  --text-dark: #333333;
  --card-bg-dark: rgba(255, 255, 255, 0.08);
  --card-bg-light: #ffffff;
  --border-color: rgba(255, 255, 255, 0.15);
}

.page-index {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Body background is dark, so main text is light */
  background-color: var(--body-bg);
}

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-light);
  position: relative;
  padding-bottom: 15px;
}

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-index__section-description {
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  color: rgba(255, 255, 255, 0.8);
}

/* Video Section */
.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: linear-gradient(135deg, #017439, #004d2d);
}

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

.page-index__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

.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: 12px;
  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 6px rgba(0, 0, 0, 0.7);
  padding: 12px 25px;
  background: rgba(195, 8, 8, 0.8); /* Using register button color for visibility */
  border-radius: 8px;
  white-space: nowrap;
}

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

.page-index__play-now-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--register-button-bg); /* #C30808 */
  color: var(--button-text-color); /* #FFFF00 */
  text-decoration: none;
  border-radius: 10px;
  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: 1px;
  text-transform: uppercase;
}

.page-index__play-now-button:hover {
  background: #a30606; /* Darker red */
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

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

/* Hero Section */
.page-index__hero-section {
  background: var(--body-bg);
  padding: 80px 20px;
  text-align: center;
}

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

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

.page-index__hero-description {
  font-size: 20px;
  line-height: 1.7;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  min-width: 180px;
  text-transform: uppercase;
}

.page-index__cta-button--register {
  background: var(--register-button-bg); /* #C30808 */
  color: var(--button-text-color); /* #FFFF00 */
}

.page-index__cta-button--register:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-index__cta-button--login {
  background: var(--login-button-bg); /* #C30808 */
  color: var(--button-text-color); /* #FFFF00 */
}

.page-index__cta-button--login:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-index__cta-buttons--promotions, .page-index__cta-buttons--blog {
  margin-top: 50px;
}

.page-index__cta-button--more-promos, .page-index__cta-button--view-all {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.page-index__cta-button--more-promos:hover, .page-index__cta-button--view-all:hover {
  background: #005a2e;
  transform: translateY(-2px);
}

/* About Section */
.page-index__about-section {
  padding: 80px 20px;
  background: var(--card-bg-dark); /* Dark section background */
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.page-index__about-section .page-index__section-description {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
}

.page-index__features {
  display: flex;
  justify-content: space-around;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 50px;
}

.page-index__feature-item {
  background: var(--card-bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  flex: 1 1 300px;
  max-width: 350px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__feature-item img {
  
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)); /* This filter is for visual effect, not color change */
  transition: transform 0.3s ease;
}

.page-index__feature-item:hover img {
  transform: scale(1.05);
}

.page-index__feature-item h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-index__feature-item p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

/* Games Section */
.page-index__games-section {
  padding: 80px 20px;
  background: var(--body-bg);
}

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

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

.page-index__game-card {
  background: var(--card-bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-index__game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-index__game-card:hover img {
  transform: scale(1.05);
}

.page-index__game-card h3 {
  font-size: 22px;
  font-weight: bold;
  padding: 20px 15px 10px;
  color: var(--primary-color);
}

.page-index__game-card p {
  font-size: 15px;
  line-height: 1.6;
  padding: 0 15px 20px;
  color: rgba(255, 255, 255, 0.7);
  flex-grow: 1;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #017439, #004d2d);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

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

.page-index__promo-card {
  background: var(--card-bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
}

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

.page-index__promo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}