/* style/game-guides.css */

:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --text-main-color: #333333;
  --card-bg-color: #FFFFFF;
  --background-color: #F5F7FA;
  --border-color: #E0E0E0;
  --button-gradient: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
}

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

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

.page-game-guides__hero-container {
  position: relative;
  max-width: 1200px;
  width: 100%; /* Ensure it takes full width within max-width */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-game-guides__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-game-guides__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-game-guides__main-title {
  font-size: clamp(2em, 3.5vw, 3em); /* H1 font size with clamp */
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-game-guides__intro-text {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--text-main-color);
}

.page-game-guides__cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  width: 100%;
  max-width: 500px; /* Limit button group width */
  margin: 0 auto;
}

.page-game-guides__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  flex-grow: 1;
  text-align: center;
  max-width: 220px; /* Limit individual button width */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
}

.page-game-guides__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-game-guides__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* General Section Styling */
.page-game-guides__section {
  padding: 60px 20px;
  background-color: var(--background-color);
}

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

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

.page-game-guides__text-block {
  font-size: 1.05em;
  margin-bottom: 25px;
  line-height: 1.7;
  color: var(--text-main-color);
}

.page-game-guides__image-wrapper {
  margin: 40px 0;
  text-align: center;
}

.page-game-guides__image-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

/* Dark Section Styling */
.page-game-guides__dark-section {
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-game-guides__dark-section .page-game-guides__section-title {
  color: #ffffff;
}

.page-game-guides__dark-section .page-game-guides__text-block {
  color: #ffffff;
}

/* Grid Layout for Basic Rules */
.page-game-guides__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-game-guides__grid-item {
  background: var(--card-bg-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

.page-game-guides__item-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

/* Strategy List */
.page-game-guides__strategy-list,
.page-game-guides__promo-list,
.page-game-guides__responsible-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-game-guides__strategy-item,
.page-game-guides__promo-item,
.page-game-guides__responsible-item {
  background: rgba(255, 255, 255, 0.1); /* For dark section */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #ffffff; /* For dark section */
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-game-guides__strategy-item .page-game-guides__item-title,
.page-game-guides__promo-item .page-game-guides__item-title {
  color: #ffffff;
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-game-guides__strategy-item p,
.page-game-guides__promo-item p,
.page-game-guides__responsible-item {
  font-size: 1em;
  line-height: 1.6;
  color: #ffffff;
}
.page-game-guides__responsible-list {
    list-style: disc;
    padding-left: 20px;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
    display: block; /* Override grid for simple list */
}
.page-game-guides__responsible-item {
    background: none;
    box-shadow: none;
    border: none;
    padding: 5px 0;
    color: #ffffff;
    font-size: 1.05em;
    line-height: 1.7;
}

/* Card Grid for Platform Selection */
.page-game-guides__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.page-game-guides__card {
  background: var(--card-bg-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  text-align: left;
  color: var(--text-main-color);
}

.page-game-guides__card-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-game-guides__card-text {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-main-color);
}

/* FAQ Section */
.page-game-guides__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-game-guides__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question::-webkit-details-marker {
  display: none;
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question:hover {
  background: #f5f5f5;
}
.page-game-guides__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color);
}
.page-game-guides__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-game-guides__faq-item .page-game-guides__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-main-color);
}
details.page-game-guides__faq-item .page-game-guides__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
}


/* Bottom CTA Section */
.page-game-guides__cta-bottom {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--background-color);
}

.page-game-guides__cta-container {
  max-width: 900px;
}

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

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding-top: 10px !important; /* body handles header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-game-guides__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-game-guides__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }

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

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

  .page-game-guides__text-block,
  .page-game-guides__card-text,
  .page-game-guides__strategy-item p,
  .page-game-guides__promo-item p,
  .page-game-guides__responsible-item {
    font-size: 0.95em;
  }

  .page-game-guides__grid-item,
  .page-game-guides__card {
    padding: 20px;
  }

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

  /* FAQ */
  details.page-game-guides__faq-item summary.page-game-guides__faq-question { padding: 15px; }
  .page-game-guides__faq-qtext { font-size: 15px; }
  .page-game-guides__faq-answer { padding: 0 15px 15px; }

  /* Mobile image responsiveness */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__cta-group,
  .page-game-guides__grid-layout,
  .page-game-guides__card-grid,
  .page-game-guides__strategy-list,
  .page-game-guides__promo-list,
  .page-game-guides__responsible-list,
  .page-game-guides__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-guides__cta-bottom .page-game-guides__cta-container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-game-guides__cta-bottom .page-game-guides__cta-group {
    padding-left: 0;
    padding-right: 0;
  }
  .page-game-guides__responsible-list {
    padding-left: 35px; /* Adjust for bullet points */
  }
}

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

/* Ensure no filter on images */
.page-game-guides img {
  filter: none !important;
}

/* Keywords styling */
.page-game-guides .keyword {
    font-weight: bold;
    color: var(--primary-color);
}