/* style/game-rules.css */

/* Base styles for the page */
.page-game-rules {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Body background from shared.css */
}

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

/* Section styles */
.page-game-rules__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-game-rules__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-game-rules__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  box-sizing: border-box;
}

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

.page-game-rules__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-game-rules__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
}

.page-game-rules__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #26A9E0;
}

.page-game-rules__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  opacity: 0.9;
}

.page-game-rules__hero-button {
  display: inline-block;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-game-rules__hero-button:hover {
  background-color: #1e87b7;
}

/* Overview Section */
.page-game-rules__overview-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

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

.page-game-rules__card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
}

.page-game-rules__card-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-game-rules__card p {
  font-size: 1em;
  color: #f0f0f0;
}

.page-game-rules__card-button {
  display: inline-block;
  background-color: #EA7C07; /* Login color for action */
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.page-game-rules__card-button:hover {
  background-color: #c06306;
}

/* Game Specific Rules Section */
.page-game-rules__game-specific-rules {
  padding: 80px 0;
  background-color: #FFFFFF; /* Light background */
  color: #333333;
}

.page-game-rules__game-specific-rules .page-game-rules__section-title {
  color: #26A9E0;
}

.page-game-rules__game-specific-rules .page-game-rules__text-block {
  color: #333333;
}

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

.page-game-rules__game-card {
  background: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: #333333;
  display: flex;
  flex-direction: column;
}

.page-game-rules__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.page-game-rules__game-card-title {
  font-size: 1.5em;
  color: #26A9E0;
  padding: 20px 20px 10px;
  margin: 0;
}

.page-game-rules__game-card-list {
  list-style: disc;
  padding: 0 20px 20px 40px;
  margin: 0;
  color: #555555;
  flex-grow: 1;
}

.page-game-rules__game-card-list li {
  margin-bottom: 8px;
}

.page-game-rules__game-card-button {
  display: inline-block;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: bold;
  margin: 0 20px 20px;
  transition: background-color 0.3s ease;
  text-align: center;
}

.page-game-rules__game-card-button:hover {
  background-color: #1e87b7;
}

/* Account Rules Section */
.page-game-rules__account-rules {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

/* Promotions Section */
.page-game-rules__promotions-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* Light background */
  color: #333333;
}

.page-game-rules__promotions-section .page-game-rules__section-title {
  color: #26A9E0;
}

.page-game-rules__promotions-section .page-game-rules__text-block {
  color: #333333;
}

.page-game-rules__promotions-section .page-game-rules__card {
  background: #f8f8f8;
  color: #333333;
}

.page-game-rules__promotions-section .page-game-rules__card-title {
  color: #26A9E0;
}

.page-game-rules__promotions-section .page-game-rules__card p {
  color: #555555;
}

.page-game-rules__cta-area {
  text-align: center;
  margin-top: 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-game-rules__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}

.page-game-rules__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-game-rules__btn-primary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
}

.page-game-rules__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-game-rules__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87b7;
  border-color: #1e87b7;
}

/* Dispute Resolution Section */
.page-game-rules__dispute-resolution {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

/* FAQ Section */
.page-game-rules__faq-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* Light background */
  color: #333333;
}

.page-game-rules__faq-section .page-game-rules__section-title {
  color: #26A9E0;
}

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

.page-game-rules__faq-item {
  background: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: #333333;
}

.page-game-rules__faq-item summary {
  list-style: none; /* Remove default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #26A9E0;
  background-color: #eaf7ff; /* Lighter background for summary */
}

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

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

.page-game-rules__faq-toggle {
  font-size: 1.5em;
  margin-left: 20px;
  transition: transform 0.3s ease;
}

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

.page-game-rules__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

/* Call to Action Section */
.page-game-rules__cta-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff;
  text-align: center;
}

.page-game-rules__cta-content {
  max-width: 800px;
}

.page-game-rules__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-game-rules__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  opacity: 0.9;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-game-rules__hero-title {
    font-size: 3em;
  }

  .page-game-rules__section-title {
    font-size: 2em;
  }
}

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

  .page-game-rules__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-game-rules__hero-title {
    font-size: 2.5em;
  }

  .page-game-rules__hero-description {
    font-size: 1em;
  }

  .page-game-rules__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-game-rules__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-game-rules__text-block {
    font-size: 1em;
    margin-bottom: 40px;
  }

  .page-game-rules__grid, .page-game-rules__game-rules-grid {
    grid-template-columns: 1fr;
  }

  .page-game-rules__card, .page-game-rules__game-card {
    padding: 20px;
    margin: 0 15px;
    box-sizing: border-box !important;
    width: calc(100% - 30px) !important;
  }

  .page-game-rules__game-card-image {
    height: 200px;
  }

  .page-game-rules__game-card-button {
    margin: 0 20px 20px;
  }

  .page-game-rules__cta-area, .page-game-rules__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-game-rules__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 15px 10px;
  }

  .page-game-rules__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1em;
  }

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

  .page-game-rules__cta-title {
    font-size: 2em;
  }

  .page-game-rules__cta-description {
    font-size: 1em;
  }

  /* Image responsive adaptations */
  .page-game-rules img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-game-rules__section,
  .page-game-rules__card,
  .page-game-rules__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-rules__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 480px) {
  .page-game-rules__hero-title {
    font-size: 2em;
  }

  .page-game-rules__hero-description {
    font-size: 0.9em;
  }

  .page-game-rules__hero-button {
    font-size: 0.9em;
    padding: 10px 20px;
  }

  .page-game-rules__section-title {
    font-size: 1.5em;
  }

  .page-game-rules__card-title {
    font-size: 1.4em;
  }

  .page-game-rules__faq-item summary {
    font-size: 1em;
  }

  .page-game-rules__faq-answer {
    font-size: 0.9em;
  }
}