/* style/game-guides.css */

/* Custom Colors */
:root {
  --page-game-guides-primary: #11A84E;
  --page-game-guides-secondary: #22C768;
  --page-game-guides-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-game-guides-card-bg: #11271B;
  --page-game-guides-background: #08160F;
  --page-game-guides-text-main: #F2FFF6;
  --page-game-guides-text-secondary: #A7D9B8;
  --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 the page */
  background-color: var(--page-game-guides-background); /* Overall page background */
}

.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  overflow: hidden;
  color: var(--page-game-guides-text-main);
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  max-height: 675px;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-top: 50px; /* Adjust to ensure content is below image */
  padding: 30px;
  background: rgba(8, 22, 15, 0.7); /* Semi-transparent background for readability */
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-game-guides__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--page-game-guides-gold);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

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

.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;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 10px;
  box-sizing: border-box;
}

.page-game-guides__btn-primary {
  background: var(--page-game-guides-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-game-guides__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

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

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

.page-game-guides__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-game-guides-gold);
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-game-guides__intro-section,
.page-game-guides__tips-section,
.page-game-guides__cta-section {
  padding: 80px 0;
  background-color: var(--page-game-guides-background);
  color: var(--page-game-guides-text-main);
}

.page-game-guides__dark-bg {
  background-color: var(--page-game-guides-card-bg);
  color: var(--page-game-guides-text-main);
}

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

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

.page-game-guides__game-categories {
  padding: 80px 0;
}

.page-game-guides__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-game-guides__card {
  background-color: var(--page-game-guides-card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--page-game-guides-text-main);
  border: 1px solid var(--page-game-guides-border);
}

.page-game-guides__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

.page-game-guides__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--page-game-guides-divider);
}

.page-game-guides__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 20px 20px 10px;
  color: var(--page-game-guides-gold);
  line-height: 1.3;
}

.page-game-guides__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-game-guides__card-title a:hover {
  text-decoration: underline;
}

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

.page-game-guides__card .page-game-guides__btn-secondary {
  margin: 0 20px 20px;
  align-self: flex-start;
}

.page-game-guides__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-game-guides__tip-item {
  background-color: var(--page-game-guides-card-bg);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  color: var(--page-game-guides-text-main);
  border: 1px solid var(--page-game-guides-border);
}

.page-game-guides__tip-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--page-game-guides-primary);
  margin-bottom: 15px;
}

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

.page-game-guides__faq-section {
  padding: 80px 0;
}

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

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

.page-game-guides__faq-item summary {
  list-style: none;
}

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

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--page-game-guides-deep-green);
  color: var(--page-game-guides-text-main);
  border-bottom: 1px solid var(--page-game-guides-divider);
  transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
  background-color: rgba(10, 75, 44, 0.8);
}

.page-game-guides__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--page-game-guides-gold);
}

.page-game-guides__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--page-game-guides-text-secondary);
  background-color: var(--page-game-guides-card-bg);
}

.page-game-guides__faq-answer p {
  margin-bottom: 0;
  color: var(--page-game-guides-text-secondary);
}

.page-game-guides__cta-section .page-game-guides__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  text-align: center;
}

.page-game-guides__cta-section .page-game-guides__btn-primary,
.page-game-guides__cta-section .page-game-guides__btn-secondary {
  margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__hero-content {
    padding: 20px;
    margin-top: 30px;
  }
  .page-game-guides__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-game-guides__hero-description {
    font-size: 1.1rem;
  }
  .page-game-guides__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding: 10px 15px 40px;
  }
  .page-game-guides__hero-content {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
  }
  .page-game-guides__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-game-guides__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-game-guides__hero-content .page-game-guides__btn-primary,
  .page-game-guides__hero-content .page-game-guides__btn-secondary {
    width: auto !important; /* Allow buttons to size naturally if not full width */
    max-width: none !important;
    margin: 10px auto !important;
    display: block !important;
  }

  .page-game-guides__intro-section,
  .page-game-guides__game-categories,
  .page-game-guides__tips-section,
  .page-game-guides__faq-section,
  .page-game-guides__cta-section {
    padding: 40px 0;
  }

  .page-game-guides__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

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

  .page-game-guides__grid {
    grid-template-columns: 1fr;
  }

  .page-game-guides__card-title {
    font-size: 1.3rem;
  }

  .page-game-guides__card-description {
    font-size: 0.95rem;
  }

  .page-game-guides__tip-title {
    font-size: 1.2rem;
  }

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

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

  /* Image responsive rules */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video responsive rules */
  .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;
  }

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

  /* Button container responsive rules */
  .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;
    display: flex;
    flex-direction: column; /* Ensure vertical stacking on mobile */
    align-items: center;
  }
}

@media (max-width: 480px) {
  .page-game-guides__hero-section {
    padding: 10px 10px 30px;
  }
  .page-game-guides__hero-content {
    padding: 10px;
  }
  .page-game-guides__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .page-game-guides__hero-description {
    font-size: 0.9rem;
  }
  .page-game-guides__section-title {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }
  .page-game-guides__card-title {
    font-size: 1.2rem;
  }
  .page-game-guides__faq-question {
    font-size: 1rem;
  }
  .page-game-guides__faq-answer {
    font-size: 0.9rem;
  }
}