/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
  color: #ffffff; /* Default light text for dark body background */
  background-color: #121212; /* Inherited from body, but specified for clarity */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-casino__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700; /* Gold for main titles */
  text-align: center;
  margin-bottom: 20px;
}

.page-casino__section-description {
  font-size: 18px;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  padding-top: 0; /* Assumes shared.css handles body padding-top for header offset */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #CC0000, #880000); /* Darker red gradient */
  overflow: hidden;
  color: #ffffff;
}

.page-casino__hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-casino__hero-content {
  flex: 1;
  max-width: 55%;
}

.page-casino__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFD700; /* Gold for hero title */
}

.page-casino__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-casino__hero-cta-buttons {
  display: flex;
  gap: 20px;
}

.page-casino__hero-image {
  flex: 1;
  max-width: 45%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.page-casino__btn-primary {
  background: #FFD700; /* Gold */
  color: #121212; /* Dark text for gold background */
  border: 2px solid #FFD700;
}

.page-casino__btn-primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
}

.page-casino__btn-secondary {
  background: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-casino__btn-secondary:hover {
  background: #FFD700;
  color: #121212;
  transform: translateY(-2px);
}

.page-casino__btn-tertiary {
  background: #CC0000; /* Red */
  color: #ffffff;
  border: 2px solid #CC0000;
  padding: 10px 20px;
  font-size: 15px;
}

.page-casino__btn-tertiary:hover {
  background: #990000;
  border-color: #990000;
  transform: translateY(-1px);
}

/* Game Categories Section */
.page-casino__games-category-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #ffffff;
}

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

.page-casino__category-card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-casino__category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-casino__category-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

.page-casino__category-card-link {
  text-decoration: none;
  color: inherit;
}

.page-casino__category-title {
  font-size: 22px;
  font-weight: bold;
  margin: 20px 20px 10px;
  color: #FFD700; /* Gold for category titles */
}

.page-casino__category-text {
  font-size: 15px;
  color: #f0f0f0;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino__category-card .page-casino__btn-tertiary {
  margin: 0 20px 20px;
}

/* Why Choose Section */
.page-casino__why-choose-section {
  padding: 80px 0;
  background-color: #121212;
  color: #ffffff;
}

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

.page-casino__feature-item {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-casino__feature-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #CC0000; /* Red background for icons */
  border-radius: 50%;
  padding: 10px;
}

.page-casino__feature-icon img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.page-casino__feature-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700; /* Gold for feature titles */
}

.page-casino__feature-description {
  font-size: 15px;
  color: #f0f0f0;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-casino__promo-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-casino__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-casino__promo-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

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

.page-casino__promo-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 220px); /* Adjust height for content below image */
}

.page-casino__promo-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFD700; /* Gold for promo titles */
}

.page-casino__promo-description {
  font-size: 15px;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino__promo-card .page-casino__btn-tertiary {
  align-self: flex-start;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 0;
  background-color: #121212;
  color: #ffffff;
}

.page-casino__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #CC0000; /* Red background for questions */
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-casino__faq-question:hover {
  background: #990000; /* Darker red on hover */
}

.page-casino__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #ffffff;
}

.page-casino__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: #f0f0f0;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for answer */
  border-radius: 0 0 8px 8px;
}

.page-casino__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

/* Bottom CTA Section */
.page-casino__cta-bottom-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #FFD700, #e6c200); /* Gold gradient */
  color: #121212;
  text-align: center;
}

.page-casino__cta-bottom-section .page-casino__section-title {
  color: #121212; /* Dark text for gold background */
}

.page-casino__cta-bottom-section .page-casino__section-description {
  color: #333333; /* Darker text for description */
}

.page-casino__cta-bottom-section .page-casino__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-casino__cta-bottom-section .page-casino__btn-primary {
  background: #CC0000; /* Red */
  border-color: #CC0000;
  color: #ffffff;
}

.page-casino__cta-bottom-section .page-casino__btn-primary:hover {
  background: #990000;
  border-color: #990000;
}

