/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text 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: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-casino__section-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
  min-height: 600px;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

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

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.6);
  padding: 40px;
  border-radius: 10px;
}

.page-casino__hero-title {
  font-size: 3.5em;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  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; /* Allow text wrapping */
  box-sizing: border-box;
}

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

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

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

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

/* Specific button for login/register if needed */
.page-casino__btn-login {
  background-color: #EA7C07;
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-casino__btn-login:hover {
  background-color: #c96806;
  border-color: #c96806;
}

/* Introduction Section */
.page-casino__introduction-section {
  padding: 80px 0;
  background-color: #111;
  color: #ffffff;
}

.page-casino__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 800px;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer; /* Indicate clickable */
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #333333; /* Dark text for light background */
}

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

.page-casino__game-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-casino__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin: 0 15px 15px 15px;
  font-weight: bold;
}

.page-casino__card-description {
  font-size: 1em;
  color: #555555;
  margin: 0 15px 20px 15px;
  flex-grow: 1;
}

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

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 0;
  background-color: #222;
  color: #ffffff;
  text-align: center;
}

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

/* Registration Section */
.page-casino__registration-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #333333; /* Dark text for light background */
}

.page-casino__registration-steps {
  list-style-type: decimal;
  max-width: 800px;
  margin: 40px auto;
  text-align: left;
  padding-left: 40px;
}

.page-casino__registration-steps li {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-casino__registration-steps strong {
  color: #26A9E0;
}

/* Security Section */
.page-casino__security-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
  text-align: center;
}

/* Support Section */
.page-casino__support-section {
  padding: 80px 0;
  background-color: #f5f5f5;
  color: #333333; /* Dark text for light background */
  text-align: center;
}

/* Mobile Section */
.page-casino__mobile-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
  text-align: center;
}

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

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #333333; /* Dark text for light background */
}

.page-casino__faq-list {
  max-width: 900px;
  margin: 40px auto;
}

.page-casino__faq-item {
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: #eaf6fa;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details/summary */
}

.page-casino__faq-question::-webkit-details-marker {
  display: none;
}

.page-casino__faq-item[open] .page-casino__faq-question {
  border-bottom: 1px solid #d0d0d0;
}

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

.page-casino__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  background-color: #ffffff;
}

.page-casino__faq-answer p {
  margin-bottom: 0;
  text-align: left;
}

/* Color Contrast Fixes (as per instruction) */
.page-casino__dark-section {
  background: #111;
  color: #ffffff;
}

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

.page-casino__text-contrast-fix {
  color: #333333 !important;
}

.page-casino__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 3em;
  }
  .page-casino__hero-description {
    font-size: 1.1em;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
  .page-casino__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-casino__hero-section {
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
  .page-casino__hero-title {
    font-size: 2.2em;
  }
  .page-casino__hero-description {
    font-size: 1em;
  }
  .page-casino__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__btn-primary, .page-casino__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  .page-casino__container {
    padding: 0 15px;
  }
  .page-casino__section-title {
    font-size: 1.8em;
  }
  .page-casino__section-text {
    font-size: 1em;
  }
  .page-casino__game-grid {
    grid-template-columns: 1fr;
  }
  .page-casino__card-image {
    height: 200px;
  }
  .page-casino__video-wrapper {
    margin: 30px auto 0 auto;
  }
  .page-casino__promo-image, .page-casino__mobile-image {
    margin: 30px auto;
  }
  .page-casino__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-casino__faq-answer {
    padding: 15px 20px;
  }
  /* Mobile image and video responsive rules */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-casino video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-casino__section, .page-casino__card, .page-casino__container, .page-casino__video-section, .page-casino__video-container, .page-casino__video-wrapper,
  .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;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 1.8em;
  }
  .page-casino__hero-content {
    padding: 25px;
  }
  .page-casino__section-title {
    font-size: 1.5em;
  }
  .page-casino__registration-steps {
    padding-left: 20px;
  }
  .page-casino__faq-question {
    font-size: 1em;
  }
}