/* style/game-guides.css */

/* Body background is dark from shared.css, so main text should be light */
.page-game-guides {
  color: var(--text-main);
  background-color: var(--background);
}

.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background: var(--background);
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  box-sizing: border-box;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-game-guides__hero-content {
  max-width: 900px;
  text-align: center;
  color: var(--text-main);
}

.page-game-guides__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 20px;
  /* No fixed large font-size, rely on clamp for responsiveness if needed */
}

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

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  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: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

.page-game-guides__btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border);
  box-shadow: 0 4px 15px rgba(46, 122, 78, 0.2);
}

.page-game-guides__btn-secondary:hover {
  background: var(--border);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-game-guides__section {
  padding: 60px 20px;
  text-align: center;
}

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

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

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

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

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

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

.page-game-guides__image-block {
  margin: 40px auto;
  max-width: 800px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.page-game-guides__content-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-game-guides__list,
.page-game-guides__ordered-list {
  list-style: none;
  padding: 0;
  margin: 20px auto 40px;
  max-width: 800px;
  text-align: left;
}

.page-game-guides__list-item {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 10px;
  color: var(--text-secondary);
  position: relative;
  padding-left: 30px;
}

.page-game-guides__list-item::before {
  content: '✔';
  color: var(--glow);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-game-guides__ordered-list .page-game-guides__list-item::before {
  content: counter(list-item) '.';
  counter-increment: list-item;
  color: var(--gold);
  left: 0;
  font-weight: bold;
  background: none;
}

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

.page-game-guides__card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: left;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  color: var(--text-secondary);
}

.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;
  font-weight: 600;
  margin: 0 20px 10px;
  color: var(--text-main);
}

.page-game-guides__card-text {
  font-size: 1em;
  line-height: 1.6;
  margin: 0 20px 15px;
  color: var(--text-secondary);
}

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

.page-game-guides__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

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

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--deep-green);
  border-bottom: 1px solid var(--divider);
  transition: background-color 0.3s ease;
  list-style: none; /* For details summary */
}

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

.page-game-guides__faq-question:hover {
  background-color: var(--border);
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--glow);
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
  transform: rotate(45deg);
}

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

.page-game-guides__inline-link {
  color: var(--glow);
  text-decoration: none;
  font-weight: 500;
}

.page-game-guides__inline-link:hover {
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-guides__main-title {
    font-size: 2.8em;
  }
  .page-game-guides__section-title {
    font-size: 2.2em;
  }
  .page-game-guides__sub-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-game-guides__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-game-guides__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    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 15px;
  }
  .page-game-guides__container {
    padding: 0;
  }
  .page-game-guides__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-game-guides__sub-title {
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .page-game-guides__paragraph,
  .page-game-guides__list-item,
  .page-game-guides__card-text,
  .page-game-guides__faq-answer {
    font-size: 0.95em;
  }
  .page-game-guides__card-image {
    height: 180px;
  }
  .page-game-guides__card-title {
    font-size: 1.2em;
  }
  .page-game-guides__grid-container,
  .page-game-guides__promotion-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-game-guides__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  /* Mobile image and container responsiveness */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-game-guides__hero-image-wrapper,
  .page-game-guides__image-block,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-game-guides__hero-image-wrapper {
    padding: 0 !important; /* Image wrapper itself should not have padding, content inside has */
  }
  .page-game-guides__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-game-guides__hero-content {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .page-game-guides__main-title {
    font-size: clamp(1.8em, 9vw, 2.2em);
  }
  .page-game-guides__section-title {
    font-size: 1.8em;
  }
  .page-game-guides__sub-title {
    font-size: 1.2em;
  }
  .page-game-guides__hero-section {
    padding: 30px 10px;
    padding-top: 10px !important;
  }
  .page-game-guides__section {
    padding: 30px 10px;
  }
  .page-game-guides__cta-buttons {
    gap: 10px;
  }
  .page-game-guides__faq-question {
    padding: 12px 15px;
    font-size: 0.95em;
  }
  .page-game-guides__faq-answer {
    padding: 15px;
  }
}