.page-casino__cta-bottom-section .page-casino__btn-secondary {
  background: transparent;
  border-color: #CC0000;
  color: #CC0000;
}

.page-casino__cta-bottom-section .page-casino__btn-secondary:hover {
  background: #CC0000;
  color: #ffffff;
}

/* Responsive Design */
/* Mobile and Tablet General */
@media (max-width: 1024px) {
  .page-casino__hero-container {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  .page-casino__hero-content,
  .page-casino__hero-image {
    max-width: 100%;
    flex: none;
  }

  .page-casino__hero-title {
    font-size: 40px;
  }

  .page-casino__hero-description {
    font-size: 16px;
  }

  .page-casino__hero-cta-buttons {
    justify-content: center;
  }

  .page-casino__section-title {
    font-size: 30px;
  }

  .page-casino__section-description {
    font-size: 16px;
  }

  .page-casino__games-category-section,
  .page-casino__why-choose-section,
  .page-casino__promotions-section,
  .page-casino__faq-section,
  .page-casino__cta-bottom-section {
    padding: 60px 0;
  }

  .page-casino__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-casino__feature-icon img {
    width: 70%;
    height: 70%;
  }

  .page-casino__feature-title {
    font-size: 18px;
  }

  .page-casino__promo-image {
    height: 180px;
  }

  .page-casino__promo-title {
    font-size: 20px;
  }

  .page-casino__faq-question h3 {
    font-size: 17px;
  }
}

/* Mobile Specific */
@media (max-width: 768px) {
  .page-casino__container {
    padding: 0 15px;
  }

  .page-casino__hero-section {
    padding-bottom: 40px;
  }

  .page-casino__hero-container {
    padding: 40px 15px;
    gap: 30px;
  }

  .page-casino__hero-title {
    font-size: 32px;
  }

  .page-casino__hero-description {
    font-size: 15px;
  }

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

  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-tertiary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-casino__section-title {
    font-size: 26px;
    margin-bottom: 15px;
  }

  .page-casino__section-description {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .page-casino__games-category-section,
  .page-casino__why-choose-section,
  .page-casino__promotions-section,
  .page-casino__faq-section,
  .page-casino__cta-bottom-section {
    padding: 40px 0;
  }

  .page-casino__category-grid,
  .page-casino__features-grid,
  .page-casino__promo-grid {
    gap: 20px;
  }

  .page-casino__category-title {
    font-size: 18px;
  }

  .page-casino__category-text {
    font-size: 14px;
  }

  .page-casino__feature-item {
    padding: 20px;
  }

  .page-casino__feature-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
  }

  .page-casino__feature-icon img {
    width: 60%;
    height: 60%;
  }

  .page-casino__feature-title {
    font-size: 16px;
  }

  .page-casino__feature-description {
    font-size: 14px;
  }

  .page-casino__promo-image {
    height: 150px;
  }

  .page-casino__promo-title {
    font-size: 18px;
  }

  .page-casino__promo-description {
    font-size: 14px;
  }

  .page-casino__faq-question {
    padding: 15px 20px;
  }

  .page-casino__faq-question h3 {
    font-size: 16px;
  }

  .page-casino__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }

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

  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px 20px !important;
  }

  .page-casino__faq-answer p {
    font-size: 15px;
  }

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

  /* General image responsive styles */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Containers responsive styles */
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-section,
  .page-casino__games-category-section,
  .page-casino__why-choose-section,
  .page-casino__promotions-section,
  .page-casino__faq-section,
  .page-casino__cta-bottom-section,
  .page-casino__hero-cta-buttons,
  .page-casino__category-card,
  .page-casino__feature-item,
  .page-casino__promo-card,
  .page-casino__faq-item,
  .page-casino__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right are handled by .page-casino__container */
  }

  /* LOGO轮播项必须单独设置，保持固定尺寸 */
  .page-casino__logo-item {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    box-sizing: border-box;
  }
}