/* style/casino.css */

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

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

.page-casino__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-casino__text-content {
  flex: 1;
  min-width: 300px;
}

.page-casino__text-content p {
  margin-bottom: 15px;
  color: #ffffff;
}

.page-casino__image-content {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-casino__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 0 auto;
}

.page-casino__cta-center {
  text-align: center;
  margin-top: 50px;
}

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

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

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

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
  box-sizing: border-box;
}

.page-casino__hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translate(-50%, -50%);
  background-size: cover;
  cursor: pointer; /* Indicate clickable */
}

.page-casino__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 1;
}

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

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

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

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

/* Section Styling */
.page-casino__about-section,
.page-casino__promotions-section,
.page-casino__guide-section,
.page-casino__faq-section {
  padding: 80px 0;
}

.page-casino__games-section,
.page-casino__security-section,
.page-casino__support-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color for dark sections */
  color: #ffffff;
}

.page-casino__light-bg .page-casino__section-title,
.page-casino__light-bg .page-casino__section-description,
.page-casino__light-bg .page-casino__text-content p,
.page-casino__light-bg .page-casino__card-title,
.page-casino__light-bg .page-casino__card-text,
.page-casino__light-bg .page-casino__faq-question h3,
.page-casino__light-bg .page-casino__faq-answer p {
  color: #333333; /* Dark text for light backgrounds */
}

.page-casino__light-bg .page-casino__card {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-casino__dark-bg .page-casino__section-title,
.page-casino__dark-bg .page-casino__section-description,
.page-casino__dark-bg .page-casino__text-content p,
.page-casino__dark-bg .page-casino__card-title,
.page-casino__dark-bg .page-casino__card-text,
.page-casino__dark-bg .page-casino__faq-question h3,
.page-casino__dark-bg .page-casino__faq-answer p {
  color: #ffffff; /* Light text for dark backgrounds */
}

.page-casino__dark-bg .page-casino__card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white card on dark background */
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-casino__game-card {
  text-align: center;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.page-casino__card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-casino__card-text {
  font-size: 1em;
}

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

.page-casino__promotion-card {
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-align: left;
}

/* Guide Steps */
.page-casino__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__guide-item {
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-align: left;
}

/* Support Section */
.page-casino__support-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.page-casino__support-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: left;
  display: inline-block; /* Center the list */
}

.page-casino__support-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #ffffff;
}

.page-casino__support-list li strong {
  color: #FFFF00;
}

/* FAQ Section */
.page-casino__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.page-casino__faq-item {
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter on dark background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__light-bg .page-casino__faq-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 10px 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: bold;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-casino__light-bg .page-casino__faq-question {
  color: #333333;
}

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

.page-casino__light-bg .page-casino__faq-question:hover {
  background-color: #f5f5f5;
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFFF00; /* Highlight toggle icon */
}

.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, padding 0.3s ease;
  color: #f0f0f0;
}

.page-casino__light-bg .page-casino__faq-answer {
  color: #333333;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 3em;
  }
  .page-casino__hero-description {
    font-size: 1.2em;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
  .page-casino__content-wrapper {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    height: auto;
    min-height: 600px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-casino__hero-video {
    width: 100% !important;
    height: auto !important;
    min-width: unset;
    min-height: unset;
  }
  .page-casino__hero-title {
    font-size: 2.2em;
  }
  .page-casino__hero-description {
    font-size: 1em;
  }
  .page-casino__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino a[class*="button"],
  .page-casino a[class*="btn"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-casino__button-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-casino__container {
    padding: 0 15px;
  }

  .page-casino__about-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__security-section,
  .page-casino__guide-section,
  .page-casino__support-section,
  .page-casino__faq-section {
    padding: 50px 0;
  }

  .page-casino__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-casino__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }
  .page-casino__text-content p {
    font-size: 0.95em;
  }
  .page-casino__card-title {
    font-size: 1.5em;
  }
  .page-casino__card-text {
    font-size: 0.9em;
  }

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .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__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-casino__faq-answer {
    padding: 0 20px;
  }
  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px 20px 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 1.8em;
  }
  .page-casino__hero-description {
    font-size: 0.9em;
  }
  .page-casino__section-title {
    font-size: 1.5em;
  }
}