/* style/game-guides.css */

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

.page-game-guides {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-game-guides-text-main);
  background-color: var(--page-game-guides-bg-dark);
}

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

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

.page-game-guides__light-bg {
  background-color: #f8f8f8; /* Using a very light gray for contrast on dark body */
  color: #333333; /* Dark text for light background */
}

.page-game-guides__light-bg .page-game-guides__section-title,
.page-game-guides__light-bg .page-game-guides__text-block,
.page-game-guides__light-bg .page-game-guides__box-title,
.page-game-guides__light-bg .page-game-guides__box-text,
.page-game-guides__light-bg .page-game-guides__card-title,
.page-game-guides__light-bg .page-game-guides__card-description,
.page-game-guides__light-bg .page-game-guides__tip-title,
.page-game-guides__light-bg .page-game-guides__tip-text {
  color: #333333;
}

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

.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0;
  overflow: hidden;
}

.page-game-guides__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-game-guides__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-game-guides__main-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--page-game-guides-text-main);
  line-height: 1.2;
}

.page-game-guides__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--page-game-guides-text-secondary);
}

.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 {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  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(--page-game-guides-button-gradient);
  color: var(--page-game-guides-text-main);
  border: none;
}

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

.page-game-guides__btn-secondary {
  background: transparent;
  color: var(--page-game-guides-text-main);
  border: 2px solid var(--page-game-guides-border-color);
}

.page-game-guides__light-bg .page-game-guides__btn-secondary {
  color: var(--page-game-guides-primary-color);
  border-color: var(--page-game-guides-primary-color);
}

.page-game-guides__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.page-game-guides__light-bg .page-game-guides__btn-secondary:hover {
  background: rgba(17, 168, 78, 0.1);
}

.page-game-guides__section-title {
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-game-guides__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-game-guides__list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-game-guides__list-item {
  background-color: var(--page-game-guides-card-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  font-size: 1.1em;
  border: 1px solid var(--page-game-guides-border-color);
}

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

.page-game-guides__card {
  background-color: var(--page-game-guides-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--page-game-guides-border-color);
}

.page-game-guides__light-bg .page-game-guides__card {
  background-color: #ffffff;
  color: #333333;
  border-color: #e0e0e0;
}

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

.page-game-guides__card-title {
  font-size: 1.5em;
  margin: 20px 15px 10px;
  color: var(--page-game-guides-text-main);
}

.page-game-guides__light-bg .page-game-guides__card-title {
  color: #333333;
}

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

.page-game-guides__light-bg .page-game-guides__card-description {
  color: #555555;
}

.page-game-guides__card .page-game-guides__btn-secondary {
  margin: 0 15px 20px;
  align-self: center;
  width: calc(100% - 30px);
  padding: 10px 15px;
  font-size: 0.95em;
}

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

.page-game-guides__box {
  background-color: var(--page-game-guides-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--page-game-guides-border-color);
}

.page-game-guides__light-bg .page-game-guides__box {
  background-color: #ffffff;
  color: #333333;
  border-color: #e0e0e0;
}

.page-game-guides__box-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: var(--page-game-guides-text-main);
}

.page-game-guides__light-bg .page-game-guides__box-title {
  color: #333333;
}

.page-game-guides__box-text {
  font-size: 1em;
  color: var(--page-game-guides-text-secondary);
}

.page-game-guides__light-bg .page-game-guides__box-text {
  color: #555555;
}

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

.page-game-guides__tip-item {
  background-color: var(--page-game-guides-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-game-guides-border-color);
}

.page-game-guides__light-bg .page-game-guides__tip-item {
  background-color: #ffffff;
  color: #333333;
  border-color: #e0e0e0;
}

.page-game-guides__tip-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: var(--page-game-guides-text-main);
}

.page-game-guides__light-bg .page-game-guides__tip-title {
  color: #333333;
}

.page-game-guides__tip-text {
  font-size: 1em;
  color: var(--page-game-guides-text-secondary);
}

.page-game-guides__light-bg .page-game-guides__tip-text {
  color: #555555;
}

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

.page-game-guides__faq-item {
  background-color: var(--page-game-guides-card-bg);
  border: 1px solid var(--page-game-guides-border-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-size: 1.2em;
  font-weight: bold;
  color: var(--page-game-guides-text-main);
  background-color: var(--page-game-guides-deep-green-color);
  transition: background-color 0.3s ease;
  list-style: none; /* Hide default marker for details summary */
}

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

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

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

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

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

.page-game-guides__cta-footer {
  text-align: center;
  margin-top: 40px;
}

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

@media (max-width: 768px) {
  .page-game-guides__main-title {
    font-size: 2em;
  }
  .page-game-guides__intro-text {
    font-size: 1em;
  }
  .page-game-guides__section {
    padding: 40px 0;
  }
  .page-game-guides__container,
  .page-game-guides__hero-content,
  .page-game-guides__game-cards,
  .page-game-guides__grid-3-col,
  .page-game-guides__grid-2-col,
  .page-game-guides__faq-list {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-game-guides__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px !important;
  }

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

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

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

  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-game-guides__card .page-game-guides__btn-secondary {
    width: calc(100% - 30px) !important;
  }

  .page-game-guides__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-game-guides__main-title {
    font-size: 1.8em;
  }
  .page-game-guides__section-title {
    font-size: 1.8em;
  }
}