/* style/gameplay-guides.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --login-color: #EA7C07;
}

.page-gameplay-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--secondary-color);
}

.page-gameplay-guides__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Hero Section */
.page-gameplay-guides__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
}

.page-gameplay-guides__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px 0;
  max-width: 1170px;
  margin: 0 auto;
}

.page-gameplay-guides__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: left;
}

.page-gameplay-guides__main-title {
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-light);
  max-width: 600px;
}

.page-gameplay-guides__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 600px;
}

.page-gameplay-guides__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.page-gameplay-guides__hero-side-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-gameplay-guides__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-gameplay-guides__btn-primary,
.page-gameplay-guides__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-gameplay-guides__btn-primary {
  background-color: var(--login-color);
  color: var(--text-light);
  border: 2px solid var(--login-color);
}

.page-gameplay-guides__btn-primary:hover {
  background-color: darken(var(--login-color), 10%);
  border-color: darken(var(--login-color), 10%);
  transform: translateY(-2px);
}

.page-gameplay-guides__btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.page-gameplay-guides__btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Intro Section */
.page-gameplay-guides__intro-section {
  padding: 60px 0;
  background-color: var(--secondary-color);
  text-align: center;
}

.page-gameplay-guides__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}

.page-gameplay-guides__section-description {
  font-size: 1.1em;
  color: var(--text-dark);
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

.page-gameplay-guides__icon-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-gameplay-guides__icon-box {
  flex: 0 0 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
  background-color: var(--text-light);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-gameplay-guides__icon-box:hover {
  transform: translateY(-5px);
}

.page-gameplay-guides__icon-box-media {
  width: 240px;
  height: 240px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-gameplay-guides__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; /* Ensure image is also round */
  display: block;
}

.page-gameplay-guides__icon-box-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-gameplay-guides__icon-box-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-gameplay-guides__icon-box-title a:hover {
  color: darken(var(--primary-color), 10%);
}

.page-gameplay-guides__icon-box-text {
  font-size: 1em;
  color: var(--text-dark);
}

/* Guide Section */
.page-gameplay-guides__guide-section {
  padding: 60px 0;
  background-color: var(--secondary-color);
}

.page-gameplay-guides__guide-category {
  margin-bottom: 50px;
  background-color: var(--text-light);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-gameplay-guides__guide-subtitle {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 25px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

.page-gameplay-guides__guide-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-gameplay-guides__guide-category p {
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-gameplay-guides__guide-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.page-gameplay-guides__guide-list li {
  margin-bottom: 8px;
}

.page-gameplay-guides__guide-category a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.page-gameplay-guides__guide-category a:hover {
  text-decoration: underline;
}

/* Promo CTA Section */
.page-gameplay-guides__promo-cta-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
}

.page-gameplay-guides__promo-content {
  max-width: 900px;
  margin: 0 auto;
}

/* FAQ Section */
.page-gameplay-guides__faq-section {
  padding: 60px 0;
  background-color: var(--secondary-color);
}

.page-gameplay-guides__faq-list {
  margin-top: 40px;
}

.page-gameplay-guides__faq-item {
  background-color: var(--text-light);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-gameplay-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  list-style: none; /* For <details> summary */
}

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

.page-gameplay-guides__faq-qtext {
  flex-grow: 1;
}

.page-gameplay-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--login-color);
}

.page-gameplay-guides__faq-answer {
  padding: 0 25px 20px;
  color: var(--text-dark);
  font-size: 1em;
}

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

.page-gameplay-guides__faq-answer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.page-gameplay-guides__faq-answer a:hover {
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-gameplay-guides__main-title {
    font-size: 2.5em;
  }

  .page-gameplay-guides__hero-container {
    gap: 30px;
    padding: 30px 0;
  }

  .page-gameplay-guides__icon-box {
    flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
  }

  .page-gameplay-guides__icon-box-media {
    width: 200px;
    height: 200px;
  }
}

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

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

  /* HERO Section - Mobile */
  .page-gameplay-guides__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 30px;
  }

  .page-gameplay-guides__hero-container {
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
  }

  .page-gameplay-guides__hero-content {
    text-align: center;
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-gameplay-guides__main-title {
    font-size: clamp(2em, 7vw, 2.5em);
    margin-bottom: 15px;
    max-width: 100%;
  }

  .page-gameplay-guides__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
    max-width: 100%;
  }

  .page-gameplay-guides__hero-image {
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-gameplay-guides__hero-side-image {
    max-width: 90%;
  }

  .page-gameplay-guides__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
  }

  .page-gameplay-guides__btn-primary,
  .page-gameplay-guides__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Intro Section - Mobile */
  .page-gameplay-guides__intro-section {
    padding: 40px 0;
  }

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

  .page-gameplay-guides__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-gameplay-guides__icon-boxes {
    flex-direction: column;
    gap: 20px;
  }

  .page-gameplay-guides__icon-box {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 20px;
  }

  .page-gameplay-guides__icon-box-media {
    width: 180px;
    height: 180px;
    margin-bottom: 15px;
  }

  .page-gameplay-guides__icon-box-title {
    font-size: 1.2em;
  }

  /* Guide Section - Mobile */
  .page-gameplay-guides__guide-section {
    padding: 40px 0;
  }

  .page-gameplay-guides__guide-category {
    margin-bottom: 30px;
    padding: 20px;
  }

  .page-gameplay-guides__guide-subtitle {
    font-size: 1.5em;
    margin-bottom: 20px;
  }

  .page-gameplay-guides__guide-image {
    margin-bottom: 20px;
  }

  .page-gameplay-guides__guide-list {
    margin-left: 20px;
  }

  .page-gameplay-guides__guide-category p,
  .page-gameplay-guides__guide-list li {
    font-size: 0.95em;
  }

  /* Promo CTA Section - Mobile */
  .page-gameplay-guides__promo-cta-section {
    padding: 40px 0;
  }

  /* FAQ Section - Mobile */
  .page-gameplay-guides__faq-section {
    padding: 40px 0;
  }

  .page-gameplay-guides__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-gameplay-guides__faq-toggle {
    font-size: 1.2em;
  }

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

  /* General Image and Container Mobile rules */
  .page-gameplay-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-gameplay-guides__section,
  .page-gameplay-guides__card,
  .page-gameplay-guides__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Exception for round images - maintain aspect ratio */
  .page-gameplay-guides__icon-box-media {
    width: 180px !important;
    height: 180px !important;
    aspect-ratio: 1 / 1 !important;
  }
}

/* Color Contrast Fixes - Ensure WCAG AA */
.page-gameplay-guides__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-gameplay-guides__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-gameplay-guides__guide-category,
.page-gameplay-guides__faq-item {
  background-color: var(--text-light);
  color: var(--text-dark);
}

.page-gameplay-guides p,
.page-gameplay-guides li {
  color: var(--text-dark);
}

.page-gameplay-guides__btn-primary {
  background-color: var(--login-color);
  color: var(--text-light);
}

.page-gameplay-guides__btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
}

.page-gameplay-guides__promo-cta-section .page-gameplay-guides__btn-secondary {
  color: var(--text-light);
  border-color: var(--text-light);
}

.page-gameplay-guides__promo-cta-section .page-gameplay-guides__btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}