/* style/casino.css */

/* Base styles for the page-casino scope */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for default light body background */
  background-color: #f8f8f8;
}

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

.page-casino__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: #333333;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-casino__section-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-casino__cta-center {
  text-align: center;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

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

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

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

.page-casino__btn-secondary {
  background-color: #ffffff;
  color: #DC143C; /* Deep Red */
  border: 2px solid #DC143C;
}

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

.page-casino__btn-tertiary {
  background-color: #DC143C; /* Deep Red */
  color: #ffffff;
  border: 2px solid #DC143C;
}

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

.page-casino__btn-lg {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Sections with specific backgrounds */
.page-casino__light-bg {
  background-color: #ffffff;
  padding: 60px 0;
}

.page-casino__dark-bg {
  background-color: #DC143C; /* Deep Red */
  color: #ffffff;
  padding: 60px 0;
}

.page-casino__dark-bg .page-casino__section-title,
.page-casino__dark-bg .page-casino__section-text,
.page-casino__dark-bg .page-casino__step-title,
.page-casino__dark-bg .page-casino__step-description,
.page-casino__dark-bg .page-casino__step-number {
  color: #ffffff;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
  min-height: 500px;
}

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

.page-casino__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image for text readability */
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
}

.page-casino__hero-title {
  font-size: clamp(2.5em, 5vw, 4.5em); /* Responsive font size for H1 */
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #FFD700;
}

.page-casino__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  font-weight: 300;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* About Section (generic content section) */
.page-casino__about-section {
  padding: 80px 0;
}

.page-casino__feature-image {
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  max-width: 100%;
  height: auto;
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
}

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

.page-casino__game-category-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: center;
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-casino__game-category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.page-casino__category-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-casino__category-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 10px;
  color: #DC143C;
}

.page-casino__category-description {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino__category-link {
  display: inline-block;
  color: #FFD700;
  font-weight: 600;
  margin-top: 15px;
}

.page-casino__category-link::after {
  content: ' \2192'; /* Right arrow */
}

.page-casino__view-all-games-cta {
  margin-top: 50px;
  text-align: center;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 0;
}

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

.page-casino__promo-card {
  background-color: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.page-casino__promo-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-casino__promo-card-title {
  font-size: 1.6em;
  font-weight: 700;
  margin: 20px 15px 10px 15px;
  color: #DC143C;
}

.page-casino__promo-card-description {
  font-size: 0.95em;
  padding: 0 15px 20px 15px;
  flex-grow: 1;
  color: #555555;
}

.page-casino__promo-card .page-casino__btn-primary,
.page-casino__promo-card .page-casino__btn-secondary {
  margin: 0 20px 20px 20px; /* Adjust margin for buttons inside cards */
}

/* How to Join Section */
.page-casino__how-to-join-section {
  padding: 80px 0;
}

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

.page-casino__step-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #FFD700;
  color: #ffffff;
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-casino__step-title {
  font-size: 1.6em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #DC143C;
}

.page-casino__step-description {
  font-size: 0.95em;
  margin-bottom: 25px;
  flex-grow: 1;
  color: #555555;
}

/* Security and Payment Sections (generic content sections) */
.page-casino__security-section,
.page-casino__payment-section,
.page-casino__support-section {
  padding: 80px 0;
}

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

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

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: #333333;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
  background-color: #f0f0f0;
}

.page-casino__faq-title {
  margin: 0;
  font-size: 1em; /* Relative to parent .faq-question */
  color: #333333;
}

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

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

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

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

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

/* Final CTA Section */
.page-casino__final-cta-section {
  padding: 80px 0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: clamp(2.2em, 4.5vw, 4em);
  }
  .page-casino__hero-description {
    font-size: 1.2em;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-casino__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-casino__section-text {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-casino__hero-section {
    padding-bottom: 40px;
    min-height: 400px;
  }
  .page-casino__hero-title {
    font-size: clamp(1.8em, 7vw, 3em);
  }
  .page-casino__hero-description {
    font-size: 1.1em;
  }
  .page-casino__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-tertiary {
    padding: 12px 20px;
    font-size: 1em;
    width: 100% !important;
    max-width: 100% !important;
  }
  .page-casino__cta-center {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__btn-lg {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  
  /* Force images to be responsive on mobile */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure containers with images/buttons are responsive */
  .page-casino__container,
  .page-casino__hero-image-wrapper,
  .page-casino__game-category-card,
  .page-casino__promo-card,
  .page-casino__step-card,
  .page-casino__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Adjust specific padding for sections */
  .page-casino__hero-section {
    padding-top: 10px !important; /* body handles --header-offset */
    padding-left: 0;
    padding-right: 0;
  }
  .page-casino__about-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__how-to-join-section,
  .page-casino__security-section,
  .page-casino__payment-section,
  .page-casino__support-section,
  .page-casino__faq-section,
  .page-casino__final-cta-section {
    padding: 40px 0;
  }

  .page-casino__game-categories-grid,
  .page-casino__promo-cards,
  .page-casino__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__promo-image {
    height: auto; /* Allow image height to adjust */
  }

  .page-casino__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .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: clamp(1.5em, 8vw, 2.5em);
  }
  .page-casino__hero-description {
    font-size: 1em;
  }
  .page-casino__section-title {
    font-size: 1.6em;
  }
  .page-casino__btn-lg {
    font-size: 1em;
    padding: 12px 25px;
  }
}

/* No filter on images, only brightness for hero */
.page-casino img:not(.page-casino__hero-image) {
  filter: none; /* Ensure no unwanted filters */
}

/* Color contrast specific rules for elements not covered by light/dark bg */
.page-casino__game-category-card .page-casino__category-title {
  color: #DC143C; /* Deep Red on white card background */
}
.page-casino__game-category-card .page-casino__category-link {
  color: #FFD700; /* Gold on white card background */
}
.page-casino__promo-card .page-casino__promo-card-title {
  color: #DC143C; /* Deep Red on light gray card background */
}
.page-casino__step-card .page-casino__step-title {
  color: #DC143C; /* Deep Red on white card background */
}
.page-casino__faq-question .page-casino__faq-title {
  color: #333333; /* Dark text on light gray question background */
}
.page-casino__faq-toggle {
  color: #DC143C; /* Deep Red on light gray question background */
}