/* style/game-guides.css */

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

.page-game-guides {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color); /* Body background is dark, so text is light */
  background-color: var(--background-color);
}

.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  box-sizing: border-box;
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-game-guides__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-game-guides__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold-color);
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-game-guides__subtitle {
  font-size: clamp(1em, 2vw, 1.3em);
  color: var(--text-secondary-color);
  margin-bottom: 30px;
  line-height: 1.6;
}

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

.page-game-guides__cta-buttons--centered {
  margin-top: 30px;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-game-guides__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main-color);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

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

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

.page-game-guides__btn-secondary:hover {
  background: rgba(17, 168, 78, 0.1);
  transform: translateY(-3px);
}

.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.8em, 3.5vw, 2.8em);
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-game-guides__sub-section-title {
  font-size: clamp(1.4em, 2.5vw, 2em);
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-game-guides__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
}

.page-game-guides__text-block a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.page-game-guides__text-block a:hover {
  text-decoration: underline;
}

.page-game-guides__dark-section {
  background-color: var(--card-bg);
  padding: 60px 0;
}

.page-game-guides__overview-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-game-guides__feature-item {
  background-color: var(--background-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid var(--border-color);
}

.page-game-guides__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__feature-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-game-guides__feature-description {
  font-size: 1em;
  color: var(--text-secondary-color);
  line-height: 1.6;
}

.page-game-guides__registration-section {
  padding: 60px 0;
}

.page-game-guides__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-bottom: 30px;
  object-fit: cover;
}

.page-game-guides__ordered-list,
.page-game-guides__unordered-list {
  list-style-position: inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-secondary-color);
}

.page-game-guides__ordered-list li,
.page-game-guides__unordered-list li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.page-game-guides__ordered-list strong {
  color: var(--primary-color);
}

.page-game-guides__games-section {
  padding: 60px 0;
}

.page-game-guides__game-category {
  background-color: var(--background-color);
  border: 1px solid var(--divider-color);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-game-guides__game-title {
  font-size: 1.8em;
  color: var(--gold-color);
  margin-bottom: 15px;
  text-shadow: 0 0 5px rgba(242, 193, 78, 0.3);
}

.page-game-guides__game-description {
  font-size: 1.05em;
  line-height: 1.7;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
}

.page-game-guides__btn-text {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

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

.page-game-guides__tips-section {
  padding: 60px 0;
}

.page-game-guides__download-section {
  padding: 60px 0;
}

.page-game-guides__download-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-game-guides__download-text {
  flex: 1;
  min-width: 300px;
}

.page-game-guides__download-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-game-guides__image-responsive {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  margin: 0 auto;
}

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

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

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

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

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

.page-game-guides__faq-item[open] .page-game-guides__faq-question {
  border-bottom: 1px solid transparent; /* Hide border when open */
}

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

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold-color);
  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: 15px 25px 20px;
  font-size: 1.05em;
  line-height: 1.7;
  color: var(--text-secondary-color);
}

.page-game-guides__conclusion-section {
  padding: 60px 0;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-guides__hero-content {
    padding: 0 15px;
  }

  .page-game-guides__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-game-guides__subtitle {
    font-size: clamp(1em, 2.5vw, 1.2em);
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-game-guides__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-game-guides__subtitle {
    font-size: clamp(0.9em, 3vw, 1.1em);
  }

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

  .page-game-guides__btn-primary,
  .page-game-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;
  }

  .page-game-guides__container {
    padding: 0 15px;
  }

  .page-game-guides__section-title {
    font-size: clamp(1.6em, 5vw, 2.2em);
    margin-bottom: 30px;
  }

  .page-game-guides__sub-section-title {
    font-size: clamp(1.2em, 4vw, 1.6em);
    margin-top: 25px;
    margin-bottom: 15px;
  }

  .page-game-guides__text-block,
  .page-game-guides__ordered-list li,
  .page-game-guides__unordered-list li,
  .page-game-guides__game-description,
  .page-game-guides__feature-description,
  .page-game-guides__faq-answer {
    font-size: 1em;
    line-height: 1.7;
  }

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

  .page-game-guides__download-content {
    flex-direction: column;
  }

  .page-game-guides__download-text,
  .page-game-guides__download-image {
    min-width: unset;
    width: 100%;
  }

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

  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__hero-image-wrapper,
  .page-game-guides__download-content,
  .page-game-guides__download-text,
  .page-game-guides__download-image,
  .page-game-guides__game-category,
  .page-game-guides__faq-list,
  .page-game-guides__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-game-guides__hero-section,
  .page-game-guides__overview-section,
  .page-game-guides__registration-section,
  .page-game-guides__games-section,
  .page-game-guides__tips-section,
  .page-game-guides__download-section,
  .page-game-guides__faq-section,
  .page-game-guides__conclusion-section {
    padding-left: 0;
    padding-right: 0;
  }
}