/* style/game-guides.css */

/* Custom Properties */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --bg-color: #08160F;
  --card-bg-color: #11271B;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Dark body background, so light text */
  background-color: var(--bg-color);
}

.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* body handles padding-top, so small top padding here */
  overflow: hidden;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-game-guides__hero-content {
  max-width: 900px;
  padding: 20px;
  margin-top: -100px; /* Adjust to visually align below image */
  position: relative;
  z-index: 1;
  background: rgba(8, 22, 15, 0.8); /* Semi-transparent background for readability */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-game-guides__main-title {
  font-size: clamp(2em, 5vw, 3.2em);
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-game-guides__hero-description {
  font-size: clamp(1em, 2vw, 1.2em);
  color: var(--text-secondary-color);
  margin-bottom: 30px;
}

.page-game-guides__section {
  padding: 60px 20px;
  border-bottom: 1px solid var(--divider-color);
}

.page-game-guides__container {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-game-guides__section-title {
  font-size: clamp(1.8em, 4vw, 2.8em);
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
}

.page-game-guides__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  margin: 15px auto 0 auto;
  border-radius: 2px;
}

.page-game-guides__sub-title {
  font-size: clamp(1.4em, 3vw, 2em);
  color: var(--gold-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-game-guides__text-block {
  font-size: 1.1em;
  color: var(--text-main-color);
  margin-bottom: 20px;
}

.page-game-guides__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-game-guides__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-game-guides__cta-button--large {
  padding: 18px 40px;
  font-size: 1.3em;
}

.page-game-guides__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-game-guides__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-game-guides__text-wrapper,
.page-game-guides__image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-game-guides__content-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-game-guides__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-game-guides__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--text-main-color);
}

.page-game-guides__list-item::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.2em;
  top: -2px;
}

.page-game-guides__list--ordered .page-game-guides__list-item::before {
  content: counter(list-item) '.';
  counter-increment: list-item;
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1em;
  left: 0;
  top: 0;
}

.page-game-guides__list--checkmarks .page-game-guides__list-item::before {
  content: '✓';
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.2em;
  left: 0;
  top: -2px;
}

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

.page-game-guides__game-card {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-game-guides__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-game-guides__card-title {
  font-size: 1.4em;
  color: var(--gold-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-game-guides__card-description {
  font-size: 0.95em;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-game-guides__card-button {
  display: inline-block;
  background: var(--primary-color);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background 0.3s ease;
  margin-top: auto;
  margin-left: 15px;
  margin-right: 15px;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-game-guides__card-button:hover {
  background: var(--secondary-color);
}

.page-game-guides__faq-list {
  margin-top: 40px;
}

.page-game-guides__faq-item {
  background-color: var(--card-bg-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  color: var(--text-main-color);
  font-size: 1.1em;
  background-color: var(--deep-green-color);
  border-bottom: 1px solid var(--divider-color);
}

.page-game-guides__faq-question:hover {
  background-color: #1a3d2c;
}

.page-game-guides__faq-qtext {
  flex-grow: 1;
  color: var(--text-main-color);
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-left: 15px;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
  content: '−';
}

.page-game-guides__faq-answer {
  padding: 20px;
  background-color: var(--card-bg-color);
  color: var(--text-secondary-color);
  font-size: 1em;
  border-top: 1px solid var(--divider-color);
}

.page-game-guides__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-game-guides__faq-item summary {
  list-style: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-game-guides__hero-content {
    margin-top: -50px;
    padding: 15px;
  }

  .page-game-guides__main-title {
    font-size: 2em; /* Adjusted for mobile */
  }

  .page-game-guides__hero-description {
    font-size: 1em; /* Adjusted for mobile */
  }

  .page-game-guides__section {
    padding: 40px 15px;
  }

  .page-game-guides__section-title {
    font-size: 1.8em;
  }

  .page-game-guides__sub-title {
    font-size: 1.5em;
  }

  .page-game-guides__text-block {
    font-size: 0.95em;
  }

  .page-game-guides__cta-button,
  .page-game-guides__card-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__cta-button--large {
    font-size: 1.1em;
  }

  .page-game-guides__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-game-guides__content-wrapper--reverse {
    flex-direction: column;
  }

  .page-game-guides__image-wrapper {
    order: -1; /* Image appears first on mobile for reverse layouts */
  }

  .page-game-guides__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-guides__card-image {
    height: 180px;
  }

  .page-game-guides__card-title {
    font-size: 1.2em;
  }

  .page-game-guides__card-description {
    font-size: 0.9em;
  }

  .page-game-guides__faq-question {
    font-size: 1em;
    padding: 15px;
  }

  /* Ensure all images are responsive and do not overflow */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__content-wrapper,
  .page-game-guides__game-grid,
  .page-game-guides__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-game-guides__hero-section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-game-guides__hero-image {
    width: 100%; /* Ensure hero image takes full width */
  }

  /* Button containers for multiple buttons */
  .page-game-guides__cta-buttons,
  .page-game-guides__button-group,
  .page-game-guides__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  
  .page-game-guides__cta-buttons {
    flex-direction: column;
  }
}