/* style/index-game-showcase.css */

/* Custom Colors */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-color: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --divider-color: #1E3A2A;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --deep-green-color: #0A4B2C;
}

.page-index-game-showcase {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for main content */
  background-color: var(--background-color); /* Body background from shared.css, this is for main content area */
}

.page-index-game-showcase__dark-bg {
  background-color: var(--background-color);
  color: var(--text-main);
}

.page-index-game-showcase__dark-section {
  background-color: var(--deep-green-color);
  color: var(--text-main);
}

.page-index-game-showcase__background-color {
  background-color: var(--background-color);
  color: var(--text-main);
}

.page-index-game-showcase__card-bg {
  background-color: var(--card-bg);
  color: var(--text-main);
}

.page-index-game-showcase__text-main {
  color: var(--text-main);
}

.page-index-game-showcase__text-secondary {
  color: var(--text-secondary);
}

.page-index-game-showcase__link-inline {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Hero Section */
.page-index-game-showcase__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  overflow: hidden;
}

.page-index-game-showcase__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  margin-bottom: 30px;
}

.page-index-game-showcase__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.page-index-game-showcase__hero-content {
  max-width: 900px;
  z-index: 1;
}

.page-index-game-showcase__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-index-game-showcase__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.page-index-game-showcase__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.page-index-game-showcase__cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  min-width: 150px;
}

.page-index-game-showcase__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: 2px solid transparent;
}

.page-index-game-showcase__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-index-game-showcase__btn-secondary {
  background: none;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-index-game-showcase__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--background-color);
  transform: translateY(-2px);
}

/* General Section Styling */
.page-index-game-showcase__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index-game-showcase__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-index-game-showcase__section-description {
  font-size: 1.05rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-secondary);
}

/* Game Categories Section */
.page-index-game-showcase__categories-section {
  padding: 80px 0;
}

.page-index-game-showcase__game-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index-game-showcase__game-card {
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-index-game-showcase__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index-game-showcase__game-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main);
}

.page-index-game-showcase__game-card-title a {
  color: inherit;
  text-decoration: none;
}

.page-index-game-showcase__game-card-title a:hover {
  color: var(--secondary-color);
}

.page-index-game-showcase__game-card-description {
  font-size: 0.95rem;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
  color: var(--text-secondary);
}

/* Advantages Section */
.page-index-game-showcase__advantages-section {
  padding: 80px 0;
}

.page-index-game-showcase__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-index-game-showcase__advantage-item {
  padding: 30px 20px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background-color: var(--card-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index-game-showcase__advantage-icon {
  width: 120px; /* Min size 200x200px required for AI generation, but display smaller */
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-index-game-showcase__advantage-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main);
}

.page-index-game-showcase__advantage-description {
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.page-index-game-showcase__link-more {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
}

.page-index-game-showcase__link-more:hover {
  text-decoration: underline;
}

/* Guide Section */
.page-index-game-showcase__guide-section {
  padding: 80px 0;
}

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

.page-index-game-showcase__guide-step {
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background-color: var(--card-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index-game-showcase__guide-step-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-index-game-showcase__guide-step-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main);
}

.page-index-game-showcase__guide-step-description {
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
  color: var(--text-secondary);
}

/* Promotions CTA Section */
.page-index-game-showcase__promotions-cta {
  padding: 80px 0;
}

.page-index-game-showcase__promotions-content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-index-game-showcase__promotions-text-content {
  flex: 1;
}

.page-index-game-showcase__promotions-text-content .page-index-game-showcase__section-title,
.page-index-game-showcase__promotions-text-content .page-index-game-showcase__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-index-game-showcase__promotions-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.page-index-game-showcase__promotions-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
}

/* FAQ Section */
.page-index-game-showcase__faq-section {
  padding: 80px 0;
}

.page-index-game-showcase__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-index-game-showcase__faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-index-game-showcase__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: var(--card-bg);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  list-style: none; /* For details/summary */
}

.page-index-game-showcase__faq-question::-webkit-details-marker {
  display: none;
}

.page-index-game-showcase__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--secondary-color);
}

.page-index-game-showcase__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Final CTA Section */
.page-index-game-showcase__final-cta {
  padding: 80px 0;
}

.page-index-game-showcase__final-cta-content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-index-game-showcase__final-cta-text-content {
  flex: 1;
}

.page-index-game-showcase__final-cta-text-content .page-index-game-showcase__section-title,
.page-index-game-showcase__final-cta-text-content .page-index-game-showcase__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-index-game-showcase__final-cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-index-game-showcase__final-cta-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.page-index-game-showcase__final-cta-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-index-game-showcase__promotions-content-wrapper,
  .page-index-game-showcase__final-cta-content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .page-index-game-showcase__promotions-text-content .page-index-game-showcase__section-title,
  .page-index-game-showcase__promotions-text-content .page-index-game-showcase__section-description,
  .page-index-game-showcase__final-cta-text-content .page-index-game-showcase__section-title,
  .page-index-game-showcase__final-cta-text-content .page-index-game-showcase__section-description {
    text-align: center;
  }

  .page-index-game-showcase__promotions-image-wrapper,
  .page-index-game-showcase__final-cta-image-wrapper {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-index-game-showcase {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-index-game-showcase__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-index-game-showcase__hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-index-game-showcase__hero-description {
    font-size: 1rem;
  }

  .page-index-game-showcase__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index-game-showcase__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index-game-showcase__container {
    padding: 0 15px;
  }

  .page-index-game-showcase__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .page-index-game-showcase__game-cards-grid,
  .page-index-game-showcase__advantages-grid,
  .page-index-game-showcase__guide-steps-grid {
    grid-template-columns: 1fr;
  }

  .page-index-game-showcase__game-card-image {
    height: 180px;
  }

  .page-index-game-showcase__advantage-icon,
  .page-index-game-showcase__guide-step-image {
    width: 100% !important;
    max-width: 200px !important;
    height: auto !important;
  }

  .page-index-game-showcase__promotions-cta,
  .page-index-game-showcase__final-cta,
  .page-index-game-showcase__categories-section,
  .page-index-game-showcase__advantages-section,
  .page-index-game-showcase__guide-section,
  .page-index-game-showcase__faq-section {
    padding: 40px 0;
  }

  /* Image responsiveness for all images */
  .page-index-game-showcase img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/content */
  .page-index-game-showcase__section,
  .page-index-game-showcase__card,
  .page-index-game-showcase__container,
  .page-index-game-showcase__hero-image-wrapper,
  .page-index-game-showcase__promotions-image-wrapper,
  .page-index-game-showcase__final-cta-image-wrapper,
  .page-index-game-showcase__game-card,
  .page-index-game-showcase__advantage-item,
  .page-index-game-showcase__guide-step,
  .page-index-game-showcase__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow for containers */
  }

  .page-index-game-showcase__final-cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index-game-showcase__final-cta-buttons .page-index-game-showcase__cta-button {
    width: 100% !important;
  }
}