/* style/game-guides.css */

/* Base styles for the page */
.page-game-guides {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color, #FFF3E6); /* Default text color from palette */
  background-color: var(--background-color, #0D0E12); /* Default background color from palette */
}

.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, body handles header offset */
  overflow: hidden;
}

.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;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: var(--text-main-color, #FFF3E6);
}

.page-game-guides__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main-color, #FFF3E6);
  letter-spacing: 1px;
}

.page-game-guides__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-main-color, #FFF3E6);
}

/* General Section Styles */
.page-game-guides__section {
  padding: 60px 0;
}

.page-game-guides__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: var(--primary-color, #FF8C1A);
}

.page-game-guides__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--accent-color, #FFA53A);
}

.page-game-guides__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-main-color, #FFF3E6);
}

.page-game-guides__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-game-guides__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-main-color, #FFF3E6);
}

.page-game-guides__list-item {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 10px;
  color: var(--text-main-color, #FFF3E6);
}

/* Color Scheme Application */
.page-game-guides__dark-bg {
  background-color: var(--background-color, #0D0E12);
  color: var(--text-main-color, #FFF3E6);
}

.page-game-guides__light-bg {
  background-color: var(--card-bg-color, #17191F);
  color: var(--text-main-color, #FFF3E6);
}

.page-game-guides__dark-section .page-game-guides__section-title,
.page-game-guides__dark-section .page-game-guides__sub-title {
  color: var(--primary-color, #FF8C1A);
}

.page-game-guides__light-bg .page-game-guides__section-title,
.page-game-guides__light-bg .page-game-guides__sub-title {
  color: var(--accent-color, #FFA53A);
}

/* Buttons */
.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-game-guides__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6; /* Text Main */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

.page-game-guides__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  box-shadow: 0 6px 20px rgba(255, 165, 58, 0.6);
}

.page-game-guides__btn-secondary {
  background-color: transparent;
  color: var(--primary-color, #FF8C1A);
  border: 2px solid var(--border-color, #A84F0C);
  margin-left: 20px;
}

.page-game-guides__btn-secondary:hover {
  background-color: var(--border-color, #A84F0C);
  color: #FFF3E6;
}

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

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

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

.page-game-guides__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  outline: none;
  list-style: none; /* Remove default marker */
}

.page-game-guides__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit */
}

.page-game-guides__faq-question {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--accent-color, #FFA53A);
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--primary-color, #FF8C1A);
  transition: transform 0.3s ease;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
  transform: rotate(45deg); /* Change '+' to 'x' or similar when open */
}

.page-game-guides__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  line-height: 1.7;
  color: var(--text-main-color, #FFF3E6);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

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

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

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

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

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

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

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

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

  .page-game-guides__text-block,
  .page-game-guides__list-item {
    font-size: 1em;
  }

  /* Mobile image responsiveness */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile button responsiveness */
  .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;
    margin-left: 0 !important; /* Remove margin for stacked buttons */
    margin-bottom: 15px; /* Add space between stacked buttons */
  }

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

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

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

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

/* Color palette variables for consistency */
:root {
  --primary-color: #FF8C1A;
  --accent-color: #FFA53A;
  --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  --card-bg-color: #17191F;
  --background-color: #0D0E12;
  --text-main-color: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange-color: #D96800;
}