/* style/casino.css */

/* 基础样式和 typography */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Default background */
}

.page-casino__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-casino__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

.page-casino__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__dark-bg .page-casino__section-title {
  color: #ffffff;
}

.page-casino__light-bg .page-casino__section-title {
  color: #333333;
}

.page-casino__section-subtitle {
  font-size: clamp(18px, 2.5vw, 22px);
  text-align: center;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.8);
}

.page-casino__light-bg .page-casino__section-subtitle {
  color: #666666;
}

.page-casino__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: justify;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body handles top padding */
  overflow: hidden;
  text-align: center;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
  margin-bottom: 30px;
}

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

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-casino__main-title {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-casino__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: #ffffff;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-casino__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

.page-casino__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-casino__btn-tertiary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  font-size: 16px;
  padding: 10px 20px;
}

.page-casino__btn-tertiary:hover {
  background-color: #1f8ec4;
  border-color: #1f8ec4;
}

/* About Section */
.page-casino__about-section {
  padding: 60px 0;
  text-align: center;
}

/* Games Section */
.page-casino__games-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-casino__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333;
}

.page-casino__game-card:hover {
  transform: translateY(-5px);
}

.page-casino__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-casino__game-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-casino__game-description {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Live Casino Section */
.page-casino__live-casino-section {
  padding: 60px 0;
}

.page-casino__live-casino-section .page-casino__container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-casino__live-casino-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-casino__live-casino-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.page-casino__live-casino-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-casino__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #333333;
}

.page-casino__promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-casino__promo-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-casino__promo-description {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino__view-all-promos .page-casino__btn-primary {
  background-color: #EA7C07;
  border-color: #EA7C07;
}

.page-casino__view-all-promos .page-casino__btn-primary:hover {
  background-color: #d46b00;
  border-color: #d46b00;
}

/* Why Choose Us Section */
.page-casino__why-choose-us {
  padding: 60px 0;
  text-align: center;
}

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

.page-casino__feature-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #333333;
}

.page-casino__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 80px; /* Enforce minimum size */
  min-height: 80px; /* Enforce minimum size */
}

.page-casino__feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #26A9E0;
}

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

/* FAQ Section */
.page-casino__faq-section {
  padding: 60px 0;
}

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

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

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  background-color: #f5f5f5;
  border-bottom: 1px solid #eeeeee;
  transition: background-color 0.3s ease;
}

.page-casino__faq-item[open] .page-casino__faq-question {
  background-color: #e0e0e0;
}

.page-casino__faq-qtext {
  flex-grow: 1;
  color: #333333;
}

.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  margin-left: 15px;
  color: #26A9E0;
}

.page-casino__faq-item[open] .page-casino__faq-toggle {
  transform: rotate(0deg);
}

.page-casino__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 16px;
  color: #555555;
}

.page-casino__faq-answer p {
  margin-top: 15px;
}

/* Remove default details arrow */
.page-casino__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-casino__faq-item summary {
  list-style: none;
}

/* CTA Bottom Section */
.page-casino__cta-bottom {
  padding: 60px 0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-image-wrapper {
    max-height: 500px;
  }

  .page-casino__live-casino-section .page-casino__container {
    flex-direction: column-reverse;
  }
  .page-casino__live-casino-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-casino__main-title {
    font-size: clamp(30px, 7vw, 40px);
  }
  .page-casino__hero-description {
    font-size: clamp(16px, 3.5vw, 18px);
  }
  .page-casino__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }
  .page-casino__section-subtitle {
    font-size: clamp(16px, 3vw, 20px);
  }
  .page-casino__text-block {
    font-size: 15px;
  }

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

  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-section,
  .page-casino__about-section,
  .page-casino__games-section,
  .page-casino__live-casino-section,
  .page-casino__promotions-section,
  .page-casino__why-choose-us,
  .page-casino__faq-section,
  .page-casino__cta-bottom,
  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__feature-item,
  .page-casino__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons responsive */
  .page-casino__cta-button,
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-tertiary,
  .page-casino a[class*="button"],
  .page-casino a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino__cta-buttons,
  .page-casino__button-group,
  .page-casino__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }

  .page-casino__hero-section,
  .page-casino__about-section,
  .page-casino__games-section,
  .page-casino__live-casino-section,
  .page-casino__promotions-section,
  .page-casino__why-choose-us,
  .page-casino__faq-section,
  .page-casino__cta-bottom {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 30px; /* Adjusted for mobile */
    padding-bottom: 30px; /* Adjusted for mobile */
  }
  
  .page-casino__hero-section {
    padding-top: 10px; /* Specific top padding for hero */
  }
  
  .page-casino__live-casino-content,
  .page-casino__live-casino-image-wrapper {
    padding: 0;
  }

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

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

  .page-casino__faq-toggle {
    font-size: 20px;
  }

  .page-casino__faq-answer {
    font-size: 14px;
    padding: 0 15px 15px 15px;
  }
}