/* style/game-rules.css */

/* Base styles for page-game-rules */
.page-game-rules {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

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

.page-game-rules__section-title {
  font-size: 2.2em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 30px;
  text-align: center;
  padding-top: 20px;
}

.page-game-rules__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
}

.page-game-rules__content-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.page-game-rules__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 60px; /* Adjust as needed */
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #0A4B2C; /* Deep Green as a fallback */
}

.page-game-rules__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.page-game-rules__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #F2FFF6; /* Text Main */
  max-width: 900px;
  padding: 40px 20px;
  margin-top: 60px; /* Push content down to be below the image visually */
}

.page-game-rules__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
  font-size: clamp(2.5rem, 4vw, 3.5rem);
}

.page-game-rules__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
}

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

.page-game-rules__btn-primary,
.page-game-rules__btn-secondary,
.page-game-rules__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-rules__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Text Main */
  border: none;
}

.page-game-rules__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-game-rules__btn-secondary {
  background: #11271B; /* Card BG */
  color: #F2C14E; /* Gold */
  border: 2px solid #2E7A4E; /* Border */
}

.page-game-rules__btn-secondary:hover {
  background: #2E7A4E; /* Border */
  color: #F2FFF6; /* Text Main */
}

.page-game-rules__btn-tertiary {
  background: none;
  color: #57E38D; /* Glow */
  border: 1px solid #2E7A4E; /* Border */
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-game-rules__btn-tertiary:hover {
  background-color: #11271B; /* Card BG */
}

/* Intro Section */
.page-game-rules__intro-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

/* General Rules Section */
.page-game-rules__general-rules-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
}

.page-game-rules__rule-card {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #F2FFF6; /* Text Main */
}

.page-game-rules__card-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F2C14E; /* Gold */
}

.page-game-rules__card-text {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

.page-game-rules__card-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px auto;
  border-radius: 6px;
}

.page-game-rules__read-more {
  color: #57E38D; /* Glow */
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  display: inline-block;
}

.page-game-rules__read-more:hover {
  text-decoration: underline;
}

/* Specific Rules Section */
.page-game-rules__specific-rules-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

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

.page-game-rules__game-card {
  background-color: #11271B; /* Card BG */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #F2FFF6; /* Text Main */
}

.page-game-rules__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
}

/* Responsible Gaming Section */
.page-game-rules__responsible-gaming-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
}

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

.page-game-rules__feature-item {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #F2FFF6; /* Text Main */
}

.page-game-rules__feature-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F2C14E; /* Gold */
}

.page-game-rules__feature-text {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

/* Security Integrity Section */
.page-game-rules__security-integrity-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

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

/* FAQ Section */
.page-game-rules__faq-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
}

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

.page-game-rules__faq-item {
  background-color: #11271B; /* Card BG */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-game-rules__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #F2C14E; /* Gold */
  position: relative;
}

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

.page-game-rules__faq-question {
  color: #F2C14E; /* Gold */
}

.page-game-rules__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #57E38D; /* Glow */
  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: 0 25px 20px 25px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

.page-game-rules__faq-answer a {
  color: #57E38D; /* Glow */
  text-decoration: underline;
}

/* CTA Section */
.page-game-rules__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

/* Text Colors */
.page-game-rules__text-main {
  color: #F2FFF6;
}

.page-game-rules__text-secondary {
  color: #A7D9B8;
}

/* Background Colors */
.page-game-rules__dark-bg {
  background-color: #0A4B2C; /* Deep Green */
}

.page-game-rules__card-bg {
  background-color: #11271B; /* Card BG */
}

.page-game-rules a {
  color: #57E38D;
  text-decoration: none;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-rules__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-game-rules__section-title {
    font-size: 1.8em;
  }
  .page-game-rules__game-type-grid,
  .page-game-rules__responsible-gaming-features,
  .page-game-rules__security-features {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-game-rules__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important;
  }
  .page-game-rules__hero-content {
    margin-top: 40px;
    padding: 20px;
  }
  .page-game-rules__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-game-rules__description {
    font-size: 1em;
  }
  .page-game-rules__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-game-rules__btn-primary,
  .page-game-rules__btn-secondary,
  .page-game-rules__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-game-rules__container {
    padding: 0 15px;
  }
  .page-game-rules__section-title {
    font-size: 1.6em;
    margin-bottom: 20px;
  }
  .page-game-rules__text-block {
    font-size: 0.95em;
  }
  .page-game-rules__rule-card,
  .page-game-rules__game-card,
  .page-game-rules__feature-item,
  .page-game-rules__faq-item {
    padding: 20px;
  }
  .page-game-rules__card-title,
  .page-game-rules__feature-title {
    font-size: 1.4em;
  }
  .page-game-rules__game-image {
    height: 180px;
  }

  /* Mobile image responsiveness */
  .page-game-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-game-rules__hero-section,
  .page-game-rules__intro-section,
  .page-game-rules__general-rules-section,
  .page-game-rules__specific-rules-section,
  .page-game-rules__responsible-gaming-section,
  .page-game-rules__security-integrity-section,
  .page-game-rules__faq-section,
  .page-game-rules__cta-section,
  .page-game-rules__container,
  .page-game-rules__rule-card,
  .page-game-rules__game-card,
  .page-game-rules__feature-item,
  .page-game-rules__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  .page-game-rules__faq-item summary {
    padding: 15px 20px;
  }
  .page-game-rules__faq-answer {
    padding: 0 20px 15px 20px;
  }
}