/* style/game-rules.css */
.page-game-rules {
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background from shared.css */
  padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
}

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

/* Hero Section */
.page-game-rules__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  padding: 80px 20px;
  overflow: hidden;
  background-color: #1A1A1A; /* Dark background for hero content */
}

.page-game-rules__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
}

.page-game-rules__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-game-rules__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-game-rules__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-rules__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* CTA Button */
.page-game-rules__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A1A1A;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-game-rules__cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-game-rules__cta-button--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
  margin-left: 20px;
}

.page-game-rules__cta-button--secondary:hover {
  background-color: #FFD700;
  color: #1A1A1A;
  transform: translateY(-3px);
}

/* Section Styling */
.page-game-rules__introduction-section,
.page-game-rules__general-rules-section,
.page-game-rules__specific-games-section,
.page-game-rules__fair-play-section,
.page-game-rules__responsible-gaming-section,
.page-game-rules__contact-section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-game-rules__introduction-section {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-game-rules__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-game-rules__section-text {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-game-rules__section-text strong {
  color: #FFD700;
}

.page-game-rules__inline-link {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-game-rules__inline-link:hover {
  color: #e6c200;
  text-decoration: underline;
}

/* Rule Lists */
.page-game-rules__rule-list {
  list-style: none;
  padding: 0;
}

.page-game-rules__rule-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border-left: 5px solid #FFD700;
}

.page-game-rules__rule-heading {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-game-rules__sub-heading {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-game-rules__rule-description {
  font-size: 1em;
  line-height: 1.7;
  color: #cccccc;
}

/* Game Categories */
.page-game-rules__game-category {
  margin-bottom: 60px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-game-rules__category-heading {
  font-size: 2em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
}

.page-game-rules__category-image {
  text-align: center;
  margin-bottom: 30px;
}

.page-game-rules__category-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  min-width: 200px;
  min-height: 200px;
}

/* Fair Play & Responsible Gaming Sections */
.page-game-rules__fair-play-content,
.page-game-rules__responsible-gaming-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-game-rules__fair-play-image,
.page-game-rules__responsible-gaming-image {
  flex: 1;
  min-width: 300px; /* Ensure image doesn't get too small */
}

.page-game-rules__fair-play-image img,
.page-game-rules__responsible-gaming-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  min-width: 200px;
  min-height: 200px;
}

.page-game-rules__fair-play-content .page-game-rules__rule-list,
.page-game-rules__responsible-gaming-content .page-game-rules__rule-list {
  flex: 2;
}

.page-game-rules__contact-section {
  text-align: center;
}

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

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

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

  .page-game-rules__rule-heading {
    font-size: 1.6em;
  }

  .page-game-rules__sub-heading {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-game-rules__hero-section {
    padding: 60px 15px;
  }

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

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

  .page-game-rules__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    margin: 10px 0;
  }

  .page-game-rules__cta-button--secondary {
    margin-left: 0;
  }

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

  .page-game-rules__section-text {
    font-size: 0.95em;
  }

  .page-game-rules__rule-item {
    padding: 20px;
  }

  .page-game-rules__rule-heading {
    font-size: 1.4em;
  }

  .page-game-rules__sub-heading {
    font-size: 1.2em;
  }

  .page-game-rules__game-category {
    padding: 30px 20px;
  }

  .page-game-rules__category-heading {
    font-size: 1.6em;
  }

  .page-game-rules__fair-play-content,
  .page-game-rules__responsible-gaming-content {
    flex-direction: column;
    align-items: center;
  }

  .page-game-rules__fair-play-image,
  .page-game-rules__responsible-gaming-image {
    min-width: auto;
    width: 100%;
  }

  /* CRITICAL: Images in content area must be responsive and not cause overflow */
  .page-game-rules img {
    max-width: 100%;
    height: auto;
  }

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

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

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

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

  .page-game-rules__cta-button {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .page-game-rules__cta-button + .page-game-rules__cta-button {
    margin-top: 15px;
  }
}