/* style/game-guides.css */

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

.page-game-guides {
  font-family: 'Arial', sans-serif;
  color: var(--mm8-text-main); /* Default text color for dark body background */
  background-color: var(--mm8-bg);
}

.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body handles padding-top, use small decorative top padding here */
  overflow: hidden;
  text-align: center;
  background-color: var(--mm8-deep-green);
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

.page-game-guides__hero-content {
  max-width: 900px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.page-game-guides__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  color: var(--mm8-gold);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-game-guides__intro-text {
  font-size: 1.1em;
  color: var(--mm8-text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-game-guides__btn-primary {
  background: var(--mm8-button-gradient);
  color: var(--mm8-text-main);
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-game-guides__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
}

.page-game-guides__btn-secondary {
  background: var(--mm8-card-bg);
  color: var(--mm8-primary);
  border: 2px solid var(--mm8-primary);
}

.page-game-guides__btn-secondary:hover {
  background: var(--mm8-primary);
  color: var(--mm8-text-main);
  transform: translateY(-3px);
}

.page-game-guides__section {
  padding: 60px 0;
  background-color: var(--mm8-bg);
}

.page-game-guides__dark-bg {
  background-color: var(--mm8-deep-green);
  color: var(--mm8-text-main);
}

.page-game-guides__deep-green-bg {
  background-color: var(--mm8-deep-green);
  color: var(--mm8-text-main);
}

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

.page-game-guides__container--center {
  text-align: center;
}

.page-game-guides__section-title {
  font-size: 2.5em;
  color: var(--mm8-primary);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-game-guides__section-title--light {
  color: var(--mm8-gold);
}

.page-game-guides__sub-title {
  font-size: 1.8em;
  color: var(--mm8-primary);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-game-guides__text-block {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--mm8-text-secondary);
}

.page-game-guides__text-block--light {
  color: var(--mm8-text-main);
}

.page-game-guides__text-link-light {
  color: var(--mm8-gold);
  text-decoration: underline;
}

.page-game-guides__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 30px;
  color: var(--mm8-text-secondary);
}

.page-game-guides__list-item {
  margin-bottom: 10px;
  line-height: 1.6;
  font-size: 1em;
}

.page-game-guides__list-item strong {
  color: var(--mm8-text-main);
}

.page-game-guides__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-top: 30px;
}

.page-game-guides__image--center {
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__image--full-width {
  width: 100%;
}

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

.page-game-guides__card {
  background-color: var(--mm8-card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--mm8-border);
  color: var(--mm8-text-main);
}

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

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

.page-game-guides__card-title {
  font-size: 1.5em;
  color: var(--mm8-gold);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-game-guides__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-game-guides__card-title a:hover {
  text-decoration: underline;
}

.page-game-guides__card-text {
  font-size: 0.95em;
  color: var(--mm8-text-secondary);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-game-guides__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-game-guides__btn--center {
  display: block;
  margin: 40px auto 0 auto;
  width: fit-content;
}

.page-game-guides__faq-section {
  background-color: var(--mm8-bg);
}

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

.page-game-guides__faq-item {
  background-color: var(--mm8-card-bg);
  border: 1px solid var(--mm8-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--mm8-text-main);
}

.page-game-guides__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--mm8-primary);
  list-style: none;
}

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

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

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

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

.page-game-guides__faq-answer p {
  margin-bottom: 10px;
}

.page-game-guides__faq-answer a {
  color: var(--mm8-gold);
  text-decoration: underline;
}

.page-game-guides__cta-bottom {
  padding: 80px 0;
  background-color: var(--mm8-deep-green);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-game-guides__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

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

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

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-game-guides__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-game-guides__intro-text {
    font-size: 1em;
  }

  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-game-guides__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-game-guides__sub-title {
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-game-guides__text-block,
  .page-game-guides__list-item,
  .page-game-guides__card-text {
    font-size: 0.95em;
  }

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

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

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

  .page-game-guides__faq-item summary {
    font-size: 1.05em;
    padding: 15px 20px;
  }

  .page-game-guides__faq-answer {
    padding: 0 20px 15px 20px;
  }

  /* Mobile image responsive adaptation */
  .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__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-game-guides__hero-content {
    padding: 0 15px;
  }

  .page-game-guides__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-game-guides__main-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }

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

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

  .page-game-guides__hero-section {
    padding-bottom: 30px;
  }

  .page-game-guides__cta-bottom {
    padding: 60px 0;
  }
}