/* style/game-guides.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không cần lặp lại ở đây */

: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 {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-game-guides-text-main); /* Default text color for dark background */
  background-color: var(--page-game-guides-bg); /* Body background handled by shared.css */
}

.page-game-guides__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: 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: 600px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Ensure min size */
  min-height: 200px;
}

.page-game-guides__hero-content {
  width: 100%;
  max-width: 800px;
  padding: 30px 15px;
  box-sizing: border-box;
  text-align: center;
  z-index: 1;
  margin-top: 20px;
}

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

.page-game-guides__hero-description {
  font-size: 1.1rem;
  color: var(--page-game-guides-text-secondary);
  margin-bottom: 30px;
}

.page-game-guides__section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: bold;
  margin-bottom: 40px;
  color: var(--page-game-guides-text-main);
}

.page-game-guides__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--page-game-guides-text-secondary);
  text-align: left;
}

.page-game-guides__game-types {
  background-color: var(--page-game-guides-bg);
}

.page-game-guides__game-card {
  background-color: var(--page-game-guides-card-bg);
  border: 1px solid var(--page-game-guides-border);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-game-guides__card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  min-width: 200px; /* Ensure min size */
  min-height: 200px;
}

.page-game-guides__card-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--page-game-guides-text-main);
}

.page-game-guides__card-description {
  font-size: 1rem;
  color: var(--page-game-guides-text-secondary);
  margin-bottom: 15px;
}

.page-game-guides__card-subtitle {
  font-size: 1.3rem;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--page-game-guides-text-main);
}

.page-game-guides__card-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: var(--page-game-guides-text-secondary);
}

.page-game-guides__card-list li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.page-game-guides__strategies {
  background-color: var(--page-game-guides-bg);
}

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

.page-game-guides__strategy-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--page-game-guides-text-main);
}

.page-game-guides__strategy-list {
  list-style-type: decimal;
  margin-left: 20px;
  margin-bottom: 15px;
  color: var(--page-game-guides-text-secondary);
}

.page-game-guides__strategy-list li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.page-game-guides__faq-section {
  background-color: var(--page-game-guides-bg);
}

.page-game-guides__faq-item {
  background-color: var(--page-game-guides-card-bg);
  border: 1px solid var(--page-game-guides-border);
  border-radius: 10px;
  margin-bottom: 15px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--page-game-guides-text-main);
  list-style: none;
}

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

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

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

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

.page-game-guides__conclusion {
  background-color: var(--page-game-guides-bg);
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-game-guides__btn-primary {
  background: var(--page-game-guides-btn-gradient);
  color: #ffffff; /* White text for gradient button */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-game-guides__btn-secondary {
  background-color: transparent;
  color: var(--page-game-guides-text-main);
  border: 2px solid var(--page-game-guides-border);
  margin-top: 20px;
}

.page-game-guides__btn-secondary:hover {
  background-color: var(--page-game-guides-deep-green);
  color: var(--page-game-guides-text-main);
}

/* Color Contrast Adjustments */
.page-game-guides__dark-section {
  background-color: var(--page-game-guides-bg);
  color: var(--page-game-guides-text-main);
}

.page-game-guides__light-bg {
  background-color: #f5f5f5; /* Use a lighter background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-game-guides__light-bg .page-game-guides__section-title,
.page-game-guides__light-bg .page-game-guides__text-block {
  color: #333333;
}

.page-game-guides__light-bg .page-game-guides__btn-secondary {
  color: #333333;
  border-color: #333333;
}

.page-game-guides__light-bg .page-game-guides__btn-secondary:hover {
  background-color: #e0e0e0;
}

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

@media (max-width: 768px) {
  .page-game-guides__section {
    padding: 40px 15px;
  }
  .page-game-guides__hero-image-wrapper {
    max-height: 400px;
  }
  .page-game-guides__hero-content {
    padding: 20px 15px;
  }
  .page-game-guides__main-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-game-guides__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-game-guides__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 30px;
  }
  .page-game-guides__game-card, .page-game-guides__strategy-item {
    padding: 20px;
  }
  .page-game-guides__card-title, .page-game-guides__strategy-title {
    font-size: 1.5rem;
  }
  .page-game-guides__card-subtitle {
    font-size: 1.1rem;
  }
  .page-game-guides__faq-question {
    font-size: 1rem;
    padding: 15px;
  }
  .page-game-guides__faq-answer {
    padding: 0 15px 15px;
  }

  /* Mobile responsive for all images */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile responsive for all containers with images */
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__game-card,
  .page-game-guides__strategy-item,
  .page-game-guides__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Mobile responsive for all buttons */
  .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-top: 10px; /* Add some spacing for stacked buttons */
  }

  /* If buttons are in a flex container, make them stack vertically */
  .page-game-guides__hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .page-game-guides__hero-content a {
    margin-bottom: 10px;
  }

  .page-game-guides__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

@media (max-width: 480px) {
  .page-game-guides__hero-image-wrapper {
    max-height: 300px;
  }
  .page-game-guides__main-title {
    font-size: clamp(1.3rem, 7vw, 2.2rem);
  }
  .page-game-guides__section-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }
  .page-game-guides__card-title, .page-game-guides__strategy-title {
    font-size: 1.3rem;
  }
  .page-game-guides__faq-question {
    font-size: 0.95rem;
  }
  .page-game-guides__btn-primary, .page-game-guides__btn-secondary {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}