/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

.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, 48px); /* Responsive H2 font size */
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.2;
  color: inherit;
}

.page-casino__description,
.page-casino__text-block {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.page-casino__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Overlap slightly for design, but text is below image */
  background: linear-gradient(180deg, rgba(26, 26, 26, 0) 0%, #1a1a1a 50%);
  padding-top: 150px;
}

.page-casino__main-title {
  font-size: clamp(32px, 5vw, 60px); /* Responsive H1 font size */
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #ffffff;
}

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

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

.page-casino__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

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

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

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

/* Section backgrounds and text colors based on body background (#1a1a1a - dark) */
.page-casino__dark-bg {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 60px 0;
}

.page-casino__light-bg {
  background-color: #2a2a2a; /* Slightly lighter dark for contrast */
  color: #ffffff;
  padding: 60px 0;
}

/* Introduction Section */
.page-casino__introduction-section .page-casino__text-block {
  text-align: left;
  max-width: 100%;
}

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

.page-casino__card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
  border-radius: 10px;
  overflow: hidden;
  padding-bottom: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.page-casino__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-casino__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 0 15px;
  color: #26A9E0;
}

.page-casino__card-title a.page-casino__card-link {
  color: inherit;
  text-decoration: none;
}

.page-casino__card-title a.page-casino__card-link:hover {
  text-decoration: underline;
}

.page-casino__card-text {
  font-size: 0.95em;
  line-height: 1.5;
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: left;
}

.page-casino__card .page-casino__btn-primary {
  margin: 0 auto;
  width: calc(100% - 30px);
  padding: 10px 20px;
  font-size: 1em;
}

/* Live Casino Section */
.page-casino__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  max-width: 1000px;
}

/* Promotions Section */
.page-casino__promo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-casino__promo-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.page-casino__promo-text {
  font-size: 0.95em;
  line-height: 1.5;
  text-align: left;
}

/* Get Started Section */
.page-casino__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__step-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-casino__step-number {
  font-size: 2.5em;
  font-weight: 800;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-casino__step-title {
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-casino__step-text {
  font-size: 0.95em;
  line-height: 1.5;
}

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

/* FAQ Section */
.page-casino__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: 600;
  color: #26A9E0;
  list-style: none; /* Remove default marker for details summary */
}

.page-casino__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff;
}

.page-casino__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #ffffff;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-casino__hero-content {
    margin-top: -100px;
    padding-top: 100px;
  }
}

@media (max-width: 768px) {
  .page-casino__container {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-casino__hero-content {
    margin-top: -80px;
    padding-top: 80px;
    padding: 20px 15px;
  }

  .page-casino__main-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .page-casino__description,
  .page-casino__text-block {
    font-size: 1em;
    text-align: left;
  }

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

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino__dark-bg, .page-casino__light-bg {
    padding: 40px 0;
  }

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

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

  .page-casino__content-image {
    margin: 20px auto;
  }

  /* Force responsive images */
  .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__live-casino-section, .page-casino__promotions-section, .page-casino__safety-security-section, .page-casino__get-started-section, .page-casino__faq-section, .page-casino__contact-cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-casino__video-section {
    padding-top: 10px !important;
  }

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

  .page-casino__video-section, .page-casino__video-container, .page-casino__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-casino__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}