/* style/game-guides.css */

/* Custom Colors */
:root {
  --page-bg-color: #08160F; /* Background */
  --card-bg-color: #11271B; /* Card BG */
  --text-main-color: #F2FFF6; /* Text Main */
  --text-secondary-color: #A7D9B8; /* Text Secondary */
  --border-color: #2E7A4E; /* Border */
  --glow-color: #57E38D; /* Glow */
  --gold-color: #F2C14E; /* Gold */
  --divider-color: #1E3A2A; /* Divider */
  --deep-green-color: #0A4B2C; /* Deep Green */
  --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
}

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

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

.page-game-guides__section-title {
  font-size: 2.5em;
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-game-guides__sub-title {
  font-size: 1.8em;
  color: var(--text-main-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-guides__section-description,
.page-game-guides__text-block {
  font-size: 1.1em;
  color: var(--text-secondary-color);
  text-align: center;
  margin-bottom: 30px;
}

.page-game-guides__text-block {
    text-align: left;
    margin-bottom: 20px;
}

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

.page-game-guides__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for aesthetic */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly with image for visual flow */
  background: rgba(8, 22, 15, 0.8); /* Semi-transparent background for readability */
  border-radius: 10px;
}

.page-game-guides__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Use clamp for H1 font size */
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 10px var(--glow-color);
}

.page-game-guides__description {
  font-size: 1.2em;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary {
  background: var(--btn-gradient);
  color: #ffffff; /* Always white text for dark buttons */
  border: 2px solid transparent;
  box-shadow: 0 0 15px var(--glow-color);
}

.page-game-guides__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px var(--glow-color);
}

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

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

/* Video Section */
.page-game-guides__video-section {
  background-color: var(--card-bg-color);
  padding: 60px 20px;
  text-align: center;
  padding-top: 10px; /* Small top padding */
}

.page-game-guides__video-link {
    display: block;
    margin: 30px auto;
    max-width: 800px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.page-game-guides__video-link:hover {
    transform: translateY(-5px);
}

.page-game-guides__hero-video-player {
  width: 100%;
  height: auto;
  display: block;
}

/* About Section */
.page-game-guides__about-section,
.page-game-guides__game-types-section,
.page-game-guides__promotions-section,
.page-game-guides__faq-section {
  padding: 60px 20px;
  background-color: var(--page-bg-color); /* Default light background */
  color: var(--text-main-color);
}

.page-game-guides__getting-started-section,
.page-game-guides__strategy-section,
.page-game-guides__security-section,
.page-game-guides__cta-bottom-section {
  padding: 60px 20px;
  background-color: var(--card-bg-color); /* Default dark background */
  color: var(--text-main-color);
}

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

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

.page-game-guides__image-text-block {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-top: 40px;
}

.page-game-guides__content-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}

.page-game-guides__image-text-block .page-game-guides__content-image {
    flex: 1;
    max-width: 50%;
}

.page-game-guides__image-text-block .page-game-guides__text-content {
    flex: 1;
    max-width: 50%;
}

/* Card Layouts */
.page-game-guides__step-cards,
.page-game-guides__grid-3-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-game-guides__card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-game-guides__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-game-guides__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}

.page-game-guides__card-title {
  font-size: 1.4em;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

.page-game-guides__faq-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main-color);
}

.page-game-guides__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--gold-color);
  transition: background-color 0.3s ease;
}

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

.page-game-guides__faq-item summary:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Border color with transparency */
}

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

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--glow-color);
}

.page-game-guides__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1.1em;
  color: var(--text-secondary-color);
}

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }
  .page-game-guides__image-text-block {
    flex-direction: column;
  }
  .page-game-guides__image-text-block .page-game-guides__content-image,
  .page-game-guides__image-text-block .page-game-guides__text-content {
    max-width: 100%;
  }
  .page-game-guides__grid-2-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-game-guides__section-title {
    font-size: 2em;
  }
  .page-game-guides__sub-title {
    font-size: 1.5em;
  }
  .page-game-guides__description,
  .page-game-guides__section-description,
  .page-game-guides__text-block {
    font-size: 1em;
    text-align: left;
  }
  .page-game-guides__hero-content {
    margin-top: -50px;
    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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile image responsiveness */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__image-text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile video responsiveness */
  .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-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;
  }
  
  .page-game-guides__video-section {
    padding-top: 10px !important;
  }
  
  .page-game-guides__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-guides__faq-item summary {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-game-guides__faq-answer {
    font-size: 1em;
    padding: 0 15px 15px 15px;
  }
}

@media (max-width: 480px) {
  .page-game-guides__section-title {
    font-size: 1.8em;
  }
  .page-game-guides__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }
  .page-game-guides__card {
    padding: 20px;
  }
}