/* style/casino.css */

/* Base styles for the casino page, ensuring light text on dark body background */
.page-casino {
  color: #ffffff; /* Light text for dark body background */
  background-color: #000000; /* Ensure body background is respected */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-casino__section-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive H2 font size */
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-casino__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* 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;
  background-color: #000000;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height to prevent excessive stretching */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-casino__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  position: relative; /* Ensure content is above any potential background layering issues */
  z-index: 2; /* Ensure text is always above the image */
}

.page-casino__main-title {
  font-size: clamp(2.5em, 5vw, 4em); /* Responsive H1 font size */
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.page-casino__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-casino__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
  max-width: 100%;
}

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

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

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

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

/* Video Section */
.page-casino__video-section {
  padding: 60px 20px;
  background-color: #000000;
  text-align: center;
}

.page-casino__video-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.page-casino__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 30px;
  width: 100%; /* Desktop width */
  max-width: 100%;
  box-sizing: border-box;
}

.page-casino__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  max-width: 100%;
  height: auto;
}

.page-casino__video-cta {
  margin-top: 20px;
}

/* About Section */
.page-casino__about-section {
  padding: 80px 20px;
  background-color: #000000;
}

.page-casino__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-casino__text-block p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-casino__image-block {
  text-align: center;
}

.page-casino__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 20px;
  background-color: #000000;
}

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

.page-casino__game-category-item {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  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;
  justify-content: space-between;
  color: #ffffff;
}

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

.page-casino__game-category-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-casino__game-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 20px;
  background-color: #000000;
}

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

.page-casino__promo-card {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  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;
  justify-content: space-between;
  color: #ffffff;
}

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

.page-casino__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-casino__view-all-promos {
  text-align: center;
}

/* Security Section */
.page-casino__security-section {
  padding: 80px 20px;
  background-color: #000000;
}

/* Register CTA Section */
.page-casino__cta-register {
  padding: 80px 20px;
  background-color: #000000;
  text-align: center;
}

.page-casino__register-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__register-image {
  margin-top: 40px;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 20px;
  background-color: #000000;
}

.page-casino__faq-list {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}

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

.page-casino__faq-item[open] {
  background: rgba(255, 255, 255, 0.1);
}

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

.page-casino__faq-question:hover {
  background-color: rgba(38, 169, 224, 0.1);
}

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

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

.page-casino__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-casino__faq-cta {
  text-align: center;
  margin-top: 40px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-casino__hero-image-wrapper {
    max-height: 500px;
  }
  .page-casino__main-title {
    font-size: clamp(2em, 4.5vw, 3.5em);
  }
  .page-casino__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
  }
  .page-casino__content-grid {
    grid-template-columns: 1fr;
  }
  .page-casino__text-block, .page-casino__image-block {
    order: unset; /* Reset order for smaller screens if changed */
  }
  .page-casino__security-section .page-casino__text-block {
    order: 2;
  }
  .page-casino__security-section .page-casino__image-block {
    order: 1;
  }
}

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

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

  /* General container responsiveness for images/videos/buttons */
  .page-casino__section, .page-casino__card, .page-casino__container, .page-casino__content-grid, .page-casino__game-categories, .page-casino__promotions-grid, .page-casino__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-casino__hero-section, .page-casino__about-section, .page-casino__games-section, .page-casino__promotions-section, .page-casino__security-section, .page-casino__cta-register, .page-casino__faq-section {
    padding: 40px 15px;
  }

  .page-casino__hero-image-wrapper {
    max-height: 300px;
  }

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

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

  .page-casino__hero-description {
    font-size: 1em;
  }

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

  .page-casino__cta-button {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  /* Video responsiveness */
  .page-casino__video-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
  }
  .page-casino__video-wrapper {
    padding-bottom: 75%; /* Adjust aspect ratio for mobile if needed, e.g., 4:3 */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-casino__video {
    width: 100% !important;
    height: 100% !important;
  }

  .page-casino__game-category-title, .page-casino__promo-title {
    font-size: 1.5em;
  }

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

@media (max-width: 480px) {
  .page-casino__main-title {
    font-size: clamp(1.6em, 8vw, 2.2em);
  }
  .page-casino__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }
  .page-casino__hero-image-wrapper {
    max-height: 200px;
  }
}