/* style/game-guides.css */

/* Custom Colors */
:root {
  --page-game-guides-bg: #08160F;
  --page-game-guides-card-bg: #11271B;
  --page-game-guides-text-main: #F2FFF6;
  --page-game-guides-text-secondary: #A7D9B8;
  --page-game-guides-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-game-guides-border: #2E7A4E;
  --page-game-guides-glow: #57E38D;
  --page-game-guides-gold: #F2C14E;
  --page-game-guides-divider: #1E3A2A;
  --page-game-guides-deep-green: #0A4B2C;
}

.page-game-guides {
  background-color: var(--page-game-guides-bg); /* Body background is handled by shared, this is for main content sections */
  color: var(--page-game-guides-text-main);
  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__dark-bg {
  background-color: var(--page-game-guides-bg);
  color: var(--page-game-guides-text-main);
}

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

.page-game-guides__text-secondary {
  color: var(--page-game-guides-text-secondary);
}

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

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  max-height: 700px; /* Limit height for aesthetic */
  object-fit: cover;
  display: block;
  margin-bottom: 30px;
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 10; /* Ensure content is above image if any overlap */
  max-width: 900px;
  padding: 0 20px;
}

.page-game-guides__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  color: var(--page-game-guides-gold);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-game-guides__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  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: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary {
  background: var(--page-game-guides-btn-gradient);
  color: var(--page-game-guides-text-main);
  border: 2px solid transparent;
}

.page-game-guides__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

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

.page-game-guides__btn-secondary:hover {
  background-color: var(--page-game-guides-gold);
  color: var(--page-game-guides-bg);
  transform: translateY(-2px);
}

/* General Section Styling */
.page-game-guides__content-area,
.page-game-guides__how-to-section,
.page-game-guides__register-section,
.page-game-guides__promotions-section,
.page-game-guides__faq-section,
.page-game-guides__conclusion-section {
  padding: 80px 0;
  text-align: center;
}

.page-game-guides__section-header {
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.page-game-guides__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--page-game-guides-gold);
}

.page-game-guides__section-description {
  font-size: 1.1rem;
}

/* Game Grid */
.page-game-guides__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-game-guides__game-card {
  background-color: var(--page-game-guides-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--page-game-guides-border);
  color: var(--page-game-guides-text-main);
}

.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.5rem;
  font-weight: bold;
  padding: 20px 20px 10px 20px;
  color: var(--page-game-guides-gold);
}

.page-game-guides__card-text {
  font-size: 1rem;
  padding: 0 20px 20px 20px;
  flex-grow: 1;
  color: var(--page-game-guides-text-secondary);
}

.page-game-guides__card-link {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 20px 20px 20px;
  background: var(--page-game-guides-btn-gradient);
  color: var(--page-game-guides-text-main);
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-game-guides__card-link:hover {
  filter: brightness(1.1);
}

/* How-To Section (Steps) */
.page-game-guides__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-game-guides__step-item {
  background-color: var(--page-game-guides-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--page-game-guides-border);
}

.page-game-guides__step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--page-game-guides-gold);
  color: var(--page-game-guides-bg);
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-game-guides__step-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--page-game-guides-gold);
}

.page-game-guides__step-text {
  font-size: 1rem;
}

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

/* Register Section */
.page-game-guides__register-section .page-game-guides__section-title,
.page-game-guides__register-section .page-game-guides__description {
  color: #333333; /* Override for light background */
}

.page-game-guides__register-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
  text-align: left;
}

.page-game-guides__register-image {
  flex: 1 1 45%;
  min-width: 300px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border: 1px solid #e0e0e0;
}

.page-game-guides__register-list {
  flex: 1 1 45%;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-game-guides__register-list li {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #333333;
}

.page-game-guides__list-icon {
  color: var(--page-game-guides-gold);
  font-size: 1.5rem;
  margin-right: 15px;
  font-weight: bold;
}

/* Promotions Section */
.page-game-guides__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-game-guides__promo-card {
  background-color: var(--page-game-guides-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  text-align: left;
  border: 1px solid var(--page-game-guides-border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-game-guides__promo-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--page-game-guides-gold);
}

.page-game-guides__promo-text {
  font-size: 1rem;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-game-guides__faq-section .page-game-guides__section-title,
.page-game-guides__faq-section .page-game-guides__description {
  color: #333333; /* Override for light background */
}

.page-game-guides__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
  text-align: left;
}

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

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--page-game-guides-gold);
  user-select: none;
}

.page-game-guides__faq-question::-webkit-details-marker { /* Hide default marker for Chrome */
  display: none;
}

.page-game-guides__faq-question::marker { /* Hide default marker for Firefox */
  display: none;
}

.page-game-guides__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
}

.page-game-guides__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--page-game-guides-text-secondary);
}

/* Conclusion Section */
.page-game-guides__conclusion-section {
  padding: 100px 0;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__hero-image {
    max-height: 500px;
  }
  .page-game-guides__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-game-guides__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
}

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

  .page-game-guides__hero-section {
    padding-bottom: 40px;
  }

  .page-game-guides__hero-image {
    max-height: 400px;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-guides__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-game-guides__description {
    font-size: 1rem;
  }

  .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 !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-game-guides__content-area,
  .page-game-guides__how-to-section,
  .page-game-guides__register-section,
  .page-game-guides__promotions-section,
  .page-game-guides__faq-section,
  .page-game-guides__conclusion-section {
    padding: 60px 0;
  }

  .page-game-guides__container,
  .page-game-guides__section-header,
  .page-game-guides__game-grid,
  .page-game-guides__steps,
  .page-game-guides__promo-grid,
  .page-game-guides__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-game-guides__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .page-game-guides__card-image,
  .page-game-guides__register-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }

  .page-game-guides__game-card,
  .page-game-guides__promo-card,
  .page-game-guides__step-item,
  .page-game-guides__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-guides__register-content {
    flex-direction: column;
    gap: 20px;
  }

  .page-game-guides__register-image {
    order: -1; /* Image first on mobile */
  }

  /* All images in content area */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

@media (max-width: 480px) {
  .page-game-guides__hero-section {
    padding-bottom: 30px;
  }
  .page-game-guides__main-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  .page-game-guides__section-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }
  .page-game-guides__game-card,
  .page-game-guides__promo-card,
  .page-game-guides__step-item,
  .page-game-guides__faq-item {
    padding: 20px;
  }
  .page-game-guides__card-title,
  .page-game-guides__promo-title,
  .page-game-guides__step-title {
    font-size: 1.3rem;
  }
  .page-game-guides__faq-question {
    font-size: 1rem;
  }
  .page-game-guides__faq-answer {
    font-size: 0.9rem;
  }
}