/* style/game-guides.css */

/* Base styles for the game-guides page */
.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Inherited from body, explicit for clarity */
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  overflow: hidden;
}

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

.page-game-guides__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
}

.page-game-guides__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.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;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  max-width: 100%;
  box-sizing: border-box;
}

.page-game-guides__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.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;
}

/* Content Area */
.page-game-guides__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #ffffff; /* Light background for content */
  color: #333333; /* Dark text for light background */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: -80px; /* Overlap with hero for visual effect */
  position: relative;
  z-index: 4;
}

.page-game-guides__article h2 {
  font-size: 2.2em;
  color: #26A9E0;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.page-game-guides__article h3 {
  font-size: 1.8em;
  color: #333333;
  margin-top: 30px;
  margin-bottom: 15px;
}

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

.page-game-guides__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-game-guides__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-game-guides__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  display: block;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* Video Section */
.page-game-guides__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 40px 0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
}

.page-game-guides__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  max-width: 100%;
  box-sizing: border-box;
}

.page-game-guides__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Slightly darken video for better text contrast if needed */
  z-index: 10; /* Above video, below play button if any */
  pointer-events: none; /* Allow clicks to pass through to the video element */
}

/* FAQ Section */
.page-game-guides__faq-list {
  margin-top: 40px;
}

.page-game-guides__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #eaf6fd; /* Lighter brand color */
  color: #26A9E0;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.15em;
  transition: background-color 0.3s ease;
}

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

.page-game-guides__faq-question h3 {
  margin: 0;
  color: #26A9E0; /* Ensure heading color matches */
  font-size: 1.15em; /* Match parent font size */
}

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

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

.page-game-guides__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background-color: #ffffff;
  color: #333333;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 15px 25px;
}

.page-game-guides__faq-answer p {
  margin: 0;
  font-size: 1em;
}

.page-game-guides__cta-buttons--bottom {
  margin-top: 50px;
}

/* Floating Buttons */
.page-game-guides__floating-btn {
  position: fixed;
  right: 20px;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: transform 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
  font-size: 0.9em;
}

.page-game-guides__floating-btn--register {
  bottom: 120px;
  background-color: #26A9E0;
}

.page-game-guides__floating-btn--register:hover {
  transform: translateY(-5px);
  background-color: #1e87b6;
}

.page-game-guides__floating-btn--login {
  bottom: 60px;
  background-color: #EA7C07;
}

.page-game-guides__floating-btn--login:hover {
  transform: translateY(-5px);
  background-color: #c46406;
}

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

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

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

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

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

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-game-guides__content-area {
    padding: 20px 15px;
    margin-top: -60px;
  }

  .page-game-guides__article h2 {
    font-size: 1.8em;
  }

  .page-game-guides__article h3 {
    font-size: 1.4em;
  }

  .page-game-guides__text-block,
  .page-game-guides__list-item,
  .page-game-guides__faq-answer p {
    font-size: 0.95em;
  }

  .page-game-guides img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-game-guides__floating-btn {
    font-size: 0.8em;
    padding: 10px 15px;
    right: 15px;
    bottom: 100px; /* Adjust for potential footer/other elements */
  }

  .page-game-guides__floating-btn--login {
    bottom: 40px;
  }

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

  .page-game-guides__faq-question h3 {
    font-size: 1em;
  }

  .page-game-guides__faq-answer {
    padding: 0 20px;
  }

  .page-game-guides__faq-item.active .page-game-guides__faq-answer {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page-game-guides__main-title {
    font-size: 2em;
  }
  .page-game-guides__intro-text {
    font-size: 0.9em;
  }
  .page-game-guides__floating-btn {
    font-size: 0.75em;
    padding: 8px 12px;
  }
}