/* style/casino.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General page styling for dark body background */
.page-casino {
  color: #ffffff; /* Must use light text for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

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

.page-casino__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 80vh; /* Adjust as needed */
  min-height: 500px;
  background-color: #017439; /* Use brand color for hero background */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-casino__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.6; /* Slightly transparent to let text stand out */
}

.page-casino__hero-section .page-casino__container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-casino__hero-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFF00; /* Highlighted color for title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin-bottom: 30px;
}

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

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-register,
.page-casino__btn-login,
.page-casino__btn-download {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%; /* For responsive buttons */
  box-sizing: border-box; /* For responsive buttons */
  white-space: normal; /* For responsive buttons */
  word-wrap: break-word; /* For responsive buttons */
}

/* Specific button styles */
.page-casino__btn-register {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-casino__btn-register:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-casino__btn-login {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-casino__btn-login:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-casino__btn-download {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-casino__btn-download:hover {
  background-color: #FFFFFF;
  color: #017439;
}

/* Default primary/secondary for other sections */
.page-casino__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-casino__btn-primary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

.page-casino__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-casino__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
  border-color: #005a2e;
}

.page-casino__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-casino__text-block {
  font-size: 1.1em;
  text-align: justify;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Section specific styling */
.page-casino__about-section,
.page-casino__promotions-section,
.page-casino__vip-section {
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text */
  padding: 80px 0;
}

.page-casino__games-section,
.page-casino__security-section,
.page-casino__faq-section,
.page-casino__cta-bottom-section {
  background-color: #017439; /* Dark background */
  color: #ffffff; /* Light text */
  padding: 80px 0;
}

/* Games grid */
.page-casino__game-grid,
.page-casino__promotions-grid,
.page-casino__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__game-card,
.page-casino__promo-card,
.page-casino__feature-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark sections */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.page-casino__about-section .page-casino__game-card,
.page-casino__promotions-section .page-casino__promo-card,
.page-casino__vip-section .page-casino__feature-item {
  background-color: #f9f9f9; /* Light background for light sections */
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-casino__game-image,
.page-casino__promo-image,
.page-casino__feature-icon {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  margin-bottom: 15px;
}

.page-casino__feature-icon {
    width: 200px; /* Smallest allowed size */
    height: 150px;
    object-fit: contain; /* Icons might be better contained */
    margin: 0 auto 15px auto;
}

.page-casino__game-title,
.page-casino__promo-title,
.page-casino__feature-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__game-title a,
.page-casino__promo-title a,
.page-casino__feature-title a {
  color: #FFFF00; /* Link color for dark background */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__about-section .page-casino__game-title a,
.page-casino__promotions-section .page-casino__promo-title a,
.page-casino__vip-section .page-casino__feature-title a {
  color: #017439; /* Link color for light background */
}

.page-casino__game-title a:hover,
.page-casino__promo-title a:hover,
.page-casino__feature-title a:hover {
  color: #005a2e; /* Hover color */
}

.page-casino__game-description,
.page-casino__promo-description,
.page-casino__feature-description {
  font-size: 0.95em;
  padding: 0 15px;
  flex-grow: 1; /* Ensure descriptions take up available space */
}

/* FAQ Section */
.page-casino__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-casino__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to reveal content */
  padding: 15px 25px 25px 25px;
}

.page-casino__faq-answer p {
  margin-bottom: 0;
}

/* Bottom CTA */
.page-casino__cta-bottom-section {
  text-align: center;
}

.page-casino__cta-bottom-section .page-casino__cta-buttons {
  margin-top: 30px;
}

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

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

  .page-casino__hero-section {
    height: auto;
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

  .page-casino__hero-title {
    font-size: 2.2em;
  }

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

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

  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-register,
  .page-casino__btn-login,
  .page-casino__btn-download {
    width: 100% !important;
    padding: 12px 20px;
  }

  .page-casino__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-casino__text-block {
    font-size: 1em;
    padding: 0 15px;
  }

  .page-casino__about-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__security-section,
  .page-casino__vip-section,
  .page-casino__faq-section,
  .page-casino__cta-bottom-section {
    padding: 50px 0;
  }

  .page-casino__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__feature-item {
    background-color: rgba(255, 255, 255, 0.1) !important; /* Ensure visibility on dark bg */
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    padding-bottom: 15px;
  }

  /* Specific handling for light background cards in mobile to ensure contrast */
  .page-casino__about-section .page-casino__game-card,
  .page-casino__promotions-section .page-casino__promo-card,
  .page-casino__vip-section .page-casino__feature-item {
    background-color: #ffffff !important; /* Force white background */
    color: #333333 !important; /* Force dark text */
  }

  .page-casino__game-title a,
  .page-casino__promo-title a,
  .page-casino__feature-title a {
    color: #FFFF00 !important; /* Default link color for dark background */
  }
  .page-casino__about-section .page-casino__game-title a,
  .page-casino__promotions-section .page-casino__promo-title a,
  .page-casino__vip-section .page-casino__feature-title a {
    color: #017439 !important; /* Link color for light background */
  }

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

  .page-casino__faq-answer {
    padding: 0 20px;
  }

  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 10px 20px 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 1.8em;
  }
}