/* style/game-guides.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --background-light: #FFFFFF;
  --background-dark: #1a1a1a; /* Assuming a dark background for dark sections */
  --login-button-color: #EA7C07;
}

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

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

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  min-height: 500px;
  overflow: hidden;
  color: var(--text-light);
  background-color: var(--primary-color);
}

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

.page-game-guides__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Slightly faded background image */
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  padding: 30px;
  border-radius: 8px;
}

.page-game-guides__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

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

.page-game-guides__btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 2px solid var(--primary-color);
}

.page-game-guides__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%); /* Placeholder for darker shade */
  background-color: #1e87b5;
}

.page-game-guides__btn-secondary {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid var(--primary-color);
}

.page-game-guides__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-game-guides__hero-cta {
  background-color: var(--login-button-color); /* Specific color for hero CTA */
  border-color: var(--login-button-color);
}

.page-game-guides__hero-cta:hover {
  background-color: darken(var(--login-button-color), 10%); /* Placeholder for darker shade */
  background-color: #c96500;
}

/* General Section Styles */
.page-game-guides__intro-section,
.page-game-guides__game-types-section,
.page-game-guides__strategies-section,
.page-game-guides__login-register-section,
.page-game-guides__security-tips-section,
.page-game-guides__faq-section,
.page-game-guides__cta-section {
  padding: 60px 0;
}

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

.page-game-guides__sub-heading {
  font-size: 1.5em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

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

/* Dark background sections */
.page-game-guides__dark-section {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-game-guides__dark-section .page-game-guides__section-title,
.page-game-guides__dark-section .page-game-guides__sub-heading {
  color: var(--secondary-color);
}

/* Game Types Section */
.page-game-guides__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-game-guides__game-card {
  background-color: var(--background-light);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
  color: var(--text-dark);
}

.page-game-guides__game-card:hover {
  transform: translateY(-5px);
}

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

.page-game-guides__card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-game-guides__card-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-game-guides__card-title a:hover {
  color: darken(var(--primary-color), 10%); /* Placeholder for darker shade */
  color: #1e87b5;
}

.page-game-guides__card-description {
  padding: 0 15px 15px;
  font-size: 0.95em;
}

.page-game-guides__btn-text {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  padding: 8px 15px;
  margin: 0 5px 15px;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-game-guides__btn-text:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-game-guides__card-actions {
  display: flex;
  justify-content: center;
  padding-bottom: 15px;
}

/* Strategies Section */
.page-game-guides__strategies-section {
  text-align: center;
}

.page-game-guides__strategy-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: left;
}

.page-game-guides__strategy-item:last-child {
  margin-bottom: 0;
}

.page-game-guides__strategy-heading {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

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

.page-game-guides__strategies-section .page-game-guides__text-block a {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Login Register Section */
.page-game-guides__login-register-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-game-guides__text-area {
  flex: 1;
}

.page-game-guides__image-area {
  flex: 1;
  text-align: center;
}

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

.page-game-guides__ordered-list,
.page-game-guides__unordered-list {
  list-style-position: inside;
  margin-bottom: 20px;
  padding-left: 0;
}

.page-game-guides__ordered-list li,
.page-game-guides__unordered-list li {
  margin-bottom: 8px;
  font-size: 1.05em;
}

.page-game-guides__button-group {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-game-guides__button-group .page-game-guides__btn-primary,
.page-game-guides__button-group .page-game-guides__btn-secondary {
  flex: 1;
  min-width: 180px; /* Ensure buttons don't get too small */
  text-align: center;
}

/* Security Tips Section */
.page-game-guides__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-game-guides__security-card {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__security-card .page-game-guides__card-title {
  color: var(--secondary-color);
  font-size: 1.3em;
}

.page-game-guides__security-card .page-game-guides__card-description {
  font-size: 0.95em;
  color: var(--text-light);
}

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

.page-game-guides__faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.page-game-guides__faq-question:hover {
  background-color: #f0f0f0;
}

.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;
  border-top: 1px solid #eee;
  font-size: 1em;
  color: #555;
}

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

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

/* CTA Section */
.page-game-guides__cta-section {
  text-align: center;
  color: var(--text-light);
  background-color: var(--primary-color);
}

.page-game-guides__cta-section .page-game-guides__section-title {
  color: var(--secondary-color);
}

.page-game-guides__cta-section .page-game-guides__text-block {
  color: var(--secondary-color);
  max-width: 700px;
  margin: 0 auto 30px auto;
}

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

  .page-game-guides__hero-description {
    font-size: 1em;
  }

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

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

  .page-game-guides__login-register-content {
    flex-direction: column;
  }

  .page-game-guides__text-area,
  .page-game-guides__image-area {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
  }

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

  .page-game-guides__hero-title {
    font-size: 1.8em;
  }

  .page-game-guides__hero-description {
    font-size: 0.9em;
  }

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary,
  .page-game-guides a[class*="button"],
  .page-game-guides a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__button-group {
    flex-direction: column;
    gap: 10px;
  }

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

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

  .page-game-guides__intro-section,
  .page-game-guides__game-types-section,
  .page-game-guides__strategies-section,
  .page-game-guides__login-register-section,
  .page-game-guides__security-tips-section,
  .page-game-guides__faq-section,
  .page-game-guides__cta-section {
    padding: 40px 0;
  }

  .page-game-guides__container {
    padding: 0 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__card-image {
    height: auto; /* Allow auto height for mobile */
  }

  .page-game-guides__game-card,
  .page-game-guides__security-card {
    margin-bottom: 20px;
  }

  .page-game-guides__video-section {
    padding-top: var(--header-offset, 120px) !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;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

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

  .page-game-guides__hero-description {
    font-size: 0.85em;
  }

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    padding: 10px 20px;
  }

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

  .page-game-guides__sub-heading {
    font-size: 1.1em;
  }

  .page-game-guides__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }

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