/* style/beginner-guide.css */

/* Variables */
:root {
  --page-primary-color: #26A9E0;
  --page-secondary-color: #FFFFFF;
  --page-login-color: #EA7C07;
  --page-background-color: #0a0a0a; /* From shared.css body background */
  --page-text-color-dark-bg: #FFFFFF;
  --page-text-color-light-bg: #333333;
  --page-card-bg-light: #FFFFFF;
  --page-card-bg-dark: rgba(255, 255, 255, 0.1);
}

.page-beginner-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-text-color-dark-bg); /* Default text color for the page, assuming dark body background */
  background-color: var(--page-background-color);
}

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

.page-beginner-guide__section {
  padding: 60px 0;
  text-align: center;
}

.page-beginner-guide__dark-bg {
  background-color: var(--page-background-color);
  color: var(--page-text-color-dark-bg);
}

.page-beginner-guide__light-bg {
  background-color: var(--page-secondary-color);
  color: var(--page-text-color-light-bg);
}

/* Hero Section */
.page-beginner-guide__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: left;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-beginner-guide__hero-section .page-beginner-guide__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-beginner-guide__hero-content {
  flex: 1;
  min-width: 300px;
  z-index: 1;
}

.page-beginner-guide__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--page-text-color-dark-bg);
  line-height: 1.2;
}

.page-beginner-guide__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--page-text-color-dark-bg);
}

.page-beginner-guide__hero-image-wrapper {
  flex: 1;
  min-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.page-beginner-guide__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* CTA Buttons */
.page-beginner-guide__cta-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-beginner-guide__cta-buttons--center {
  justify-content: center;
}

.page-beginner-guide__btn-primary,
.page-beginner-guide__btn-secondary,
.page-beginner-guide__btn-tertiary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-beginner-guide__btn-primary {
  background-color: var(--page-primary-color);
  color: var(--page-secondary-color);
  border: 2px solid var(--page-primary-color);
}

.page-beginner-guide__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

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

.page-beginner-guide__btn-secondary:hover {
  background-color: var(--page-primary-color);
  color: var(--page-secondary-color);
}

.page-beginner-guide__btn-secondary--white {
  color: var(--page-secondary-color);
  border-color: var(--page-secondary-color);
}

.page-beginner-guide__btn-secondary--white:hover {
  background-color: var(--page-secondary-color);
  color: var(--page-primary-color);
}

.page-beginner-guide__btn-tertiary {
  background-color: var(--page-primary-color);
  color: var(--page-secondary-color);
  border: none;
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-beginner-guide__btn-tertiary:hover {
  background-color: #1e87c0;
}

/* Section Titles and Paragraphs */
.page-beginner-guide__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: inherit; /* Inherits from section background */
}

.page-beginner-guide__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

/* Grid Layouts */
.page-beginner-guide__grid-2-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-beginner-guide__grid-3-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

/* Cards */
.page-beginner-guide__card {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-beginner-guide__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-beginner-guide__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: inherit;
}

.page-beginner-guide__card-text {
  font-size: 1em;
  color: inherit;
}

.page-beginner-guide__game-card {
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-beginner-guide__game-card:hover {
  transform: translateY(-3px);
}

.page-beginner-guide__game-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: var(--page-primary-color);
}

.page-beginner-guide__game-title a {
  color: var(--page-primary-color);
  text-decoration: none;
}

.page-beginner-guide__game-title a:hover {
  text-decoration: underline;
}

.page-beginner-guide__game-description {
  font-size: 0.95em;
  color: var(--page-text-color-light-bg);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Lists */
.page-beginner-guide__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  text-align: left;
  color: inherit;
}

.page-beginner-guide__list-item {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-beginner-guide__list--features {
  list-style-type: none;
  padding: 0;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.page-beginner-guide__list--features .page-beginner-guide__list-item {
  background-color: var(--page-card-bg-light);
  color: var(--page-text-color-light-bg);
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-weight: bold;
  flex-basis: calc(33% - 20px);
  max-width: calc(33% - 20px);
  box-sizing: border-box;
}

/* Image Styling */
.page-beginner-guide__image-wrapper {
  margin-top: 40px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.page-beginner-guide__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

/* Contact Info */
.page-beginner-guide__contact-info {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.page-beginner-guide__contact-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--page-primary-color);
}

.page-beginner-guide__contact-text {
  font-size: 1em;
  color: var(--page-text-color-light-bg);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-beginner-guide__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-beginner-guide__faq-item {
  background-color: var(--page-card-bg-light);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  color: var(--page-primary-color);
  background-color: var(--page-card-bg-light);
  border-bottom: 1px solid #eee;
}

.page-beginner-guide__faq-question::-webkit-details-marker, /* Hide default marker for Chrome/Safari */
.page-beginner-guide__faq-question::marker { /* Hide default marker for Firefox */
  display: none;
}

.page-beginner-guide__faq-item[open] .page-beginner-guide__faq-question {
  border-bottom: 1px solid var(--page-primary-color);
}

.page-beginner-guide__faq-qtext {
  flex-grow: 1;
}

.page-beginner-guide__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-beginner-guide__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: var(--page-text-color-light-bg);
  background-color: var(--page-card-bg-light);
}

.page-beginner-guide__faq-answer p {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-beginner-guide__hero-title {
    font-size: 2.8em;
  }

  .page-beginner-guide__section-title {
    font-size: 2em;
  }

  .page-beginner-guide__hero-section .page-beginner-guide__container {
    flex-direction: column;
    text-align: center;
  }

  .page-beginner-guide__hero-content,
  .page-beginner-guide__hero-image-wrapper {
    min-width: unset;
    width: 100%;
  }

  .page-beginner-guide__hero-cta-buttons {
    justify-content: center;
  }

  .page-beginner-guide__list--features .page-beginner-guide__list-item {
    flex-basis: calc(50% - 15px);
    max-width: calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  .page-beginner-guide__hero-title {
    font-size: 2.2em;
  }

  .page-beginner-guide__hero-description {
    font-size: 1em;
  }

  .page-beginner-guide__section-title {
    font-size: 1.8em;
  }

  .page-beginner-guide__paragraph {
    font-size: 0.95em;
  }

  .page-beginner-guide__cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .page-beginner-guide__btn-primary,
  .page-beginner-guide__btn-secondary,
  .page-beginner-guide__btn-tertiary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    margin-bottom: 10px; /* Add space between stacked buttons */
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-beginner-guide__grid-2-cols,
  .page-beginner-guide__grid-3-cols {
    grid-template-columns: 1fr;
  }

  .page-beginner-guide__list--features .page-beginner-guide__list-item {
    flex-basis: 100%;
    max-width: 100%;
  }

  .page-beginner-guide__section {
    padding: 40px 0;
  }

  .page-beginner-guide__container {
    padding: 0 15px;
  }

  /* Images responsiveness */
  .page-beginner-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-beginner-guide__image-wrapper,
  .page-beginner-guide__hero-image-wrapper,
  .page-beginner-guide__section,
  .page-beginner-guide__card,
  .page-beginner-guide__container,
  .page-beginner-guide__cta-buttons,
  .page-beginner-guide__grid-2-cols,
  .page-beginner-guide__grid-3-cols,
  .page-beginner-guide__game-card,
  .page-beginner-guide__contact-info,
  .page-beginner-guide__faq-list,
  .page-beginner-guide__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-beginner-guide__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

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

  .page-beginner-guide__faq-answer {
    padding: 10px 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-beginner-guide__hero-title {
    font-size: 1.8em;
  }

  .page-beginner-guide__section-title {
    font-size: 1.5em;
  }
}