/* style/index.css */

/* General Page Styling */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default text color for dark body background */
  background-color: var(--dark-bg); /* Inherit from shared.css */
}

.page-index__section {
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden; /* Prevent content overflow */
}

.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-index__dark-bg {
  background-color: var(--secondary-color, #1C1C1C); /* Dark background for sections */
  color: #ffffff;
}

.page-index__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Typography */
.page-index__main-title {
  font-size: 48px;
  color: var(--primary-color, #DAA520);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-index__title-description,
.page-index__features-description,
.page-index__games-description,
.page-index__promotions-description,
.page-index__faq-description,
.page-index__brand-description,
.page-index__blog-description {
  font-size: 18px;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-index__features-title,
.page-index__games-title,
.page-index__promotions-title,
.page-index__faq-main-title,
.page-index__brand-title,
.page-index__blog-title {
  font-size: 38px;
  color: var(--primary-color, #DAA520);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__feature-card-title,
.page-index__game-card-title,
.page-index__promotion-card-title,
.page-index__brand-item-title,
.page-index__blog-item-title {
  font-size: 24px;
  color: var(--primary-color, #DAA520);
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-index__feature-card-text,
.page-index__game-card-text,
.page-index__promotion-card-text,
.page-index__brand-item-text,
.page-index__blog-item-excerpt {
  font-size: 16px;
  color: #cccccc;
  line-height: 1.5;
}

/* Buttons */
.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Responsive button */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__cta-button--primary {
  background: var(--primary-color, #DAA520);
  color: #ffffff;
}

.page-index__cta-button--primary:hover {
  background: #c28e1a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--secondary {
  background: transparent;
  color: var(--primary-color, #DAA520);
  border: 2px solid var(--primary-color, #DAA520);
}

.page-index__cta-button--secondary:hover {
  background: var(--primary-color, #DAA520);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--learn-more,
.page-index__cta-button--view-all,
.page-index__cta-button--view-all-blog {
  margin-top: 60px;
  background: var(--primary-color, #DAA520);
  color: #ffffff;
}

.page-index__cta-button--learn-more:hover,
.page-index__cta-button--view-all:hover,
.page-index__cta-button--view-all-blog:hover {
  background: #c28e1a;
}

.page-index__cta-buttons--center {
    justify-content: center;
}

/* 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-color: var(--secondary-color, #1C1C1C);
}

.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 6px 20px rgba(0, 0, 0, 0.2);
}

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

.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 interfering with 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.5);
  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: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(218, 165, 32, 0.8); /* Using primary color with transparency */
  border-radius: 5px;
  white-space: nowrap;
}

.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: 15px 40px;
  background: var(--primary-color, #DAA520);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}

.page-index__play-now-button:hover {
  background: #c28e1a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Features Section */
.page-index__features-section {
  padding: 80px 20px;
  background-color: var(--secondary-color, #1C1C1C); /* Ensure dark background */
  color: #ffffff;
}

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

.page-index__feature-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-index__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 15px;
  border-radius: 5px;
  object-fit: cover;
}

/* Games Section */
.page-index__games-section {
  padding: 80px 20px;
  background-color: #0d0d0d; /* Slightly darker background */
  color: #ffffff;
}

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

.page-index__game-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}