/* style/game-guides.css */
:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --background-color: #0A0A0A;
  --card-background-color: #111111;
  --text-main-color: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-game-guides {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

.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;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  overflow: hidden;
}

.page-game-guides__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-game-guides__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

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

.page-game-guides__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-game-guides__hero-content h1 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
  /* Use clamp for responsive font size if needed, but avoid fixed large values */
}

.page-game-guides__hero-content p {
  color: var(--text-main-color);
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: #ffffff; /* White text on button for contrast */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-game-guides__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.page-game-guides__section:last-of-type {
  border-bottom: none;
}

.page-game-guides__section-title {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5em;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.4);
}

.page-game-guides p {
  font-size: 1em;
  margin-bottom: 15px;
  color: var(--text-main-color);
}

.page-game-guides strong {
  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;
  margin-top: 30px;
}

.page-game-guides__game-card {
  background-color: var(--card-background-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-game-guides__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--primary-color);
}

.page-game-guides__game-title {
  color: var(--secondary-color);
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-game-guides__game-description {
  color: var(--text-main-color);
  font-size: 0.95em;
  margin-bottom: 20px;
  min-height: 100px;
}

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

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

/* Promo Optimization Section */
.page-game-guides__promo-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-game-guides__promo-image {
  flex: 1 1 45%;
  min-width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--primary-color);
}

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

.page-game-guides__promo-list li {
  background-color: var(--card-background-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--text-main-color);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-game-guides__promo-list li::before {
  content: '✓';
  color: var(--secondary-color);
  font-size: 1.5em;
  font-weight: bold;
  margin-right: 10px;
}

/* Strategy Section */
.page-game-guides__strategy-content {
  display: flex;
  flex-wrap: wrap-reverse; /* Image below text on mobile */
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

.page-game-guides__strategy-list {
  flex: 1 1 45%;
  list-style: decimal;
  padding-left: 20px;
  color: var(--text-main-color);
}

.page-game-guides__strategy-list li {
  margin-bottom: 15px;
  font-size: 1em;
}

.page-game-guides__strategy-list li strong {
  color: var(--primary-color);
}

.page-game-guides__strategy-image {
  flex: 1 1 45%;
  min-width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--secondary-color);
}

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

details.page-game-guides__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-background-color);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

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

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

details.page-game-guides__faq-item summary.page-game-guides__faq-question:hover {
  background: rgba(var(--primary-color-rgb), 0.1);
}

.page-game-guides__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color);
}

.page-game-guides__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-game-guides__faq-item .page-game-guides__faq-answer {
  padding: 0 20px 20px;
  background: rgba(var(--card-background-color-rgb), 0.8);
  border-radius: 0 0 5px 5px;
  color: var(--text-main-color);
}

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

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

.page-game-guides__cta-bottom-content {
  max-width: 800px;
}

.page-game-guides__cta-bottom-content h2 {
  font-size: 2.2em;
  margin-bottom: 25px;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-game-guides__section-title {
    font-size: 2em;
  }
  .page-game-guides__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

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

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

  .page-game-guides__hero-image img {
    border-radius: 4px;
  }

  .page-game-guides__hero-content h1 {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

  .page-game-guides__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-game-guides__section {
    padding: 40px 0;
  }

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

  .page-game-guides__container {
    padding: 0 15px;
  }

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

  .page-game-guides__game-image {
    height: 180px;
  }

  .page-game-guides__game-description {
    min-height: auto;
  }

  .page-game-guides__promo-content,
  .page-game-guides__strategy-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-game-guides__promo-image,
  .page-game-guides__strategy-image {
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-game-guides__promo-list,
  .page-game-guides__strategy-list {
    flex: 1 1 100%;
    padding-left: 0;
  }

  .page-game-guides__promo-list li {
    padding: 12px 15px;
    margin-bottom: 10px;
  }

  details.page-game-guides__faq-item summary.page-game-guides__faq-question {
    padding: 15px;
  }

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

  .page-game-guides__faq-toggle {
    font-size: 20px;
  }

  details.page-game-guides__faq-item .page-game-guides__faq-answer {
    padding: 0 15px 15px;
  }

  .page-game-guides__cta-bottom-section {
    padding: 60px 15px;
  }

  .page-game-guides__cta-bottom-content h2 {
    font-size: 1.8em;
  }

  /* Ensure all containers with images/buttons are responsive */
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__hero-container,
  .page-game-guides__game-grid,
  .page-game-guides__promo-content,
  .page-game-guides__strategy-content,
  .page-game-guides__faq-list,
  .page-game-guides__cta-bottom-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}