/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
  background-color: #0A0A0A; /* From custom colors '背景' */
  color: #FFF6D6; /* From custom colors 'Text Main' for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-casino__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-casino__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #F2C14E;
  margin-bottom: 20px;
  font-weight: bold;
  text-transform: uppercase;
}

.page-casino__text-block {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__highlight {
  color: #FFD36B;
  font-weight: bold;
}

.page-casino__text-link {
  color: #F2C14E;
  text-decoration: underline;
}

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

.page-casino__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* From custom colors '按钮' */
  color: #111111; /* Dark text for bright button */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

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

.page-casino__btn-secondary {
  background: transparent;
  color: #F2C14E;
  border: 2px solid #F2C14E; /* From custom colors '主色调' */
  margin-left: 15px;
}

.page-casino__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  color: #FFD36B;
}

.page-casino__btn-small {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.page-casino__btn-large {
  padding: 15px 35px;
  font-size: 1.2rem;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  padding: 0; /* Content padding handled by .page-casino__hero-content */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure sufficient height */
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-casino__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 80px 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.page-casino__main-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: #FFF6D6; /* Text Main */
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.7);
}

.page-casino__hero-description {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Feature Grid (Why Choose Us) */
.page-casino__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__feature-item {
  background: #111111; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  border: 1px solid #3A2A12; /* Border from custom colors */
}

.page-casino__feature-title {
  font-size: 1.5rem;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-casino__feature-item p {
  color: #FFF6D6;
}

/* Game Categories */
.page-casino__game-categories {
  background-color: #0A0A0A;
}

.page-casino__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-casino__category-card {
  background: #111111; /* Card BG */
  padding: 25px;
  border-radius: 10px;
  text-decoration: none;
  color: #FFF6D6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #3A2A12; /* Border from custom colors */
}

.page-casino__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.2);
}

.page-casino__category-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px #F2C14E);
}

.page-casino__category-title {
  font-size: 1.3rem;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-casino__category-card p {
  font-size: 0.95rem;
  color: #FFF6D6;
}

/* Featured Games */
.page-casino__featured-games {
  background-color: #0A0A0A;
}

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

.page-casino__game-card {
  background: #111111; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  border: 1px solid #3A2A12; /* Border from custom colors */
}

.page-casino__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-casino__game-card .page-casino__game-title {
  font-size: 1.4rem;
  color: #F2C14E;
  margin: 15px 20px 10px;
}

.page-casino__game-card .page-casino__game-description {
  font-size: 0.95rem;
  color: #FFF6D6;
  margin: 0 20px 20px;
  flex-grow: 1;
}

.page-casino__game-card .page-casino__btn-primary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

/* Promotions */
.page-casino__promotions {
  background-color: #0A0A0A;
}

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

.page-casino__promo-card {
  background: #111111; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  border: 1px solid #3A2A12; /* Border from custom colors */
}

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

.page-casino__promo-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-casino__promo-title {
  font-size: 1.5rem;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-casino__promo-content p {
  font-size: 1rem;
  color: #FFF6D6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Security Section */
.page-casino__security-section {
  background-color: #0A0A0A;
}

.page-casino__security-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin: 30px auto;
  display: block;
  border: 1px solid #3A2A12;
}

.page-casino__security-features {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  text-align: left;
}

.page-casino__security-features li {
  background: #111111; /* Card BG */
  padding: 20px;
  border-radius: 8px;
  color: #FFF6D6;
  font-size: 1.05rem;
  border: 1px solid #3A2A12;
}

/* Get Started Section */
.page-casino__get-started {
  background-color: #0A0A0A;
}

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

.page-casino__step-item {
  background: #111111; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #3A2A12;
}

.page-casino__step-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px #FFD36B);
}

.page-casino__step-title {
  font-size: 1.4rem;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-casino__step-item p {
  color: #FFF6D6;
  font-size: 0.95rem;
}

.page-casino__cta-buttons--center {
  margin-top: 40px;
}

/* Mobile App Section */
.page-casino__mobile-app {
  background-color: #0A0A0A;
}

.page-casino__mobile-app-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: contain;
  margin: 40px auto;
  display: block;
  border-radius: 10px;
  border: 1px solid #3A2A12;
}

.page-casino__app-download-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Partners Section */
.page-casino__partners-section {
  background-color: #0A0A0A;
}

.page-casino__partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjusted for 167x127px images */
  gap: 20px;
  margin-top: 40px;
}

.page-casino__partner-item {
  background: #111111; /* Card BG */
  padding: 10px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px; /* To accommodate 167x127px images */
  border: 1px solid #3A2A12;
}

.page-casino__partner-logo {
  width: 100%;
  max-width: 167px; /* Fixed width */
  height: auto;
  max-height: 127px; /* Fixed height */
  object-fit: contain;
  display: block;
  filter: grayscale(100%) brightness(150%); /* Make logos adapt to dark background and golden theme */
  transition: filter 0.3s ease;
}

.page-casino__partner-logo:hover {
  filter: grayscale(0%) brightness(100%);
}

/* FAQ Section */
.page-casino__faq-section {
  background-color: #0A0A0A;
}

.page-casino__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-casino__faq-item {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background: #111111;
  color: #F2C14E;
  font-size: 1.2rem;
  font-weight: bold;
  transition: background 0.3s ease;
}

.page-casino__faq-question:hover {
  background: #1d1d1d;
}

.page-casino__faq-question h3 {
  margin: 0;
  font-size: inherit;
  color: inherit;
}

.page-casino__faq-toggle {
  font-size: 1.8rem;
  font-weight: normal;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFD36B;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  transform: rotate(45deg);
}

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
  font-size: 1rem;
}

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

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

/* Final CTA Section */
.page-casino__cta-final {
  background-color: #111111; /* Card BG */
  padding: 80px 20px;
  border-top: 1px solid #3A2A12;
}

.page-casino__cta-final-content {
  max-width: 800px;
}

.page-casino__cta-final .page-casino__section-title {
  color: #FFF6D6;
}

/* General Image styles */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-casino__hero-section {
    min-height: 500px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-casino__hero-content {
    padding: 60px 15px;
  }

  .page-casino__main-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .page-casino__hero-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

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

  .page-casino__btn-primary, .page-casino__btn-secondary {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .page-casino__section {
    padding: 40px 15px;
  }

  .page-casino__section-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-casino__text-block {
    font-size: 1rem;
  }

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

  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__feature-item,
  .page-casino__step-item,
  .page-casino__partner-item,
  .page-casino__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}