/* style/index.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --accent-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #ffffff;
  --background-dark: #26A9E0;
  --border-color: #e0e0e0;
}

.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
}

.page-index__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-index__light-bg {
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-index__text-block p {
  margin-bottom: 1em;
}

/* General Section Styling */
.page-index__section {
  padding: 80px 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__section-title,
.page-index__main-title,
.page-index__blog-title,
.page-index__faq-title,
.page-index__brand-title,
.page-index__features-title,
.page-index__game-showcase-title {
  font-size: 3em;
  margin-bottom: 20px;
  font-weight: bold;
  color: inherit;
}

.page-index__section-description,
.page-index__title-description,
.page-index__blog-description,
.page-index__game-showcase-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
}

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

.page-index__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-index__btn-secondary:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* 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);
  background-color: #000;
}

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

.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.3);
  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(0, 123, 255, 0.8);
  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(--accent-color);
  color: var(--text-light);
  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;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* H1 Title Section */
.page-index__title-section {
  padding: 80px 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  color: var(--text-dark);
}

.page-index__main-title {
  font-size: 3.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index__title-description {
  font-size: 1.4em;
  color: #555;
  margin-bottom: 30px;
}

.page-index__intro-content {
  margin-top: 50px;
  text-align: left;
  font-size: 1.1em;
  line-height: 1.8;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Features Section */
.page-index__features-section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-index__features-title {
  color: var(--text-light);
  font-size: 2.8em;
  margin-bottom: 50px;
}

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

.page-index__feature-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  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;
  color: var(--text-light);
}

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

.page-index__feature-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Enforce min size */
}

.page-index__feature-heading {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  flex-shrink: 0;
}

.page-index__feature-item p {
  font-size: 1em;
  line-height: 1.7;
  flex-grow: 1;
}

/* Game Showcase Section */
.page-index__game-showcase {
  padding: 80px 20px;
  text-align: center;
}

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

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

.page-index__game-showcase-description {
  color: #555;
  font-size: 1.1em;
  margin-bottom: 50px;
}

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

.page-index__game-card {
  background: var(--background-light);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.page-index__game-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-index__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 1px solid #eee;
  min-height: 200px; /* Enforce min size */
}

.page-index__game-name {
  font-size: 1.5em;
  color: var(--primary-color);
  margin: 20px 20px 10px;
  flex-shrink: 0;
}

.page-index__game-excerpt {
  font-size: 0.95em;
  color: #666;
  padding: 0 20px 20px;
  flex-grow: 1;
}

/* Brand Section */
.page-index__brand-section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-index__brand-title {
  color: var(--text-light);
  font-size: 2.8em;
  margin-bottom: 50px;
}

.page-index__brand-content {
  text-align: left;
  font-size: 1.1em;
  line-height: 1.8;
  color: var(--text-light);
}

.page-index__brand-content p {
  margin-bottom: 1.5em;
}

.page-index__brand-item {
  margin-bottom: 40px;
}

.page-index__brand-subtitle {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 10px;
}

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-index__faq-title {
  color: var(--primary-color);
  font-size: 2.8em;
  margin-bottom: 50px;
}

.page-index__faq-list {
  text-align: left;
}

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--background-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

details.page-index__faq-item summary.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-dark);
}

details.page-index__faq-item summary.page-index__faq-question::-webkit-details-marker {
  display: none;
}

details.page-index__faq-item summary.page-index__faq-question:hover {
  background: #f5f5f5;
}

.page-index__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-index__faq-item .page-index__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}

.page-index__faq-answer p {
  margin-top: 0;
  margin-bottom: 1em;
}

.page-index__app-download-cta {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

/* Blog Section */
.page-index__blog-section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-index__blog-title {
  color: var(--text-light);
  font-size: 2.8em;
  margin-bottom: 20px;
}

.page-index__blog-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1em;
  margin-bottom: 50px;
}

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

.page-index__blog-item {
  background: var(--background-light);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-index__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-index__blog-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-index__blog-image {
  width: 100%;
  height: 220px; /* Fixed height for blog images */
  object-fit: cover;
  border-bottom: 1px solid #eee;
  min-height: 200px; /* Enforce min size */
}

.page-index__blog-item-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin: 20px 20px 10px;
  flex-shrink: 0;
}

.page-index__blog-item-excerpt {
  font-size: 0.95em;
  color: #666;
  padding: 0 20px;
  flex-grow: 1;
}

.page-index__blog-item-date {
  font-size: 0.85em;
  color: #999;
  padding: 0 20px 20px;
  display: block;
  flex-shrink: 0;
}

.page-index__view-all-news {
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: 3em;
  }
  .page-index__section-title,
  .page-index__blog-title,
  .page-index__faq-title,
  .page-index__brand-title,
  .page-index__features-title,
  .page-index__game-showcase-title {
    font-size: 2.5em;
  }
  .page-index__intro-content,
  .page-index__brand-content {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-index__video-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-index__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  
  .page-index__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-index__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 4px;
    overflow: hidden !important;
  }
  
  .page-index__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    object-fit: contain; /* Use contain for mobile to ensure full video is visible */
  }
  
  .page-index__video-cta {
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-index__play-now-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-index__video-click-hint {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }

  .page-index__section,
  .page-index__title-section,
  .page-index__features-section,
  .page-index__game-showcase,
  .page-index__brand-section,
  .page-index__faq-section,
  .page-index__blog-section {
    padding: 40px 15px;
  }

  .page-index__main-title {
    font-size: 2.2em;
  }
  .page-index__section-title,
  .page-index__blog-title,
  .page-index__faq-title,
  .page-index__brand-title,
  .page-index__features-title,
  .page-index__game-showcase-title {
    font-size: 2em;
  }
  .page-index__title-description,
  .page-index__section-description,
  .page-index__blog-description,
  .page-index__game-showcase-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__cta-button {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-index__feature-grid,
  .page-index__game-grid,
  .page-index__blog-list {
    grid-template-columns: 1fr;
  }

  .page-index__feature-item,
  .page-index__game-card,
  .page-index__blog-item {
    margin-bottom: 20px;
  }

  .page-index__feature-heading,
  .page-index__game-name,
  .page-index__blog-item-title {
    font-size: 1.3em;
  }
  
  .page-index__feature-item p,
  .page-index__game-excerpt,
  .page-index__blog-item-excerpt,
  .page-index__intro-content p,
  .page-index__brand-content p {
    font-size: 0.95em;
  }

  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px;
  }
  .page-index__faq-qtext {
    font-size: 1em;
  }
  .page-index__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 15px 15px;
  }
  .page-index__app-download-cta .page-index__cta-button {
    width: auto !important; /* Allow button to size itself if text is short */
    max-width: 100% !important;
  }

  .page-index img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__title-container,
  .page-index__features-container,
  .page-index__game-showcase-container,
  .page-index__brand-container,
  .page-index__faq-container,
  .page-index__blog-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__video-section .page-index__video-link .page-index__video-overlay .page-index__video-click-hint {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }
}