/* style/game-guides.css */

:root {
  --primary-color: #0A192F; /* Deep blue */
  --secondary-color: #FFD700; /* Gold */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #0a0a0a;
  --card-background-dark: rgba(255, 255, 255, 0.1);
  --card-background-light: #ffffff;
  --border-color: #e0e0e0;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.3);
}

.page-game-guides {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark, so text is light */
  background-color: var(--background-dark);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-game-guides strong.page-game-guides__highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

.page-game-guides a.page-game-guides__highlight-link {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-game-guides a.page-game-guides__highlight-link:hover {
  color: #fff;
}

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

/* Sections */
.page-game-guides__section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.page-game-guides__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-game-guides__light-bg {
  background-color: var(--card-background-light);
  color: var(--text-dark);
}

.page-game-guides__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-game-guides__light-bg .page-game-guides__section-title {
  color: var(--primary-color);
  text-shadow: none;
}

.page-game-guides__sub-title {
  font-size: 28px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-game-guides__light-bg .page-game-guides__sub-title {
  color: var(--primary-color);
}

/* Hero Section */
.page-game-guides__hero-section {
  padding-top: 120px; /* Desktop: Adjust for fixed header */
  padding-bottom: 80px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #000a1a 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-game-guides__hero-section .page-game-guides__container {
  position: relative;
  z-index: 2;
}

.page-game-guides__main-title {
  font-size: 52px;
  font-weight: 900;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.page-game-guides__description {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.15;
}

.page-game-guides__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

/* CTA Buttons */
.page-game-guides__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-game-guides__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--shadow-dark);
  border: none;
  cursor: pointer;
}

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

.page-game-guides__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

.page-game-guides__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-game-guides__cta-center {
  text-align: center;
  margin-top: 50px;
}

/* Content Grid */
.page-game-guides__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
  align-items: flex-start;
}

.page-game-guides__content-grid--3-cols {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-game-guides__content-grid--reverse {
  display: flex;
  flex-direction: row-reverse;
  gap: 30px;
  margin-top: 50px;
  align-items: flex-start;
}

.page-game-guides__text-block {
  flex: 1;
  padding: 20px;
}

.page-game-guides__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.page-game-guides__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow-light);
}

/* Cards */
.page-game-guides__card {
  background-color: var(--card-background-light);
  color: var(--text-dark);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px var(--shadow-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in a row have equal height */
}

.page-game-guides__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-dark);
}

.page-game-guides__card--dark {
  background-color: var(--card-background-dark);
  color: var(--text-light);
}

.page-game-guides__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-game-guides__card--dark .page-game-guides__card-title {
  color: var(--secondary-color);
}

.page-game-guides__card-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-game-guides__card-text {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to grow and push button to bottom */
}

.page-game-guides__card-button {
  margin-top: auto; /* Push button to the bottom */
  align-self: center;
  width: auto;
  min-width: 180px;
}

/* Lists */
.page-game-guides__ordered-list,
.page-game-guides__list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
  text-align: left;
  width: 100%;
}

.page-game-guides__ordered-list li,
.page-game-guides__list li {
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
  font-size: 17px;
}

.page-game-guides__ordered-list li::before {
  content: counter(list-item) ". ";
  counter-increment: list-item;
  color: var(--secondary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.page-game-guides__light-bg .page-game-guides__ordered-list li::before {
  color: var(--primary-color);
}

.page-game-guides__list li::before {
  content: '✔';
  color: var(--secondary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.page-game-guides__light-bg .page-game-guides__list li::before {
  color: var(--primary-color);
}

.page-game-guides__contact-list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-game-guides__contact-list li {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  box-shadow: 0 2px 8px var(--shadow-dark);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-game-guides__contact-list li:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

/* Download App Section */
.page-game-guides__download-app-container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-game-guides__app-image-block {
  flex-basis: 40%;
  min-width: 250px;
}

.page-game-guides__app-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  box-shadow: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__main-title {
    font-size: 44px;
  }
  .page-game-guides__section-title {
    font-size: 32px;
  }
  .page-game-guides__sub-title {
    font-size: 24px;
  }
  .page-game-guides__description {
    font-size: 18px;
  }
  .page-game-guides__card {
    padding: 25px;
  }
  .page-game-guides__card-title {
    font-size: 22px;
  }
  .page-game-guides__card-text {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 60px;
  }
  .page-game-guides__main-title {
    font-size: 36px;
  }
  .page-game-guides__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-game-guides__sub-title {
    font-size: 22px;
  }
  .page-game-guides__description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-game-guides__section {
    padding: 60px 0;
  }
  .page-game-guides__container {
    padding: 0 15px;
  }
  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-game-guides__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-game-guides__content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .page-game-guides__content-grid--reverse {
    flex-direction: column;
  }
  .page-game-guides__text-block, .page-game-guides__image-block {
    padding: 10px 0;
  }
  .page-game-guides__card {
    padding: 20px;
    border-radius: 8px;
  }
  .page-game-guides__card-title {
    font-size: 20px;
  }
  .page-game-guides__card-image {
    max-width: 250px;
  }
  .page-game-guides__ordered-list li, .page-game-guides__list li {
    font-size: 16px;
  }
  .page-game-guides__download-app-container {
    flex-direction: column;
    text-align: center;
  }
  .page-game-guides__app-image-block {
    order: -1; /* Move image to top on mobile */
  }
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-game-guides__contact-list {
    flex-direction: column;
    gap: 10px;
  }
  .page-game-guides__contact-list li {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .page-game-guides__main-title {
    font-size: 30px;
  }
  .page-game-guides__section-title {
    font-size: 24px;
  }
  .page-game-guides__description {
    font-size: 15px;
  }
  .page-game-guides__cta-button {
    font-size: 15px;
    padding: 10px 20px;
  }
  .page-game-guides__sub-title {
    font-size: 20px;
  }
  .page-game-guides__ordered-list li, .page-game-guides__list li {
    font-size: 15px;
  }
}