/* style/game-guides.css */

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

/* Base styles for the page */
.page-game-guides {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--background-color); /* Body background handled by shared.css, this is for main content area */
  line-height: 1.6;
}

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

/* Typography */
.page-game-guides h1,
.page-game-guides h2,
.page-game-guides h3,
.page-game-guides h4,
.page-game-guides h5,
.page-game-guides h6 {
  color: var(--text-main);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-game-guides__hero-title {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--gold-color);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 20px auto; /* No fixed font-size, rely on weight and line-height */
}

.page-game-guides__section-title {
  font-size: clamp(28px, 4vw, 42px); /* Use clamp for H2 */
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: var(--gold-color);
}

.page-game-guides__card-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main);
}

.page-game-guides__list-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.page-game-guides p {
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.page-game-guides__text-block {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
  background-color: var(--background-color);
  overflow: hidden;
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

.page-game-guides__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
  max-width: 800px;
}

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

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

/* Buttons */
.page-game-guides__btn-primary,
.page-game-guides__btn-secondary,
.page-game-guides__btn-text,
.page-game-guides__btn-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

.page-game-guides__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-game-guides__btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 0 15px var(--glow-color);
}

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

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

.page-game-guides__btn-text {
  background: none;
  border: none;
  color: var(--gold-color);
  padding: 0;
  font-weight: 600;
  text-decoration: underline;
  margin-top: 15px;
}

.page-game-guides__btn-text:hover {
  color: var(--glow-color);
}

.page-game-guides__btn-inline {
  background: var(--deep-green-color);
  color: var(--text-main);
  padding: 8px 15px;
  font-size: 14px;
  border-radius: 5px;
  margin-top: 10px;
  display: inline-block;
}

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

/* Section Styling */
.page-game-guides__introduction-section,
.page-game-guides__game-categories,
.page-game-guides__getting-started,
.page-game-guides__important-notes,
.page-game-guides__faq-section,
.page-game-guides__conclusion-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--divider-color);
}

.page-game-guides__introduction-section.page-game-guides__dark-section,
.page-game-guides__getting-started.page-game-guides__dark-section,
.page-game-guides__faq-section.page-game-guides__dark-section {
  background-color: var(--card-bg);
  color: var(--text-secondary);
}

.page-game-guides__game-categories.page-game-guides__light-bg,
.page-game-guides__important-notes.page-game-guides__light-bg,
.page-game-guides__conclusion-section.page-game-guides__light-bg {
  background-color: var(--background-color);
  color: var(--text-secondary);
}

/* Game Categories Grid */
.page-game-guides__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

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

.page-game-guides__card-description {
  color: var(--text-secondary);
  font-size: 15px;
  flex-grow: 1;
}

/* Step List */
.page-game-guides__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-game-guides__step-list .page-game-guides__list-item {
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-game-guides__step-list .page-game-guides__list-item:last-child {
  margin-bottom: 0;
}

.page-game-guides__list-description {
  color: var(--text-secondary);
}

/* Note List */
.page-game-guides__note-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-game-guides__note-list .page-game-guides__list-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-game-guides__note-list .page-game-guides__list-item:last-child {
  margin-bottom: 0;
}

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

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

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-game-guides__faq-question:hover {
  background-color: var(--deep-green-color);
}

.page-game-guides__faq-qtext {
  flex-grow: 1;
  color: var(--text-main);
}

.page-game-guides__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  margin-left: 15px;
  color: var(--gold-color);
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
  content: '−';
}

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

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

/* Responsive Design */
/* All images responsive by default */
.page-game-guides img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
  .page-game-guides__container {
    padding: 0 15px;
  }

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

  .page-game-guides__hero-title {
    font-size: clamp(28px, 8vw, 42px);
    margin-bottom: 15px;
  }

  .page-game-guides__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

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

  .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;
  }

  .page-game-guides__cta-buttons,
  .page-game-guides__button-group,
  .page-game-guides__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-game-guides__section-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 25px;
  }

  .page-game-guides__introduction-section,
  .page-game-guides__game-categories,
  .page-game-guides__getting-started,
  .page-game-guides__important-notes,
  .page-game-guides__faq-section,
  .page-game-guides__conclusion-section {
    padding: 40px 0;
  }

  .page-game-guides__category-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

  .page-game-guides__card-title {
    font-size: 20px;
  }

  .page-game-guides__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }

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

  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  .page-game-guides__video-section {
    padding-top: 10px !important; /* body đã xử lý --header-offset */
  }

  .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;
  }
}