/* style/game-guides.css */

/* Base styles for the page, ensuring light text on dark body background */
.page-game-guides {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Light text on dark body background */
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css */
}

/* Sections */
.page-game-guides__section {
  padding: 40px 20px;
  margin-bottom: 20px;
}

.page-game-guides__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-game-guides__dark-bg {
  background-color: #26A9E0; /* Primary brand color for dark sections */
  color: #ffffff;
}

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

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

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height to prevent image from being too tall */
  overflow: hidden;
  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;
  z-index: 1;
  position: relative;
  color: #ffffff;
}

.page-game-guides__main-title {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.page-game-guides__lead-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Section Titles */
.page-game-guides__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
}

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

.page-game-guides__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-game-guides__paragraph {
  font-size: 1em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-game-guides__paragraph--light {
  color: #f0f0f0;
}

/* Links */
.page-game-guides__link {
  color: #EA7C07;
  text-decoration: underline;
}

.page-game-guides__link:hover {
  text-decoration: none;
  color: #ff9933;
}

/* Buttons */
.page-game-guides__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-game-guides__cta-buttons--center {
  justify-content: center;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow word breaking */
  box-sizing: border-box;
  max-width: 100%;
}

.page-game-guides__btn-primary {
  background-color: #EA7C07; /* Login/Action color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-game-guides__btn-primary:hover {
  background-color: #ff9933;
  border-color: #ff9933;
}

.page-game-guides__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-game-guides__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-game-guides__btn-text {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  margin-top: 15px;
  transition: color 0.3s ease;
}

.page-game-guides__btn-text:hover {
  color: #EA7C07;
}

/* Grid Layouts */
.page-game-guides__grid-container {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 40px;
}

.page-game-guides__grid-item {
  flex: 1;
  min-width: 300px;
}

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

/* Cards */
.page-game-guides__card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-game-guides__card-title {
  font-size: 1.4em;
  font-weight: 700;
  margin: 20px 20px 10px 20px;
  color: #26A9E0;
}

.page-game-guides__card-sub-title {
  font-size: 1.1em;
  font-weight: 600;
  margin: 15px 20px 10px 20px;
  color: #EA7C07;
}

.page-game-guides__card-text {
  font-size: 0.95em;
  margin: 0 20px 15px 20px;
  flex-grow: 1;
}

/* Lists */
.page-game-guides__list,
.page-game-guides__ordered-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-game-guides__list--small {
  font-size: 0.95em;
  list-style-type: circle;
  color: #333333;
}

.page-game-guides__ordered-list {
  list-style-type: decimal;
}

.page-game-guides__list-item {
  margin-bottom: 8px;
  color: inherit;
}

/* Images */
.page-game-guides__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* FAQ Section */
.page-game-guides__faq-section {
  padding: 60px 20px;
}

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

.page-game-guides__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-game-guides__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-game-guides__faq-qtext {
  flex-grow: 1;
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  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 25px 20px 25px;
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-game-guides__faq-answer p {
  margin-bottom: 0; /* Remove default paragraph margin */
  color: #f0f0f0;
}

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

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

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

  .page-game-guides__card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-game-guides__hero-image-wrapper {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .page-game-guides {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-game-guides__hero-image-wrapper {
    max-height: 300px;
  }

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

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

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

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

  .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-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__grid-container {
    flex-direction: column;
    gap: 20px;
  }

  .page-game-guides__grid-container--reverse-mobile {
    flex-direction: column-reverse;
  }

  .page-game-guides__grid-item {
    min-width: unset;
    width: 100%;
  }

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

  .page-game-guides__content-area,
  .page-game-guides__section,
  .page-game-guides__faq-section {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-game-guides__video-section,
  .page-game-guides__video-container,
  .page-game-guides__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__card {
    padding-bottom: 20px; /* Add some space at the bottom of cards */
  }

  .page-game-guides__card-title,
  .page-game-guides__card-sub-title,
  .page-game-guides__card-text {
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-game-guides__list,
  .page-game-guides__ordered-list {
    margin-left: 15px;
    padding-left: 10px;
  }

  .page-game-guides__list--small {
    margin-left: 15px;
    padding-left: 10px;
  }
}

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

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

  .page-game-guides__hero-image-wrapper {
    max-height: 250px;
  }
}